![]() |
QMCPACK
|
class to definte global variables to keep track a run More...
Public Member Functions | |
QMCState () | |
constructor More... | |
void | initialize (int argc, char **argv) |
initialize options from the command-line More... | |
void | print_options (std::ostream &os) |
print command-line options More... | |
void | print_memory_change (const std::string &who, size_t before) |
print memory increase More... | |
void | print_git_info_if_present (std::ostream &os) |
Print git info (commit hash, etc) if project was build from git repository. More... | |
Public Attributes | |
size_t | memory_allocated {0} |
size of memory allocated in byte per MPI More... | |
int | qmc_counter {0} |
init for <qmc> section More... | |
int | mpi_groups {1} |
number of mpi groups More... | |
bool | use_density {false} |
true, if density is used, e.g. MPC More... | |
bool | dryrun {false} |
true, if it is a dryrun More... | |
bool | io_node {true} |
true, print out file More... | |
class to definte global variables to keep track a run
Definition at line 26 of file qmc_common.h.
|
default |
constructor
void initialize | ( | int | argc, |
char ** | argv | ||
) |
initialize options from the command-line
Definition at line 28 of file qmc_common.cpp.
References OHMMS::Controller, QMCState::dryrun, Communicate::finalize(), QMCState::io_node, QMCState::print_git_info_if_present(), and Communicate::rank().
Referenced by main().
void print_git_info_if_present | ( | std::ostream & | os | ) |
Print git info (commit hash, etc) if project was build from git repository.
Definition at line 99 of file qmc_common.cpp.
Referenced by QMCState::initialize(), and QMCMain::QMCMain().
void print_memory_change | ( | const std::string & | who, |
size_t | before | ||
) |
print memory increase
who | the name of the class/function calling this |
before | memory_allocated before calling print |
Definition at line 93 of file qmc_common.cpp.
References qmcplusplus::app_log(), and QMCState::memory_allocated.
Referenced by VMC::resetRun().
void print_options | ( | std::ostream & | os | ) |
print command-line options
Definition at line 86 of file qmc_common.cpp.
References QMCState::dryrun.
Referenced by QMCMain::QMCMain().
bool dryrun {false} |
true, if it is a dryrun
Definition at line 37 of file qmc_common.h.
Referenced by QMCMain::execute(), QMCState::initialize(), and QMCState::print_options().
bool io_node {true} |
true, print out file
Definition at line 39 of file qmc_common.h.
Referenced by kSpaceJastrowBuilder::buildComponent(), QMCState::initialize(), CloneManager::makeClones(), and ECPComponentBuilder::printECPTable().
size_t memory_allocated {0} |
size of memory allocated in byte per MPI
Definition at line 29 of file qmc_common.h.
Referenced by QMCState::print_memory_change(), and VMC::resetRun().
int mpi_groups {1} |
number of mpi groups
Definition at line 33 of file qmc_common.h.
Referenced by main(), kSpaceJastrowBuilder::outputJastrow(), ProjectData::previousRoot(), ECPComponentBuilder::printECPTable(), and ProjectData::reset().
int qmc_counter {0} |
init for <qmc> section
Definition at line 31 of file qmc_common.h.
Referenced by QMCMain::execute(), QMCMain::executeLoop(), VMC::put(), CSVMC::put(), and QMCDriver::putQMCInfo().
bool use_density {false} |
true, if density is used, e.g. MPC
Definition at line 35 of file qmc_common.h.
Referenced by EinsplineSetBuilder::ReadOrbitalInfo_ESHDF(), and QMCMain::validateXML().