- obsolete hdf5_xyz() functions replaced

This commit is contained in:
2010-05-27 13:40:02 +00:00
parent 45637df399
commit 4e7eb421c1
3 changed files with 18 additions and 25 deletions
+8 -13
View File
@@ -1380,8 +1380,7 @@ H5BlockGetNumFields (
if ( ! _have_object ( f->step_gid, H5BLOCK_GROUPNAME_BLOCK ) )
return 0;
return hdf5_get_num_objects (
f->step_gid, H5BLOCK_GROUPNAME_BLOCK, H5G_GROUP );
return h5_get_num_hdf5_groups (f, f->b->blockgroup);
}
/*!
@@ -1416,10 +1415,7 @@ _get_field_info (
for ( i = 0, j = *grid_rank-1; i < *grid_rank; i++, j-- )
grid_dims[i] = (h5_int64_t)dims[j];
TRY ( *field_dims = hdf5_get_num_objects (
f->b->blockgroup,
field_name,
H5G_DATASET ) );
TRY( *field_dims = h5_get_num_hdf5_datasets (f, f->b->field_group_id) );
TRY( h5priv_close_hdf5_dataspace( f, dataspace_id ) );
TRY( h5priv_close_hdf5_dataset( f, dataset_id ) );
TRY( h5priv_close_hdf5_group( f, group_id ) );
@@ -1454,13 +1450,12 @@ H5BlockGetFieldInfo (
SET_FNAME ( f, __func__ );
CHECK_TIMEGROUP( f );
TRY ( hdf5_get_object_name (
f->step_gid,
H5BLOCK_GROUPNAME_BLOCK,
H5G_GROUP,
idx,
field_name,
len_field_name ) );
TRY( h5_get_hdf5_groupname_by_idx (
f,
f->b->blockgroup,
idx,
field_name,
len_field_name) );
return _get_field_info (
f, field_name, grid_rank, grid_dims, field_dims );
+7 -8
View File
@@ -622,7 +622,7 @@ H5PartGetNumDatasets (
SET_FNAME ( f, __func__ );
CHECK_FILEHANDLE ( f );
return hdf5_get_num_objects ( f->file, f->step_name, H5G_DATASET );
return h5_get_num_hdf5_datasets (f, f->step_gid);
}
/*!
@@ -638,9 +638,9 @@ H5PartGetNumDatasets (
h5_int64_t
H5PartGetDatasetName (
h5_file_t *f, /*!< [in] Handle to open file */
const h5_int64_t idx, /*!< [in] Index of the dataset */
const h5_int64_t idx, /*!< [in] Index of the dataset */
char *name, /*!< [out] Name of dataset */
const h5_int64_t len_of_name/*!< [in] Size of buffer \c name */
const h5_int64_t len_of_name /*!< [in] Size of buffer \c name */
) {
SET_FNAME ( f, __func__ );
@@ -648,13 +648,12 @@ H5PartGetDatasetName (
if ( h5_check_filehandle ( f ) != H5_SUCCESS )
return h5_get_errno ( f );
return hdf5_get_object_name (
f->file,
f->step_name,
H5G_DATASET,
return h5_get_hdf5_datasetname_by_idx (
f,
f->step_gid,
idx,
name,
len_of_name );
len_of_name);
}
/*!
+3 -4
View File
@@ -60,10 +60,9 @@ H5GetNumSteps (
SET_FNAME (f, __func__);
CHECK_FILEHANDLE (f);
return hdf5_get_num_objects_matching_pattern (
f->file,
"/",
H5G_UNKNOWN,
return h5_get_num_hdf5_groups_matching_prefix (
f,
f->step_gid,
f->prefix_step_name);
}