SCALE-RM
|
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include <math.h>
#include <mpi.h>
#include "scale_file_const.h"
Go to the source code of this file.
Classes | |
struct | datainfo_t |
Functions | |
typedef | float (real32_t) |
typedef | double (real64_t) |
int | file_open_c (int *fid, const char *fname, const int mode, const int comm) |
int | file_get_dim_length_c (int *len, const int fid, const char *dimname, const bool suppress) |
int | file_set_option_c (const int fid, const char *filetype, const char *key, const char *val) |
int | file_get_nvars_c (int *nvars, const int fid) |
int | file_get_varname_c (char *name, const int fid, const int vid, const int len) |
int | file_get_datainfo_c (datainfo_t *dinfo, const int fid, const char *varname, const int step, const bool suppress) |
int | file_get_step_size_c (int *len, const int fid, const char *varname) |
int | file_read_data_c (void *var, const datainfo_t *dinfo, const int precision, const int ntypes, const int dtype, const int *start, const int *count) |
int | file_get_attribute_text_c (char *value, const int fid, const char *vname, const char *key, const bool suppress, const int len) |
int | file_get_attribute_int_c (int *value, const int fid, const char *vname, const char *key, const bool suppress, const int len) |
int | file_get_attribute_float_c (float *value, const int fid, const char *vname, const char *key, const bool suppress, const int len) |
int | file_get_attribute_double_c (double *value, const int fid, const char *vname, const char *key, const bool suppress, const int len) |
int | file_set_attribute_text_c (const int fid, const char *vname, const char *key, const char *value) |
int | file_set_attribute_int_c (const int fid, const char *vname, const char *key, const int *value, const int len) |
int | file_set_attribute_float_c (const int fid, const char *vname, const char *key, const float *value, const int len) |
int | file_set_attribute_double_c (const int fid, const char *vname, const char *key, const double *value, const int len) |
int | file_add_associatedvariable_c (const int fid, const char *vname) |
int | file_set_tunits_c (const int fid, const char *time_units, const char *calendar) |
int | file_put_axis_c (const int fid, const char *name, const char *desc, const char *units, const char *dim_name, const int dtype, const void *val, const int size, const int precision) |
int | file_def_axis_c (const int fid, const char *name, const char *desc, const char *units, const char *dim_name, const int dtype, const int dim_size, const int bounds) |
int | file_write_axis_c (const int fid, const char *name, const void *val, const int precision, const int *start, const int *count) |
int | file_put_associatedcoordinate_c (const int fid, const char *name, const char *desc, const char *units, const char **dim_names, const int ndims, const int dtype, const void *val, const int precision) |
int | file_def_associatedcoordinate_c (const int fid, const char *name, const char *desc, const char *units, const char **dim_names, const int ndims, const int dtype) |
int | file_write_associatedcoordinate_c (const int fid, const char *name, const void *val, const int ndims, const int precision, const int *start, const int *count) |
int | file_add_variable_c (int *vid, const int fid, const char *varname, const char *desc, const char *units, const char *stdname, const char **dims, const int ndims, const int dtype, const double tint, const char *tstats) |
int | file_write_data_c (const int fid, const int vid, const void *var, const double t_start, const double t_end, const int ndims, const int precision, const int *start, const int *count) |
int | file_enddef_c (const int fid) |
int | file_redef_c (const int fid) |
int | file_attach_buffer_c (const int fid, const int64_t buf_amount) |
int | file_detach_buffer_c (const int fid) |
int | file_flush_c (const int fid) |
int | file_close_c (const int fid, const bool abort) |
typedef float | ( | real32_t | ) |
Referenced by scale_atmos_phy_ae_kajino13::atmos_phy_ae_kajino13_negative_fixer(), scale_atmos_phy_ae_kajino13::atmos_phy_ae_kajino13_setup(), and scale_atmos_phy_rd_mm5sw::swpara().
typedef double | ( | real64_t | ) |
int file_open_c | ( | int * | fid, |
const char * | fname, | ||
const int | mode, | ||
const int | comm | ||
) |
Definition at line 170 of file scale_file_netcdf.c.
References File_HLONG.
Referenced by scale_file::file_get_aggregate().
int file_get_dim_length_c | ( | int * | len, |
const int | fid, | ||
const char * | dimname, | ||
const bool | suppress | ||
) |
Definition at line 258 of file scale_file_netcdf.c.
Referenced by scale_file::file_get_dimlength().
int file_set_option_c | ( | const int | fid, |
const char * | filetype, | ||
const char * | key, | ||
const char * | val | ||
) |
Definition at line 287 of file scale_file_netcdf.c.
References SUCCESS_CODE.
Referenced by scale_file::file_set_option().
int file_get_nvars_c | ( | int * | nvars, |
const int | fid | ||
) |
Definition at line 303 of file scale_file_netcdf.c.
Referenced by scale_file::file_create().
int file_get_varname_c | ( | char * | name, |
const int | fid, | ||
const int | vid, | ||
const int | len | ||
) |
Definition at line 320 of file scale_file_netcdf.c.
References scale_file::i.
Referenced by scale_file::file_create().
int file_get_datainfo_c | ( | datainfo_t * | dinfo, |
const int | fid, | ||
const char * | varname, | ||
const int | step, | ||
const bool | suppress | ||
) |
Definition at line 345 of file scale_file_netcdf.c.
Referenced by scale_file::file_def_variable(), and scale_file::file_get_stepsize().
int file_get_step_size_c | ( | int * | len, |
const int | fid, | ||
const char * | varname | ||
) |
Definition at line 643 of file scale_file_netcdf.c.
References scale_file::i, and RANK_MAX.
Referenced by scale_file::file_get_stepsize().
int file_read_data_c | ( | void * | var, |
const datainfo_t * | dinfo, | ||
const int | precision, | ||
const int | ntypes, | ||
const int | dtype, | ||
const int * | start, | ||
const int * | count | ||
) |
Definition at line 697 of file scale_file_netcdf.c.
Referenced by scale_file::file_get_stepsize().
int file_get_attribute_text_c | ( | char * | value, |
const int | fid, | ||
const char * | vname, | ||
const char * | key, | ||
const bool | suppress, | ||
const int | len | ||
) |
Definition at line 864 of file scale_file_netcdf.c.
Referenced by scale_file::file_def_variable().
int file_get_attribute_int_c | ( | int * | value, |
const int | fid, | ||
const char * | vname, | ||
const char * | key, | ||
const bool | suppress, | ||
const int | len | ||
) |
Definition at line 911 of file scale_file_netcdf.c.
Referenced by scale_file::file_def_variable().
int file_get_attribute_float_c | ( | float * | value, |
const int | fid, | ||
const char * | vname, | ||
const char * | key, | ||
const bool | suppress, | ||
const int | len | ||
) |
Definition at line 954 of file scale_file_netcdf.c.
Referenced by scale_file::file_def_variable().
int file_get_attribute_double_c | ( | double * | value, |
const int | fid, | ||
const char * | vname, | ||
const char * | key, | ||
const bool | suppress, | ||
const int | len | ||
) |
Definition at line 997 of file scale_file_netcdf.c.
Referenced by scale_file::file_def_variable().
int file_set_attribute_text_c | ( | const int | fid, |
const char * | vname, | ||
const char * | key, | ||
const char * | value | ||
) |
Definition at line 1040 of file scale_file_netcdf.c.
Referenced by scale_file::file_def_variable().
int file_set_attribute_int_c | ( | const int | fid, |
const char * | vname, | ||
const char * | key, | ||
const int * | value, | ||
const int | len | ||
) |
Definition at line 1081 of file scale_file_netcdf.c.
Referenced by scale_file::file_def_variable().
int file_set_attribute_float_c | ( | const int | fid, |
const char * | vname, | ||
const char * | key, | ||
const float * | value, | ||
const int | len | ||
) |
Definition at line 1124 of file scale_file_netcdf.c.
Referenced by scale_file::file_def_variable().
int file_set_attribute_double_c | ( | const int | fid, |
const char * | vname, | ||
const char * | key, | ||
const double * | value, | ||
const int | len | ||
) |
Definition at line 1166 of file scale_file_netcdf.c.
Referenced by scale_file::file_def_variable().
int file_add_associatedvariable_c | ( | const int | fid, |
const char * | vname | ||
) |
Definition at line 1204 of file scale_file_netcdf.c.
Referenced by scale_file::file_add_associatedvariable().
int file_set_tunits_c | ( | const int | fid, |
const char * | time_units, | ||
const char * | calendar | ||
) |
Definition at line 1227 of file scale_file_netcdf.c.
Referenced by scale_file::file_create().
int file_put_axis_c | ( | const int | fid, |
const char * | name, | ||
const char * | desc, | ||
const char * | units, | ||
const char * | dim_name, | ||
const int | dtype, | ||
const void * | val, | ||
const int | size, | ||
const int | precision | ||
) |
Definition at line 1237 of file scale_file_netcdf.c.
Referenced by scale_file::file_get_dimlength().
int file_def_axis_c | ( | const int | fid, |
const char * | name, | ||
const char * | desc, | ||
const char * | units, | ||
const char * | dim_name, | ||
const int | dtype, | ||
const int | dim_size, | ||
const int | bounds | ||
) |
Definition at line 1286 of file scale_file_netcdf.c.
References File_HSHORT.
Referenced by scale_file::file_def_axis().
int file_write_axis_c | ( | const int | fid, |
const char * | name, | ||
const void * | val, | ||
const int | precision, | ||
const int * | start, | ||
const int * | count | ||
) |
Definition at line 1351 of file scale_file_netcdf.c.
Referenced by scale_file::file_def_axis().
int file_put_associatedcoordinate_c | ( | const int | fid, |
const char * | name, | ||
const char * | desc, | ||
const char * | units, | ||
const char ** | dim_names, | ||
const int | ndims, | ||
const int | dtype, | ||
const void * | val, | ||
const int | precision | ||
) |
Definition at line 1397 of file scale_file_netcdf.c.
References scale_file::i.
Referenced by scale_file::file_def_axis().
int file_def_associatedcoordinate_c | ( | const int | fid, |
const char * | name, | ||
const char * | desc, | ||
const char * | units, | ||
const char ** | dim_names, | ||
const int | ndims, | ||
const int | dtype | ||
) |
Definition at line 1450 of file scale_file_netcdf.c.
References scale_file::i.
Referenced by scale_file::file_def_associatedcoordinate().
int file_write_associatedcoordinate_c | ( | const int | fid, |
const char * | name, | ||
const void * | val, | ||
const int | ndims, | ||
const int | precision, | ||
const int * | start, | ||
const int * | count | ||
) |
Definition at line 1500 of file scale_file_netcdf.c.
Referenced by scale_file::file_def_associatedcoordinate().
int file_add_variable_c | ( | int * | vid, |
const int | fid, | ||
const char * | varname, | ||
const char * | desc, | ||
const char * | units, | ||
const char * | stdname, | ||
const char ** | dims, | ||
const int | ndims, | ||
const int | dtype, | ||
const double | tint, | ||
const char * | tstats | ||
) |
Definition at line 1550 of file scale_file_netcdf.c.
Referenced by scale_file::file_def_associatedcoordinate(), and scale_file::file_def_variable().
int file_write_data_c | ( | const int | fid, |
const int | vid, | ||
const void * | var, | ||
const double | t_start, | ||
const double | t_end, | ||
const int | ndims, | ||
const int | precision, | ||
const int * | start, | ||
const int * | count | ||
) |
Definition at line 1882 of file scale_file_netcdf.c.
Referenced by scale_file::file_get_stepsize().
int file_enddef_c | ( | const int | fid | ) |
Definition at line 1818 of file scale_file_netcdf.c.
Referenced by scale_file::file_enddef().
int file_redef_c | ( | const int | fid | ) |
Definition at line 1829 of file scale_file_netcdf.c.
Referenced by scale_file::file_redef().
int file_attach_buffer_c | ( | const int | fid, |
const int64_t | buf_amount | ||
) |
Definition at line 1840 of file scale_file_netcdf.c.
Referenced by scale_file::file_attach_buffer().
int file_detach_buffer_c | ( | const int | fid | ) |
Definition at line 1854 of file scale_file_netcdf.c.
Referenced by scale_file::file_detach_buffer().
int file_flush_c | ( | const int | fid | ) |
Definition at line 1867 of file scale_file_netcdf.c.
Referenced by scale_file::file_flush().
int file_close_c | ( | const int | fid, |
const bool | abort | ||
) |
Definition at line 2006 of file scale_file_netcdf.c.
Referenced by scale_file::file_close().