MADNESS 0.10.1
madness::CCPair Class Reference

#include <CCStructures.h>

Inheritance diagram for madness::CCPair:
Collaboration diagram for madness::CCPair:

Public Member Functions

 CCPair ()=default
 CCPair (const CCPair &other)
 CCPair (const size_t ii, const size_t jj, const CCState t, const CalcType c)
 CCPair (const size_t ii, const size_t jj, const CCState t, const CalcType c, const std::vector< CCPairFunction< double, 6 > > &f)
std::string basename () const
 return the base name like "MP2_pair_u" or "CC2_pair_x"
void cloud_load (World &world, const Cloud &cloud, Recordlist< Cloud::keyT > &recordlist)
 customized function to load this from the cloud
Recordlist< Cloud::keyT > cloud_store (World &world, Cloud &cloud) const
 customized function to store this to the cloud
real_function_6d function () const
 gives back the pure 6D part of the pair function
bool function_exists () const
 check if the pair has a function assigned
hashT hash () const
void info () const
bool load_pair (World &world, const bool verbose=false)
std::string name () const
void reconstruct () const
 reconstruct constant part and all functions
template<typename Archive>
void serialize (const Archive &ar)
void store_pair (World &world, const bool verbose=false)
void update_u (const real_function_6d &u)
 updates the pure 6D part of the pair function
World & world () const
 return the world of the function

Public Attributes

double bsh_eps =1.0
real_function_6d constant_part
 the constant part
CalcType ctype
std::vector< CCPairFunction< double, 6 > > functions
 the functions which belong to the pair
size_t i
size_t j
CCState type

Constructor & Destructor Documentation

◆ CCPair() [1/4]

madness::CCPair::CCPair ( )
default

Referenced by CCPair().

◆ CCPair() [2/4]

madness::CCPair::CCPair ( const size_t ii,
const size_t jj,
const CCState t,
const CalcType c )
inline

References bsh_eps, c, ctype, i, j, and type.

◆ CCPair() [3/4]

madness::CCPair::CCPair ( const size_t ii,
const size_t jj,
const CCState t,
const CalcType c,
const std::vector< CCPairFunction< double, 6 > > & f )
inline

References bsh_eps, c, ctype, madness::f, functions, i, j, and type.

◆ CCPair() [4/4]

madness::CCPair::CCPair ( const CCPair & other)
inline

References CCPair(), bsh_eps, constant_part, ctype, functions, i, j, and type.

Member Function Documentation

◆ basename()

std::string madness::CCPair::basename ( ) const
inline

return the base name like "MP2_pair_u" or "CC2_pair_x"

References madness::assign_name(), ctype, madness::EXCITED_STATE, madness::GROUND_STATE, name(), and type.

Referenced by name().

◆ cloud_load()

void madness::CCPair::cloud_load ( World & world,
const Cloud & cloud,
Recordlist< Cloud::keyT > & recordlist )
inline

customized function to load this from the cloud

functions and constant_part can be very large and we want to split them and store them in different records

Parameters
[in,out]recordlistcontaining the keys of the member variables -> will be reduced by the keys which are used

References bsh_eps, constant_part, ctype, madness::Cloud::forward_load(), functions, i, j, type, v, and world().

◆ cloud_store()

Recordlist< Cloud::keyT > madness::CCPair::cloud_store ( World & world,
Cloud & cloud ) const
inline

customized function to store this to the cloud

functions and constant_part can be very large and we want to split them and store them in different records NOTE only the 6d function and the constant part are stored in the cloud, not the 3d functions NOTE

References bsh_eps, constant_part, ctype, functions, i, j, madness::Cloud::store(), type, v, and world().

◆ function()

◆ function_exists()

bool madness::CCPair::function_exists ( ) const
inline

check if the pair has a function assigned

References functions.

Referenced by world().

◆ hash()

hashT madness::CCPair::hash ( ) const
inline

◆ info()

void madness::CCPair::info ( ) const

◆ load_pair()

◆ name()

◆ reconstruct()

void madness::CCPair::reconstruct ( ) const
inline

reconstruct constant part and all functions

References constant_part, madness::f, and functions.

Referenced by store_pair().

◆ serialize()

template<typename Archive>
void madness::CCPair::serialize ( const Archive & ar)
inline

◆ store_pair()

void madness::CCPair::store_pair ( World & world,
const bool verbose = false )
inline

◆ update_u()

void madness::CCPair::update_u ( const real_function_6d & u)
inline

◆ world()

World & madness::CCPair::world ( ) const
inline

Member Data Documentation

◆ bsh_eps

◆ constant_part

◆ ctype

◆ functions

◆ i

◆ j

◆ type


The documentation for this class was generated from the following files: