|
| 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 VariableMetadata &variable, io::Default default_value, const Logger &log, Vec output) |
| |
| static void | check_range (petsc::Vec &v, const SpatialVariableMetadata &metadata, const std::string &filename, const Logger &log, bool report_range) |
| |
| 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.
|
| |
| void | extract_surface (const Array3D &data, double z, Scalar &output) |
| | Copies a horizontal slice at level z of an Array3D into output.
|
| |
| 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.
|
| |
| double | diff_x (const array::Scalar &array, int i, int j) |
| | Returns the x-derivative at i,j approximated using centered finite differences.
|
| |
| double | diff_y (const array::Scalar &array, int i, int j) |
| | Returns the y-derivative at i,j approximated using centered finite differences.
|
| |
| 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.
|
| |
| 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.
|
| |
| double | sum (const array::Scalar &input) |
| | Sums up all the values in an array::Scalar object. Ignores ghosts.
|
| |
| double | max (const array::Scalar &input) |
| | Finds maximum over all the values in an array::Scalar object. Ignores ghosts.
|
| |
| double | absmax (const array::Scalar &input) |
| | Finds maximum over all the absolute values in an array::Scalar object. Ignores ghosts.
|
| |
| double | min (const array::Scalar &input) |
| | Finds minimum over all the values in an array::Scalar object. Ignores ghosts.
|
| |
| 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) |
| |