28 "show_top_residuals", 0,
"The number of top residuals to print out (0 = no output)");
30 "show_var_residual_norms",
32 "Print the residual norms of the individual solution variables at each nonlinear iteration");
33 params.
addParam<
bool>(
"show_action_dependencies",
false,
"Print out the action dependencies");
34 params.
addParam<
bool>(
"show_actions",
false,
"Print out the actions being executed");
36 "show_parser",
false,
"Shows parser block extraction and debugging information");
38 "show_material_props",
40 "Print out the material properties supplied for each block, face, neighbor, and/or sideset");
41 params.
addParam<
bool>(
"show_mesh_meta_data",
false,
"Print out the available mesh meta data");
43 "show_reporters",
false,
"Print out information about the declared and requested Reporters");
50 "show_execution_order",
52 "Print more information about the order of execution during calculations");
55 "Add a AuxVariable named \"pid\" that shows the processors and partitioning",
56 "pid_aux is deprecated, use output_process_domains");
58 "output_process_domains",
60 "Add a AuxVariable named \"pid\" that shows the partitioning for each process");
62 "show_functors",
false,
"Whether to print information about the functors in the problem");
80 if (
_pars.
get<
bool>(
"show_material_props"))
82 const std::string
type =
"MaterialPropertyDebugOutput";
84 _problem->addOutput(
type,
"_moose_material_property_debug_output", params);
88 if (
_pars.
get<
bool>(
"show_var_residual_norms"))
90 const std::string
type =
"VariableResidualNormsDebugOutput";
92 _problem->addOutput(
type,
"_moose_variable_residual_norms_debug_output", params);
96 if (
_pars.
get<
unsigned int>(
"show_top_residuals") > 0)
98 const std::string
type =
"TopResidualDebugOutput";
100 params.
set<
unsigned int>(
"num_residuals") =
_pars.
get<
unsigned int>(
"show_top_residuals");
101 _problem->addOutput(
type,
"_moose_top_residual_debug_output", params);
105 if (getParam<bool>(
"show_mesh_meta_data"))
110 for (
auto & data : it->second.first)
111 _console <<
" " << data.name() << std::endl;
115 if (getParam<bool>(
"show_reporters"))
117 const std::string
type =
"ReporterDebugOutput";
119 _problem->addOutput(
type,
"_moose_reporter_debug_output", params);
124 _problem->setExecutionPrinting(getParam<ExecFlagEnum>(
"show_execution_order"));
127 if (getParam<bool>(
"output_process_domains") ||
131 paramError(
"output_process_domains",
"Variable with the name \"pid\" already exists");
139 params.
set<AuxVariableName>(
"variable") =
"pid";
140 _problem->addAuxKernel(
"ProcessorIDAux",
"pid_aux", params);
144 if (getParam<bool>(
"show_functors"))
145 _problem->setFunctorOutput(getParam<bool>(
"show_functors"));
const ExecFlagType EXEC_TRANSFER
const ExecFlagType EXEC_FAILED
A MultiMooseEnum object to hold "execute_on" flags.
auto getRestartableDataMapBegin()
Iterator based access to the extra RestartableDataMap objects; see Checkpoint.C for use case...
static std::string variableType(const FEType &fe_type, const bool is_fv=false, const bool is_array=false)
Determines a variable type.
ActionWarehouse & _awh
Reference to ActionWarehouse where we store object build by actions.
static const RestartableDataMapName MESH_META_DATA
virtual void act() override
Method to add objects to the simulation or perform other setup tasks.
void showActions(bool state=true)
This method sets a Boolean which is used to show information about action execution of various wareho...
InputParameters getValidParams(const std::string &name) const
Get valid parameters for the object.
void showActionDependencies(bool state=true)
This method sets a Boolean which is used to print information about action dependencies before variou...
const ExecFlagType EXEC_ALWAYS
registerMooseAction("MooseApp", SetupDebugAction, "add_output")
SetupDebugAction(const InputParameters ¶meters)
ExecFlagEnum getDefaultExecFlagEnum()
Return the default ExecFlagEnum for MOOSE.
bool isParamValid(const std::string &name) const
Test if the supplied parameter is valid.
Factory & _factory
The Factory associated with the MooseApp.
void showParser(bool state=true)
This method sets a Boolean which is used to show debugging information when actions are inserted in t...
static InputParameters validParams()
const std::string & type() const
Get the type of this class.
MooseApp & _app
The MOOSE application this is associated with.
void paramError(const std::string ¶m, Args... args) const
Emits an error prefixed with the file and line number of the given param (from the input file) along ...
bool isParamSetByUser(const std::string &nm) const
Test if the supplied parameter is set by a user, as opposed to not set or set to default.
auto getRestartableDataMapEnd()
const InputParameters & _pars
Parameters of this object, references the InputParameters stored in the InputParametersWarehouse.
std::shared_ptr< FEProblemBase > & _problem
Convenience reference to a problem this action works on.
const InputParameters & parameters() const
Get the parameters of the object.
const ConsoleStream _console
An instance of helper class to write streams to the Console objects.
static InputParameters validParams()