20#ifndef PISM_GRIDINFO_H
21#define PISM_GRIDINFO_H
51 std::vector<double>
x;
53 std::vector<double>
y;
int max_patch_size
Number of grid points in the largest patch (max(xm*ym) over all MPI ranks)
double dx
Grid spacing in the X direction.
unsigned int Mx
Total number of grid points in the X direction.
unsigned int ys
Starting index of the patch owned by the current MPI rank (X direction)
int rank
Current MPI rank.
double cell_area
Cell area (meters^2) (same as dx*dy)
grid::Periodicity periodicity
Grid periodicity in X and Y directions.
double dy
Grid spacing in the Y direction.
int size
MPI Communicator size.
unsigned int xs
Starting index (in the X direction) of the patch owned by the current MPI rank.
unsigned int My
Total number of grid points in the Y direction.
grid::Registration registration
Grid registration (cell center or cell corner)
double Lx
domain half-width in the X direction
std::vector< double > y
y coordinates
double y0
y-coordinate of the domain center
double x0
x-coordinate of the domain center
std::vector< double > x
x coordinates
double Ly
domain half-width in the Y direction
std::string periodicity_to_string(Periodicity p)
Convert Periodicity to a STL string.
Registration string_to_registration(const std::string &keyword)
Periodicity string_to_periodicity(const std::string &keyword)
Convert a string to Periodicity.
std::string registration_to_string(Registration registration)
std::shared_ptr< Grid > grid(std::shared_ptr< Context > ctx)