52 virtual void output()
override;
59 virtual std::string
filename()
override;
77 outputNorm(
const Real & old_norm,
const Real & norm,
const unsigned int precision = 6);
86 "accessing console system information flags is not allowed after console initial setup");
129 mooseError(
"Can't currently output VectorPostprocessors to the screen");
154 void write(std::string message,
bool indent =
true);
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application.
An output object for writing to the console (screen)
bool _allow_changing_sysinfo_flag
A boolean for protecting _system_info_flags from being changed undesirably.
virtual void outputVectorPostprocessors() override
Not implemented.
virtual void outputPostprocessors() override
Prints the postprocessor table to the screen.
const bool _write_all_procs_to_files
Whether to write all processors to files.
TimeFormatEnum
Time formatting options.
unsigned int _max_rows
The max number of table rows.
bool _libmesh_log
Control the display libMesh performance log.
Real _old_linear_norm
Storage for the old linear residual (needed for color output and only when used when printing to the ...
bool _write_file
Flag for controlling outputting console information to a file.
virtual ~Console()
Destructor.
bool _scientific_time
Toggle for outputting time in time and dt in scientific notation.
TimeFormatEnum & timeFormat()
A reference to the time format to allow callers to set a new format for this console object.
MultiMooseEnum & systemInfoFlags()
Return system information flags.
MultiMooseEnum _system_info_flags
Flags for controlling the what simulations information is shown.
void writeTimestepInformation(bool output_dt)
Prints the time step information for the screen output.
virtual void timestepSetup() override
Gets called at the beginning of the timestep before this object is asked to do its job.
void mooseConsole(const std::string &message)
Add a message to the output streams.
bool _all_variable_norms
Flag for writing all variable norms.
void write(std::string message, bool indent=true)
Write message to screen and/or file.
static InputParameters validParams()
unsigned int _precision
Number of significant digits.
std::vector< Real > _outlier_multiplier
Multipliers for coloring variable residual norms (default [2, 0.8])
void meshChanged() override
Performs console related printing when the mesh is changed.
bool _perf_log
State for all performance logging.
TimeFormatEnum _time_format
Time format.
virtual void outputInput() override
Print the input file at the beginning of the simulation.
virtual void outputScalarVariables() override
Prints the aux scalar variables table to the screen.
bool _write_screen
Flag for controlling outputting console information to screen.
std::stringstream _file_output_stream
Stream for storing information to be written to a file.
bool _verbose
Flag for writing detailed time step information.
bool _outlier_variable_norms
Flag for writing outlier variable norms.
bool _last_message_ended_in_newline
unsigned int _perf_log_interval
The interval at which the performance log is printed.
std::string formatTime(const Real t) const
A help function to format a time.
virtual void initialSetup() override
Initial setup function Prints the system information, this is done here so that the system informatio...
void writeVariableNorms()
Print the L2-norms for each variable.
static std::string outputNorm(const Real &old_norm, const Real &norm, const unsigned int precision=6)
A helper function for outputting norms in color.
MooseEnum _fit_mode
The FormattedTable fit mode.
bool _perf_header
State for the performance log header information.
Real _old_nonlinear_norm
Storage for the old non linear residual (needed for color output and only when used when printing to ...
virtual void outputSystemInformation() override
Print system information.
virtual std::string filename() override
Creates the output file name Appends the user-supplied 'file_base' input parameter with a '....
const std::ostringstream & _console_buffer
Reference to cached messages from calls to _console.
static void petscSetupOutput()
Output string for setting up PETSC output.
virtual void outputReporters() override
Prints the Reporter values to the screen.
void writeStreamToFile(bool append=true)
Write the file stream to the file.
virtual void output() override
Customizes the order of output for the various components as well as adds additional output such as t...
bool _print_mesh_changed_info
Flag for printing mesh information when the mesh changes.
bool _solve_log
State for solve performance log.
const InputParameters & parameters() const
Get the parameters of the object.
This is a "smart" enum class intended to replace many of the shortcomings in the C++ enum type It sho...
This is a "smart" enum class intended to replace many of the shortcomings in the C++ enum type.
Class for storing and utilizing output objects.
Base class for scalar variables and postprocessors output objects.