20 "Terminates the simulation when a THMControl boolean data becomes true");
22 "input",
"The name of boolean control data indicating if simulation should be terminated.");
23 params.
addParam<
bool>(
"throw_error",
false,
"Flag to throw an error on termination");
25 "Message to use if termination occurs");
32 _throw_error(getParam<bool>(
"throw_error")),
33 _termination_message(getParam<
std::string>(
"termination_message")),
34 _terminate(getControlData<bool>(
"input"))
TerminateControl(const InputParameters ¶meters)
static InputParameters validParams()
virtual void terminateSolve()
FEProblemBase & _fe_problem
const bool & _terminate
The control data that indicates if the simulation should be terminated.
const bool _throw_error
Flag to throw an error if the terminate condition is met.
static InputParameters validParams()
const std::string & _termination_message
Message to use if termination occurs.
void mooseError(Args &&... args) const
const ConsoleStream _console
This control block will terminate a run if its input indicates so.
registerMooseObject("ThermalHydraulicsApp", TerminateControl)