MADNESS 0.10.1
|
little helper structure which manages the stored singles potentials More...
#include <CCStructures.h>
Public Member Functions | |
CCIntermediatePotentials ()=default | |
CCIntermediatePotentials (const CCIntermediatePotentials &other)=default | |
CCIntermediatePotentials (const CCParameters &p) | |
void | clear_all () |
deltes all stored potentials | |
void | clear_response () |
clears only potentials of the response | |
void | cloud_load (World &world, const Cloud &cloud, Recordlist< Cloud::keyT > &recordlist) |
Recordlist< Cloud::keyT > | cloud_store (World &world, Cloud &cloud) const |
vector_real_function_3d | get_potential (const PotentialType &ptype, const FuncType &ftype, const bool throw_if_empty) const |
return a vector of the intermediate potentials | |
void | insert (const vector_real_function_3d &potential, const CC_vecfunction &f, const PotentialType &type) |
insert potential | |
vector_real_function_3d | operator() (const CC_vecfunction &f, const PotentialType &type, const bool throw_if_empty) const |
fetches the correct stored potential or throws an exception | |
Function< double, 3 > | operator() (const CCFunction< double, 3 > &f, const PotentialType &type, const bool throw_if_empty) const |
fetch the potential for a single function | |
CCIntermediatePotentials & | operator= (const CCIntermediatePotentials &other)=default |
bool | potential_exists (const CC_vecfunction &f, const PotentialType &type) const |
check if the intermediate potential exists | |
bool | potential_exists (const PotentialType &type, const FuncType &ftype) const |
check if the intermediate potential exists | |
void | reconstruct () const |
Public Attributes | |
CCParameters | parameters |
Private Member Functions | |
void | output (const std::string &msg) const |
structured output | |
Private Attributes | |
vector_real_function_3d | current_s2b_potential_ex_ |
s2b_potential for the pure 6D-part of the excited-state (expensive and constant during singles iterations) | |
vector_real_function_3d | current_s2b_potential_gs_ |
s2b_potential for the pure 6D-part of the ground-state (expensive and constant during singles iterations) | |
vector_real_function_3d | current_s2c_potential_ex_ |
s2c_potential for the pure 6D-part of the excited_state (expensive and constant during singles iterations) | |
vector_real_function_3d | current_s2c_potential_gs_ |
s2c_potential for the pure 6D-part of the ground-state (expensive and constant during singles iterations) | |
vector_real_function_3d | current_singles_potential_ex_ |
whole excited state singles potential without fock-residue | |
vector_real_function_3d | current_singles_potential_gs_ |
whole ground state singles potential without fock-residue | |
vector_real_function_3d | unprojected_cc2_projector_response_ |
Friends | |
hashT | hash_value (const CCIntermediatePotentials &ip) |
little helper structure which manages the stored singles potentials
|
default |
|
inline |
|
default |
|
inline |
deltes all stored potentials
References current_s2b_potential_ex_, current_s2b_potential_gs_, current_s2c_potential_ex_, current_s2c_potential_gs_, current_singles_potential_ex_, and current_singles_potential_gs_.
Referenced by madness::CC2::iterate_cc2_singles().
|
inline |
clears only potentials of the response
References current_s2b_potential_ex_, current_s2c_potential_ex_, and current_singles_potential_ex_.
Referenced by madness::CC2::iterate_adc2_singles(), madness::CC2::iterate_ccs_singles(), and madness::CC2::iterate_lrcc2_singles().
|
inline |
|
inline |
madness::vector_real_function_3d madness::CCIntermediatePotentials::get_potential | ( | const PotentialType & | ptype, |
const FuncType & | ftype, | ||
const bool | throw_if_empty | ||
) | const |
return a vector of the intermediate potentials
[in] | ptype | the potential type (POT_SINGLES, POT_S2B, ..) |
[in] | ftype | the function type (HOLE, PARTICLE, RESPONSE) |
References madness::assign_name(), current_s2b_potential_ex_, current_s2b_potential_gs_, current_s2c_potential_ex_, current_s2c_potential_gs_, current_singles_potential_ex_, current_singles_potential_gs_, madness::CCParameters::debug(), errmsg(), MADNESS_EXCEPTION, madness::MIXED, madness::name(), parameters, madness::PARTICLE, madness::POT_s2b_, madness::POT_s2c_, madness::POT_singles_, madness::print(), madness::print_size(), and madness::RESPONSE.
Referenced by operator()(), operator()(), and potential_exists().
void madness::CCIntermediatePotentials::insert | ( | const vector_real_function_3d & | potential, |
const CC_vecfunction & | f, | ||
const PotentialType & | type | ||
) |
insert potential
References madness::assign_name(), current_s2b_potential_ex_, current_s2b_potential_gs_, current_s2c_potential_ex_, current_s2c_potential_gs_, current_singles_potential_ex_, current_singles_potential_gs_, madness::CCParameters::debug(), madness::f, MADNESS_ASSERT, madness::MIXED, output(), parameters, madness::PARTICLE, madness::POT_s2b_, madness::POT_s2c_, madness::POT_singles_, potential(), madness::print_size(), madness::World::rank(), madness::RESPONSE, and madness::type().
madness::vector_real_function_3d madness::CCIntermediatePotentials::operator() | ( | const CC_vecfunction & | f, |
const PotentialType & | type, | ||
const bool | throw_if_empty | ||
) | const |
fetches the correct stored potential or throws an exception
References madness::f, get_potential(), and madness::type().
madness::real_function_3d madness::CCIntermediatePotentials::operator() | ( | const CCFunction< double, 3 > & | f, |
const PotentialType & | type, | ||
const bool | throw_if_empty | ||
) | const |
fetch the potential for a single function
References madness::f, madness::CCParameters::freeze(), get_potential(), MADNESS_CHECK_THROW, parameters, and madness::type().
|
default |
|
inlineprivate |
structured output
References madness::CCParameters::debug(), and parameters.
Referenced by insert().
|
inline |
check if the intermediate potential exists
References madness::f, potential_exists(), and madness::type().
Referenced by potential_exists(), and madness::CC2::solve().
|
inline |
check if the intermediate potential exists
References get_potential(), and madness::type().
|
inline |
|
friend |
|
private |
s2b_potential for the pure 6D-part of the excited-state (expensive and constant during singles iterations)
Referenced by clear_all(), clear_response(), cloud_load(), cloud_store(), get_potential(), insert(), and reconstruct().
|
private |
s2b_potential for the pure 6D-part of the ground-state (expensive and constant during singles iterations)
Referenced by clear_all(), cloud_load(), cloud_store(), get_potential(), insert(), and reconstruct().
|
private |
s2c_potential for the pure 6D-part of the excited_state (expensive and constant during singles iterations)
Referenced by clear_all(), clear_response(), cloud_load(), cloud_store(), get_potential(), insert(), and reconstruct().
|
private |
s2c_potential for the pure 6D-part of the ground-state (expensive and constant during singles iterations)
Referenced by clear_all(), cloud_load(), cloud_store(), get_potential(), insert(), and reconstruct().
|
private |
whole excited state singles potential without fock-residue
Referenced by clear_all(), clear_response(), cloud_load(), cloud_store(), get_potential(), insert(), and reconstruct().
|
private |
whole ground state singles potential without fock-residue
Referenced by clear_all(), cloud_load(), cloud_store(), get_potential(), insert(), and reconstruct().
CCParameters madness::CCIntermediatePotentials::parameters |
Referenced by cloud_load(), cloud_store(), get_potential(), insert(), operator()(), and output().
|
private |
unprojected S3c + S5c + S2b + S2c potential of CC2 singles for the projector response of the CC2 singles potential
Referenced by cloud_load(), cloud_store(), and reconstruct().