21 : _ri_params(moose_object->parameters()),
22 _ri_fe_problem_base(*_ri_params.getCheckedPointerParam<
FEProblemBase *>(
"_fe_problem_base")),
23 _ri_reporter_data(_ri_fe_problem_base.getReporterData()),
24 _ri_moose_object(*moose_object)
28#ifdef MOOSE_KOKKOS_ENABLED
31 : _ri_params(object._ri_params),
32 _ri_fe_problem_base(object._ri_fe_problem_base),
33 _ri_reporter_data(object._ri_reporter_data),
34 _ri_moose_object(object._ri_moose_object)
44 "Cannot call hasReporterValue() until all Reporters have been constructed.");
54 "Cannot call hasReporterValueByName() until all Reporters have been constructed.");
64 "Cannot call getReporterContextBaseByName() until all Reporters have been constructed.");
74 "When getting a Reporter, failed to get a parameter with the name \"",
77 "\n\nKnown parameters:\n",
87 "\" is not an expected type for getting a Reporter.\n\n",
88 "The expected type is \"ReporterName\".");
bool isTaskComplete(const std::string &task) const
Specialization of SubProblem for solving nonlinear equations plus auxiliary equations.
ActionWarehouse & actionWarehouse()
Return a writable reference to the ActionWarehouse associated with this app.
const InputParameters & parameters() const
Get the parameters of the object.
void mooseError(Args &&... args) const
Emits an error prefixed with object name and type and optionally a file path to the top-level block p...
MooseApp & getMooseApp() const
Get the MooseApp this class is associated with.
Every object that can be built by the factory should be derived from this class.
This is a helper class to aid with parallel communication of compute Reporter values as well as provi...
const ReporterContextBase & getReporterContextBase(const ReporterName &reporter_name) const
bool hasReporterValue(const ReporterName &reporter_name) const
Return True if a Reporter value with the given type and name have been created.
Interface to allow object to consume Reporter values.
const ReporterName & getReporterName(const std::string ¶m_name) const
bool reportersAdded() const
const InputParameters & _ri_params
Parameters for the MooseObject inherting from this interface.
const MooseObject & _ri_moose_object
The MooseObject needing this interface.
static InputParameters validParams()
const ReporterData & _ri_reporter_data
The ReporterData.
bool hasReporterValueByName(const ReporterName &reporter_name) const
bool hasReporterValue(const std::string ¶m_name) const
Return True if the Reporter value exists.
FEProblemBase & _ri_fe_problem_base
Provides access to FEProblemBase::getReporterData.
ReporterInterface(const MooseObject *moose_object)
const ReporterContextBase & getReporterContextBaseByName(const ReporterName &reporter_name) const
Get the reporter context to allow non-typed operations with the data.
The Reporter system is comprised of objects that can contain any number of data values.