20 #include "qmcpack_version.h" 36 std::string c(argv[i]);
37 if (c.find(
"--dryrun") < c.size())
41 else if (c.find(
"--save_wfs") < c.size())
44 std::cerr << std::endl
45 <<
"ERROR: command line option --save_wfs has been removed." 46 <<
"Use save_coefs input tag as described in the manual." << std::endl;
49 else if (c.find(
"--help") < c.size())
53 else if (c.find(
"--version") < c.size())
57 else if (c.find(
"--vacuum") < c.size())
60 std::cerr << std::endl
61 <<
"ERROR: command line option --vacuum has been removed. " 62 <<
"Use vacuum input tag as described in the manual." << std::endl;
65 else if (c.find(
"--noprint") < c.size())
73 std::cerr << std::endl
74 <<
"QMCPACK version " << QMCPACK_VERSION_MAJOR <<
"." << QMCPACK_VERSION_MINOR <<
"." 75 << QMCPACK_VERSION_PATCH <<
" built on " << __DATE__ << std::endl;
77 std::cerr << std::endl <<
"Usage: qmcpack input [--dryrun --gpu]" << std::endl << std::endl;
88 os <<
" Global options " << std::endl;
90 os <<
" dryrun : All QMC and loop sections will be skipped." << std::endl;
96 app_log() <<
"MEMORY increase " << (before >> 20) <<
" MB " << who << std::endl;
101 #ifdef QMCPACK_GIT_BRANCH 103 os <<
" Git branch: " << QMCPACK_GIT_BRANCH << std::endl;
104 os <<
" Last git commit: " << QMCPACK_GIT_HASH << std::endl;
105 os <<
" Last git commit date: " << QMCPACK_GIT_COMMIT_LAST_CHANGED << std::endl;
106 os <<
" Last git commit subject: " << QMCPACK_GIT_COMMIT_SUBJECT << std::endl;
void print_git_info_if_present(std::ostream &os)
Print git info (commit hash, etc) if project was build from git repository.
helper functions for EinsplineSetBuilder
int rank() const
return the rank
Declaration of OutputManager class.
Communicate * Controller
Global Communicator for a process.
void initialize(int argc, char **argv)
initialize options from the command-line
bool dryrun
true, if it is a dryrun
bool io_node
true, print out file
class to definte global variables to keep track a run
void print_options(std::ostream &os)
print command-line options
size_t memory_allocated
size of memory allocated in byte per MPI
void print_memory_change(const std::string &who, size_t before)
print memory increase
QMCState qmc_common
a unique QMCState during a run