mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 13:45:36 -04:00
std::make_unique -> make_unique
This commit is contained in:
parent
898165b720
commit
50d0430496
20 changed files with 87 additions and 99 deletions
|
|
@ -74,10 +74,12 @@ if (!settings::libmesh_init && !libMesh::initialized()) {
|
|||
// pass command line args, empty MPI communicator, and number of threads.
|
||||
// Because libMesh was not initialized, we assume that OpenMC is the primary
|
||||
// application and that its main MPI comm should be used.
|
||||
settings::libmesh_init = std::make_unique<libMesh::LibMeshInit>(argc, argv, comm, n_threads);
|
||||
settings::libmesh_init =
|
||||
make_unique<libMesh::LibMeshInit>(argc, argv, comm, n_threads);
|
||||
#else
|
||||
// pass command line args, empty MPI communicator, and number of threads
|
||||
settings::libmesh_init = std::make_unique<libMesh::LibMeshInit>(argc, argv, 0, n_threads);
|
||||
settings::libmesh_init =
|
||||
make_unique<libMesh::LibMeshInit>(argc, argv, 0, n_threads);
|
||||
#endif
|
||||
|
||||
settings::libmesh_comm = &(settings::libmesh_init->comm());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue