PISM, A Parallel Ice Sheet Model  stable v2.1-1-g6902d5502 committed by Ed Bueler on 2023-12-20 08:38:27 -0800
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
pism::io::NC4_Serial Class Reference

#include <NC4_Serial.hh>

+ Inheritance diagram for pism::io::NC4_Serial:

Public Member Functions

 NC4_Serial (MPI_Comm c)
 
virtual ~NC4_Serial ()=default
 
- Public Member Functions inherited from pism::io::NC_Serial
 NC_Serial (MPI_Comm com)
 
virtual ~NC_Serial ()
 
std::string get_format () const
 
- Public Member Functions inherited from pism::io::NCFile
 NCFile (MPI_Comm com)
 
virtual ~NCFile ()=default
 
void open (const std::string &filename, io::Mode mode)
 
void create (const std::string &filename)
 
void sync () const
 
void close ()
 
void enddef () const
 
void redef () const
 
void def_dim (const std::string &name, size_t length) const
 
void inq_dimid (const std::string &dimension_name, bool &exists) const
 
void inq_dimlen (const std::string &dimension_name, unsigned int &result) const
 
void inq_unlimdim (std::string &result) const
 
void def_var (const std::string &name, io::Type nctype, const std::vector< std::string > &dims) const
 
void def_var_chunking (const std::string &name, std::vector< size_t > &dimensions) const
 
void get_vara_double (const std::string &variable_name, const std::vector< unsigned int > &start, const std::vector< unsigned int > &count, double *ip) const
 
void put_vara_double (const std::string &variable_name, const std::vector< unsigned int > &start, const std::vector< unsigned int > &count, const double *op) const
 
void write_darray (const std::string &variable_name, const Grid &grid, unsigned int z_count, bool time_dependent, unsigned int record, const double *input)
 
void get_varm_double (const std::string &variable_name, const std::vector< unsigned int > &start, const std::vector< unsigned int > &count, const std::vector< unsigned int > &imap, double *ip) const
 
void inq_nvars (int &result) const
 
void inq_vardimid (const std::string &variable_name, std::vector< std::string > &result) const
 
void inq_varnatts (const std::string &variable_name, int &result) const
 
void inq_varid (const std::string &variable_name, bool &result) const
 
void inq_varname (unsigned int j, std::string &result) const
 
void set_compression_level (int level) const
 
void get_att_double (const std::string &variable_name, const std::string &att_name, std::vector< double > &result) const
 
void get_att_text (const std::string &variable_name, const std::string &att_name, std::string &result) const
 
void put_att_double (const std::string &variable_name, const std::string &att_name, io::Type xtype, const std::vector< double > &data) const
 
void put_att_text (const std::string &variable_name, const std::string &att_name, const std::string &value) const
 
void inq_attname (const std::string &variable_name, unsigned int n, std::string &result) const
 
void inq_atttype (const std::string &variable_name, const std::string &att_name, io::Type &result) const
 
void set_fill (int fillmode, int &old_modep) const
 
std::string filename () const
 
void del_att (const std::string &variable_name, const std::string &att_name) const
 

Protected Member Functions

void set_compression_level_impl (int level) const
 
void create_impl (const std::string &filename)
 Create a NetCDF file. More...
 
void def_var_impl (const std::string &name, io::Type nctype, const std::vector< std::string > &dims) const
 Define a variable. More...
 
- Protected Member Functions inherited from pism::io::NC_Serial
void open_impl (const std::string &filename, io::Mode mode)
 
void sync_impl () const
 
void close_impl ()
 Close a NetCDF file. More...
 
void enddef_impl () const
 Exit define mode. More...
 
void redef_impl () const
 Enter define mode. More...
 
void def_dim_impl (const std::string &name, size_t length) const
 Define a dimension. More...
 
void inq_dimid_impl (const std::string &dimension_name, bool &exists) const
 
void inq_dimlen_impl (const std::string &dimension_name, unsigned int &result) const
 Get a dimension length. More...
 
void inq_unlimdim_impl (std::string &result) const
 Get an unlimited dimension. More...
 
void get_vara_double_impl (const std::string &variable_name, const std::vector< unsigned int > &start, const std::vector< unsigned int > &count, double *ip) const
 
void put_vara_double_impl (const std::string &variable_name, const std::vector< unsigned int > &start, const std::vector< unsigned int > &count, const double *op) const
 
void get_varm_double_impl (const std::string &variable_name, const std::vector< unsigned int > &start, const std::vector< unsigned int > &count, const std::vector< unsigned int > &imap, double *ip) const
 
void inq_nvars_impl (int &result) const
 Get the number of variables. More...
 
void inq_vardimid_impl (const std::string &variable_name, std::vector< std::string > &result) const
 Get dimensions a variable depends on. More...
 
void inq_varnatts_impl (const std::string &variable_name, int &result) const
 Get the number of attributes of a variable. More...
 
void inq_varid_impl (const std::string &variable_name, bool &exists) const
 Finds a variable and sets the "exists" flag. More...
 
void inq_varname_impl (unsigned int j, std::string &result) const
 
void get_att_double_impl (const std::string &variable_name, const std::string &att_name, std::vector< double > &result) const
 Gets a double attribute. More...
 
void get_att_text_impl (const std::string &variable_name, const std::string &att_name, std::string &result) const
 Gets a text attribute. More...
 
void put_att_double_impl (const std::string &variable_name, const std::string &att_name, io::Type xtype, const std::vector< double > &data) const
 Writes a double attribute. More...
 
void put_att_text_impl (const std::string &variable_name, const std::string &att_name, const std::string &value) const
 Writes a text attribute. More...
 
void inq_attname_impl (const std::string &variable_name, unsigned int n, std::string &result) const
 Gets the name of a numbered attribute. More...
 
void inq_atttype_impl (const std::string &variable_name, const std::string &att_name, io::Type &result) const
 Gets the type of an attribute. More...
 
void set_fill_impl (int fillmode, int &old_modep) const
 Sets the fill mode. More...
 
void del_att_impl (const std::string &variable_name, const std::string &att_name) const
 
int get_varid (const std::string &variable_name) const
 
- Protected Member Functions inherited from pism::io::NCFile
virtual void def_var_chunking_impl (const std::string &name, std::vector< size_t > &dimensions) const
 
virtual void write_darray_impl (const std::string &variable_name, const Grid &grid, unsigned int z_count, bool time_dependent, unsigned int record, const double *input)
 

Protected Attributes

int m_compression_level
 
- Protected Attributes inherited from pism::io::NC_Serial
int m_rank
 
- Protected Attributes inherited from pism::io::NCFile
MPI_Comm m_com
 
int m_file_id
 
std::string m_filename
 

Additional Inherited Members

- Public Types inherited from pism::io::NCFile
typedef std::shared_ptr< NCFilePtr
 

Detailed Description

Definition at line 27 of file NC4_Serial.hh.


The documentation for this class was generated from the following files: