Psi4
3coverlap.h
Go to the documentation of this file.
1 /*
2  * @BEGIN LICENSE
3  *
4  * Psi4: an open-source quantum chemistry software package
5  *
6  * Copyright (c) 2007-2017 The Psi4 Developers.
7  *
8  * The copyrights for code used from other parties are included in
9  * the corresponding files.
10  *
11  * This program is free software; you can redistribute it and/or modify
12  * it under the terms of the GNU General Public License as published by
13  * the Free Software Foundation; either version 2 of the License, or
14  * (at your option) any later version.
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19  * GNU General Public License for more details.
20  *
21  * You should have received a copy of the GNU General Public License along
22  * with this program; if not, write to the Free Software Foundation, Inc.,
23  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
24  *
25  * @END LICENSE
26  */
27 
28 #ifndef _psi_src_lib_libmints_3coverlap_h
29 #define _psi_src_lib_libmints_3coverlap_h
30 
31 #include "psi4/libmints/osrecur.h"
32 #include "psi4/libmints/integral.h"
34 
35 
36 namespace psi {
37 
38 class IntegralFactory;
39 class BasisSet;
40 class GaussianShell;
41 
47 {
48 protected:
50 
51  std::shared_ptr<BasisSet> bs1_;
52  std::shared_ptr<BasisSet> bs2_;
53  std::shared_ptr<BasisSet> bs3_;
54 
56  double *buffer_;
57 
59  double *temp_;
60 
62  std::vector<SphericalTransform> st_;
63 
64  void compute_pair(const GaussianShell& s1,
65  const GaussianShell& s2,
66  const GaussianShell& s3);
67 
68 public:
69  ThreeCenterOverlapInt(std::vector<SphericalTransform> st,
70  std::shared_ptr<BasisSet> bs1,
71  std::shared_ptr<BasisSet> bs2,
72  std::shared_ptr<BasisSet> bs3);
73 
74  ThreeCenterOverlapInt(std::shared_ptr<BasisSet> bs1,
75  std::shared_ptr<BasisSet> bs2,
76  std::shared_ptr<BasisSet> bs3);
77 
78  virtual ~ThreeCenterOverlapInt();
79 
81  std::shared_ptr<BasisSet> basis();
83  std::shared_ptr<BasisSet> basis1();
85  std::shared_ptr<BasisSet> basis2();
87  std::shared_ptr<BasisSet> basis3();
88 
90  const double *buffer() const { return buffer_; }
91 
93  virtual void compute_shell(int, int, int);
94 
96  void normalize_am(const GaussianShell&,
97  const GaussianShell&,
98  const GaussianShell&);
99 
101  void pure_transform(const GaussianShell&,
102  const GaussianShell&,
103  const GaussianShell&);
104 };
105 
106 }
107 
108 #endif
std::shared_ptr< BasisSet > bs1_
Definition: 3coverlap.h:51
std::vector< SphericalTransform > st_
Vector of Sphericaltransforms.
Definition: 3coverlap.h:62
void normalize_am(const GaussianShell &, const GaussianShell &, const GaussianShell &)
Normalize Cartesian functions based on angular momentum.
Definition: 3coverlap.cc:219
std::shared_ptr< BasisSet > basis()
Basis set on center one.
Definition: 3coverlap.cc:71
Three center overlap integral.
Definition: 3coverlap.h:46
std::shared_ptr< BasisSet > bs3_
Definition: 3coverlap.h:53
ObaraSaikaThreeCenterRecursion overlap_recur_
Definition: 3coverlap.h:49
void pure_transform(const GaussianShell &, const GaussianShell &, const GaussianShell &)
Perform pure (spherical) transform.
Definition: 3coverlap.cc:262
ThreeCenterOverlapInt(std::vector< SphericalTransform > st, std::shared_ptr< BasisSet > bs1, std::shared_ptr< BasisSet > bs2, std::shared_ptr< BasisSet > bs3)
Definition: 3coverlap.cc:36
std::shared_ptr< BasisSet > basis2()
Basis set on center two.
Definition: 3coverlap.cc:81
double * temp_
Buffer for spherical harmonics.
Definition: 3coverlap.h:59
std::shared_ptr< BasisSet > bs2_
Definition: 3coverlap.h:52
std::shared_ptr< BasisSet > basis1()
Basis set on center one.
Definition: 3coverlap.cc:76
Gaussian orbital shell.
Definition: gshell.h:191
const double * buffer() const
Buffer where the integrals are placed.
Definition: 3coverlap.h:90
double * buffer_
Buffer to hold the source integrals.
Definition: 3coverlap.h:56
virtual void compute_shell(int, int, int)
Compute the integrals of the form (a|c|b).
Definition: 3coverlap.cc:91
std::shared_ptr< BasisSet > basis3()
Basis set on center three.
Definition: 3coverlap.cc:86
virtual ~ThreeCenterOverlapInt()
Definition: 3coverlap.cc:65
Definition: osrecur.h:348
void compute_pair(const GaussianShell &s1, const GaussianShell &s2, const GaussianShell &s3)
Definition: 3coverlap.cc:96