PISM, A Parallel Ice Sheet Model  stable v2.1-1-g6902d5502 committed by Ed Bueler on 2023-12-20 08:38:27 -0800
Classes | Enumerations | Functions
pism::grid Namespace Reference

Classes

class  InputGridInfo
 Contains parameters of an input file grid. More...
 
class  Parameters
 Grid parameters; used to collect defaults before an Grid is allocated. More...
 

Enumerations

enum  VerticalSpacing { UNKNOWN = 0 , EQUAL , QUADRATIC }
 
enum  Periodicity { NOT_PERIODIC = 0 , X_PERIODIC = 1 , Y_PERIODIC = 2 , XY_PERIODIC = 3 }
 
enum  Registration { CELL_CENTER , CELL_CORNER }
 

Functions

std::vector< double > compute_vertical_levels (double new_Lz, unsigned int 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). More...
 
Periodicity string_to_periodicity (const std::string &keyword)
 Convert a string to Periodicity. More...
 
std::string periodicity_to_string (Periodicity p)
 Convert Periodicity to a STL string. More...
 
VerticalSpacing string_to_spacing (const std::string &keyword)
 Convert an STL string to SpacingType. More...
 
std::string spacing_to_string (VerticalSpacing s)
 Convert SpacingType to an STL string. More...
 
Registration string_to_registration (const std::string &keyword)
 
std::string registration_to_string (Registration registration)
 
double radius (const Grid &grid, int i, int j)
 Returns the distance from the point (i,j) to the origin. More...
 
bool in_null_strip (const Grid &grid, int i, int j, double strip_width)
 Check if a point (i,j) is in the strip of stripwidth meters around the edge of the computational domain. More...
 
bool domain_edge (const Grid &grid, int i, int j)