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

◆ put_att_double_impl()

void pism::io::NC_Serial::put_att_double_impl ( const std::string &  variable_name,
const std::string &  att_name,
io::Type  nctype,
const std::vector< double > &  data 
) const
protectedvirtual

Writes a double attribute.

Use "PISM_GLOBAL" as the "variable_name" to get the number of global attributes.

Implements pism::io::NCFile.

Definition at line 747 of file NC_Serial.cc.

References pism::io::check(), get_varid(), pism::io::NCFile::m_com, pism::io::NCFile::m_file_id, m_rank, PISM_ERROR_LOCATION, and pism::pism_type_to_nc_type().