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

« back to all changes in this revision

Viewing changes to src/bin/clag/clag.c

  • 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:
48
48
  int *docc;                           /* doubly occupied orbs per irrep  */
49
49
  int *socc;                           /* singly occupied orbs per irrep  */
50
50
  int *frdocc;                         /* frozen doubly occupied array    */
 
51
  int *cor;                            /* restricted core                 */
 
52
  int *vir;                            /* restricted virtuals             */
51
53
  int *fruocc;                         /* frozen unoccupied orb array     */
52
54
  int **ras_opi;                       /* orbs per [ras_space][irrep]     */
53
55
  int *pitz_to_corr;                   /* map orbs Pitzer->correlated ord */
108
110
 
109
111
  frdocc = init_int_array(nirreps);
110
112
  fruocc = init_int_array(nirreps);
111
 
  ras_opi = init_int_matrix(4,nirreps);
 
113
  cor = init_int_array(nirreps);
 
114
  vir = init_int_array(nirreps);
 
115
  ras_opi = init_int_matrix(MAX_RAS_SPACES,nirreps);
112
116
  pitz_to_corr = init_int_array(nmo);
113
117
 
114
118
  /* get orbital information */
115
 
  ras_set(nirreps, nmo, 0, orbspi, docc, socc, frdocc, fruocc, ras_opi,
116
 
          pitz_to_corr, 1);
 
119
  ras_set2(nirreps, nmo, 1, 1, orbspi, docc, socc, frdocc, fruocc, 
 
120
           cor, vir, ras_opi, pitz_to_corr, 1, 0);
117
121
 
118
122
  /* get the array which maps correlated orbitals back to pitzer order */
119
123
  corr_to_pitz = init_int_array(nmo);
122
126
    corr_to_pitz[j] = i;
123
127
  }
124
128
 
125
 
  for (i=0,nfzv=0; i<nirreps; i++) nfzv += fruocc[i];
126
 
  npop = nmo - nfzv; 
 
129
  for (i=0,j=0; i<nirreps; i++) j += fruocc[i] + vir[i];
 
130
  npop = nmo - j; 
127
131
  ntri = (nmo*(nmo+1))/2;   
128
132
  ntri2 = (ntri*(ntri+1))/2; 
129
133