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 20, 2023
1 parent d62f431 commit fc53c28
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 fc53c28

Please sign in to comment.