~ubuntu-branches/ubuntu/oneiric/mpqc/oneiric

« back to all changes in this revision

Viewing changes to src/lib/chemistry/qc/dft/functional.cc

  • Committer: Bazaar Package Importer
  • Author(s): Michael Banck
  • Date: 2006-09-10 22:32:33 UTC
  • mfrom: (1.1.3 upstream) (3.1.1 etch)
  • Revision ID: james.westby@ubuntu.com-20060910223233-5dza8qes8de6qbdk
Tags: 2.3.1-1
* New upstream release.
  + Includes updated libtool; closes: #320604.
* debian/control.in (libsc7-dev): Remove superfluous Depends on 
  libc6-dev.
* debian/control.in (libsc7): Remove conflicts with older versions of 
  libsc.
* debian/rules (SO_NAME): Override to 7.

Show diffs side-by-side

added added

removed removed

Lines of Context:
146
146
  s.put(compute_potential_);
147
147
}
148
148
 
 
149
double
 
150
DenFunctional::a0() const
 
151
{
 
152
  return a0_;
 
153
}
 
154
 
149
155
int
150
156
DenFunctional::need_density_gradient()
151
157
{
644
650
    }
645
651
}
646
652
 
 
653
double
 
654
SumDenFunctional::a0() const
 
655
{
 
656
  double eff_a0 = a0_;
 
657
  for (int i=0; i < n_; i++) {
 
658
      eff_a0 += coefs_[i] * funcs_[i]->a0();
 
659
    }
 
660
  return eff_a0;
 
661
}
 
662
 
647
663
int
648
664
SumDenFunctional::need_density_gradient()
649
665
{
836
852
          funcs_[2] = new VWN1LCFunctional(1);
837
853
          funcs_[3] = new LYPCFunctional;
838
854
        }
 
855
      else if (!strcmp(name_,"KMLYP")) {
 
856
          init_arrays(3);
 
857
          a0_ = 0.557;
 
858
          coefs_[0] = 0.443;
 
859
          coefs_[1] = 0.552;
 
860
          coefs_[2] = 0.448;
 
861
          funcs_[0] = new SlaterXFunctional;
 
862
          funcs_[1] = new VWN1LCFunctional(1);
 
863
          funcs_[2] = new LYPCFunctional;
 
864
        }
839
865
      else if (!strcmp(name_,"B3PW91")) {
840
866
          init_arrays(4);
841
867
          a0_ = 0.2;