Skip to content

Commit d118356

Browse files
authored
Use MeshBase method to check replicated. Add header for replicated mesh (#3689)
1 parent bbfa18d commit d118356

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/mesh.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
#include "libmesh/mesh_modification.h"
5252
#include "libmesh/mesh_tools.h"
5353
#include "libmesh/numeric_vector.h"
54+
#include "libmesh/replicated_mesh.h"
5455
#endif
5556

5657
#ifdef OPENMC_DAGMC_ENABLED
@@ -3435,7 +3436,7 @@ LibMesh::LibMesh(hid_t group) : UnstructuredMesh(group)
34353436
// create the mesh from a pointer to a libMesh Mesh
34363437
LibMesh::LibMesh(libMesh::MeshBase& input_mesh, double length_multiplier)
34373438
{
3438-
if (!dynamic_cast<libMesh::ReplicatedMesh*>(&input_mesh)) {
3439+
if (!input_mesh.is_replicated()) {
34393440
fatal_error("At present LibMesh tallies require a replicated mesh. Please "
34403441
"ensure 'input_mesh' is a libMesh::ReplicatedMesh.");
34413442
}

0 commit comments

Comments
 (0)