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 | Enumerations | Functions
Grid.hh File Reference
#include "io/File.hh"
#include <cassert>
#include <memory>
#include <string>
#include <vector>
#include <map>
#include <mpi.h>

Go to the source code of this file.

Classes

class  pism::grid::InputGridInfo
 Contains parameters of an input file grid. More...
 
class  pism::grid::Parameters
 Grid parameters; used to collect defaults before an Grid is allocated. More...
 
class  pism::PointsWithGhosts
 
class  pism::Points
 
class  pism::Grid
 Describes the PISM grid and the distribution of data across processors. More...
 

Namespaces

 pism
 
 pism::petsc
 Wrappers for some PETSc objects (these wrappers simplify memory management).
 
 pism::units
 
 pism::grid
 

Enumerations

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

Functions

Registration pism::grid::string_to_registration (const std::string &keyword)
 
std::string pism::grid::registration_to_string (Registration registration)
 
Periodicity pism::grid::string_to_periodicity (const std::string &keyword)
 Convert a string to Periodicity. More...
 
std::string pism::grid::periodicity_to_string (Periodicity p)
 Convert Periodicity to a STL string. More...
 
VerticalSpacing pism::grid::string_to_spacing (const std::string &keyword)
 Convert an STL string to SpacingType. More...
 
std::string pism::grid::spacing_to_string (VerticalSpacing s)
 Convert SpacingType to an STL string. More...
 
std::vector< double > pism::grid::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...
 
double pism::grid::radius (const Grid &grid, int i, int j)
 Returns the distance from the point (i,j) to the origin. More...
 
bool pism::grid::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 pism::grid::domain_edge (const Grid &grid, int i, int j)