Commit 5bf788f2 authored by Valentin Reis's avatar Valentin Reis

Fixes a mutex error.

parent 35fd5652
......@@ -232,6 +232,7 @@ int main(int argc, char **argv)
if(useGPU)
Finalize_CUDA();
OHMMS::Controller->finalize();
qmcplusplus::qmc_common.finalize();
return 0;
}
......
......@@ -96,6 +96,7 @@ void QMCState::initialize(int argc, char **argv)
exit(1);
}
// NRM Context init
printf("Initializing the NRM context.");
nrm_init(&context, "QMCPACK");
}
......@@ -126,7 +127,8 @@ void QMCState::print_git_info_if_present(std::ostream& os)
}
///destructor
QMCState::~QMCState()
void QMCState::finalize()
//QMCState::~QMCState()
{
// NRM Close
nrm_fini(&context);
......
......@@ -56,10 +56,13 @@ struct QMCState
///constructor
QMCState();
///destructor
~QMCState();
//~QMCState();
///initialize options from the command-line
void initialize(int argc, char **argv);
///finalize
void finalize();
///print command-line options
void print_options(std::ostream& os);
/** print memory increase
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment