PISM, A Parallel Ice Sheet Model  stable v2.1-1-g6902d5502 committed by Ed Bueler on 2023-12-20 08:38:27 -0800

◆ Grid_FromFile()

static std::shared_ptr<Grid> pism::Grid_FromFile ( std::shared_ptr< const Context ctx,
const File file,
const std::string &  var_name,
grid::Registration  r 
)
static

Create a grid from a file, get information from variable var_name.

Definition at line 223 of file Grid.cc.

References pism::RuntimeError::add_context(), pism::File::filename(), pism::Logger::message(), pism::grid::Parameters::ownership_ranges_from_options(), and pism::grid::Parameters::z.

Referenced by pism::Grid::FromFile().