summaryrefslogtreecommitdiffstats
path: root/src/H5DZ.c
diff options
context:
space:
mode:
authorBill Wendling <wendling@ncsa.uiuc.edu>2003-11-12 23:02:00 (GMT)
committerBill Wendling <wendling@ncsa.uiuc.edu>2003-11-12 23:02:00 (GMT)
commit680262645fc936e17571ac43e905b678bc799bb6 (patch)
treef6eaa5077ddf4722757f599c8c1a9ae70d8d887c /src/H5DZ.c
parent2668d2e5a3c34631918ff6ea1945c514e2df083b (diff)
downloadhdf5-680262645fc936e17571ac43e905b678bc799bb6.zip
hdf5-680262645fc936e17571ac43e905b678bc799bb6.tar.gz
hdf5-680262645fc936e17571ac43e905b678bc799bb6.tar.bz2
[svn-r7838] Purpose:
Bug fix and File Addition Description: - Fixed when reading from the file with FPHDF5. It wasn't recording how many bytes it read. - Added Arithmetic Transformation modules. These haven't been included into the HDF5 build. I just added them here for future porposes... Solution: Added a call to "MPI_Get_count" to get the number of bytes read. Platforms tested: Linux (w/ FPHDF5) AIX (w/ and w/o FPHDF5) FPHDF5-specific fixes...No need for H5committest Misc. update:
Diffstat (limited to 'src/H5DZ.c')
-rw-r--r--src/H5DZ.c82
1 files changed, 82 insertions, 0 deletions
diff --git a/src/H5DZ.c b/src/H5DZ.c
new file mode 100644
index 0000000..7affb47
--- /dev/null
+++ b/src/H5DZ.c
@@ -0,0 +1,82 @@
+/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
+ * Copyright by the Board of Trustees of the University of Illinois. *
+ * All rights reserved. *
+ * *
+ * This file is part of HDF5. The full HDF5 copyright notice, including *
+ * terms governing use, modification, and redistribution, is contained in *
+ * the files COPYING and Copyright.html. COPYING can be found at the root *
+ * of the source code distribution tree; Copyright.html can be found at the *
+ * root level of an installed copy of the electronic HDF5 document set and *
+ * is linked from the top-level documents page. It can also be found at *
+ * http://hdf.ncsa.uiuc.edu/HDF5/doc/Copyright.html. If you do not have *
+ * access to either file, you may request a copy from hdfhelp@ncsa.uiuc.edu. *
+ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
+
+/*
+ * Programmer: Bill Wendling <wendling@ncsa.uiuc.edu>
+ * 25. August 2003
+ *
+ * Dataset Filters
+ *
+ * This is a filter, similar to the H5Z* filters. However, these
+ * transformations are applied to the data before a write or after a
+ * read.
+ *
+ * - If applied before a write, a permanent change of the data
+ * may take place.
+ * - If applied after a read, the data is only changed
+ * in memory.
+ *
+ * The transformations are transitory (not saved with the dataset).
+ * The transformations aren't automatically reversible, since this
+ * isn't possible in all cases and not possible if the original
+ * transformation was lost (it being transitory).
+ */
+
+/*
+ * Pablo information
+ * (Put before include files to avoid problems with inline functions)
+ */
+#define PABLO_MASK H5DZ_mask
+
+#include "H5private.h" /* Generic Functions */
+
+
+/*-------------------------------------------------------------------------
+ * Function: H5DZ_init_interface
+ * Purpose: Initializes the data filters layer.
+ * Return: Non-negative on success/Negative on failure
+ * Programmer: Bill Wendling
+ * 25. August 2003
+ * Modifications:
+ *
+ *-------------------------------------------------------------------------
+ */
+static herr_t
+H5DZ_init_interface(void)
+{
+ herr_t ret_value = SUCCEED;
+
+ FUNC_ENTER_NOINIT(H5DZ_init_interface)
+
+ FUNC_LEAVE_NOAPI(ret_value)
+}
+
+/*-------------------------------------------------------------------------
+ * Function: H5DZ_term_interface
+ * Purpose: Terminate the H5DZ layer.
+ * Return: 0
+ * Programmer: Bill Wendling
+ * 25. August 2003
+ * Modifications:
+ *
+ *-------------------------------------------------------------------------
+ */
+int
+H5DZ_term_interface(void)
+{
+ if (interface_initialize_g)
+ interface_initialize_g = 0;
+
+ return 0;
+}