43 const auto tid = puid.
id;
45 for (
const auto & belem : range)
47 const Elem * elem = belem->_elem;
48 const auto boundary_id = belem->_bnd_id;
49 const auto side = belem->_side;
57 const auto & bnd_name =
mesh.getBoundaryName(boundary_id);
60 std::vector<SideUserObject *> objs;
66 for (
const auto & uo : objs)
67 if (uo->checkVariableBoundaryIntegrity())
69 auto leftover_vars = uo->checkAllVariables(*elem);
70 if (!leftover_vars.empty())
72 const auto neighbor = elem->neighbor_ptr(side);
73 const bool upwind_elem = !neighbor || elem->id() < neighbor->id();
74 const Elem * lower_d_elem =
75 upwind_elem ?
mesh.getLowerDElem(elem, side)
76 :
mesh.getLowerDElem(neighbor, neighbor->which_neighbor_am_i(elem));
78 leftover_vars = uo->checkVariables(*lower_d_elem, leftover_vars);
83 auto check = [elem, &bnd_name, &
mesh, side](
const auto & bnd_objects)
85 for (
const auto & bnd_object : bnd_objects)
88 if (!bnd_object->requiresGeometricSearch() && bnd_object->checkVariableBoundaryIntegrity())
91 auto leftover_vars = bnd_object->checkAllVariables(*elem);
92 if (!leftover_vars.empty())
94 const auto neighbor = elem->neighbor_ptr(side);
95 const bool upwind_elem = !neighbor || elem->id() < neighbor->id();
96 const Elem * lower_d_elem =
97 upwind_elem ?
mesh.getLowerDElem(elem, side)
98 :
mesh.getLowerDElem(neighbor, neighbor->which_neighbor_am_i(elem));
100 leftover_vars = bnd_object->checkVariables(*lower_d_elem, leftover_vars);
110 std::vector<AuxKernelBase *> auxkernels;
114 .condition<AttribThread>(tid)
116 .condition<AttribBoundaries>(boundary_id,
true)
117 .queryInto(auxkernels);
123 if (warehouse.hasBoundaryObjects(boundary_id, tid))
124 check(warehouse.getBoundaryObjects(boundary_id, tid));
136 const std::set<MooseVariableFieldBase *> & variables,
137 const BoundaryName & boundary_name)
139 if (variables.empty())
142 std::vector<std::string> names;
143 names.reserve(variables.size());
144 for (
const auto *
const var : variables)
145 names.push_back(var->name());
151 "' depends on variable(s) '",
152 MooseUtils::join(names,
","),
153 "'. However, that variable does not appear to be defined on (all of) boundary '",
void boundaryIntegrityCheckError(const MooseObject &object, const std::set< MooseVariableFieldBase * > &variables, const BoundaryName &boundary_name)
Compose boundary restricted error message for the provided object, variables, and boundary_name if th...
void boundaryIntegrityCheckError(const MooseObject &object, const std::set< MooseVariableFieldBase * > &variables, const BoundaryName &boundary_name)
Compose boundary restricted error message for the provided object, variables, and boundary_name if th...