Some cleanup of libmesh control flow and file write during state_point.

This commit is contained in:
Patrick Shriwise 2020-04-28 00:11:06 -05:00
parent dd609b4191
commit 210d99aed3
4 changed files with 16 additions and 10 deletions

View file

@ -70,7 +70,11 @@ int openmc_init(int argc, char* argv[], const void* intracomm)
// initialize libmesh
if (!settings::LMI && !libMesh::initialized())
{
#ifdef OPENMC_MPI
settings::LMI = std::make_unique<libMesh::LibMeshInit>(argc, argv, n_threads, comm);
#else
settings::LMI = std::make_unique<libMesh::LibMeshInit>(argc, argv, n_threads);
#endif
settings::libmesh_comm = &(settings::LMI->comm());
}