PISM, A Parallel Ice Sheet Model 2.3.0-79cae578d committed by Constantine Khrulev on 2026-03-22
Loading...
Searching...
No Matches

◆ compute()

double pism::diagnostics::scalar::TimeStepRatio::compute ( )
inlinevirtual

Compute the diagnostic. Regular (snapshot) quantity should be computed here; for rates of change, compute() should return the total change during the time step from t0 to t1. The rate itself is computed in evaluate_rate().

Implements pism::TSDiagnostic.

Definition at line 2117 of file diagnostics.cc.

References pism::IceModel::grid(), pism::TSDiagnostic::m_config, pism::stressbalance::StressBalance::max_timestep_cfl_2d(), pism::max_timestep_diffusivity(), pism::TSDiag< TSSnapshotDiagnostic, IceModel >::model, and pism::IceModel::stress_balance().