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

◆ count_CFL_violations()

unsigned int pism::count_CFL_violations ( const array::Array3D u3,
const array::Array3D v3,
const array::Scalar ice_thickness,
double  dt 
)

Because of the -skip mechanism it is still possible that we can have CFL violations: count them.

This applies to the horizontal part of the 3D advection problem solved by AgeModel and the horizontal part of the 3D convection-diffusion problems solved by EnthalpyModel and TemperatureModel.

Definition at line 42 of file printout.cc.

References pism::ParallelSection::check(), pism::ParallelSection::failed(), pism::array::Array3D::get_column(), GlobalMax(), pism::array::Array::grid(), and k.

Referenced by pism::IceModel::print_summary().