mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-04-12 17:31:09 +08:00
[svn-r29549] Minor normalization w/ revise_chunks in preparation for big merge.
Tested on: 64-bit Ubuntu 15.10 w/ gcc 5.2.1 autotools serial autotools parallel (MPICH 3.1.4)
This commit is contained in:
parent
9333a2e39c
commit
caf3b0db14
@ -4316,7 +4316,7 @@ H5D__chunk_prune_by_extent(H5D_t *dset, hid_t dxpl_id, const hsize_t *old_dim)
|
||||
* Note that we only need to set scaled once, as the array's address
|
||||
* will never change. */
|
||||
chk_store.chunk.scaled = scaled;
|
||||
H5D_BUILD_IO_INFO_RD(&chk_io_info, dset, dxpl_cache, dxpl_id, &chk_store, NULL);
|
||||
H5D_BUILD_IO_INFO_RD(&chk_io_info, dset, dxpl_cache, dxpl_id, H5AC_rawdata_dxpl_id, &chk_store, NULL);
|
||||
chk_io_info.raw_dxpl_id = H5AC_rawdata_dxpl_id;
|
||||
|
||||
/* Compose chunked index info struct */
|
||||
|
@ -270,7 +270,7 @@ H5D__contig_fill(const H5D_io_info_t *io_info)
|
||||
offset = 0;
|
||||
|
||||
/* Simple setup for dataset I/O info struct */
|
||||
H5D_BUILD_IO_INFO_WRT(&ioinfo, dset, dxpl_cache, raw_dxpl_id, &store, fb_info.fill_buf);
|
||||
H5D_BUILD_IO_INFO_WRT(&ioinfo, dset, dxpl_cache, H5AC_ind_read_dxpl_id, raw_dxpl_id, &store, fb_info.fill_buf);
|
||||
|
||||
/*
|
||||
* Fill the entire current extent with the fill value. We can do
|
||||
|
12
src/H5Dpkg.h
12
src/H5Dpkg.h
@ -46,19 +46,19 @@
|
||||
#define H5D_MINHDR_SIZE 256
|
||||
|
||||
/* [Simple] Macro to construct a H5D_io_info_t from it's components */
|
||||
#define H5D_BUILD_IO_INFO_WRT(io_info, ds, dxpl_c, dxpl_i, str, buf) \
|
||||
#define H5D_BUILD_IO_INFO_WRT(io_info, ds, dxpl_c, dxpl_m, dxpl_r, str, buf) \
|
||||
(io_info)->dset = ds; \
|
||||
(io_info)->dxpl_cache = dxpl_c; \
|
||||
(io_info)->raw_dxpl_id = dxpl_i; \
|
||||
(io_info)->md_dxpl_id = dxpl_i; \
|
||||
(io_info)->raw_dxpl_id = dxpl_r; \
|
||||
(io_info)->md_dxpl_id = dxpl_m; \
|
||||
(io_info)->store = str; \
|
||||
(io_info)->op_type = H5D_IO_OP_WRITE; \
|
||||
(io_info)->u.wbuf = buf
|
||||
#define H5D_BUILD_IO_INFO_RD(io_info, ds, dxpl_c, dxpl_i, str, buf) \
|
||||
#define H5D_BUILD_IO_INFO_RD(io_info, ds, dxpl_c, dxpl_m, dxpl_r, str, buf) \
|
||||
(io_info)->dset = ds; \
|
||||
(io_info)->dxpl_cache = dxpl_c; \
|
||||
(io_info)->raw_dxpl_id = dxpl_i; \
|
||||
(io_info)->md_dxpl_id = dxpl_i; \
|
||||
(io_info)->raw_dxpl_id = dxpl_r; \
|
||||
(io_info)->md_dxpl_id = dxpl_m; \
|
||||
(io_info)->store = str; \
|
||||
(io_info)->op_type = H5D_IO_OP_READ; \
|
||||
(io_info)->u.rbuf = buf
|
||||
|
Loading…
x
Reference in New Issue
Block a user