summaryrefslogtreecommitdiffstats
path: root/src/H5D.c
diff options
context:
space:
mode:
authorPaul Harten <pharten@ncsa.uiuc.edu>1998-04-23 22:41:15 (GMT)
committerPaul Harten <pharten@ncsa.uiuc.edu>1998-04-23 22:41:15 (GMT)
commit647e187605f9257db5dae9a07e338bf9a954f041 (patch)
treeb0bcc0d00294bcf0279ab2f8a8c3be2cc873ce1e /src/H5D.c
parent11977da23b4c499ec8c7b102aeb57a0fc9850508 (diff)
downloadhdf5-647e187605f9257db5dae9a07e338bf9a954f041.zip
hdf5-647e187605f9257db5dae9a07e338bf9a954f041.tar.gz
hdf5-647e187605f9257db5dae9a07e338bf9a954f041.tar.bz2
[svn-r364] Purpose:
Bug fix Problem: Compiler complained about: "Wrong number of parameters to function (H5D.c: 1225)" and "Wrong number of parameters to function (H5D.c: 1520)" Solution: In these two places, the read and write functions were missing the "compress" parameter, &(dataset->create_parms->compress). I added it back in the same way it was used in other places. Platform tested: ASCI Red machine
Diffstat (limited to 'src/H5D.c')
-rw-r--r--src/H5D.c21
1 files changed, 17 insertions, 4 deletions
diff --git a/src/H5D.c b/src/H5D.c
index 17a5c7d..d59f67a 100644
--- a/src/H5D.c
+++ b/src/H5D.c
@@ -14,12 +14,12 @@
static char RcsId[] = "@(#)$Revision$";
#endif
-#define H5D_PACKAGE /*suppress error about including H5Tpkg */
+/* $Id$ */
#include <H5private.h> /* Generic Functions */
#include <H5Iprivate.h> /* IDs */
#include <H5ACprivate.h> /* Cache */
-#include <H5Dpkg.h> /* Dataset functions */
+#include <H5Dprivate.h> /* Dataset functions */
#include <H5Eprivate.h> /* Error handling */
#include <H5Gprivate.h> /* Group headers */
#include <H5HLprivate.h> /* Name heap */
@@ -37,6 +37,17 @@ static char RcsId[] = "@(#)$Revision$";
*/
#define H5D_OPTIMIZE_PIPE 1
+/*
+ * A dataset is the following struct.
+ */
+struct H5D_t {
+ H5G_entry_t ent; /*cached object header stuff */
+ H5T_t *type; /*datatype of this dataset */
+ H5S_t *space; /*dataspace of this dataset */
+ H5D_create_t *create_parms; /*creation parameters */
+ H5O_layout_t layout; /*data layout */
+};
+
/* Default dataset creation property list */
const H5D_create_t H5D_create_dflt = {
H5D_CONTIGUOUS, /* Layout */
@@ -1209,9 +1220,10 @@ H5D_read(H5D_t *dataset, const H5T_t *mem_type, const H5S_t *mem_space,
access_mode_saved = dataset->ent.file->shared->access_parms.u.mpio.access_mode;
dataset->ent.file->shared->access_parms.u.mpio.access_mode = H5D_XFER_COLLECTIVE;
status = (sconv_func->read)(dataset->ent.file, &(dataset->layout),
+ &(dataset->create_parms->compress),
&(dataset->create_parms->efl),
H5T_get_size (dataset->type), file_space,
- mem_space, buf/*out*/);
+ mem_space, buf/*out*/);
if (status>=0) goto succeed;
HGOTO_ERROR (H5E_DATASET, H5E_READERROR, FAIL,
"collective read failed");
@@ -1504,9 +1516,10 @@ H5D_write(H5D_t *dataset, const H5T_t *mem_type, const H5S_t *mem_space,
access_mode_saved = dataset->ent.file->shared->access_parms.u.mpio.access_mode;
dataset->ent.file->shared->access_parms.u.mpio.access_mode = H5D_XFER_COLLECTIVE;
status = (sconv_func->write)(dataset->ent.file, &(dataset->layout),
+ &(dataset->create_parms->compress),
&(dataset->create_parms->efl),
H5T_get_size (dataset->type), file_space,
- mem_space, buf);
+ mem_space, buf);
if (status>=0) goto succeed;
HGOTO_ERROR (H5E_DATASET, H5E_WRITEERROR, FAIL,
"collective write failed");