MADNESS 0.10.1
madness::CCParameters Struct Reference

#include <CCParameters.h>

Inheritance diagram for madness::CCParameters:
Collaboration diagram for madness::CCParameters:

Public Member Functions

 CCParameters ()
 CCParameters (const CCParameters &other)=default
 copy constructor
 CCParameters (World &world, const commandlineparser &parser)
 ctor reading out the input file
CalcType calc_type () const
std::string cp_diagnostics () 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
std::string get_tag () const override
void information (World &world) const
 print out the parameters
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
std::string kffk_algorithm () const
double kffk_alpha () const
double kffk_volume_element () 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
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
virtual std::set< std::string > case_sensitive_keys () const
 keys whose string values must NOT be case-folded
virtual std::set< std::string > case_sensitive_keys () const
 keys whose string values must NOT be case-folded
bool file_exists (World &world, std::string filename) const
bool file_exists (World &world, std::string filename) const
void from_json (const json &j)
void from_json (const json &j)
template<typename T>
T get (const std::string key) const
template<typename T>
T get (const std::string key) const
ParameterContainerT get_all_parameters () const
ParameterContainerT get_all_parameters () const
QCParameter & get_parameter (const std::string key)
QCParameter & get_parameter (const std::string key)
hashT hash () const
hashT hash () const
bool is_user_defined (std::string key) const
bool is_user_defined (std::string key) const
bool keeps_case (const std::string &key) const
bool keeps_case (const std::string &key) const
bool parameter_exists (const std::string &key) const
bool parameter_exists (const std::string &key) const
void print (const std::string header="", const std::string footer="") const
 print all parameters
void print (const std::string header="", const std::string footer="") const
 print all parameters
std::string print_to_string (const std::list< std::string > precedences={"all"}) const
std::string print_to_string (const std::list< std::string > precedences={"all"}) const
template<typename... Types>
void qcparameter_to_json (json &j, const std::pair< std::string, QCParameter > &p, const std::tuple< Types... > &) const
template<typename... Types>
void qcparameter_to_json (json &j, const std::pair< std::string, QCParameter > &p, const std::tuple< Types... > &) const
template<typename Tuple>
void qcparameter_to_json_from_tuple (json &j, const std::pair< std::string, QCParameter > &p, const Tuple &) const
template<typename Tuple>
void qcparameter_to_json_from_tuple (json &j, const std::pair< std::string, QCParameter > &p, const Tuple &) const
void read_commandline_options (World &world, const commandlineparser &parser, const std::string tag)
 read the parameters from the command line and broadcast
void read_commandline_options (World &world, const commandlineparser &parser, const std::string tag)
virtual void read_internal (World &world, std::string &filecontents, std::string tag)
 read the stream, starting from tag
virtual void read_internal (World &world, std::string &filecontents, std::string tag)
 read the stream, starting from tag
template<typename Archive>
void serialize (Archive &ar)
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_derived_value (const std::string &key, const T &value)
template<typename T>
void set_user_defined_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
 convert all parameters to a json object
json to_json () const
 convert all parameters to a json object
void to_json (json &j) const
 convert all parameters to a json object
void to_json (json &j) const
 convert all parameters to a json object
json to_json_if_precedence (const std::string &precedence) const
 convert all parameters to a json object, but only those with a given precedence
json to_json_if_precedence (const std::string &precedence) const
 convert all parameters to a json object, but only those with a given precedence
template<typename T>
std::string to_stored_string (const std::string &key, const T &value) const
 stringify value for storage, honoring case_sensitive_keys()
template<typename T>
std::string to_stored_string (const std::string &key, const T &value) const
 stringify value for storage, honoring case_sensitive_keys()
template<typename... Types>
bool try_set_from_json (QCParameter &parameter, const nlohmann::json &value)
template<typename... Types>
bool try_set_from_json (QCParameter &parameter, const nlohmann::json &value)

Static Public Attributes

static constexpr char const * tag = "cc2"

Additional Inherited Members

Public Types inherited from madness::QCCalculationParametersBase
using all_parameter_types
using all_parameter_types
Static Public Member Functions inherited from madness::QCCalculationParametersBase
static std::string add_quotes (const std::string arg)
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 (const std::string key, const QCParameter &parameter)
template<typename T>
static bool check_type_silent (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_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_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)
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)
static std::string tostring (const bool &arg)
template<typename T>
static std::string tostring (const T &arg)
template<typename T>
static std::string tostring (const T &arg)
static std::string trim_blanks (const std::string arg)
static std::string trim_blanks (const std::string arg)
static std::string trim_quotes (const std::string arg)
static std::string trim_quotes (const std::string arg)
Protected Types inherited from madness::QCCalculationParametersBase
typedef std::map< std::string, QCParameter > ParameterContainerT
typedef std::map< std::string, QCParameter > ParameterContainerT
Protected Member Functions inherited from madness::QCCalculationParametersBase
 QCCalculationParametersBase ()
 ctor for testing
 QCCalculationParametersBase ()
 ctor for testing
 QCCalculationParametersBase (const QCCalculationParametersBase &other)
 copy ctor
 QCCalculationParametersBase (const QCCalculationParametersBase &other)
 copy ctor
virtual ~QCCalculationParametersBase ()
 destructor
virtual ~QCCalculationParametersBase ()
 destructor
const QCParameter & get_parameter (const std::string &key) const
const QCParameter & get_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={})
template<typename T>
void initialize (const std::string &key, const T &value, const std::string comment="", const std::vector< T > allowed_values={})
void read_input_and_commandline_options (World &world, const commandlineparser &parser, const std::string tag)
void read_input_and_commandline_options (World &world, const commandlineparser &parser, const std::string tag)
template<typename Tuple>
bool try_setting_any (const std::string &key, const std::string &value)
 helper function for try_setting_user_defined_value
template<typename Tuple>
bool try_setting_any (const std::string &key, const std::string &value)
 helper function for try_setting_user_defined_value
template<typename Tuple, std::size_t... I>
bool try_setting_any_impl (const std::string &key, const std::string &value, Tuple, std::index_sequence< I... >)
 helper function for try_setting_user_defined_value
template<typename Tuple, std::size_t... I>
bool try_setting_any_impl (const std::string &key, const std::string &value, Tuple, std::index_sequence< I... >)
 helper function for try_setting_user_defined_value
template<typename T>
bool try_setting_user_defined_value (const std::string &key, const std::string &val)
 helper function for try_setting_user_defined_value
template<typename T>
bool try_setting_user_defined_value (const std::string &key, const std::string &val)
 helper function for try_setting_user_defined_value
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 = false

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

References initialize_parameters().

Referenced by CCParameters().

◆ CCParameters() [2/3]

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

copy constructor

References CCParameters().

◆ CCParameters() [3/3]

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

Member Function Documentation

◆ calc_type()

◆ cp_diagnostics()

std::string madness::CCParameters::cp_diagnostics ( ) 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

◆ 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

◆ get_tag()

std::string madness::CCParameters::get_tag ( ) const
inlineoverridevirtual

Implements madness::QCCalculationParametersBase.

References tag.

◆ 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().

◆ initialize_parameters()

void madness::CCParameters::initialize_parameters ( )
inline

◆ 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

◆ kffk_algorithm()

std::string madness::CCParameters::kffk_algorithm ( ) const
inline

◆ kffk_alpha()

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

◆ kffk_volume_element()

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

◆ lo()

◆ no_compute()

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

◆ no_compute_cc2()

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

◆ no_compute_cispd()

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

◆ no_compute_gs()

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

◆ no_compute_lrcc2()

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

◆ no_compute_mp2()

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

◆ no_compute_mp2_constantpart()

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

◆ no_compute_response()

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

◆ 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

◆ sanity_check()

◆ set_derived_values()

◆ test()

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

◆ 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

◆ tight_thresh_3D()

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

◆ tight_thresh_6D()

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

◆ warning()

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

References madness::World::rank().

Referenced by sanity_check().

Member Data Documentation

◆ tag

char const* madness::CCParameters::tag = "cc2"
staticconstexpr

Referenced by get_tag().


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