Loading [MathJax]/extensions/tex2jax.js
https://mooseframework.inl.gov
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
Classes | Functions
BoundaryElemIntegrityCheckThread.h File Reference

Go to the source code of this file.

Classes

class  MooseObjectTagWarehouse< T >
 A storage container for MooseObjects that inherit from SetupInterface. More...
 
class  ExecuteMooseObjectWarehouse< T >
 A class for storing MooseObjects based on execution flag. More...
 
class  BoundaryElemIntegrityCheckThread
 

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. More...
 

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.

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

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 }
std::string name(const ElemQuality q)
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application...
Definition: MooseError.h:302
std::string join(const T &strings, const std::string &delimiter)
Python like join function for strings.
Definition: MooseUtils.h:142