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"))
static MooseEnum dataTypeEnum()
DataType in a MooseEnum for use in InputParameters in objects that query the PerfGraph with sectionDa...
Real sectionData(const DataType type, const std::string §ion_name, const bool must_exist=true)
Gets a PerfGraph result pertaining to a section.
virtual Real getValue() const override
This will get called to actually grab the final value the postprocessor has calculated.
This class is here to combine the Postprocessor interface and the base class Postprocessor object alo...
static InputParameters validParams()
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...
Real _current_data
The current data.
This is a "smart" enum class intended to replace many of the shortcomings in the C++ enum type It sho...
const int _data_type
The data type to request in regards to the PerfGraph section.
PerfGraphData(const InputParameters ¶meters)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
FEProblemBase & _fe_problem
Reference to the FEProblemBase for this user object.
PerfGraph & perfGraph()
Get the PerfGraph.
const bool _must_exist
Whether or not the section must exist (if it does not, 0 is returned)
bool checkingUOAuxState() const
Return a flag to indicate whether we are executing user objects and auxliary kernels for state check ...
const std::string & _section_name
The section name in the PerfGraph to query.
registerMooseObject("MooseApp", PerfGraphData)