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

« back to all changes in this revision

Viewing changes to src/bin/mp2/amps.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 <libdpd/dpd.h>
2
 
#define EXTERN
3
 
#include "globals.h"
4
 
 
5
 
double amps(void) 
6
 
{
7
 
  dpdfile2 tIA, tia, fIA, fia, dIA, dia;
8
 
  dpdbuf4 tIJAB, tijab, tIjAb, D, dIJAB, dijab, dIjAb;
9
 
 
10
 
  if(params.ref == 0) { /** RHF **/
11
 
    dpd_buf4_init(&D, CC_DINTS, 0, 0, 5, 0, 5, 0, "D <ij|ab>");
12
 
    dpd_buf4_copy(&D, CC_TAMPS, "tIjAb");
13
 
    dpd_buf4_close(&D);
14
 
 
15
 
    dpd_buf4_init(&tIjAb, CC_TAMPS, 0, 0, 5, 0, 5, 0, "tIjAb");
16
 
    dpd_buf4_init(&dIjAb, CC_DENOM, 0, 0, 5, 0, 5, 0, "dIjAb");
17
 
    dpd_buf4_dirprd(&dIjAb, &tIjAb);
18
 
    dpd_buf4_close(&dIjAb);
19
 
    dpd_buf4_close(&tIjAb);
20
 
  }
21
 
  else if(params.ref == 2) { /** UHF **/
22
 
    if(params.semicanonical) {
23
 
      dpd_file2_init(&fIA, CC_OEI, 0, 0, 1, "fIA");
24
 
      dpd_file2_copy(&fIA, CC_OEI, "tIA");
25
 
      dpd_file2_close(&fIA);
26
 
 
27
 
      dpd_file2_init(&fia, CC_OEI, 0, 2, 3, "fia");
28
 
      dpd_file2_copy(&fia, CC_OEI, "tia");
29
 
      dpd_file2_close(&fia);
30
 
 
31
 
      dpd_file2_init(&tIA, CC_OEI, 0, 0, 1, "tIA");
32
 
      dpd_file2_init(&dIA, CC_OEI, 0, 0, 1, "dIA");
33
 
      dpd_file2_dirprd(&dIA, &tIA);
34
 
      dpd_file2_close(&tIA);
35
 
      dpd_file2_close(&dIA);
36
 
 
37
 
      dpd_file2_init(&tia, CC_OEI, 0, 2, 3, "tia");
38
 
      dpd_file2_init(&dia, CC_OEI, 0, 2, 3, "dia");
39
 
      dpd_file2_dirprd(&dia, &tia);
40
 
      dpd_file2_close(&tia);
41
 
      dpd_file2_close(&dia);
42
 
    }
43
 
      
44
 
    dpd_buf4_init(&D, CC_DINTS, 0, 2, 7, 2, 7, 0, "D <IJ||AB> (I>J,A>B)");
45
 
    dpd_buf4_copy(&D, CC_TAMPS, "tIJAB");
46
 
    dpd_buf4_close(&D);
47
 
    dpd_buf4_init(&dIJAB, CC_DENOM, 0, 1, 6, 1, 6, 0, "dIJAB");
48
 
    dpd_buf4_init(&tIJAB, CC_TAMPS, 0, 2, 7, 2, 7, 0, "tIJAB");
49
 
    dpd_buf4_dirprd(&dIJAB, &tIJAB);
50
 
    dpd_buf4_close(&tIJAB);
51
 
    dpd_buf4_close(&dIJAB);
52
 
 
53
 
    dpd_buf4_init(&D, CC_DINTS, 0, 12, 17, 12, 17, 0, "D <ij||ab> (i>j,a>b)");
54
 
    dpd_buf4_copy(&D, CC_TAMPS, "tijab");
55
 
    dpd_buf4_close(&D);
56
 
    dpd_buf4_init(&dIJAB, CC_DENOM, 0, 11, 16, 11, 16, 0, "dijab");
57
 
    dpd_buf4_init(&tIJAB, CC_TAMPS, 0, 12, 17, 12, 17, 0, "tijab");
58
 
    dpd_buf4_dirprd(&dIJAB, &tIJAB);
59
 
    dpd_buf4_close(&tIJAB);
60
 
    dpd_buf4_close(&dIJAB);
61
 
 
62
 
    dpd_buf4_init(&D, CC_DINTS, 0, 22, 28, 22, 28, 0, "D <Ij|Ab>");
63
 
    dpd_buf4_copy(&D, CC_TAMPS, "tIjAb");
64
 
    dpd_buf4_close(&D);
65
 
    dpd_buf4_init(&dIJAB, CC_DENOM, 0, 22, 28, 22, 28, 0, "dIjAb");
66
 
    dpd_buf4_init(&tIJAB, CC_TAMPS, 0, 22, 28, 22, 28, 0, "tIjAb");
67
 
    dpd_buf4_dirprd(&dIJAB, &tIJAB);
68
 
    dpd_buf4_close(&tIJAB);
69
 
    dpd_buf4_close(&dIJAB);
70
 
  }
71
 
  
72
 
}
73