Updates to get the timing of variable addition and score setting right for libmesh.

This commit is contained in:
Patrick Shriwise 2020-04-10 17:17:45 -05:00
parent d00dd061ca
commit 7323ae526f
6 changed files with 41 additions and 30 deletions

View file

@ -67,12 +67,8 @@ int openmc_init(int argc, char* argv[], const void* intracomm)
int n_threads = 1;
#endif
// initialize libmesh
#ifdef OPENMC_MPI
if (!settings::LMI) settings::LMI = std::make_unique<libMesh::LibMeshInit>(argc, argv, mpi::intracomm, n_threads);
#else
if (!settings::LMI) settings::LMI = std::make_unique<libMesh::LibMeshInit>(argc, argv, n_threads);
#endif
// initialize libmesh
if (!settings::LMI) settings::LMI = std::make_unique<libMesh::LibMeshInit>(argc, argv, n_threads);
#endif