30 virtual void act()
override;
37 void load(
const T &
object);
51 static_assert(std::is_base_of<RestartableModelInterface, T>::value,
52 "You must derive from RestartableModelInterface to use this action");
55 std::vector<T *> objects;
58 _app.theWarehouse().query().template condition<AttribSystem>(attribute_name).queryInto(objects);
59 for (
auto object_ptr : objects)
60 if (object_ptr->hasModelData())
70 _app, _app.getRestartableDataMap(
object.modelMetaDataName()), _app.forceRestart());
71 reader.setErrorOnLoadWithDifferentNumberOfProcessors(
false);
74 const std::string filename =
object.getModelDataFileName();
77 reader.setInput(filename);
82 paramError(
"filename",
"The supplied file '", filename,
"' failed to load.");
virtual void act() override
LoadModelDataAction(const InputParameters ¶ms)
static InputParameters validParams()
void load(const T &object)
Load the necessary information for the given model.
static InputParameters validParams()
InputParameters validParams()
Action for loading the model data for the mapping objects.