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

« back to all changes in this revision

Viewing changes to src/bin/ccenergy/t2.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 <stdlib.h>
3
 
#include <libdpd/dpd.h>
4
 
#define EXTERN
5
 
#include "globals.h"
6
 
 
7
 
void DT2(void), FaetT2(void), FmitT2(void), WmnijT2(void), WmbejT2(void);
8
 
void BT2(void), ZT2(void), FT2(void), ET2(void), CT2(void), dijabT2(void);
9
 
void BT2_AO(void);
10
 
void status(char *, FILE *);
11
 
void FT2_CC2(void);
12
 
 
13
 
void t2_build(void)
14
 
{
15
 
dpdbuf4 tIjAb;
16
 
double dotval;
17
 
 
18
 
  DT2();
19
 
  if(params.print & 2) status("<ij||ab> -> T2", outfile);
20
 
 
21
 
  if(strcmp(params.wfn,"CC2") || strcmp(params.wfn,"EOM_CC2")) { /* skip all this is wfn=CC2 */
22
 
 
23
 
    FaetT2();
24
 
    FmitT2();
25
 
    if(params.print & 2) status("F -> T2", outfile);
26
 
 
27
 
    WmnijT2();
28
 
    if(params.print & 2) status("Wmnij -> T2", outfile);
29
 
 
30
 
    timer_on("BT2", outfile);
31
 
    if(!strcmp(params.aobasis,"DISK") || !strcmp(params.aobasis,"DIRECT"))
32
 
      BT2_AO();
33
 
    else BT2();
34
 
    if(params.print & 2) status("<ab||cd> -> T2", outfile);
35
 
    timer_off("BT2", outfile);
36
 
 
37
 
    ZT2();
38
 
    if(params.print & 2) status("Z -> T2", outfile);
39
 
 
40
 
    timer_on("FT2", outfile);
41
 
    FT2();
42
 
    if(params.print & 2) status("<ia||bc> -> T2", outfile);
43
 
    timer_off("FT2", outfile);
44
 
 
45
 
    ET2();
46
 
    if(params.print & 2) status("<ij||ka> -> T2", outfile);
47
 
 
48
 
    timer_on("WmbejT2", outfile);
49
 
    WmbejT2();
50
 
    if(params.print & 2) status("Wmbej -> T2", outfile);
51
 
    timer_off("WmbejT2", outfile);
52
 
 
53
 
    timer_on("CT2", outfile);
54
 
    CT2();
55
 
    if(params.print & 2) status("<ia||jb> -> T2", outfile);
56
 
    timer_off("CT2", outfile);
57
 
  }
58
 
  else { /* For CC2, just include (FT2)c->T2 */
59
 
    FT2_CC2();
60
 
  }
61
 
 
62
 
}