Loading [MathJax]/extensions/tex2jax.js
PISM, A Parallel Ice Sheet Model 2.2.1-cd005eec8 committed by Constantine Khrulev on 2025-03-07
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages

◆ compute_interface_fluxes()

void pism::GeometryEvolution::compute_interface_fluxes ( const array::CellType1 cell_type,
const array::Scalar ice_thickness,
const array::Vector velocity,
const array::Staggered diffusive_flux,
array::Staggered output 
)
protectedvirtual

Combine advective velocity and the diffusive flux on the staggered grid with the ice thickness to compute the total flux through cell interfaces.

Uses first-order upwinding to compute the advective flux.

Limits the diffusive flux to prevent SIA-driven flow in the ocean and ice-free areas.

Reimplemented in pism::RegionalGeometryEvolution.

Definition at line 575 of file GeometryEvolution.cc.

References pism::array::Scalar::as_int(), pism::ParallelSection::check(), pism::ParallelSection::failed(), pism::limit_advective_flux(), pism::limit_diffusive_flux(), pism::Component::m_grid, and n.

Referenced by pism::RegionalGeometryEvolution::compute_interface_fluxes(), and flow_step().