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

« back to all changes in this revision

Viewing changes to src/lib/libbasis/gnorm.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 BASIS
 
3
    \brief Enter brief description of file here 
 
4
*/
1
5
 
2
6
#include <stdexcept>
3
7
#if HAVE_CMATH
4
8
# include <cmath>
5
9
#else
6
 
# include <math.h>
 
10
# include <cmath>
7
11
#endif
8
12
#include "gnorm.h"
9
13
 
 
14
using namespace psi;
 
15
 
10
16
GaussianNormalization::GaussianNormalization(int am) :
11
17
  maxam_(am)
12
18
{
31
37
      for(int j=0; j<=i; j++) {
32
38
        int m1 = i-j;
33
39
        int n1 = j;
34
 
        norm_coeffs_[l][bf++] = sqrt(df_[2*l]/(df_[2*l1]*df_[2*m1]*df_[2*n1]));
 
40
        if (use_cca_integrals_standard)
 
41
          norm_coeffs_[l][bf++] = 1.0;
 
42
        else
 
43
          norm_coeffs_[l][bf++] = sqrt(df_[2*l]/(df_[2*l1]*df_[2*m1]*df_[2*n1]));
35
44
      }
36
45
    }
37
46
  }