~ubuntu-branches/ubuntu/vivid/psicode/vivid

« back to all changes in this revision

Viewing changes to src/bin/dboc/uhf.cc

  • Committer: Bazaar Package Importer
  • Author(s): Michael Banck
  • Date: 2008-06-07 16:49:57 UTC
  • mfrom: (2.1.2 hardy)
  • Revision ID: james.westby@ubuntu.com-20080607164957-8pifvb133yjlkagn
Tags: 3.3.0-3
* debian/rules (DEB_MAKE_CHECK_TARGET): Do not abort test suite on
  failures.
* debian/rules (DEB_CONFIGURE_EXTRA_FLAGS): Set ${bindir} to /usr/lib/psi.
* debian/rules (install/psi3): Move psi3 file to /usr/bin.
* debian/patches/07_464867_move_executables.dpatch: New patch, add
  /usr/lib/psi to the $PATH, so that the moved executables are found.
  (closes: #464867)
* debian/patches/00list: Adjusted.

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
#include "mo_overlap.h"
12
12
#include "float.h"
13
13
#include "linalg.h"
 
14
#include "hfwfn.h"
14
15
 
15
16
extern MOInfo_t MOInfo;
16
17
extern FILE *outfile;
 
18
extern HFWavefunction* HFVectors[MAX_NUM_DISP];
17
19
 
18
20
extern void done(const char *);
19
21
 
20
 
double eval_uhf_derwfn_overlap()
 
22
double eval_uhf_derwfn_overlap(DisplacementIndex LDisp, DisplacementIndex RDisp)
21
23
{
 
24
  FLOAT **CSC_a = eval_S_alpha(LDisp,RDisp);
 
25
  FLOAT **CSC_b = eval_S_beta(LDisp,RDisp);
 
26
 
 
27
  int* clsdpi = HFVectors[LDisp]->clsdpi();
 
28
  int* openpi = HFVectors[LDisp]->openpi();
 
29
  int* orbspi = HFVectors[LDisp]->orbspi();
 
30
  int nirreps = HFVectors[LDisp]->nirreps();
 
31
 
 
32
#if USE_MOINFO
22
33
  int nalpha = MOInfo.nalpha;
23
34
  int nbeta = MOInfo.nbeta;
24
35
  int ndocc = nbeta;
25
 
  FLOAT **CSC_a = eval_S_alpha();
26
 
  FLOAT **CSC_b = eval_S_beta();
27
 
 
28
 
  chkpt_init(PSIO_OPEN_OLD);
29
 
  int* clsdpi = chkpt_rd_clsdpi();
30
 
  int* openpi = chkpt_rd_openpi();
31
 
  int* orbspi = chkpt_rd_orbspi();
32
 
  int nirreps = chkpt_rd_nirreps();
33
 
  chkpt_close();
 
36
#else
 
37
  int nalpha = HFVectors[LDisp]->nalpha();
 
38
  int nbeta = HFVectors[LDisp]->nbeta();
 
39
  int ndocc = nbeta;
 
40
#endif
34
41
 
35
42
  // Extract the alpha and beta blocks
36
43
  FLOAT **CSC_alpha = create_matrix(nalpha,nalpha);
81
88
    socc_offset1 += nsocc1;
82
89
    mo_offset1 += orbspi[irrep1];
83
90
  }
84
 
  delete[] clsdpi;
85
 
  delete[] openpi;
86
 
  delete[] orbspi;
87
91
  delete_matrix(CSC_a);
88
92
  delete_matrix(CSC_b);
89
93