20 params.
addParam<std::vector<VariableName>>(
"variables",
21 "The names of the variables which need a mapping.");
28 _variable_names(isParamValid(
"filename")
29 ? getModelData<
std::vector<VariableName>>(
"variables")
30 : declareModelData<
std::vector<VariableName>>(
31 "variables", getParam<
std::vector<VariableName>>(
"variables"))),
32 _mapping_ready_to_use(declareModelData<
std::map<VariableName, bool>>(
"mapping_ready_to_use"))
41 "The mapping for variable " + vname +
"is not ready to use!");
VariableMappingBase(const InputParameters ¶meters)
std::map< VariableName, bool > & _mapping_ready_to_use
Bool to decide if we already have the mapping built or not to make sure it is not computed multiple t...
void checkIfReadyToUse(const VariableName &libmesh_dbg_var(vname)) const
Check if we have a mapping for the variable and if it is ready to be used.
static InputParameters validParams()
static InputParameters validParams()
static InputParameters validParams()
An interface class which manages the model data save and load functionalities from moose objects (suc...