Skip to content

Commit

Permalink
fix bug in BoundaryElemIntegrityCheckThread (#21566)
Browse files Browse the repository at this point in the history
  • Loading branch information
yjung-anl committed Jul 12, 2022
1 parent d655d3a commit d7f77ae
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion framework/src/loops/BoundaryElemIntegrityCheckThread.C
Expand Up @@ -77,7 +77,16 @@ BoundaryElemIntegrityCheckThread::operator()(const ConstBndElemRange & range)
.queryInto(objs);
for (const auto & uo : objs)
if (uo->checkVariableBoundaryIntegrity())
boundaryIntegrityCheckError(*uo, uo->checkAllVariables(*elem), bnd_name);
{
auto leftover_vars = uo->checkAllVariables(*elem);
if (!leftover_vars.empty())
{
const Elem * const lower_d_elem = mesh.getLowerDElem(elem, side);
if (lower_d_elem)
leftover_vars = uo->checkVariables(*lower_d_elem, leftover_vars);
}
boundaryIntegrityCheckError(*uo, leftover_vars, bnd_name);
}

auto check = [elem, boundary_id, &bnd_name, tid, &mesh, side](const auto & warehouse)
{
Expand Down

0 comments on commit d7f77ae

Please sign in to comment.