https://mooseframework.inl.gov
Loading...
Searching...
No Matches
Functions
BoundaryElemIntegrityCheckThread.C File Reference

Go to the source code of this file.

Functions

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 the variables container is non-empty.
 

Function Documentation

◆ boundaryIntegrityCheckError()

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 the variables container is non-empty.

Definition at line 135 of file BoundaryElemIntegrityCheckThread.C.

138{
139 if (variables.empty())
140 return;
141
142 std::vector<std::string> names;
143 names.reserve(variables.size());
144 for (const auto * const var : variables)
145 names.push_back(var->name());
146
147 mooseError("'",
148 object.name(),
149 "' of type '",
150 object.type(),
151 "' depends on variable(s) '",
152 MooseUtils::join(names, ","),
153 "'. However, that variable does not appear to be defined on (all of) boundary '",
154 boundary_name,
155 "'.");
156}
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application.
Definition MooseError.h:311
std::string name(const ElemQuality q)

Referenced by BoundaryNodeIntegrityCheckThread::onNode(), and BoundaryElemIntegrityCheckThread::operator()().