PISM, A Parallel Ice Sheet Model  stable v2.1.1 committed by Constantine Khrulev on 2024-12-04 13:36:58 -0900

◆ regional_grid_from_options()

std::shared_ptr< Grid > pism::regional_grid_from_options ( std::shared_ptr< Context ctx)

Create a grid using command-line options and (possibly) an input file.

Processes options -i, -bootstrap, -Mx, -My, -Mz, -Lx, -Ly, -Lz, -x_range, -y_range.

Select a subset of the computational grid in an input file.

Parameters
ctxexecution context
Returns
A pointer to a new grid instance.

Definition at line 85 of file Grid_Regional.cc.

References pism::grid::CELL_CORNER, pism::VariableLookupData::exists, pism::File::find_variable(), pism::RuntimeError::formatted(), pism::Grid::FromOptions(), INIT_BOOTSTRAP, pism::grid::Parameters::Lx, pism::grid::Parameters::Ly, pism::grid::Parameters::Mx, pism::grid::Parameters::My, pism::grid::Parameters::ownership_ranges_from_options(), PISM_ERROR_LOCATION, pism::io::PISM_NETCDF3, pism::io::PISM_READONLY, process_input_options(), pism::grid::Parameters::registration, subset_extent(), pism::grid::Parameters::vertical_grid_from_options(), pism::grid::Parameters::x0, and pism::grid::Parameters::y0.

Referenced by main().