16 #include <H5Tpublic.h>
17 #include <H5Dpublic.h>
18 #include <H5Ppublic.h>
19 #include <H5Gpublic.h>
29 hid_t root_id, node_id;
35 #if defined( H5Gopen_vers ) && H5Gopen_vers > 1
53 #if defined( H5Gopen_vers ) && H5Gopen_vers > 1
88 mhdf_setFail( status,
"Invalid argument: dimension = %d.", dimension );
92 dims[0] = (hsize_t)num_nodes;
93 dims[1] = (hsize_t)dimension;
95 if( table_id < 0 )
return -1;
97 first_id = file_ptr->
max_id + 1;
100 H5Dclose( table_id );
104 *first_id_out = first_id;
105 file_ptr->
max_id += num_nodes;
108 H5Dclose( table_id );
132 if( table_id < 0 )
return -1;
134 *num_nodes_out = dims[0];
135 *dimension_out = dims[1];
151 if( table_id < 0 )
return -1;
162 mhdf_write_data( table_id, offset, count, H5T_NATIVE_DOUBLE, coords, H5P_DEFAULT, status );
168 const double* coords,
173 mhdf_write_data( table_id, offset, count, H5T_NATIVE_DOUBLE, coords, prop, status );
180 mhdf_read_data( table_id, offset, count, H5T_NATIVE_DOUBLE, coords, H5P_DEFAULT, status );
191 mhdf_read_data( table_id, offset, count, H5T_NATIVE_DOUBLE, coords, prop, status );
199 const double* coords,
203 mhdf_write_column( table_id, dimension, offset, count, H5T_NATIVE_DOUBLE, coords, H5P_DEFAULT, status );
210 const double* coords,
215 mhdf_write_column( table_id, dimension, offset, count, H5T_NATIVE_DOUBLE, coords, prop, status );
222 mhdf_read_column( table_id, dimension, offset, count, H5T_NATIVE_DOUBLE, coords, H5P_DEFAULT, status );
234 mhdf_read_column( table_id, dimension, offset, count, H5T_NATIVE_DOUBLE, coords, prop, status );