mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-09-05 04:40:19 -05:00
Use Uniform Initialization
Avoids "most vexing parse" for non-MPI builds.
This commit is contained in:
@@ -40,9 +40,9 @@ int main(int argc, char** argv)
|
||||
}
|
||||
|
||||
#if HAVE_MPI
|
||||
Opm::Parallel::Communication comm(MPI_COMM_SELF);
|
||||
Opm::Parallel::Communication comm{MPI_COMM_SELF};
|
||||
#else
|
||||
Opm::Parallel::Communication comm();
|
||||
Opm::Parallel::Communication comm{};
|
||||
#endif
|
||||
|
||||
Dune::MPIHelper::instance(argc, argv);
|
||||
|
||||
Reference in New Issue
Block a user