|
void | global_to_local (petsc::DM &dm, Vec source, Vec destination) |
|
static NormType | int_to_normtype (int input) |
|
void | set_default_value_or_stop (const std::string &filename, const VariableMetadata &variable, io::Default default_value, const Logger &log, Vec output) |
|
static std::array< double, 2 > | compute_range (MPI_Comm com, const double *data, size_t data_size) |
|
template<class F , typename T > |
T | interpolate (const F &field, double x, double y) |
|
template<class T > |
static std::shared_ptr< T > | cast (std::shared_ptr< Array > input) |
| std::dynamic_pointer_cast wrapper that checks if the cast succeeded. More...
|
|
void | extract_surface (const Array3D &data, double z, Scalar &output) |
| Copies a horizontal slice at level z of an Array3D into output . More...
|
|
void | extract_surface (const Array3D &data, const Scalar &z, Scalar &output) |
|
void | sum_columns (const Array3D &data, double A, double B, Scalar &output) |
|
void | compute_magnitude (const array::Vector &input, array::Scalar &result) |
|
void | 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 | diff_x (const array::Scalar &array, int i, int j) |
| Returns the x-derivative at i,j approximated using centered finite differences. More...
|
|
double | diff_y (const array::Scalar &array, int i, int j) |
| Returns the y-derivative at i,j approximated using centered finite differences. More...
|
|
double | 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 | 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 | sum (const array::Scalar &input) |
| Sums up all the values in an array::Scalar object. Ignores ghosts. More...
|
|
double | max (const array::Scalar &input) |
| Finds maximum over all the values in an array::Scalar object. Ignores ghosts. More...
|
|
double | absmax (const array::Scalar &input) |
| Finds maximum over all the absolute values in an array::Scalar object. Ignores ghosts. More...
|
|
double | min (const array::Scalar &input) |
| Finds minimum over all the values in an array::Scalar object. Ignores ghosts. More...
|
|
std::array< double, 2 > | absmax (const array::Staggered &input) |
|
void | staggered_to_regular (const array::CellType1 &cell_type, const array::Staggered1 &input, bool include_floating_ice, array::Scalar &result) |
|
void | staggered_to_regular (const array::CellType1 &cell_type, const array::Staggered1 &input, bool include_floating_ice, array::Vector &result) |
|