MADNESS  0.10.1
Public Member Functions | List of all members
madness::CCParameters Struct Reference

#include <CCStructures.h>

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

Public Member Functions

 CCParameters ()
 
 CCParameters (const CCParameters &other)=default
 copy constructor More...
 
 CCParameters (World &world, const commandlineparser &parser)
 ctor reading out the input file More...
 
CalcType calc_type () const
 
double dconv_3D () const
 
double dconv_6D () const
 
bool debug () const
 
bool decompose_Q () const
 
double dmin () const
 
double econv () const
 
double econv_pairs () const
 
void error (World &world, const std::string &msg) const
 
std::vector< std::size_t > excitations () const
 
long freeze () const
 
double gamma () const
 
void information (World &world) const
 print out the parameters More...
 
void initialize_parameters ()
 
std::size_t iter_max () const
 
std::size_t iter_max_3D () const
 
std::size_t iter_max_6D () const
 
bool kain () const
 
std::size_t kain_subspace () const
 
double lo () const
 
bool no_compute () const
 
bool no_compute_cc2 () const
 
bool no_compute_cispd () const
 
bool no_compute_gs () const
 
bool no_compute_lrcc2 () const
 
bool no_compute_mp2 () const
 
bool no_compute_mp2_constantpart () const
 
bool no_compute_response () const
 
std::pair< int, int > only_pair () const
 
std::size_t output_prec () const
 
bool plot () const
 
bool QtAnsatz () const
 
bool response () const
 
bool restart () const
 
void sanity_check (World &world) const
 check if parameters are set correct More...
 
void set_derived_values ()
 
bool test () const
 
double thresh_3D () const
 
double thresh_6D () const
 
double thresh_bsh_3D () const
 
double thresh_bsh_6D () const
 
double thresh_f12 () const
 
double thresh_poisson () const
 
double thresh_Ue () const
 
double tight_thresh_3D () const
 
double tight_thresh_6D () const
 
size_t warning (World &world, const std::string &msg) const
 
- Public Member Functions inherited from madness::QCCalculationParametersBase
bool file_exists (World &world, std::string filename) const
 
void from_json (const json &j)
 
template<typename T >
T get (const std::string key) const
 
ParameterContainerT get_all_parameters () const
 
QCParameterget_parameter (const std::string key)
 
hashT hash () const
 
bool is_user_defined (std::string key) const
 
bool operator== (const QCCalculationParametersBase &other) const
 
bool parameter_exists (const std::string &key) const
 
void print (const std::string header="", const std::string footer="") const
 print all parameters More...
 
std::string print_to_string (bool non_defaults_only=false) const
 
virtual void read_internal (World &world, std::string &filecontents, std::string tag)
 read the stream, starting from tag More...
 
template<typename Archive >
void serialize (Archive &ar)
 
template<typename T >
void set_derived_value (const std::string &key, const T &value)
 
template<typename T >
void set_user_defined_value (const std::string &key, const T &value)
 
json to_json () const
 
void to_json (json &j) const
 

Additional Inherited Members

- Static Public Member Functions inherited from madness::QCCalculationParametersBase
static std::string add_quotes (const std::string arg)
 
template<typename T >
static bool check_type (const std::string key, const QCParameter &parameter)
 
template<typename T >
static bool check_type_silent (const QCParameter &parameter)
 
template<typename T >
static std::enable_if<!std::is_same< T, bool >::value, T >::type fromstring (const std::string &arg)
 
template<typename T >
static std::enable_if< std::is_same< T, bool >::value, T >::type fromstring (const std::string &arg)
 
template<typename T >
static std::enable_if< std::is_floating_point< T >::value, void >::type overwrite_if_inf (std::string &str, const T &arg)
 
template<typename T >
static std::enable_if<!std::is_floating_point< T >::value, void >::type overwrite_if_inf (std::string &str, const T &arg)
 
template<typename T >
static std::enable_if< std::is_same< T, std::string >::value, T >::type read_quotes (std::stringstream &ssvalue)
 
template<typename T >
static std::enable_if<!std::is_same< T, std::string >::value, T >::type read_quotes (std::stringstream &ssvalue)
 
static std::string tostring (const bool &arg)
 
template<typename T >
static std::string tostring (const T &arg)
 
static std::string trim_blanks (const std::string arg)
 
static std::string trim_quotes (const std::string arg)
 
- Protected Types inherited from madness::QCCalculationParametersBase
typedef std::map< std::string, QCParameterParameterContainerT
 
- Protected Member Functions inherited from madness::QCCalculationParametersBase
 QCCalculationParametersBase ()
 ctor for testing More...
 
 QCCalculationParametersBase (const QCCalculationParametersBase &other)
 copy ctor More...
 
virtual ~QCCalculationParametersBase ()
 destructor More...
 
const QCParameterget_parameter (const std::string key) const
 
template<typename T >
void initialize (const std::string &key, const T &value, const std::string comment="", const std::vector< T > allowed_values={})
 
virtual void read_input_and_commandline_options (World &world, const commandlineparser &parser, const std::string tag)
 
template<typename T >
bool try_setting_user_defined_value (const std::string &key, const std::string &val)
 
- Protected Attributes inherited from madness::QCCalculationParametersBase
bool ignore_unknown_keys =true
 
bool ignore_unknown_keys_silently =false
 
ParameterContainerT parameters
 
bool print_debug =false
 
bool throw_if_datagroup_not_found =true
 

Detailed Description

Calculation TDHFParameters for CC2 and TDA calculations Maybe merge this with calculation_parameters of SCF at some point, or split into TDA and CC

Constructor & Destructor Documentation

◆ CCParameters() [1/3]

madness::CCParameters::CCParameters ( )
inline

◆ CCParameters() [2/3]

madness::CCParameters::CCParameters ( const CCParameters other)
default

copy constructor

◆ CCParameters() [3/3]

madness::CCParameters::CCParameters ( World world,
const commandlineparser parser 
)
inline

Member Function Documentation

◆ calc_type()

CalcType madness::CCParameters::calc_type ( ) const
inline

◆ dconv_3D()

double madness::CCParameters::dconv_3D ( ) const
inline

◆ dconv_6D()

double madness::CCParameters::dconv_6D ( ) const
inline

◆ debug()

bool madness::CCParameters::debug ( ) const
inline

◆ decompose_Q()

bool madness::CCParameters::decompose_Q ( ) const
inline

◆ dmin()

double madness::CCParameters::dmin ( ) const
inline

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

◆ econv()

double madness::CCParameters::econv ( ) const
inline

◆ econv_pairs()

double madness::CCParameters::econv_pairs ( ) const
inline

◆ error()

void madness::CCParameters::error ( World world,
const std::string &  msg 
) const
inline

◆ excitations()

std::vector<std::size_t> madness::CCParameters::excitations ( ) const
inline

◆ freeze()

long madness::CCParameters::freeze ( ) const
inline

◆ gamma()

double madness::CCParameters::gamma ( ) const
inline

Referenced by test_inner().

◆ information()

void madness::CCParameters::information ( World world) const

print out the parameters

References calc_type(), madness::CT_LRCCS, madness::CT_TDHF, QtAnsatz(), and madness::World::rank().

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

◆ initialize_parameters()

void madness::CCParameters::initialize_parameters ( )
inline

References thresh.

Referenced by CCParameters().

◆ iter_max()

std::size_t madness::CCParameters::iter_max ( ) const
inline

◆ iter_max_3D()

std::size_t madness::CCParameters::iter_max_3D ( ) const
inline

◆ iter_max_6D()

std::size_t madness::CCParameters::iter_max_6D ( ) const
inline

◆ kain()

bool madness::CCParameters::kain ( ) const
inline

◆ kain_subspace()

std::size_t madness::CCParameters::kain_subspace ( ) const
inline

◆ lo()

double madness::CCParameters::lo ( ) const
inline

◆ no_compute()

bool madness::CCParameters::no_compute ( ) const
inline

Referenced by sanity_check(), and set_derived_values().

◆ no_compute_cc2()

bool madness::CCParameters::no_compute_cc2 ( ) const
inline

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

◆ no_compute_cispd()

bool madness::CCParameters::no_compute_cispd ( ) const
inline

◆ no_compute_gs()

bool madness::CCParameters::no_compute_gs ( ) const
inline

Referenced by set_derived_values().

◆ no_compute_lrcc2()

bool madness::CCParameters::no_compute_lrcc2 ( ) const
inline

◆ no_compute_mp2()

bool madness::CCParameters::no_compute_mp2 ( ) const
inline

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

◆ no_compute_mp2_constantpart()

bool madness::CCParameters::no_compute_mp2_constantpart ( ) const
inline

◆ no_compute_response()

bool madness::CCParameters::no_compute_response ( ) const
inline

Referenced by set_derived_values().

◆ only_pair()

std::pair<int, int> madness::CCParameters::only_pair ( ) const
inline

◆ output_prec()

std::size_t madness::CCParameters::output_prec ( ) const
inline

◆ plot()

bool madness::CCParameters::plot ( ) const
inline

◆ QtAnsatz()

bool madness::CCParameters::QtAnsatz ( ) const
inline

◆ response()

bool madness::CCParameters::response ( ) const
inline

◆ restart()

bool madness::CCParameters::restart ( ) const
inline

Referenced by sanity_check(), and set_derived_values().

◆ sanity_check()

void madness::CCParameters::sanity_check ( World world) const

◆ set_derived_values()

void madness::CCParameters::set_derived_values ( )

◆ test()

bool madness::CCParameters::test ( ) const
inline

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

◆ thresh_3D()

double madness::CCParameters::thresh_3D ( ) const
inline

◆ thresh_6D()

double madness::CCParameters::thresh_6D ( ) const
inline

◆ thresh_bsh_3D()

double madness::CCParameters::thresh_bsh_3D ( ) const
inline

◆ thresh_bsh_6D()

double madness::CCParameters::thresh_bsh_6D ( ) const
inline

◆ thresh_f12()

double madness::CCParameters::thresh_f12 ( ) const
inline

◆ thresh_poisson()

double madness::CCParameters::thresh_poisson ( ) const
inline

◆ thresh_Ue()

double madness::CCParameters::thresh_Ue ( ) const
inline

Referenced by sanity_check().

◆ tight_thresh_3D()

double madness::CCParameters::tight_thresh_3D ( ) const
inline

Referenced by sanity_check().

◆ tight_thresh_6D()

double madness::CCParameters::tight_thresh_6D ( ) const
inline

Referenced by sanity_check(), and set_derived_values().

◆ warning()

size_t madness::CCParameters::warning ( World world,
const std::string &  msg 
) const
inline

References madness::World::rank().

Referenced by sanity_check().


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