PISM, A Parallel Ice Sheet Model  stable v2.0.6 committed by Constantine Khrulev on 2023-01-23 15:14:38 -0900

◆ FromFile() [1/2]

IceGrid::Ptr pism::IceGrid::FromFile ( std::shared_ptr< const Context ctx,
const File file,
const std::string &  var_name,
GridRegistration  r 

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

Definition at line 325 of file IceGrid.cc.

References pism::RuntimeError::add_context(), ctx(), pism::File::filename(), IceGrid(), Lz(), pism::Logger::message(), pism::GridParameters::ownership_ranges_from_options(), and pism::GridParameters::z.

Referenced by FromFile(), FromOptions(), and pismv_grid().