PISM, A Parallel Ice Sheet Model  stable v2.1.1 committed by Constantine Khrulev on 2024-12-04 13:36:58 -0900
Public Member Functions | Public Attributes | List of all members
pism::Grid::Impl Struct Reference

Internal structures of Grid. More...

Public Member Functions

 Impl (std::shared_ptr< const Context > context)
 
std::shared_ptr< petsc::DMcreate_dm (int da_dof, int stencil_width) const
 Create a DM with the given number of dof (degrees of freedom per grid point) and stencil width. More...
 
void set_ownership_ranges (const std::vector< unsigned int > &procs_x, const std::vector< unsigned int > &procs_y)
 Set processor ownership ranges. Takes care of type conversion (unsigned int -> PetscInt). More...
 
void compute_horizontal_coordinates ()
 Compute horizontal spacing parameters dx and dy and grid coordinates using Mx, My, Lx, Ly and periodicity. More...
 

Public Attributes

std::shared_ptr< const Contextctx
 
MappingInfo mapping_info
 
int rank
 
int size
 
std::vector< PetscInt > procs_x
 array containing lenghts (in the x-direction) of processor sub-domains More...
 
std::vector< PetscInt > procs_y
 array containing lenghts (in the y-direction) of processor sub-domains More...
 
grid::Periodicity periodicity
 
grid::Registration registration
 
std::vector< double > x
 x-coordinates of grid points More...
 
std::vector< double > y
 y-coordinates of grid points More...
 
std::vector< double > z
 vertical grid levels in the ice; correspond to the storage grid More...
 
int xs
 
int xm
 
int ys
 
int ym
 
double dx
 horizontal grid spacing More...
 
double dy
 horizontal grid spacing More...
 
double cell_area
 cell area (meters^2) More...
 
unsigned int Mx
 number of grid points in the x-direction More...
 
unsigned int My
 number of grid points in the y-direction More...
 
int max_patch_size
 
double x0
 x-coordinate of the grid center More...
 
double y0
 y-coordinate of the grid center More...
 
double Lx
 half width of the ice model grid in x-direction (m) More...
 
double Ly
 half width of the ice model grid in y-direction (m) More...
 
std::map< std::array< unsigned int, 2 >, std::weak_ptr< petsc::DM > > dms
 
std::shared_ptr< petsc::DMdm_scalar_global
 
Vars variables
 A dictionary with pointers to array::Arrays, for passing them from the one component to another (e.g. from IceModel to surface and ocean models). More...
 
gsl_interp_accel * bsearch_accel
 GSL binary search accelerator used to speed up kBelowHeight(). More...
 
std::map< std::array< int, 2 >, int > io_decompositions
 ParallelIO I/O decompositions. More...
 

Detailed Description

Internal structures of Grid.

Definition at line 50 of file Grid.cc.


The documentation for this struct was generated from the following file: