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

« back to all changes in this revision

Viewing changes to src/bin/cclambda/Lmag.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 Lmag(int L_irr)
 
15
{
 
16
  dpdfile2 R1, L1, LIA, Lia, RIA, Ria;
 
17
  dpdbuf4 R2, L2, LIJAB, Lijab, LIjAb, RIJAB, Rijab, RIjAb;
 
18
  double norm;
 
19
 
 
20
  if(params.ref == 0 || params.ref == 1) { /** RHF/ROHF **/
 
21
 
 
22
    dpd_file2_init(&LIA, CC_LAMBDA, L_irr, 0, 1, "New LIA");
 
23
    dpd_file2_init(&Lia, CC_LAMBDA, L_irr, 0, 1, "New Lia");
 
24
    dpd_buf4_init(&LIJAB, CC_LAMBDA, L_irr, 2, 7, 2, 7, 0, "New LIJAB");
 
25
    dpd_buf4_init(&Lijab, CC_LAMBDA, L_irr, 2, 7, 2, 7, 0, "New Lijab");
 
26
    dpd_buf4_init(&LIjAb, CC_LAMBDA, L_irr, 0, 5, 0, 5, 0, "New LIjAb");
 
27
 
 
28
    norm = dpd_file2_dot_self(&LIA);
 
29
    norm += dpd_file2_dot_self(&Lia);
 
30
    norm += dpd_buf4_dot_self(&LIJAB);
 
31
    norm += dpd_buf4_dot_self(&Lijab);
 
32
    norm += dpd_buf4_dot_self(&LIjAb);
 
33
    fprintf(outfile,"size of L <L|L>     %15.10lf\n",norm);
 
34
 
 
35
    dpd_file2_close(&LIA);
 
36
    dpd_file2_close(&Lia);
 
37
    dpd_buf4_close(&LIJAB);
 
38
    dpd_buf4_close(&Lijab);
 
39
    dpd_buf4_close(&LIjAb);
 
40
  }
 
41
}
 
42
 
 
43
}} // namespace psi::cclambda