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

◆ diff_x_p()

double pism::array::diff_x_p ( const array::Scalar array,
int  i,
int  j 
)

Returns the x-derivative at i,j approximated using centered finite differences. Respects grid periodicity and uses one-sided FD at grid edges if necessary.

Definition at line 108 of file Scalar.cc.

References diff_x(), pism::array::Array::grid(), and pism::grid::X_PERIODIC.

Referenced by pism::stressbalance::PSB_wvel::compute(), pism::stressbalance::SSA::compute_driving_stress(), pism::stressbalance::SSB_taud::compute_impl(), pism::stressbalance::PSB_tauxz::compute_impl(), and pism::stressbalance::WeertmanSliding::update().