MPQC  3.0.0-alpha
fbclhf.h
1 //
2 // fbclhf.h --- definition of the closed shell Hartree-Fock SCF class
3 //
4 // Copyright (C) 1996 Limit Point Systems, Inc.
5 //
6 // Author: Edward Seidl <seidl@janed.com>
7 // Maintainer: LPS
8 //
9 // This file is part of the SC Toolkit.
10 //
11 // The SC Toolkit is free software; you can redistribute it and/or modify
12 // it under the terms of the GNU Library General Public License as published by
13 // the Free Software Foundation; either version 2, or (at your option)
14 // any later version.
15 //
16 // The SC Toolkit 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 Library General Public License for more details.
20 //
21 // You should have received a copy of the GNU Library General Public License
22 // along with the SC Toolkit; see the file COPYING.LIB. If not, write to
23 // the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
24 //
25 // The U.S. Government is granted a limited license as per AL 91-7.
26 //
27 
28 #ifndef _chemistry_qc_scf_fbclhf_h
29 #define _chemistry_qc_scf_fbclhf_h
30 
31 #include <string>
32 
33 #include <chemistry/qc/scf/clhf.h>
34 #include <chemistry/qc/lcao/fockbuild.h>
35 #include <chemistry/qc/lcao/wfnworld.h>
36 #include <chemistry/qc/lcao/df.h>
37 
38 namespace sc {
39 
40 // //////////////////////////////////////////////////////////////////////////
41 
43 class FockBuildCLHF: public CLHF {
44  protected:
45  Ref<FockDistribution> fockdist_;
46  Ref<FockBuild> fb_;
47  std::string fockbuildmatrixtype_;
48  void ao_fock(double accuracy);
49  bool prefetch_blocks_;
50  public:
52  FockBuildCLHF(const Ref<KeyVal>&);
53  ~FockBuildCLHF();
55  void init_threads();
56  void done_threads();
57  void print(std::ostream&o=ExEnv::out0()) const;
58 };
59 
61 class DFCLHF: public CLHF {
62  protected:
63  void ao_fock(double accuracy);
64  void reset_density();
65  public:
66  DFCLHF(StateIn&);
81  DFCLHF(const Ref<KeyVal>&);
82  ~DFCLHF();
84  void print(std::ostream&o=ExEnv::out0()) const;
85  const Ref<WavefunctionWorld>& world() const { return world_; }
87 #ifdef MPQC_NEW_FEATURES
88  virtual boost::property_tree::ptree& write_xml(
89  boost::property_tree::ptree& parent, const XMLWriter& writer
90  );
91 #endif // MPQC_NEW_FEATURES
92  private:
93  RefSymmSCMatrix gmat_;
95  static ClassDesc cd_;
96 #ifdef MPQC_NEW_FEATURES
97  bool xml_debug_ = false;
98 #endif
99 };
100 
101 }
102 
103 #endif
104 
105 // Local Variables:
106 // mode: c++
107 // c-file-style: "ETS"
108 // End:
sc::DFCLHF::print
void print(std::ostream &o=ExEnv::out0()) const
Print information about the object.
sc::CLHF
CLHF is a Hartree-Fock specialization of CLSCF.
Definition: clhf.h:38
sc::RefSymmSCMatrix
The RefSymmSCMatrix class is a smart pointer to an SCSymmSCMatrix specialization.
Definition: matrix.h:265
sc::DFCLHF::dfinfo
Ref< DensityFittingInfo > dfinfo() const
return the DensityFittingInfo object used to implement compute() this is important to be able to reco...
sc::Ref
A template class that maintains references counts.
Definition: ref.h:361
sc::FockBuildCLHF::save_data_state
void save_data_state(StateOut &)
Save the base classes (with save_data_state) and the members in the same order that the StateIn CTOR ...
sc::StateIn
Definition: statein.h:79
sc::ClassDesc
This class is used to contain information about classes.
Definition: class.h:147
sc::FockBuildCLHF
FockBuildCLHF is a specialization of CLHF that uses FockBuild class for computing fock matrices.
Definition: fbclhf.h:43
sc::FockBuildCLHF::print
void print(std::ostream &o=ExEnv::out0()) const
Print information about the object.
sc::StateOut
Definition: stateout.h:71
sc::XMLWriter
Definition: xmlwriter.h:215
sc::DFCLHF
DFCLHF is a specialization of CLHF that uses a density-fitting FockBuild class for computing fock mat...
Definition: fbclhf.h:61
sc::DFCLHF::save_data_state
void save_data_state(StateOut &)
Save the base classes (with save_data_state) and the members in the same order that the StateIn CTOR ...
sc::ExEnv::out0
static std::ostream & out0()
Return an ostream that writes from node 0.
sc
Contains all MPQC code up to version 3.
Definition: mpqcin.h:14

Generated at Sun Jan 26 2020 23:23:59 for MPQC 3.0.0-alpha using the documentation package Doxygen 1.8.16.