Skip to content

Commit

Permalink
Fix unneeded const_cast after #151
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastiangrimberg committed Dec 21, 2023
1 parent 43e4b36 commit c586bab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion palace/utils/geodata.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ ElementTypeInfo CheckElements(const mfem::Mesh &mesh)
{
// MeshGenerator is reduced over the communicator. This checks for geometries on any
// processor.
auto meshgen = const_cast<mfem::Mesh &>(mesh).MeshGenerator();
auto meshgen = mesh.MeshGenerator();
return {bool(meshgen & 1), bool(meshgen & 2), bool(meshgen & 4), bool(meshgen & 8)};
}

Expand Down

0 comments on commit c586bab

Please sign in to comment.