PISM, A Parallel Ice Sheet Model  stable v2.1.1 committed by Constantine Khrulev on 2024-12-04 13:36:58 -0900

◆ 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().