19 : _si_moose_base(*moose_base),
21 parameters.isParamValid(
"_fe_problem_base") ?
30 #ifdef MOOSE_KOKKOS_ENABLED 33 : _si_moose_base(object._si_moose_base), _si_problem(object._si_problem)
39 template <
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 62 template void SolutionInvalidInterface::flagInvalidSolutionInternal<true>(
64 template void SolutionInvalidInterface::flagInvalidSolutionInternal<false>(
const FEProblemBase * _si_problem
A pointer to FEProblem base.
Base class for everything in MOOSE with a name and a type.
unsigned int InvalidSolutionID
T * get(const std::unique_ptr< T > &u)
The MooseUtils::get() specializations are used to support making forwards-compatible code changes fro...
void printDebug(InvalidSolutionID _invalid_solution_id) const
Immediately print the section and message for debug purpose.
Storage for action instances.
InvalidSolutionID registerInvalidity(const std::string &object_type, const std::string &message, const bool warning)
Call to register an invalid calculation.
Specialization of SubProblem for solving nonlinear equations plus auxiliary equations.
MooseApp & getMooseApp() const
Get the MooseApp this class is associated with.
InvalidSolutionID registerInvalidSolutionInternal(const std::string &message, const bool warning) const
An interface that allows the marking of invalid solutions during a solve.
SolutionInvalidity & solutionInvalidity()
Get the SolutionInvalidity for this app.
const std::string & type() const
Get the type of this class.
SolutionInvalidityRegistry & getSolutionInvalidityRegistry()
Get the global SolutionInvalidityRegistry singleton.
void flagInvalidSolutionInternal(const InvalidSolutionID invalid_solution_id) const
Set solution invalid mark for the given solution ID.
SolutionInvalidInterface(const MooseBase *const moose_base, const InputParameters ¶ms)
bool immediatelyPrintInvalidSolution() const
Whether or not the solution invalid warnings are printed out immediately.
const MooseBase & _si_moose_base
The MooseBase that owns this interface.