19 : _si_moose_base(*moose_base),
21 parameters.isParamValid(
"_fe_problem_base") ?
26 parameters.getCheckedPointerParam<
ActionWarehouse *>(
"awh")->problemBase().get())
30#ifdef MOOSE_KOKKOS_ENABLED
33 : _si_moose_base(object._si_moose_base), _si_problem(object._si_problem)
39template <
bool warning>
46 "Inconsistent warning flag");
48 if constexpr (!warning)
50 solution_invalidity.
printDebug(invalid_solution_id);
51 return solution_invalidity.flagInvalidSolutionInternal(invalid_solution_id);
56 const bool warning)
const
62template void SolutionInvalidInterface::flagInvalidSolutionInternal<true>(
64template void SolutionInvalidInterface::flagInvalidSolutionInternal<false>(
unsigned int InvalidSolutionID
Storage for action instances.
Specialization of SubProblem for solving nonlinear equations plus auxiliary equations.
bool immediatelyPrintInvalidSolution() const
Whether or not the solution invalid warnings are printed out immediately.
SolutionInvalidity & solutionInvalidity()
Get the SolutionInvalidity for this app.
Base class for everything in MOOSE with a name and a type.
const std::string & type() const
Get the type of this class.
MooseApp & getMooseApp() const
Get the MooseApp this class is associated with.
An interface that allows the marking of invalid solutions during a solve.
const FEProblemBase * _si_problem
A pointer to FEProblem base.
InvalidSolutionID registerInvalidSolutionInternal(const std::string &message, const bool warning) const
SolutionInvalidInterface(const MooseBase *const moose_base, const InputParameters ¶ms)
void flagInvalidSolutionInternal(const InvalidSolutionID invalid_solution_id) const
Set solution invalid mark for the given solution ID.
const MooseBase & _si_moose_base
The MooseBase that owns this interface.
void printDebug(InvalidSolutionID _invalid_solution_id) const
Immediately print the section and message for debug purpose.
InvalidSolutionID registerInvalidity(const std::string &object_type, const std::string &message, const bool warning)
Call to register an invalid calculation.
SolutionInvalidityRegistry & getSolutionInvalidityRegistry()
Get the global SolutionInvalidityRegistry singleton.