diff --git a/palace/utils/geodata.cpp b/palace/utils/geodata.cpp index f2829e4b1..c9e24043f 100644 --- a/palace/utils/geodata.cpp +++ b/palace/utils/geodata.cpp @@ -2300,9 +2300,9 @@ std::unordered_map GetFaceToBdrElementMap(const mfem::Mesh &mesh, { int f, o, e1 = -1, e2 = -1; mesh.GetBdrElementFace(be, &f, &o); + int attr = mesh.GetBdrAttribute(be); if (!boundaries.periodic.empty()) { - int attr = mesh.GetBdrAttribute(be); for (const auto &data : boundaries.periodic) { const auto &da = data.donor_attributes, &ra = data.receiver_attributes; @@ -2317,7 +2317,9 @@ std::unordered_map GetFaceToBdrElementMap(const mfem::Mesh &mesh, } } MFEM_VERIFY((e1 >= 0 && e2 >= 0) || face_to_be.find(f) == face_to_be.end(), - "A non-periodic face (" << f << ") cannot have multiple boundary elements"); + "A non-periodic face (" + << f << ") cannot have multiple boundary elements! Attributes: " << attr + << ' ' << mesh.GetBdrAttribute(face_to_be[f])); face_to_be[f] = be; } return face_to_be;