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

◆ FromFile()

std::shared_ptr< Grid > pism::Grid::FromFile ( std::shared_ptr< const Context ctx,
const std::string &  filename,
const std::vector< std::string > &  var_names,
grid::Registration  r 
)
static

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

Definition at line 255 of file Grid.cc.

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

Referenced by FromOptions(), and pismv_grid().