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

Go to the source code of this file.

Classes

class  pism::array::Scalar
 
class  pism::array::Scalar1
 
class  pism::array::Scalar2
 

Namespaces

 pism
 
 pism::array
 

Functions

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::min (const array::Scalar &input)
 Finds minimum over 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...
 
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...