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

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