summaryrefslogtreecommitdiffstats
path: root/src/H5Dnone.c
diff options
context:
space:
mode:
authorDavid Young <dyoung@hdfgroup.org>2020-08-04 15:22:47 (GMT)
committerDavid Young <dyoung@hdfgroup.org>2020-08-04 15:22:47 (GMT)
commitdc97b9a16569e588dd6c112153b3136003b14ee1 (patch)
tree2ea651b76195b4c7ef803ae3a518e4f7a6b3daf7 /src/H5Dnone.c
parentf28c92bb3661f43e9e05a15b78f748eb106adc18 (diff)
parent33c0016eb63a1d7894bd708cd020ba091a9a9857 (diff)
downloadhdf5-dc97b9a16569e588dd6c112153b3136003b14ee1.zip
hdf5-dc97b9a16569e588dd6c112153b3136003b14ee1.tar.gz
hdf5-dc97b9a16569e588dd6c112153b3136003b14ee1.tar.bz2
Merge branch 'aug-develop' into aug-merge-attempt/feature/vfd_swmr
Diffstat (limited to 'src/H5Dnone.c')
-rw-r--r--src/H5Dnone.c42
1 files changed, 21 insertions, 21 deletions
diff --git a/src/H5Dnone.c b/src/H5Dnone.c
index 654775e..e054f08 100644
--- a/src/H5Dnone.c
+++ b/src/H5Dnone.c
@@ -268,31 +268,31 @@ H5D__none_idx_iterate(const H5D_chk_idx_info_t *idx_info,
/* Iterate over all the chunks in the dataset's dataspace */
for(u = 0; u < idx_info->layout->nchunks && ret_value == H5_ITER_CONT; u++) {
- /* Calculate the index of this chunk */
- idx = H5VM_array_offset_pre(ndims, idx_info->layout->max_down_chunks, chunk_rec.scaled);
+ /* Calculate the index of this chunk */
+ idx = H5VM_array_offset_pre(ndims, idx_info->layout->max_down_chunks, chunk_rec.scaled);
- /* Calculate the address of the chunk */
- chunk_rec.chunk_addr = idx_info->storage->idx_addr + idx * idx_info->layout->size;
+ /* Calculate the address of the chunk */
+ chunk_rec.chunk_addr = idx_info->storage->idx_addr + idx * idx_info->layout->size;
- /* Make "generic chunk" callback */
- if((ret_value = (*chunk_cb)(&chunk_rec, chunk_udata)) < 0)
+ /* Make "generic chunk" callback */
+ if((ret_value = (*chunk_cb)(&chunk_rec, chunk_udata)) < 0)
HGOTO_ERROR(H5E_DATASET, H5E_CALLBACK, H5_ITER_ERROR, "failure in generic chunk iterator callback")
- /* Update coordinates of chunk in dataset */
- curr_dim = (int)(ndims - 1);
- while(curr_dim >= 0) {
- /* Increment coordinate in current dimension */
- chunk_rec.scaled[curr_dim]++;
-
- /* Check if we went off the end of the current dimension */
- if(chunk_rec.scaled[curr_dim] >= idx_info->layout->chunks[curr_dim]) {
- /* Reset coordinate & move to next faster dimension */
- chunk_rec.scaled[curr_dim] = 0;
- curr_dim--;
- } /* end if */
- else
- break;
- } /* end while */
+ /* Update coordinates of chunk in dataset */
+ curr_dim = (int)(ndims - 1);
+ while(curr_dim >= 0) {
+ /* Increment coordinate in current dimension */
+ chunk_rec.scaled[curr_dim]++;
+
+ /* Check if we went off the end of the current dimension */
+ if(chunk_rec.scaled[curr_dim] >= idx_info->layout->chunks[curr_dim]) {
+ /* Reset coordinate & move to next faster dimension */
+ chunk_rec.scaled[curr_dim] = 0;
+ curr_dim--;
+ } /* end if */
+ else
+ break;
+ } /* end while */
} /* end for */
done: