PISM, A Parallel Ice Sheet Model  stable v2.1-1-g6902d5502 committed by Ed Bueler on 2023-12-20 08:38:27 -0800

◆ print_summary_line()

void pism::IceModel::print_summary_line ( bool  printPrototype,
bool  tempAndAge,
double  delta_t,
double  volume,
double  area,
double  meltfrac,
double  max_diffusivity 
)
protectedvirtual

Print a line to stdout which summarizes the state of the modeled ice sheet at the end of the time step.

This method is for casual inspection of model behavior, and to provide the user with some indication of the state of the run.

Generally, two lines are printed to stdout, the first starting with a space and the second starting with the character 'S' in the left-most column (column 1).

The first line shows flags for which processes executed, and the length of the time step (and/or substeps under option -skip). See IceModel::run() for meaning of these flags.

If printPrototype is TRUE then the first line does not appear and the second line has alternate appearance. Specifically, different column 1 characters are printed:

  • 'P' line gives names of the quantities reported in the 'S' line, the "prototype", while
  • 'U' line gives units of these quantities. This column 1 convention allows automatic tools to read PISM stdout and produce time-series. The 'P' and 'U' lines are intended to appear once at the beginning of the run, while an 'S' line appears at every time step.

These quantities are reported in this base class version:

  • time is the current model time
  • ivol is the total ice sheet volume
  • iarea is the total area occupied by positive thickness ice
  • max_diffusivity is the maximum diffusivity
  • max_sliding_vel is max(max(abs(u)), max(abs(v)))

Configuration parameters output.runtime.time_unit_name, output.runtime.volume_scale_factor_log10, and output.runtime.area_scale_factor_log10 control the appearance and units.

For more description and examples, see the PISM User's Manual. Derived classes of IceModel may redefine this method and print alternate information.

Definition at line 164 of file printout.cc.

References pism::units::convert(), m_config, m_log, m_stdout_flags, m_stress_balance, m_sys, m_time, pism::array::max(), pism::printf(), pism::CFLData::u_max, and pism::CFLData::v_max.

Referenced by print_summary(), and run().