PISM, A Parallel Ice Sheet Model  stable v2.1-1-g6902d5502 committed by Ed Bueler on 2023-12-20 08:38:27 -0800
Public Member Functions | Public Attributes | Private Member Functions | List of all members
pism::grid::Parameters Class Reference

Grid parameters; used to collect defaults before an Grid is allocated. More...

#include <Grid.hh>

Public Member Functions

 Parameters (const Config &config)
 Initialize grid defaults from a configuration database. More...
 
 Parameters (const Context &ctx, const std::string &filename, const std::string &variable_name, Registration r)
 Initialize grid defaults from a configuration database and a NetCDF variable. More...
 
 Parameters (const Context &ctx, const File &file, const std::string &variable_name, Registration r)
 Initialize grid defaults from a configuration database and a NetCDF variable. More...
 
void horizontal_size_from_options ()
 Process -Mx and -My; set Mx and My. More...
 
void horizontal_extent_from_options (std::shared_ptr< units::System > unit_system)
 Process -Lx, -Ly, -x0, -y0, -x_range, -y_range; set Lx, Ly, x0, y0. More...
 
void vertical_grid_from_options (std::shared_ptr< const Config > config)
 Process -Mz and -Lz; set z;. More...
 
void ownership_ranges_from_options (unsigned int size)
 Re-compute ownership ranges. Uses current values of Mx and My. More...
 
void validate () const
 Validate data members. More...
 

Public Attributes

double Lx
 Domain half-width in the X direction. More...
 
double Ly
 Domain half-width in the Y direction. More...
 
double x0
 Domain center in the X direction. More...
 
double y0
 Domain center in the Y direction. 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...
 
Registration registration
 Grid registration. More...
 
Periodicity periodicity
 Grid periodicity. More...
 
std::vector< double > z
 Vertical levels. More...
 
std::vector< unsigned int > procs_x
 Processor ownership ranges in the X direction. More...
 
std::vector< unsigned int > procs_y
 Processor ownership ranges in the Y direction. More...
 

Private Member Functions

void init_from_file (const Context &ctx, const File &file, const std::string &variable_name, Registration r)
 

Detailed Description

Grid parameters; used to collect defaults before an Grid is allocated.

Definition at line 117 of file Grid.hh.


The documentation for this class was generated from the following files: