Apply suggestions from code review

Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
This commit is contained in:
Patrick Shriwise 2021-01-05 22:20:19 -06:00
parent 8fa814d142
commit 9eb53a1af9
5 changed files with 10 additions and 13 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 LMI object needs to be provided also)
if (!settings::LMI && !libMesh::initialized())
{
if (!settings::LMI && !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