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