|
ExodusII 4.96
|

Data Structures | |
| struct | file_item |
Defines | |
| #define | NC_FLOAT_WORDSIZE 4 |
| #define | NC_DOUBLE_WORDSIZE 8 |
| #define | FIND_FILE(ptr, id) |
Functions | |
| int | ex_conv_ini (int exoid, int *comp_wordsize, int *io_wordsize, int file_wordsize) |
| void | ex_conv_exit (int exoid) |
| nc_type | nc_flt_code (int exoid) |
| int | ex_comp_ws (int exoid) |
Variables | |
| struct file_item * | file_list = NULL |
this file contains code needed to support the various floating point word size combinations for computation and i/o that applications might want to use. See the netcdf documentation for more details on the floating point conversion capabilities.
netCDF supports two floating point word sizes for its files:
| #define FIND_FILE | ( | ptr, | |
| id | |||
| ) |
Referenced by ex_comp_ws(), and nc_flt_code().
| #define NC_DOUBLE_WORDSIZE 8 |
| #define NC_FLOAT_WORDSIZE 4 |
Referenced by ex_conv_ini().
| int ex_comp_ws | ( | int | exoid | ) |
ex_comp_ws() returns 4 (i.e. sizeof(float)) or 8 (i.e. sizeof(double)), depending on the value of floating point word size used to initialize the conversion facility for this file id (exoid).
| exoid | integer which uniquely identifies the file of interest. |
References EX_BADFILEID, ex_err(), EX_FATAL, exerrval, FIND_FILE, MAX_ERR_LENGTH, and file_item::user_compute_wordsize.
Referenced by ex_get_all_times(), ex_get_attr(), ex_get_concat_sets(), ex_get_coord(), ex_get_coordinate_frames(), ex_get_glob_var_time(), ex_get_glob_vars(), ex_get_n_coord(), ex_get_n_nodal_var(), ex_get_n_one_attr(), ex_get_n_var(), ex_get_nodal_var(), ex_get_nodal_var_time(), ex_get_nodal_varid_var(), ex_get_one_attr(), ex_get_set_dist_fact(), ex_get_time(), ex_get_var(), ex_get_var_time(), ex_get_varid_var(), ex_put_attr(), ex_put_concat_sets(), ex_put_coord(), ex_put_coordinate_frames(), ex_put_n_coord(), ex_put_n_nodal_var(), ex_put_n_one_attr(), ex_put_n_var(), ex_put_nodal_var(), ex_put_nodal_varid_var(), ex_put_one_attr(), ex_put_partial_set_dist_fact(), ex_put_set_dist_fact(), ex_put_time(), ex_put_var(), and ex_put_varid_var().
| void ex_conv_exit | ( | int | exoid | ) |
ex_conv_exit() takes the structure identified by "exoid" out of the linked list which describes the files that ex_conv_array() knows how to convert.
| exoid | integer which uniquely identifies the file of interest. |
References EX_BADFILEID, ex_err(), EX_MSG, exerrval, file_item::file_id, file_list, MAX_ERR_LENGTH, file_item::next, and NULL.
Referenced by ex_close().
| int ex_conv_ini | ( | int | exoid, |
| int * | comp_wordsize, | ||
| int * | io_wordsize, | ||
| int | file_wordsize | ||
| ) |
ex_conv_ini() initializes the floating point conversion process.
| exoid | an integer uniquely identifying the file of interest. |
| comp_wordsize | compute floating point word size in the user's code. a zero value indicates that the user is requesting the default float size for the machine. The appropriate value is chosen and returned in comp_wordsize, and used in subsequent conversions. a valid but inappropriate for this parameter cannot be detected. |
| io_wordsize | the desired floating point word size for a netCDF file. for an existing file, if this parameter doesn't match the word size of data already stored in the file, a fatal error is generated. a value of 0 for an existing file indicates that the word size of the file was not known a priori, so use whatever is in the file. a value of 0 for a new file means to use the default size, an NC_FLOAT (4 bytes). when a value of 0 is specified the actual value used is returned in io_wordsize. |
| file_wordsize | floating point word size in an existing netCDF file. a value of 0 should be passed in for a new netCDF file. |
word size parameters are specified in bytes. valid values are 0, 4, and 8:
References ex_err(), EX_FATAL, EX_MSG, EX_NOERR, file_item::file_id, file_list, MAX_ERR_LENGTH, NC_FLOAT_WORDSIZE, file_item::netcdf_type_code, file_item::next, and file_item::user_compute_wordsize.
Referenced by ex_create_int(), and ex_open_int().
| nc_type nc_flt_code | ( | int | exoid | ) |
References EX_BADFILEID, ex_err(), exerrval, FIND_FILE, MAX_ERR_LENGTH, and file_item::netcdf_type_code.
Referenced by cpy_coord_def(), cpy_var_def(), ex_create_int(), ex_header_size(), ex_put_all_var_param_ext(), ex_put_attr_param(), ex_put_block(), ex_put_concat_elem_block(), ex_put_concat_sets(), ex_put_coordinate_frames(), ex_put_init_ext(), ex_put_set_param(), ex_put_truth_table(), and ex_put_variable_param().
Referenced by ex_conv_exit(), and ex_conv_ini().