33 "initial_from_file_timestep",
35 "Gives the timestep (or \"LATEST\") for which to read a solution from a file "
36 "for a given variable. (Default: LATEST)");
38 "initial_from_file_var",
39 "Gives the name of a variable for which to read an initial condition from a mesh file");
65 system = &
_problem->getSolverSystem(0);
66 for (
unsigned int i = 0; i <
_problem->numSolverSystems(); i++)
68 system = &
_problem->getSolverSystem(i);
71 system = &
_problem->getAuxiliarySystem();
74 getParam<std::string>(
"initial_from_file_var"),
75 getParam<std::string>(
"initial_from_file_timestep"));
registerMooseAction("MooseApp", CopyNodalVarsAction, "check_copy_nodal_vars")
static InputParameters validParams()
MooseApp & _app
The MOOSE application this is associated with.
std::shared_ptr< FEProblemBase > & _problem
Convenience reference to a problem this action works on.
const std::string & _current_task
The current action (even though we have separate instances for each action)
static InputParameters validParams()
virtual void act() override
Method to add objects to the simulation or perform other setup tasks.
CopyNodalVarsAction(const InputParameters ¶ms)
void setExodusFileRestart(bool flag)
Set the flag to indicate whether or not we need to use a separate Exodus reader to read the mesh BEFO...
const std::string & name() const
Get the name of the class.
bool isParamValid(const std::string &name) const
Test if the supplied parameter is valid.
Base class for a system (of equations)
virtual void addVariableToCopy(const std::string &dest_name, const std::string &source_name, const std::string ×tep)
Add info about variable that will be copied.