PISM, A Parallel Ice Sheet Model  stable v2.1-1-g6902d5502 committed by Ed Bueler on 2023-12-20 08:38:27 -0800
Namespaces | Functions
Scalar.cc File Reference
#include "pism/util/array/Scalar.hh"
#include "pism/util/array/Vector.hh"
#include "pism/util/VariableMetadata.hh"
#include "pism/util/pism_utilities.hh"

Go to the source code of this file.

Namespaces

 pism
 
 pism::array
 

Functions

void pism::array::compute_magnitude (const array::Vector &input, array::Scalar &result)
 
void pism::array::apply_mask (const array::Scalar &M, double fill, array::Scalar &result)
 Masks out all the areas where \( M \le 0 \) by setting them to fill. More...
 
double pism::array::diff_x (const array::Scalar &array, int i, int j)
 Returns the x-derivative at i,j approximated using centered finite differences. More...
 
double pism::array::diff_y (const array::Scalar &array, int i, int j)
 Returns the y-derivative at i,j approximated using centered finite differences. More...
 
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. More...
 
double pism::array::diff_y_p (const array::Scalar &array, int i, int j)
 Returns the y-derivative at i,j approximated using centered finite differences. Respects grid periodicity and uses one-sided FD at grid edges if necessary. More...
 
double pism::array::sum (const array::Scalar &input)
 Sums up all the values in an array::Scalar object. Ignores ghosts. More...
 
double pism::array::max (const array::Scalar &input)
 Finds maximum over all the values in an array::Scalar object. Ignores ghosts. More...
 
double pism::array::absmax (const array::Scalar &input)
 Finds maximum over all the absolute values in an array::Scalar object. Ignores ghosts. More...
 
double pism::array::min (const array::Scalar &input)
 Finds minimum over all the values in an array::Scalar object. Ignores ghosts. More...