MADNESS 0.10.1
Public Member Functions | Public Attributes | List of all members
madness::CCPair Class Reference

#include <CCStructures.h>

Inheritance diagram for madness::CCPair:
Inheritance graph
[legend]
Collaboration diagram for madness::CCPair:
Collaboration graph
[legend]

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::keyTcloud_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
 
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
 

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

◆ CCPair() [2/4]

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

◆ 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

◆ CCPair() [4/4]

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

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, madness::Function< T, NDIM >::clear(), constant_part, ctype, madness::Cloud::forward_load(), functions, i, j, type, and v.

◆ 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, madness::Function< T, NDIM >::is_initialized(), j, madness::Cloud::store(), type, and v.

◆ function()

real_function_6d madness::CCPair::function ( ) const
inline

gives back the pure 6D part of the pair function

References functions, and MADNESS_CHECK_THROW.

Referenced by madness::CCPairBuilder::complete_pair_with_low_rank_parts(), and madness::CC2::iterate_pair().

◆ function_exists()

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

References functions.

◆ hash()

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

◆ info()

void madness::CCPair::info ( ) const

◆ load_pair()

bool madness::CCPair::load_pair ( World world,
const bool  verbose = false 
)
inline

◆ name()

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

◆ reconstruct()

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

reconstruct constant part and all functions

References constant_part, madness::f, functions, and madness::Function< T, NDIM >::reconstruct().

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

updates the pure 6D part of the pair function

References functions, MADNESS_CHECK_THROW, and u().

Referenced by madness::CC2::iterate_pair().

Member Data Documentation

◆ bsh_eps

double madness::CCPair::bsh_eps =1.0

Energy for the BSH Operator Ground State: e_i + e_j Excited State: e_i + e_j + omega default to positive value to make sure this is set somewhere

Referenced by cloud_load(), cloud_store(), madness::CC2::iterate_adc2_pairs(), madness::CC2::iterate_pair(), madness::CCPairBuilder::make_bare_pair(), serialize(), madness::CC2::solve_cispd(), madness::CC2::update_constant_part_adc2(), and madness::CC2::update_constant_part_cispd().

◆ constant_part

real_function_6d madness::CCPair::constant_part

◆ ctype

CalcType madness::CCPair::ctype

◆ functions

std::vector<CCPairFunction<double,6> > madness::CCPair::functions

◆ i

size_t madness::CCPair::i

◆ j

size_t madness::CCPair::j

◆ type

CCState madness::CCPair::type

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