~ubuntu-branches/ubuntu/karmic/psicode/karmic

« back to all changes in this revision

Viewing changes to src/bin/ccdensity/add_core_UHF.cc

  • Committer: Bazaar Package Importer
  • Author(s): Michael Banck, Michael Banck, Daniel Leidert
  • Date: 2009-02-23 00:12:02 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20090223001202-rutldoy3dimfpesc
Tags: 3.4.0-1
* New upstream release.

[ Michael Banck ]
* debian/patches/01_DESTDIR.dpatch: Refreshed.
* debian/patches/02_FHS.dpatch: Removed, applied upstream.
* debian/patches/03_debian_docdir: Likewise.
* debian/patches/04_man.dpatch: Likewise.
* debian/patches/06_466828_fix_gcc_43_ftbfs.dpatch: Likewise.
* debian/patches/07_464867_move_executables: Fixed and refreshed.
* debian/patches/00list: Adjusted.
* debian/control: Improved description.
* debian/patches-held: Removed.
* debian/rules (install/psi3): Do not ship the ruby bindings for now.

[ Daniel Leidert ]
* debian/rules: Fix txtdir via DEB_MAKE_INSTALL_TARGET.
* debian/patches/01_DESTDIR.dpatch: Refreshed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*! \file
 
2
    \ingroup CCDENSITY
 
3
    \brief Enter brief description of file here 
 
4
*/
 
5
#include <cstdio>
 
6
#include <libciomr/libciomr.h>
 
7
#include <libiwl/iwl.h>
 
8
#include "MOInfo.h"
 
9
#include "Params.h"
 
10
#include "Frozen.h"
 
11
#define EXTERN
 
12
#include "globals.h"
 
13
 
 
14
namespace psi { namespace ccdensity {
 
15
 
 
16
/* doesn't work yet */
 
17
 
 
18
void add_core_UHF(struct iwlbuf *OutBuf)
 
19
{
 
20
  int p,q,m,n;
 
21
  int nmo, nfzv, nfzc;
 
22
  double value;
 
23
 
 
24
  nmo = moinfo.nmo;
 
25
  nfzv = moinfo.nfzv;
 
26
  nfzc = moinfo.nfzc;
 
27
 
 
28
  return;
 
29
 
 
30
  for(p=nfzc; p < (nmo - nfzv); p++) {
 
31
      for(q=nfzc; q < (nmo - nfzv); q++) {
 
32
          value = moinfo.opdm_a[p][q];
 
33
          for(m=0; m < nfzc; m++) {
 
34
              
 
35
              iwl_buf_wrt_val(OutBuf, p, q, m, m,value,0,outfile,0);
 
36
              iwl_buf_wrt_val(OutBuf, p, m, m, q,-0.5*value,0,outfile,0);
 
37
              
 
38
            }
 
39
        }
 
40
    }
 
41
}
 
42
 
 
43
 
 
44
}} // namespace psi::ccdensity