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

#include <CalculationParameters.h>

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

Public Member Functions

 CalculationParameters ()
 ctor reading out the input file
 
 CalculationParameters (const CalculationParameters &other)=default
 
 CalculationParameters (World &world, const commandlineparser &parser)
 
std::string ac_data () const
 
std::string algopt () const
 
std::string aobasis () const
 
double charge () const
 
bool converge_bsh_residual () const
 
bool converge_density () const
 
bool converge_each_energy () const
 
bool converge_total_energy () const
 
double dconv () const
 
std::string deriv () const
 
bool derivatives () const
 
std::string dft_deriv () const
 
bool dipole () const
 
bool do_localize () const
 
bool do_symmetry () const
 
double econv () const
 
bool ginitial_hessian () const
 
int gmaxiter () const
 
bool gopt () const
 
double gprec () const
 
double gtol () const
 
double gval () const
 
bool have_beta () const
 
std::string hfexalg () const
 
int k () const
 
double L () const
 
double lo () const
 
int loadbalparts () const
 
std::string localize_method () const
 
bool localize_pm () const
 
int maxiter () const
 
double maxrotn () const
 
int maxsub () const
 
int nalpha () const
 
int nbeta () const
 
int nmo_alpha () const
 
int nmo_beta () const
 
bool no_compute () const
 
int nopen () const
 
int nv_factor () const
 
int nvalpha () const
 
int nvbeta () const
 
std::string nwfile () const
 
double orbitalshift () const
 
std::string pcm_data () const
 
Tensor< double > plot_cell () const
 
std::string pointgroup () const
 
std::string prefix () const
 
int print_level () const
 
std::vector< double > protocol () const
 
virtual void read_input_and_commandline_options (World &world, const commandlineparser &parser, const std::string tag)
 
bool restart () const
 
bool restart_cphf () const
 
bool restartao () const
 
bool save () const
 
void set_derived_values (const Molecule &molecule, const AtomicBasisSet &aobasis, const commandlineparser &parser)
 
bool spin_restricted () const
 
int vnucextra () const
 
std::string xc () 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
 
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
 
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
 
 QCCalculationParametersBase (const QCCalculationParametersBase &other)
 copy ctor
 
virtual ~QCCalculationParametersBase ()
 destructor
 
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={})
 
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
 

Constructor & Destructor Documentation

◆ CalculationParameters() [1/3]

madness::CalculationParameters::CalculationParameters ( const CalculationParameters other)
default

◆ CalculationParameters() [2/3]

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

◆ CalculationParameters() [3/3]

madness::CalculationParameters::CalculationParameters ( )
inline

ctor reading out the input file

Member Function Documentation

◆ ac_data()

std::string madness::CalculationParameters::ac_data ( ) const
inline

Referenced by madness::Nemo::do_ac().

◆ algopt()

std::string madness::CalculationParameters::algopt ( ) const
inline

Referenced by main().

◆ aobasis()

std::string madness::CalculationParameters::aobasis ( ) const
inline

◆ charge()

double madness::CalculationParameters::charge ( ) const
inline

◆ converge_bsh_residual()

bool madness::CalculationParameters::converge_bsh_residual ( ) const
inline

◆ converge_density()

bool madness::CalculationParameters::converge_density ( ) const
inline

◆ converge_each_energy()

bool madness::CalculationParameters::converge_each_energy ( ) const
inline

◆ converge_total_energy()

bool madness::CalculationParameters::converge_total_energy ( ) const
inline

◆ dconv()

double madness::CalculationParameters::dconv ( ) const
inline

◆ deriv()

std::string madness::CalculationParameters::deriv ( ) const
inline

◆ derivatives()

bool madness::CalculationParameters::derivatives ( ) const
inline

Referenced by main().

◆ dft_deriv()

std::string madness::CalculationParameters::dft_deriv ( ) const
inline

◆ dipole()

bool madness::CalculationParameters::dipole ( ) const
inline

Referenced by main().

◆ do_localize()

bool madness::CalculationParameters::do_localize ( ) const
inline

◆ do_symmetry()

bool madness::CalculationParameters::do_symmetry ( ) const
inline

References pointgroup().

Referenced by set_derived_values().

◆ econv()

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

◆ ginitial_hessian()

bool madness::CalculationParameters::ginitial_hessian ( ) const
inline

◆ gmaxiter()

int madness::CalculationParameters::gmaxiter ( ) const
inline

Referenced by main().

◆ gopt()

bool madness::CalculationParameters::gopt ( ) const
inline

Referenced by main().

◆ gprec()

double madness::CalculationParameters::gprec ( ) const
inline

Referenced by main().

◆ gtol()

double madness::CalculationParameters::gtol ( ) const
inline

Referenced by main().

◆ gval()

double madness::CalculationParameters::gval ( ) const
inline

Referenced by main().

◆ have_beta()

bool madness::CalculationParameters::have_beta ( ) const
inline

◆ hfexalg()

std::string madness::CalculationParameters::hfexalg ( ) const
inline

◆ k()

int madness::CalculationParameters::k ( ) const
inline

◆ L()

double madness::CalculationParameters::L ( ) const
inline

◆ lo()

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

◆ loadbalparts()

int madness::CalculationParameters::loadbalparts ( ) const
inline

◆ localize_method()

std::string madness::CalculationParameters::localize_method ( ) const
inline

◆ localize_pm()

bool madness::CalculationParameters::localize_pm ( ) const
inline

◆ maxiter()

int madness::CalculationParameters::maxiter ( ) const
inline

◆ maxrotn()

double madness::CalculationParameters::maxrotn ( ) const
inline

◆ maxsub()

int madness::CalculationParameters::maxsub ( ) const
inline

◆ nalpha()

int madness::CalculationParameters::nalpha ( ) const
inline

◆ nbeta()

int madness::CalculationParameters::nbeta ( ) const
inline

◆ nmo_alpha()

int madness::CalculationParameters::nmo_alpha ( ) const
inline

◆ nmo_beta()

int madness::CalculationParameters::nmo_beta ( ) const
inline

◆ no_compute()

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

◆ nopen()

int madness::CalculationParameters::nopen ( ) const
inline

Referenced by set_derived_values().

◆ nv_factor()

int madness::CalculationParameters::nv_factor ( ) const
inline

◆ nvalpha()

int madness::CalculationParameters::nvalpha ( ) const
inline

Referenced by set_derived_values().

◆ nvbeta()

int madness::CalculationParameters::nvbeta ( ) const
inline

Referenced by set_derived_values().

◆ nwfile()

std::string madness::CalculationParameters::nwfile ( ) const
inline

◆ orbitalshift()

double madness::CalculationParameters::orbitalshift ( ) const
inline

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

◆ pcm_data()

std::string madness::CalculationParameters::pcm_data ( ) const
inline

◆ plot_cell()

Tensor< double > madness::CalculationParameters::plot_cell ( ) const
inline

Referenced by madness::SCF::do_plots().

◆ pointgroup()

std::string madness::CalculationParameters::pointgroup ( ) const
inline

◆ prefix()

std::string madness::CalculationParameters::prefix ( ) const
inline

◆ print_level()

int madness::CalculationParameters::print_level ( ) const
inline

◆ protocol()

std::vector< double > madness::CalculationParameters::protocol ( ) const
inline

◆ read_input_and_commandline_options()

virtual void madness::QCCalculationParametersBase::read_input_and_commandline_options ( World world,
const commandlineparser parser,
const std::string  tag 
)
inlinevirtual

◆ restart()

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

◆ restart_cphf()

bool madness::CalculationParameters::restart_cphf ( ) const
inline

◆ restartao()

bool madness::CalculationParameters::restartao ( ) const
inline

◆ save()

bool madness::CalculationParameters::save ( ) const
inline

◆ set_derived_values()

void madness::CalculationParameters::set_derived_values ( const Molecule molecule,
const AtomicBasisSet aobasis,
const commandlineparser parser 
)
inline

◆ spin_restricted()

bool madness::CalculationParameters::spin_restricted ( ) const
inline

◆ vnucextra()

int madness::CalculationParameters::vnucextra ( ) const
inline

◆ xc()

std::string madness::CalculationParameters::xc ( ) const
inline

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