PISM, A Parallel Ice Sheet Model
stable v2.0.6 committed by Constantine Khrulev on 2023-01-23 15:14:38 -0900
|
Grid parameters; used to collect defaults before an IceGrid is allocated. More...
#include <IceGrid.hh>
Public Member Functions | |
GridParameters () | |
Create an uninitialized GridParameters instance. More... | |
GridParameters (std::shared_ptr< const Config > config) | |
Initialize grid defaults from a configuration database. More... | |
GridParameters (std::shared_ptr< const Context > ctx, const std::string &filename, const std::string &variable_name, GridRegistration r) | |
Initialize grid defaults from a configuration database and a NetCDF variable. More... | |
GridParameters (std::shared_ptr< const Context > ctx, const File &file, const std::string &variable_name, GridRegistration 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... | |
GridRegistration | 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_config (std::shared_ptr< const Config > config) |
Initialize from a configuration database. Does not try to compute ownership ranges. More... | |
void | init_from_file (std::shared_ptr< const Context > ctx, const File &file, const std::string &variable_name, GridRegistration r) |
Grid parameters; used to collect defaults before an IceGrid is allocated.
Definition at line 109 of file IceGrid.hh.