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

« back to all changes in this revision

Viewing changes to src/bin/cclambda/cc2_L2.cc

  • 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
/*! \file
 
2
    \ingroup CCLAMBDA
 
3
    \brief Enter brief description of file here 
 
4
*/
 
5
#include <cstdio>
 
6
#include <libdpd/dpd.h>
 
7
#include "MOInfo.h"
 
8
#include "Params.h"
 
9
#define EXTERN
 
10
#include "globals.h"
 
11
 
 
12
namespace psi { namespace cclambda {
 
13
 
 
14
void DL2(struct L_Params L_params);
 
15
void cc2_faeL2(int L_irr);
 
16
void cc2_fmiL2(int L_irr);
 
17
void WijmnL2(int L_irr);
 
18
void WefabL2(int L_irr);
 
19
void WejabL2(int L_irr);
 
20
void WijmbL2(int L_irr);
 
21
void L1FL2(int L_irr);
 
22
void dijabL2(int L_irr);
 
23
 
 
24
void BL2_AO(int L_irr);
 
25
void status(const char *, FILE *);
 
26
 
 
27
void cc2_L2_build(struct L_Params L_params) {
 
28
  int L_irr;
 
29
  L_irr = L_params.irrep;
 
30
 
 
31
  DL2(L_params);
 
32
  if(params.print & 2) status("<ij||ab> -> L2", outfile);
 
33
 
 
34
#ifdef EOM_DEBUG
 
35
  check_sum("DL2", L_irr);
 
36
#endif
 
37
 
 
38
  cc2_faeL2(L_irr);
 
39
 
 
40
#ifdef EOM_DEBUG
 
41
  check_sum("FaeL2", L_irr);
 
42
#endif
 
43
 
 
44
  cc2_fmiL2(L_irr);
 
45
 
 
46
#ifdef EOM_DEBUG
 
47
  check_sum("FmiL2", L_irr);
 
48
#endif
 
49
  if(params.print & 2) status("F -> L2", outfile);
 
50
 
 
51
  WijmbL2(L_irr);
 
52
 
 
53
#ifdef EOM_DEBUG
 
54
  check_sum("WmnieL2", L_irr);
 
55
#endif
 
56
  if(params.print & 2) status("Wmnie -> L2", outfile);
 
57
 
 
58
  WejabL2(L_irr);
 
59
 
 
60
#ifdef EOM_DEBUG
 
61
  check_sum("WejabL2", L_irr);
 
62
#endif
 
63
  if(params.print & 2) status("Wamef -> L2", outfile);
 
64
 
 
65
  L1FL2(L_irr);
 
66
 
 
67
#ifdef EOM_DEBUG
 
68
  check_sum("L1FL2", L_irr);
 
69
#endif
 
70
  if(params.print & 2) status("L1*F -> L2", outfile);
 
71
 
 
72
  dijabL2(L_irr);
 
73
 
 
74
#ifdef EOM_DEBUG
 
75
  check_sum("after D2s", L_irr);
 
76
#endif
 
77
  if(params.print & 2) status("L2 amplitudes", outfile);
 
78
}
 
79
 
 
80
 
 
81
}} // namespace psi::cclambda