SCALE-RM
|
Go to the source code of this file.
Classes | |
struct | fileinfo_t |
struct | tdim_t |
struct | varinfo_t |
Macros | |
#define | MPI_INCLUDED |
#define | TEPS 1e-6 |
#define | NTMAX 102400 |
#define | MIN(a, b) ((a)<(b) ? (a) : (b)) |
#define | CHECK_ERROR(func) |
#define | CHECK_PNC_ERROR(func) |
#define | ncmpi_inq_attid(a, b, c, d) NC2_ERR |
#define | ncmpi_inq_varid(a, b, c) NC2_ERR |
#define | ncmpi_inq_dimid(a, b, c) NC2_ERR |
#define | NCTYPE2TYPE(nctype, type) |
#define | TYPE2NCTYPE(type, nctype) |
#define | DEFAULT_DEFLATE_LEVEL 2 |
Functions | |
int32_t | file_open_c (int32_t *fid, const char *fname, const int32_t mode, const MPI_Comm comm) |
int32_t | file_get_dim_length_c (const int32_t fid, const char *dimname, int32_t *len) |
int32_t | file_set_option_c (const int32_t fid, const char *filetype, const char *key, const char *val) |
int32_t | file_get_nvars_c (const int32_t fid, int32_t *nvars) |
int32_t | file_get_varname_c (const int32_t fid, const int32_t vid, char *name, const int32_t len) |
int32_t | file_get_datainfo_c (datainfo_t *dinfo, const int32_t fid, const char *varname, const int32_t step, const int32_t suppress) |
int32_t | file_get_step_size_c (const int32_t fid, const char *varname, int32_t *len) |
int32_t | file_read_data_c (void *var, const datainfo_t *dinfo, const int32_t precision, const MPI_Offset ntypes, const MPI_Datatype dtype, const int32_t *start, const int32_t *count) |
int32_t | file_get_attribute_text_c (const int32_t fid, const char *vname, const char *key, const int32_t suppress, char *value, const int32_t len) |
int32_t | file_get_attribute_int_c (const int32_t fid, const char *vname, const char *key, const int32_t suppress, int *value, const size_t len) |
int32_t | file_get_attribute_float_c (const int32_t fid, const char *vname, const char *key, const int32_t suppress, float *value, const size_t len) |
int32_t | file_get_attribute_double_c (const int32_t fid, const char *vname, const char *key, const int32_t suppress, double *value, const size_t len) |
int32_t | file_set_attribute_text_c (const int32_t fid, const char *vname, const char *key, const char *val) |
int32_t | file_set_attribute_int_c (const int32_t fid, const char *vname, const char *key, const int32_t *value, const size_t len) |
int32_t | file_set_attribute_float_c (const int32_t fid, const char *vname, const char *key, const float *value, const size_t len) |
int32_t | file_set_attribute_double_c (const int32_t fid, const char *vname, const char *key, const double *value, const size_t len) |
int32_t | file_add_associatedvariable_c (const int32_t fid, const char *vname) |
int32_t | file_set_tunits_c (const int32_t fid, const char *time_units, const char *calendar) |
int32_t | file_put_axis_c (const int32_t fid, const char *name, const char *desc, const char *units, const char *dim_name, const int32_t dtype, const void *val, const int32_t size, const int32_t precision) |
int32_t | file_def_axis_c (const int32_t fid, const char *name, const char *desc, const char *units, const char *dim_name, const int32_t dtype, const int32_t dim_size, const int32_t bounds) |
int32_t | file_write_axis_c (const int32_t fid, const char *name, const void *val, const int32_t precision, const MPI_Offset *start, const MPI_Offset *count) |
int32_t | file_put_associatedcoordinate_c (const int32_t fid, const char *name, const char *desc, const char *units, const char **dim_names, const int32_t ndims, const int32_t dtype, const void *val, const int32_t precision) |
int32_t | file_def_associatedcoordinate_c (const int32_t fid, const char *name, const char *desc, const char *units, const char **dim_names, const int32_t ndims, const int32_t dtype) |
int32_t | file_write_associatedcoordinate_c (const int32_t fid, const char *name, const void *val, const int32_t precision, const MPI_Offset *start, const MPI_Offset *count) |
int32_t | file_add_variable_c (const int32_t fid, const char *varname, const char *desc, const char *units, const char *stdname, const char **dims, const int32_t ndims, const int32_t dtype, const real64_t tint, const int32_t tavg, int32_t *vid) |
int32_t | file_enddef_c (const int32_t fid) |
int32_t | file_redef_c (const int32_t fid) |
int32_t | file_attach_buffer_c (const int32_t fid, const int64_t buf_amount) |
int32_t | file_detach_buffer_c (const int32_t fid) |
int32_t | file_flush_c (const int32_t fid) |
int32_t | file_write_data_c (const int32_t fid, const int32_t vid, const void *var, const real64_t t_start, const real64_t t_end, const int32_t precision, const int32_t ndims, const int32_t *start, const int32_t *count) |
int32_t | file_close_c (const int32_t fid, const int32_t abort) |
#define MPI_INCLUDED |
Definition at line 3 of file scale_file_netcdf.c.
#define TEPS 1e-6 |
Definition at line 7 of file scale_file_netcdf.c.
#define NTMAX 102400 |
Definition at line 8 of file scale_file_netcdf.c.
#define MIN | ( | a, | |
b | |||
) | ((a)<(b) ? (a) : (b)) |
Definition at line 10 of file scale_file_netcdf.c.
#define CHECK_ERROR | ( | func | ) |
Definition at line 14 of file scale_file_netcdf.c.
#define CHECK_PNC_ERROR | ( | func | ) |
Definition at line 40 of file scale_file_netcdf.c.
#define ncmpi_inq_attid | ( | a, | |
b, | |||
c, | |||
d | |||
) | NC2_ERR |
Definition at line 46 of file scale_file_netcdf.c.
#define ncmpi_inq_varid | ( | a, | |
b, | |||
c | |||
) | NC2_ERR |
Definition at line 47 of file scale_file_netcdf.c.
#define ncmpi_inq_dimid | ( | a, | |
b, | |||
c | |||
) | NC2_ERR |
Definition at line 48 of file scale_file_netcdf.c.
#define NCTYPE2TYPE | ( | nctype, | |
type | |||
) |
Definition at line 51 of file scale_file_netcdf.c.
#define TYPE2NCTYPE | ( | type, | |
nctype | |||
) |
Definition at line 75 of file scale_file_netcdf.c.
#define DEFAULT_DEFLATE_LEVEL 2 |
Definition at line 91 of file scale_file_netcdf.c.
int32_t file_open_c | ( | int32_t * | fid, |
const char * | fname, | ||
const int32_t | mode, | ||
const MPI_Comm | comm | ||
) |
Definition at line 170 of file scale_file_netcdf.c.
References File_HLONG.
Referenced by scale_file::file_get_aggregate().
int32_t file_get_dim_length_c | ( | const int32_t | fid, |
const char * | dimname, | ||
int32_t * | len | ||
) |
Definition at line 256 of file scale_file_netcdf.c.
Referenced by scale_file::file_get_dimlength().
int32_t file_set_option_c | ( | const int32_t | fid, |
const char * | filetype, | ||
const char * | key, | ||
const char * | val | ||
) |
Definition at line 280 of file scale_file_netcdf.c.
References SUCCESS_CODE.
Referenced by scale_file::file_set_option().
int32_t file_get_nvars_c | ( | const int32_t | fid, |
int32_t * | nvars | ||
) |
Definition at line 296 of file scale_file_netcdf.c.
Referenced by scale_file::file_create().
int32_t file_get_varname_c | ( | const int32_t | fid, |
const int32_t | vid, | ||
char * | name, | ||
const int32_t | len | ||
) |
Definition at line 313 of file scale_file_netcdf.c.
References scale_file::i.
Referenced by scale_file::file_create().
int32_t file_get_datainfo_c | ( | datainfo_t * | dinfo, |
const int32_t | fid, | ||
const char * | varname, | ||
const int32_t | step, | ||
const int32_t | suppress | ||
) |
Definition at line 338 of file scale_file_netcdf.c.
Referenced by scale_file::file_def_variable(), and scale_file::file_get_stepsize().
int32_t file_get_step_size_c | ( | const int32_t | fid, |
const char * | varname, | ||
int32_t * | len | ||
) |
Definition at line 633 of file scale_file_netcdf.c.
References scale_file::i, and RANK_MAX.
Referenced by scale_file::file_get_stepsize().
int32_t file_read_data_c | ( | void * | var, |
const datainfo_t * | dinfo, | ||
const int32_t | precision, | ||
const MPI_Offset | ntypes, | ||
const MPI_Datatype | dtype, | ||
const int32_t * | start, | ||
const int32_t * | count | ||
) |
Definition at line 687 of file scale_file_netcdf.c.
Referenced by scale_file::file_get_stepsize().
int32_t file_get_attribute_text_c | ( | const int32_t | fid, |
const char * | vname, | ||
const char * | key, | ||
const int32_t | suppress, | ||
char * | value, | ||
const int32_t | len | ||
) |
Definition at line 852 of file scale_file_netcdf.c.
Referenced by scale_file::file_def_variable().
int32_t file_get_attribute_int_c | ( | const int32_t | fid, |
const char * | vname, | ||
const char * | key, | ||
const int32_t | suppress, | ||
int * | value, | ||
const size_t | len | ||
) |
Definition at line 899 of file scale_file_netcdf.c.
int32_t file_get_attribute_float_c | ( | const int32_t | fid, |
const char * | vname, | ||
const char * | key, | ||
const int32_t | suppress, | ||
float * | value, | ||
const size_t | len | ||
) |
Definition at line 942 of file scale_file_netcdf.c.
Referenced by scale_file::file_def_variable().
int32_t file_get_attribute_double_c | ( | const int32_t | fid, |
const char * | vname, | ||
const char * | key, | ||
const int32_t | suppress, | ||
double * | value, | ||
const size_t | len | ||
) |
Definition at line 985 of file scale_file_netcdf.c.
Referenced by scale_file::file_def_variable().
int32_t file_set_attribute_text_c | ( | const int32_t | fid, |
const char * | vname, | ||
const char * | key, | ||
const char * | val | ||
) |
Definition at line 1028 of file scale_file_netcdf.c.
Referenced by scale_file::file_def_variable().
int32_t file_set_attribute_int_c | ( | const int32_t | fid, |
const char * | vname, | ||
const char * | key, | ||
const int32_t * | value, | ||
const size_t | len | ||
) |
Definition at line 1069 of file scale_file_netcdf.c.
Referenced by scale_file::file_def_variable().
int32_t file_set_attribute_float_c | ( | const int32_t | fid, |
const char * | vname, | ||
const char * | key, | ||
const float * | value, | ||
const size_t | len | ||
) |
Definition at line 1112 of file scale_file_netcdf.c.
Referenced by scale_file::file_def_variable().
int32_t file_set_attribute_double_c | ( | const int32_t | fid, |
const char * | vname, | ||
const char * | key, | ||
const double * | value, | ||
const size_t | len | ||
) |
Definition at line 1154 of file scale_file_netcdf.c.
Referenced by scale_file::file_def_variable().
int32_t file_add_associatedvariable_c | ( | const int32_t | fid, |
const char * | vname | ||
) |
Definition at line 1192 of file scale_file_netcdf.c.
Referenced by scale_file::file_add_associatedvariable().
int32_t file_set_tunits_c | ( | const int32_t | fid, |
const char * | time_units, | ||
const char * | calendar | ||
) |
Definition at line 1215 of file scale_file_netcdf.c.
Referenced by scale_file::file_create().
int32_t file_put_axis_c | ( | const int32_t | fid, |
const char * | name, | ||
const char * | desc, | ||
const char * | units, | ||
const char * | dim_name, | ||
const int32_t | dtype, | ||
const void * | val, | ||
const int32_t | size, | ||
const int32_t | precision | ||
) |
Definition at line 1225 of file scale_file_netcdf.c.
Referenced by scale_file::file_get_dimlength().
int32_t file_def_axis_c | ( | const int32_t | fid, |
const char * | name, | ||
const char * | desc, | ||
const char * | units, | ||
const char * | dim_name, | ||
const int32_t | dtype, | ||
const int32_t | dim_size, | ||
const int32_t | bounds | ||
) |
Definition at line 1274 of file scale_file_netcdf.c.
References File_HSHORT.
Referenced by scale_file::file_def_axis().
int32_t file_write_axis_c | ( | const int32_t | fid, |
const char * | name, | ||
const void * | val, | ||
const int32_t | precision, | ||
const MPI_Offset * | start, | ||
const MPI_Offset * | count | ||
) |
Definition at line 1339 of file scale_file_netcdf.c.
Referenced by scale_file::file_def_axis().
int32_t file_put_associatedcoordinate_c | ( | const int32_t | fid, |
const char * | name, | ||
const char * | desc, | ||
const char * | units, | ||
const char ** | dim_names, | ||
const int32_t | ndims, | ||
const int32_t | dtype, | ||
const void * | val, | ||
const int32_t | precision | ||
) |
Definition at line 1381 of file scale_file_netcdf.c.
References scale_file::i.
Referenced by scale_file::file_def_axis().
int32_t file_def_associatedcoordinate_c | ( | const int32_t | fid, |
const char * | name, | ||
const char * | desc, | ||
const char * | units, | ||
const char ** | dim_names, | ||
const int32_t | ndims, | ||
const int32_t | dtype | ||
) |
Definition at line 1434 of file scale_file_netcdf.c.
References scale_file::i.
Referenced by scale_file::file_def_associatedcoordinate().
int32_t file_write_associatedcoordinate_c | ( | const int32_t | fid, |
const char * | name, | ||
const void * | val, | ||
const int32_t | precision, | ||
const MPI_Offset * | start, | ||
const MPI_Offset * | count | ||
) |
Definition at line 1484 of file scale_file_netcdf.c.
Referenced by scale_file::file_def_associatedcoordinate().
int32_t file_add_variable_c | ( | const int32_t | fid, |
const char * | varname, | ||
const char * | desc, | ||
const char * | units, | ||
const char * | stdname, | ||
const char ** | dims, | ||
const int32_t | ndims, | ||
const int32_t | dtype, | ||
const real64_t | tint, | ||
const int32_t | tavg, | ||
int32_t * | vid | ||
) |
Definition at line 1526 of file scale_file_netcdf.c.
References File_HMID, File_HSHORT, scale_file::i, mod_atmos_vars::j, and scale_tracer::k.
Referenced by scale_file::file_def_associatedcoordinate(), and scale_file::file_def_variable().
int32_t file_enddef_c | ( | const int32_t | fid | ) |
Definition at line 1794 of file scale_file_netcdf.c.
Referenced by scale_file::file_enddef().
int32_t file_redef_c | ( | const int32_t | fid | ) |
Definition at line 1805 of file scale_file_netcdf.c.
Referenced by scale_file::file_redef().
int32_t file_attach_buffer_c | ( | const int32_t | fid, |
const int64_t | buf_amount | ||
) |
Definition at line 1816 of file scale_file_netcdf.c.
Referenced by scale_file::file_attach_buffer().
int32_t file_detach_buffer_c | ( | const int32_t | fid | ) |
Definition at line 1830 of file scale_file_netcdf.c.
Referenced by scale_file::file_detach_buffer().
int32_t file_flush_c | ( | const int32_t | fid | ) |
Definition at line 1843 of file scale_file_netcdf.c.
Referenced by scale_file::file_flush().
int32_t file_write_data_c | ( | const int32_t | fid, |
const int32_t | vid, | ||
const void * | var, | ||
const real64_t | t_start, | ||
const real64_t | t_end, | ||
const int32_t | precision, | ||
const int32_t | ndims, | ||
const int32_t * | start, | ||
const int32_t * | count | ||
) |
Definition at line 1858 of file scale_file_netcdf.c.
Referenced by scale_file::file_get_stepsize().
int32_t file_close_c | ( | const int32_t | fid, |
const int32_t | abort | ||
) |
Definition at line 1982 of file scale_file_netcdf.c.
Referenced by scale_file::file_close().