|
static std::shared_ptr< Grid > | pism::Grid_FromFile (std::shared_ptr< const Context > ctx, const File &file, const std::string &var_name, grid::Registration r) |
| Create a grid from a file, get information from variable var_name .
|
|
static unsigned int | pism::compute_horizontal_grid_size (double half_width, double dx, bool cell_centered) |
| Compute horizontal grid size. See compute_horizontal_coordinates() for more.
|
|
static double | pism::compute_horizontal_spacing (double half_width, unsigned int M, bool cell_centered) |
| Compute horizontal grid spacing. See compute_horizontal_coordinates() for more.
|
|
static std::vector< double > | pism::compute_coordinates (unsigned int M, double delta, double v_min, double v_max, bool cell_centered) |
| Compute grid coordinates for one direction (X or Y).
|
|
std::vector< double > | pism::grid::compute_vertical_levels (double new_Lz, size_t new_Mz, grid::VerticalSpacing spacing, double lambda) |
| Set the vertical levels in the ice according to values in Mz (number of levels), Lz (domain height), spacing (quadratic or equal) and lambda (quadratic spacing parameter).
|
|
Periodicity | pism::grid::string_to_periodicity (const std::string &keyword) |
| Convert a string to Periodicity.
|
|
std::string | pism::grid::periodicity_to_string (Periodicity p) |
| Convert Periodicity to a STL string.
|
|
VerticalSpacing | pism::grid::string_to_spacing (const std::string &keyword) |
| Convert an STL string to SpacingType.
|
|
std::string | pism::grid::spacing_to_string (VerticalSpacing s) |
| Convert SpacingType to an STL string.
|
|
Registration | pism::grid::string_to_registration (const std::string &keyword) |
|
std::string | pism::grid::registration_to_string (Registration registration) |
|
std::string | pism::grid::get_domain_variable (const File &file) |
| Get a list of dimensions from a grid definition file.
|
|
template<typename T > |
static void | pism::grid::maybe_override (const Config &config, const char *name, const char *units, T &output) |
|
double | pism::grid::radius (const Grid &grid, int i, int j) |
| Returns the distance from the point (i,j) to the origin.
|
|
std::array< unsigned, 2 > | pism::grid::nprocs (unsigned int size, unsigned int Mx, unsigned int My) |
| Computes the number of processors in the X- and Y-directions.
|
|
std::vector< unsigned int > | pism::grid::ownership_ranges (unsigned int Mx, unsigned int Nx) |
| Computes processor ownership ranges corresponding to equal area distribution among processors.
|
|