24 virtual void execute()
override;
57 const T & val = getReporterValueByName<T>(rname);
58 std::vector<T> & acc_val =
70 virtual void accumulate(
unsigned int index) = 0;
std::vector< T > & _acc_val
virtual void finalize() override
Finalize.
virtual void declareLateValues() override
Method that can be overriden to declare "late" Reporter values.
Reporter object that has a single execution of the "execute" method for for each execute flag...
const ReporterMode REPORTER_MODE_UNSET
const ReporterMode REPORTER_MODE_ROOT
static InputParameters validParams()
AccumulatedValue(const T &val, std::vector< T > &acc_val)
const ReporterData & getReporterData() const
Provides const access the ReporterData object.
virtual void execute() override
Execute method.
virtual void initialize() override
Called before execute() is ever called so that data can be cleared.
const ReporterMode REPORTER_MODE_DISTRIBUTED
const std::string & getObjectName() const
Return the object name that produces the Reporter value.
const ReporterProducerEnum & getReporterMode(const ReporterName &reporter_name) const
Return the ReporterProducerEnum for an existing ReporterValue.
FEProblemBase & _fe_problem
Reference to the FEProblemBase for this user object.
virtual void accumulate(unsigned int index)=0
virtual ~AccumulatedValueBase()=default
const InputParameters & parameters() const
Get the parameters of the object.
bool hasReporterValue(const ReporterName &reporter_name) const
Return True if a Reporter value with the given type and name have been created.
AccumulateReporter(const InputParameters ¶meters)
const ReporterMode REPORTER_MODE_REPLICATED
std::vector< std::unique_ptr< AccumulatedValueBase > > _accumulated_values
Vector of accumulated value objects.
const std::string & getValueName() const
Return the data name for the Reporter value.
virtual void accumulate(unsigned int index) override
MooseEnumItem that automatically creates the ID and doesn't allow the ID to be assigned.
The Reporter system is comprised of objects that can contain any number of data values.
bool declareAccumulateHelper(const ReporterName &rname)
Helper for declaring an accumulative reporter value This will fill in _accumulated_values if the repo...
This is a helper class for managing the storage of declared Reporter object values.