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

◆ FromFile() [2/2]

IceGrid::Ptr pism::IceGrid::FromFile ( std::shared_ptr< const Context ctx,
const std::string &  file,
const std::vector< std::string > &  var_names,
GridRegistration  r 
)
static

Create a grid using one of variables in var_names in file.

Definition at line 305 of file IceGrid.cc.

References ctx(), pism::File::find_variable(), pism::RuntimeError::formatted(), FromFile(), pism::join(), PISM_ERROR_LOCATION, pism::PISM_NETCDF3, and pism::PISM_READONLY.