mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 13:45:36 -04:00
Some cleanup of libmesh control flow and file write during state_point.
This commit is contained in:
parent
dd609b4191
commit
210d99aed3
4 changed files with 16 additions and 10 deletions
|
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue