13 #define CATCH_CONFIG_RUNNER 17 #ifdef CATCH_MAIN_HAVE_MPI 32 int main(
int argc,
char* argv[])
34 Catch::Session session;
35 using namespace Catch::clara;
37 auto cli = session.cli() |
38 Opt(
UTEST_HAMIL,
"UTEST_HAMIL")[
"--hamil"](
"Hamiltonian file to be used by unit test if applicable.") |
39 Opt(
UTEST_WFN,
"UTEST_WFN")[
"--wfn"](
"Wavefunction file to be used by unit test if applicable.") |
40 Opt(
turn_on_output)[
"--turn-on-printout"](
"Turn on QMCPACK output manager printout");
43 int parser_err = session.applyCommandLine(argc, argv);
44 #ifdef CATCH_MAIN_HAVE_MPI 45 mpi3::environment env(argc, argv);
57 qmcplusplus::app_log() <<
"QMCPACK printout is suppressed. Use --turn-on-printout to see all the printout." 63 int result = session.run(argc, argv);
64 #ifdef CATCH_MAIN_HAVE_MPI
Declaration of OutputManager class.
void shutOff()
Permanently shut off all streams.
Communicate * Controller
Global Communicator for a process.
void print_mem(const std::string &title, std::ostream &log)
OutputManagerClass outputManager(Verbosity::HIGH)
Wrapping information on parallelism.
Communicate NodeComm() const
provide a node/shared-memory communicator from current (parent) communicator
int main(int argc, char *argv[])
static void initializeGlobalDeviceManager(int local_rank, int local_size)
initialize the global instance of DeviceManager arguments are the same as the constructor ...