PISM, A Parallel Ice Sheet Model  stable v2.1.1 committed by Constantine Khrulev on 2024-12-04 13:36:58 -0900
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
pism::io::ParallelIO Class Reference

#include <ParallelIO.hh>

+ Inheritance diagram for pism::io::ParallelIO:

Public Member Functions

 ParallelIO (MPI_Comm com, int iosysid, io::Backend iotype)
 
virtual ~ParallelIO ()=default
 
- 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
 

Static Public Member Functions

static io::Backend best_iotype (bool netcdf3)
 

Protected Member Functions

void open_impl (const std::string &filename, io::Mode mode)
 
void create_impl (const std::string &filename)
 
void sync_impl () const
 
void close_impl ()
 
void set_compression_level_impl (int level) const
 
void enddef_impl () const
 
void redef_impl () const
 
void def_dim_impl (const std::string &name, size_t length) const
 
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
 
void inq_unlimdim_impl (std::string &result) const
 
void def_var_impl (const std::string &name, io::Type nctype, const std::vector< std::string > &dims) const
 
void def_var_chunking_impl (const std::string &name, std::vector< size_t > &dimensions) const
 
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 write_darray_impl (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_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
 
void inq_vardimid_impl (const std::string &variable_name, std::vector< std::string > &result) const
 
void inq_varnatts_impl (const std::string &variable_name, int &result) const
 
void inq_varid_impl (const std::string &variable_name, bool &exists) const
 
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
 
void get_att_text_impl (const std::string &variable_name, const std::string &att_name, std::string &result) const
 
void put_att_double_impl (const std::string &variable_name, const std::string &att_name, io::Type xtype, const std::vector< double > &data) const
 
void put_att_text_impl (const std::string &variable_name, const std::string &att_name, const std::string &value) const
 
void inq_attname_impl (const std::string &variable_name, unsigned int n, std::string &result) const
 
void inq_atttype_impl (const std::string &variable_name, const std::string &att_name, io::Type &result) const
 
void set_fill_impl (int fillmode, int &old_modep) const
 
void del_att_impl (const std::string &variable_name, const std::string &att_name) const
 

Private Member Functions

int get_varid (const std::string &variable_name) const
 

Private Attributes

int m_iosysid
 
int m_iotype
 

Additional Inherited Members

- Public Types inherited from pism::io::NCFile
typedef std::shared_ptr< NCFilePtr
 
- Protected Attributes inherited from pism::io::NCFile
MPI_Comm m_com
 
int m_file_id
 
std::string m_filename
 

Detailed Description

Definition at line 29 of file ParallelIO.hh.


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