~ubuntu-branches/ubuntu/quantal/psicode/quantal

« back to all changes in this revision

Viewing changes to src/bin/ccdensity/Gabcd.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 <libdpd/dpd.h>
3
 
#define EXTERN
4
 
#include "globals.h"
5
 
 
6
 
void Gabcd(void)
7
 
{
8
 
  dpdbuf4 G, L, T;
9
 
  int G_irr;
10
 
  G_irr = params.G_irr;
11
 
 
12
 
  if(params.ref == 0 || params.ref == 1) { /** RHF/ROHF **/
13
 
 
14
 
    dpd_buf4_init(&G, CC_GAMMA, G_irr, 7, 7, 7, 7, 0, "GABCD");
15
 
    dpd_buf4_init(&L, CC_GLG, G_irr, 2, 7, 2, 7, 0, "LIJAB");
16
 
    dpd_buf4_init(&T, CC_TAMPS, 0, 2, 7, 2, 7, 0, "tauIJAB");
17
 
    dpd_contract444(&L, &T, &G, 1, 1, 1.0, 0.0);
18
 
    dpd_buf4_close(&T);
19
 
    dpd_buf4_close(&L);
20
 
    if (params.ground)
21
 
      dpd_buf4_symm(&G);
22
 
    dpd_buf4_close(&G);
23
 
 
24
 
    dpd_buf4_init(&G, CC_GAMMA, G_irr, 7, 7, 7, 7, 0, "Gabcd");
25
 
    dpd_buf4_init(&L, CC_GLG, G_irr, 2, 7, 2, 7, 0, "Lijab");
26
 
    dpd_buf4_init(&T, CC_TAMPS, 0, 2, 7, 2, 7, 0, "tauijab");
27
 
    dpd_contract444(&L, &T, &G, 1, 1, 1.0, 0.0);
28
 
    dpd_buf4_close(&T);
29
 
    dpd_buf4_close(&L);
30
 
    if (params.ground)
31
 
      dpd_buf4_symm(&G);
32
 
    dpd_buf4_close(&G);
33
 
 
34
 
    dpd_buf4_init(&G, CC_GAMMA, G_irr, 5, 5, 5, 5, 0, "GAbCd");
35
 
    dpd_buf4_init(&L, CC_GLG, G_irr, 0, 5, 0, 5, 0, "LIjAb");
36
 
    dpd_buf4_init(&T, CC_TAMPS, 0, 0, 5, 0, 5, 0, "tauIjAb");
37
 
    dpd_contract444(&L, &T, &G, 1, 1, 1.0, 0.0);
38
 
    dpd_buf4_close(&T);
39
 
    dpd_buf4_close(&L);
40
 
    if (params.ground)
41
 
      dpd_buf4_symm(&G);
42
 
    dpd_buf4_close(&G);
43
 
  }
44
 
  else if(params.ref == 2) { /** UHF **/
45
 
    dpd_buf4_init(&G, CC_GAMMA, G_irr, 7, 7, 7, 7, 0, "GABCD");
46
 
    dpd_buf4_init(&L, CC_GLG, G_irr, 2, 7, 2, 7, 0, "LIJAB");
47
 
    dpd_buf4_init(&T, CC_TAMPS, 0, 2, 7, 2, 7, 0, "tauIJAB");
48
 
    dpd_contract444(&L, &T, &G, 1, 1, 1.0, 0.0);
49
 
    dpd_buf4_close(&T);
50
 
    dpd_buf4_close(&L);
51
 
    dpd_buf4_symm(&G);
52
 
    dpd_buf4_close(&G);
53
 
 
54
 
    dpd_buf4_init(&G, CC_GAMMA, G_irr, 17, 17, 17, 17, 0, "Gabcd");
55
 
    dpd_buf4_init(&L, CC_GLG, G_irr, 12, 17, 12, 17, 0, "Lijab");
56
 
    dpd_buf4_init(&T, CC_TAMPS, 0, 12, 17, 12, 17, 0, "tauijab");
57
 
    dpd_contract444(&L, &T, &G, 1, 1, 1.0, 0.0);
58
 
    dpd_buf4_close(&T);
59
 
    dpd_buf4_close(&L);
60
 
    dpd_buf4_symm(&G);
61
 
    dpd_buf4_close(&G);
62
 
 
63
 
    dpd_buf4_init(&G, CC_GAMMA, G_irr, 28, 28, 28, 28, 0, "GAbCd");
64
 
    dpd_buf4_init(&L, CC_GLG, G_irr, 22, 28, 22, 28, 0, "LIjAb");
65
 
    dpd_buf4_init(&T, CC_TAMPS, 0, 22, 28, 22, 28, 0, "tauIjAb");
66
 
    dpd_contract444(&L, &T, &G, 1, 1, 1.0, 0.0);
67
 
    dpd_buf4_close(&T);
68
 
    dpd_buf4_close(&L);
69
 
    dpd_buf4_symm(&G);
70
 
    dpd_buf4_close(&G);
71
 
  }
72
 
}