31 "show_top_residuals", 0,
"The number of top residuals to print out (0 = no output)");
33 "show_var_residual_norms",
35 "Print the residual norms of the individual solution variables at each nonlinear iteration");
36 params.
addParam<
bool>(
"show_action_dependencies",
false,
"Print out the action dependencies");
37 params.
addParam<
bool>(
"show_actions",
false,
"Print out the actions being executed");
39 "show_parser",
false,
"Shows parser block extraction and debugging information");
41 "show_material_props",
43 "Print out the material properties supplied for each block, face, neighbor, and/or sideset");
44 params.
addParam<
bool>(
"show_controllable",
46 "Print out the controllable parameters from all input parameters");
47 params.
addParam<
bool>(
"show_mesh_meta_data",
false,
"Print out the available mesh meta data");
49 "show_reporters",
false,
"Print out information about the declared and requested Reporters");
51 "show_mesh_generators",
false,
"Print out the mesh generators being executed");
58 "show_execution_order",
60 "Print more information about the order of execution during calculations");
63 "Add a AuxVariable named \"pid\" that shows the processors and partitioning",
64 "pid_aux is deprecated, use output_process_domains");
66 "output_process_domains",
68 "Add a AuxVariable named \"pid\" that shows the partitioning for each process");
70 "show_functors",
false,
"Whether to print information about the functors in the problem");
72 "show_block_restriction",
74 "Print out active objects like variables supplied for each block.");
93 if (
_pars.
get<
bool>(
"show_material_props"))
95 const std::string
type =
"MaterialPropertyDebugOutput";
97 _problem->addOutput(
type,
"_moose_material_property_debug_output", params);
101 if (
_pars.
get<
bool>(
"show_var_residual_norms"))
103 const std::string
type =
"VariableResidualNormsDebugOutput";
106 for (
const auto & sys_name :
_problem->getNonlinearSystemNames())
108 params.set<NonlinearSystemName>(
"nl_sys") = sys_name;
109 _problem->addOutput(
type,
"_moose_variable_residual_norms_debug_output_" + sys_name, params);
114 if (
_pars.
get<
unsigned int>(
"show_top_residuals") > 0)
116 const std::string
type =
"TopResidualDebugOutput";
118 params.set<
unsigned int>(
"num_residuals") =
_pars.
get<
unsigned int>(
"show_top_residuals");
119 _problem->addOutput(
type,
"_moose_top_residual_debug_output", params);
123 if (getParam<bool>(
"show_mesh_meta_data"))
128 for (
auto & data : it->second.first)
129 _console <<
" " << data.name() << std::endl;
133 if (getParam<bool>(
"show_reporters"))
135 const std::string
type =
"ReporterDebugOutput";
137 _problem->addOutput(
type,
"_moose_reporter_debug_output", params);
142 _problem->setExecutionPrinting(getParam<ExecFlagEnum>(
"show_execution_order"));
145 if (getParam<bool>(
"output_process_domains") ||
149 paramError(
"output_process_domains",
"Variable with the name \"pid\" already exists");
157 params.
set<AuxVariableName>(
"variable") =
"pid";
159 _problem->addAuxKernel(
"ProcessorIDAux",
"pid_aux", params);
163 if (getParam<bool>(
"show_functors"))
164 _problem->setFunctorOutput(getParam<bool>(
"show_functors"));
169 if (block_restriction_scope.
isValid() && !block_restriction_scope.
contains(
"none"))
171 const std::string
type =
"BlockRestrictionDebugOutput";
174 _problem->addOutput(
type,
"_moose_block_restriction_debug_output", params);
178 if (getParam<bool>(
"show_controllable"))
180 const std::string
type =
"ControlOutput";
182 _problem->addOutput(
type,
"_moose_controllable_debug_output", params);
const ExecFlagType EXEC_TRANSFER
const ExecFlagType EXEC_FAILED
A MultiMooseEnum object to hold "execute_on" flags.
void setVerbose(const bool verbose)
Set the verbose flag.
auto getRestartableDataMapBegin()
Iterator based access to the extra RestartableDataMap objects; see Checkpoint.C for use case...
ActionWarehouse & _awh
Reference to ActionWarehouse where we store object build by actions.
static const RestartableDataMapName MESH_META_DATA
virtual bool isValid() const override
IsValid.
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...
void showActionDependencies(bool state=true)
This method sets a Boolean which is used to print information about action dependencies before variou...
The following methods are specializations for using the libMesh::Parallel::packed_range_* routines fo...
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.
bool contains(const std::string &value) const
Methods for seeing if a value is set in the MultiMooseEnum.
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 ExecFlagType EXEC_TIMESTEP_BEGIN
const std::string & type() const
Get the type of this class.
static std::string variableType(const libMesh::FEType &fe_type, const bool is_fv=false, const bool is_array=false)
Determines a variable type.
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()
static MultiMooseEnum getScopes(std::string default_scopes="")
Get the supported scopes of output (e.g., variables, etc.)
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.
This is a "smart" enum class intended to replace many of the shortcomings in the C++ enum type...
MeshGeneratorSystem & getMeshGeneratorSystem()
Gets the system that manages the MeshGenerators.
static InputParameters validParams()
const ExecFlagType EXEC_INITIAL