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

◆ 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().