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

« back to all changes in this revision

Viewing changes to src/bin/cints/Default_Deriv1/deriv1.c

  • 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
 
#include<stdio.h>
2
 
#include<libipv1/ip_lib.h>
3
 
#include<math.h>
4
 
#include<libciomr/libciomr.h>
5
 
#include<libint/libint.h>
6
 
#include<pthread.h>
7
 
 
8
 
#include"defines.h"
9
 
#define EXTERN
10
 
#include"global.h"
11
 
#include"moinfo.h"
12
 
#include"compute_scf_opdm.h"
13
 
#include"read_gen_opdm.h"
14
 
#include"enuc_deriv1.h"
15
 
#include"oe_deriv1.h"
16
 
#include"te_deriv1_scf.h"
17
 
#include"te_deriv1_corr.h"
18
 
#include"symmetrize_deriv1.h"
19
 
#include"rot_inv.h"
20
 
#include"file11.h"
21
 
 
22
 
pthread_mutex_t deriv1_mutex;
23
 
double **grad_te;
24
 
 
25
 
void deriv1()
26
 
{
27
 
  /* Either contract integrals with the densities ... */
28
 
  if (UserOptions.symm_ints == 0) {
29
 
    /*--- Gradient in the canonical frame ---*/
30
 
    Grad = block_matrix(Molecule.num_atoms,3);
31
 
    
32
 
    if (Molecule.num_atoms != 0) {
33
 
      if (!strcmp(UserOptions.wfn,"SCF")) {
34
 
        init_moinfo();
35
 
        compute_scf_opdm();
36
 
      }
37
 
      else
38
 
        read_gen_opdm();
39
 
      enuc_deriv1();
40
 
      oe_deriv1();
41
 
      if (!strcmp(UserOptions.wfn,"SCF"))
42
 
        te_deriv1_scf();
43
 
      else
44
 
        te_deriv1_corr();
45
 
      symmetrize_deriv1();
46
 
      check_rot_inv();
47
 
      if (!strcmp(UserOptions.wfn,"SCF"))
48
 
        cleanup_moinfo();
49
 
    }
50
 
    
51
 
    file11();
52
 
    chkpt_wt_grad(Grad[0]);
53
 
    free_block(Grad);
54
 
  }
55
 
  /* ... or compute integrals alone */
56
 
  else {
57
 
    oe_deriv1_ints();
58
 
    te_deriv1_ints();
59
 
  }
60
 
 
61
 
  return;
62
 
}
63