32 #ifndef _chemistry_qc_mbptr12_transformtbint_h
33 #define _chemistry_qc_mbptr12_transformtbint_h
36 #include <util/ref/ref.h>
37 #include <util/class/scexception.h>
38 #include <chemistry/qc/basis/distshpair.h>
39 #include <chemistry/qc/mbptr12/r12ia.h>
40 #include <chemistry/qc/mbptr12/moindexspace.h>
41 #include <chemistry/qc/mbptr12/transform_factory.h>
47 class MOIntsTransformFactory;
56 virtual void init_acc() = 0;
59 virtual distsize_t compute_transform_dynamic_memory_(
int ni)
const = 0;
64 static const double zero_integral = 1.0e-12;
67 enum {Space1, Space2, Space3, Space4};
88 double print_percent_;
92 std::string file_prefix_;
101 unsigned int restart_orbital()
const;
108 void alloc_mem(
const size_t localmem);
114 int compute_transform_batchsize_(
size_t mem_static,
int rank_i);
117 static int compute_nij(
const int rank_i,
const int rank_j,
const int nproc,
const int me);
122 void memory_report(std::ostream& os = ExEnv::out0())
const;
126 void mospace_report(std::ostream& os = ExEnv::out0())
const;
130 void print_header(std::ostream& os = ExEnv::out0())
const;
133 void print_footer(std::ostream& os = ExEnv::out0())
const;
146 std::string
name()
const {
return name_;}
148 virtual std::string type()
const =0;
165 double print_percent()
const;
167 int batchsize()
const;
171 bool dynamic()
const;
173 int num_te_types()
const;
177 virtual const size_t memgrp_blksize()
const =0;
184 void set_num_te_types(
const int num_te_types);
185 void set_memory(
const size_t memory);
186 void set_debug(
int debug) { debug_ = debug; }
187 void set_dynamic(
bool dynamic) { dynamic_ = dynamic; }
188 void set_print_percent(
double print_percent) { print_percent_ = print_percent; }
191 virtual void compute() = 0;
193 virtual void check_int_symm(
double threshold = TwoBodyMOIntsTransform::zero_integral)
const throw (ProgrammingError) =0;
195 virtual void obsolete();
A template class that maintains references counts.
Definition: ref.h:332
This is used to store data that must be shared between all cooperating shell pairs.
Definition: distshpair.h:52
DistShellPair::SharedData * shell_pair_data()
Returns a that data that must be shared between all DistShellPair objects.
Definition: transform_tbint.h:199
Restores objects that derive from SavableState.
Definition: statein.h:70
std::string name() const
Returns the name of the transform.
Definition: transform_tbint.h:146
Serializes objects that derive from SavableState.
Definition: stateout.h:61
Base class for objects that can save/restore state.
Definition: state.h:46
void set_top_mole(const Ref< MolecularEnergy > &top_mole)
Specifies the top-level MolecularEnergy object to use for checkpointing.
Definition: transform_tbint.h:180
TwoBodyMOIntsTransform computes two-body integrals in MO basis using parallel integrals-direct AO->MO...
Definition: transform_tbint.h:52
Predefined enumerated type for the MO spaces.
Definition: transform_tbint.h:66
Generated at Sun Jan 26 2020 23:33:05 for MPQC
2.3.1 using the documentation package Doxygen
1.8.16.