mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 21:55:41 -04:00
A couple more changes for robustness.
This commit is contained in:
parent
fd00bd94b2
commit
f673a8dad2
1 changed files with 4 additions and 1 deletions
|
|
@ -60,7 +60,7 @@ std::vector<std::unique_ptr<Mesh>> meshes;
|
|||
#ifdef LIBMESH
|
||||
namespace settings {
|
||||
std::unique_ptr<libMesh::LibMeshInit> libmesh_init;
|
||||
const libMesh::Parallel::Communicator* libmesh_comm;
|
||||
const libMesh::Parallel::Communicator* libmesh_comm {nullptr};
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
@ -2155,6 +2155,9 @@ void LibMesh::initialize()
|
|||
fatal_error("Attempting to use an unstructured mesh without a libMesh communicator.");
|
||||
}
|
||||
|
||||
// assuming that unstructured meshes used in OpenMC are 3D
|
||||
n_dimension_ = 3;
|
||||
|
||||
m_ = std::make_unique<libMesh::Mesh>(*settings::libmesh_comm, n_dimension_);
|
||||
m_->read(filename_);
|
||||
m_->prepare_for_use();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue