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

◆ get_varid()

int pism::io::NC_Serial::get_varid ( const std::string &  variable_name) const
protected

return the varid corresponding to a variable.

If the value returned is NC_GLOBAL or greater, it is a varid, otherwise it is an error code.

Definition at line 917 of file NC_Serial.cc.

References pism::io::NCFile::m_file_id, and m_rank.

Referenced by pism::io::NC4_Serial::def_var_impl(), del_att_impl(), get_att_double_impl(), get_att_text_impl(), inq_attname_impl(), inq_atttype_impl(), inq_varnatts_impl(), put_att_double_impl(), and put_att_text_impl().