24 : _rti_transfer(*transfer)
44 unsigned int time_index)
59 unsigned int time_index)
75 unsigned int time_index)
118 const std::string & type,
124 else if (type ==
"integer")
126 else if (type ==
"real")
128 else if (type ==
"string")
158 const std::string & type,
165 else if (type ==
"integer")
168 else if (type ==
"real")
171 else if (type ==
"string")
203 std::vector<ReporterName>
205 const std::string & obj_name,
206 const std::vector<ReporterName> & rep_names)
210 std::vector<ReporterName> rnames;
211 rnames.reserve(rep_names.size());
212 for (
const auto & rn : rep_names)
213 rnames.emplace_back(obj_name, prefix + rn.getObjectName() +
":" + rn.getValueName());
226 "\" was not found.");
void declareVectorClone(const ReporterName &from_reporter, const ReporterName &to_reporter, const FEProblemBase &from_problem, FEProblemBase &to_problem, const ReporterMode &mode)
std::string name(const ElemQuality q)
void transferFromVectorReporter(const ReporterName &from_reporter, const ReporterName &to_reporter, const FEProblemBase &from_problem, FEProblemBase &to_problem, dof_id_type index, unsigned int time_index=0)
void clearVectorReporter(const ReporterName &name, FEProblemBase &problem)
T & getUserObject(const std::string &name, unsigned int tid=0) const
Get the user object by its name.
virtual void declareVectorClone(ReporterData &r_data, const ReporterName &r_name, const ReporterMode &mode, const MooseObject &producer) const =0
Helper for declaring new vector reporter values based on this context.
void addReporterTransferMode(const ReporterName &name, const ReporterMode &mode, FEProblemBase &problem)
const ReporterStateBase & getReporterStateBase(const ReporterName &reporter_name) const
The ReporterStateBase associated with the Reporter with name reporter_name.
T & declareReporterValue(const ReporterName &reporter_name, const ReporterMode &mode, const MooseObject &producer, Args &&... args)
Method for returning a writable reference to the current Reporter value.
This context is specific for vector types of reporters, mainly for declaring a vector of the type fro...
virtual void transferFromVector(ReporterData &r_data, const ReporterName &r_name, dof_id_type index, unsigned int time_index=0) const =0
Helper for enabling generic transfer of a vector Reporter of values to a single value.
virtual void declareClone(ReporterData &r_data, const ReporterName &r_name, const ReporterMode &mode, const MooseObject &producer) const =0
Helper for declaring new reporter values based on this context.
void checkHasReporterValue(const ReporterName &reporter, const FEProblemBase &problem) const
Checks if the problem problem has a Reporter value with the name reporter.
bool hasUserObject(const std::string &name) const
Check if there if a user object of given name.
virtual void clear()=0
Helper for clearing vector data.
Reporter objects allow for the declaration of arbitrary data types that are aggregate values for a si...
Specialization of SubProblem for solving nonlinear equations plus auxiliary equations.
virtual const std::string & name() const
Get the name of the class.
void addConsumer(ReporterMode mode, const MooseObject &moose_object)
Add a consumer for this ReporterState.
MooseApp & getMooseApp() const
Get the MooseApp this class is associated with.
const std::string getCombinedName() const
Return the name of the object and data as object_name/data_name.
void resizeReporter(const ReporterName &name, FEProblemBase &problem, dof_id_type n)
virtual void transferToVector(ReporterData &r_data, const ReporterName &r_name, dof_id_type index, unsigned int time_index=0) const =0
Helper for enabling generic transfer of Reporter values to a vector.
const ReporterData & getReporterData() const
Provides const access the ReporterData object.
void declareClone(const ReporterName &from_reporter, const ReporterName &to_reporter, const FEProblemBase &from_problem, FEProblemBase &to_problem, const ReporterMode &mode)
void transferReporter(const ReporterName &from_reporter, const ReporterName &to_reporter, const FEProblemBase &from_problem, FEProblemBase &to_problem, unsigned int time_index=0)
virtual void resize(dof_id_type local_size)=0
Helper for resizing vector data.
void buildOutputHideVariableList(std::set< std::string > variable_names)
Builds hide lists for output objects NOT listed in the 'outputs' parameter.
const std::string & getObjectName() const
Return the object name that produces the Reporter value.
void hideVariableHelper(const ReporterName &reporter, FEProblemBase &problem)
Helper for hiding the variables in the problem problem if the Reporter with name reporter is associat...
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
virtual void transfer(ReporterData &r_data, const ReporterName &r_name, unsigned int time_index=0) const =0
Helper for enabling generic transfer of Reporter values.
void sumVectorReporter(const ReporterName &name, FEProblemBase &problem)
virtual void vectorSum()=0
Helper for summing reporter value.
ReporterTransferInterface(const Transfer *transfer)
void mooseError(Args &&... args) const
Emits an error prefixed with object name and type.
bool hasReporterValue(const ReporterName &reporter_name) const
Return True if a Reporter value with the given type and name have been created.
void transferToVectorReporter(const ReporterName &from_reporter, const ReporterName &to_reporter, const FEProblemBase &from_problem, FEProblemBase &to_problem, dof_id_type index, unsigned int time_index=0)
static InputParameters validParams()
MooseEnumItem that automatically creates the ID and doesn't allow the ID to be assigned.
std::vector< ReporterName > getReporterNamesHelper(std::string prefix, const std::string &obj_name, const std::vector< ReporterName > &rep_names)
void ErrorVector unsigned int
Base class for user-specific data.
The Reporter system is comprised of objects that can contain any number of data values.
const Transfer & _rti_transfer
The Transfer that this interface is associated with.
Base class for all Transfer objects.
const ReporterContextBase & getReporterContextBase(const ReporterName &reporter_name) const
This is a helper class for managing the storage of declared Reporter object values.