We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bbfa18d commit d118356Copy full SHA for d118356
1 file changed
src/mesh.cpp
@@ -51,6 +51,7 @@
51
#include "libmesh/mesh_modification.h"
52
#include "libmesh/mesh_tools.h"
53
#include "libmesh/numeric_vector.h"
54
+#include "libmesh/replicated_mesh.h"
55
#endif
56
57
#ifdef OPENMC_DAGMC_ENABLED
@@ -3435,7 +3436,7 @@ LibMesh::LibMesh(hid_t group) : UnstructuredMesh(group)
3435
3436
// create the mesh from a pointer to a libMesh Mesh
3437
LibMesh::LibMesh(libMesh::MeshBase& input_mesh, double length_multiplier)
3438
{
- if (!dynamic_cast<libMesh::ReplicatedMesh*>(&input_mesh)) {
3439
+ if (!input_mesh.is_replicated()) {
3440
fatal_error("At present LibMesh tallies require a replicated mesh. Please "
3441
"ensure 'input_mesh' is a libMesh::ReplicatedMesh.");
3442
}
0 commit comments