19 "Retrieves performance information about a section from the PerfGraph.");
21 params.
addRequiredParam<std::string>(
"section_name",
"The name of the section to get data for");
26 "Whether or not the section must exist; if false and the section does not "
27 "exist, the value is set to zero");
34 _data_type(getParam<
MooseEnum>(
"data_type")),
35 _section_name(getParam<
std::string>(
"section_name")),
36 _must_exist(getParam<bool>(
"must_exist"))
registerMooseObject("MooseApp", PerfGraphData)
bool checkingUOAuxState() const
Return a flag to indicate whether we are executing user objects and auxliary kernels for state check ...
This class is here to combine the Postprocessor interface and the base class Postprocessor object alo...
static InputParameters validParams()
This is a "smart" enum class intended to replace many of the shortcomings in the C++ enum type It sho...
Real _current_data
The current data.
PerfGraphData(const InputParameters ¶meters)
virtual Real getValue() const override
This will get called to actually grab the final value the postprocessor has calculated.
const std::string & _section_name
The section name in the PerfGraph to query.
const int _data_type
The data type to request in regards to the PerfGraph section.
const bool _must_exist
Whether or not the section must exist (if it does not, 0 is returned)
static InputParameters validParams()
virtual void finalize() override
This is called after execute() and after threadJoin()! This is probably where you want to do MPI comm...
PerfGraph & perfGraph()
Get the PerfGraph.
DataType
For retrieving values.
Real sectionData(const DataType type, const std::string §ion_name, const bool must_exist=true)
Gets a PerfGraph result pertaining to a section.
static MooseEnum dataTypeEnum()
DataType in a MooseEnum for use in InputParameters in objects that query the PerfGraph with sectionDa...
FEProblemBase & _fe_problem
Reference to the FEProblemBase for this user object.