Apply @paulromano's suggestions from code review

Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
This commit is contained in:
Patrick Shriwise 2021-04-07 17:36:02 -05:00
parent f673a8dad2
commit 1262bcde7d
4 changed files with 17 additions and 22 deletions

View file

@ -69,8 +69,7 @@ int openmc_init(int argc, char* argv[], const void* intracomm)
// initialize libMesh if it hasn't been initialized already
// (if initialized externally, the libmesh_init object needs to be provided also)
if (!settings::libmesh_init && !libMesh::initialized())
{
if (!settings::libmesh_init && !libMesh::initialized()) {
#ifdef OPENMC_MPI
// pass command line args, empty MPI communicator, and number of threads.
// Because libMesh was not initialized, we assume that OpenMC is the primary