summaryrefslogtreecommitdiffstats
path: root/src/H5Dlayout.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2016-04-03 09:18:25 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2016-04-03 09:18:25 (GMT)
commit86f401d7407e3070cfa04359d4d04335addb83c7 (patch)
treec3b49b8b46940dacc808109e4250626ee770a9e8 /src/H5Dlayout.c
parent3cd705e56e6ef13c3423df68bb12704d483409ae (diff)
downloadhdf5-86f401d7407e3070cfa04359d4d04335addb83c7.zip
hdf5-86f401d7407e3070cfa04359d4d04335addb83c7.tar.gz
hdf5-86f401d7407e3070cfa04359d4d04335addb83c7.tar.bz2
[svn-r29614] Description:
Bring updated code for setting chunk size information from revise_chunks branch. Tested on: MacOSX/64 10.11.4 (amazon) w/serial, parallel & production (h5committest forthcoming)
Diffstat (limited to 'src/H5Dlayout.c')
-rw-r--r--src/H5Dlayout.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/H5Dlayout.c b/src/H5Dlayout.c
index 2b444e4..7801632 100644
--- a/src/H5Dlayout.c
+++ b/src/H5Dlayout.c
@@ -453,9 +453,10 @@ H5D__layout_oh_read(H5D_t *dataset, hid_t dxpl_id, hid_t dapl_id, H5P_genplist_t
/* Copy layout to the DCPL */
if(H5P_set(plist, H5D_CRT_LAYOUT_NAME, &dataset->shared->layout) < 0)
HGOTO_ERROR(H5E_DATASET, H5E_CANTSET, FAIL, "can't set layout")
- /* Adjust chunk dimensions back again (*sigh*) */
- if(H5D_CHUNKED == dataset->shared->layout.type)
- dataset->shared->layout.u.chunk.ndims++;
+
+ /* Set chunk sizes */
+ if(H5D__chunk_set_sizes(dataset) < 0)
+ HGOTO_ERROR(H5E_DATASET, H5E_BADVALUE, FAIL, "unable to set chunk sizes")
done:
FUNC_LEAVE_NOAPI(ret_value)