Commit Graph

3340 Commits

Author SHA1 Message Date
Pedro Vicente Nunes
78fb916259 [svn-r8149]
Purpose:
replaced name of delete filter with remove filter for the new function H5Premove_filter

Description:

Solution:

Platforms tested:
linux

Misc. update:
2004-02-04 14:36:12 -05:00
Quincey Koziol
517643f146 [svn-r8144] Purpose:
Bug fix.

Description:
    Revert the optimization to the MPI-I/O VFD from earlier this week that
eliminated calling MPI_File_set_size() when a file was truncated.  This doesn't
work because of the way we track the 'eoa' (end of allocated space) in the
file: we just advance the eoa value when space is allocated in the file and we
don't zero out the space in the file.  This causes a problem where we assume
that all "newly allocated" space in the file contains zero bytes, but if we
don't call MPI_File_set_size(), the file can contain the previous data (if the
file previously existed) and not zeros.
    Unfortunately, because we allow independent raw data parallel I/O, there
is no way to address this issue. :-(

Solution:
    Revert to previous method of retrieving the file's size, etc. from before
the optimization.

Platforms tested:
    FreeBSD 4.9 (sleipnir) w/parallel
    too minor to require h5committest.
2004-02-01 22:58:29 -05:00
Quincey Koziol
0ce42d9ed9 [svn-r8142] Purpose:
Fix build with C++ compiler

Description:
    Add file driver header files for prototypes.

Platforms tested:
    FreeBSD 4.9 (sleipnir) w/CC=g++
    too obscure to require h5committest
2004-02-01 22:19:39 -05:00
Quincey Koziol
fd442eae18 [svn-r8140] Purpose:
Bug fix

Description:
    Move assertion to allow closing non-HDF5 files with the MPI-I/O VFD to
work correctly again.

Platforms tested:
    FreeBSD 4.9 (sleipnir)
    h5committest
2004-01-31 23:06:22 -05:00
Quincey Koziol
7388e8a3e4 [svn-r8139] Purpose:
Code cleanup

Description:
    Clean up compiler warnings.

Platforms tested:
    h5committested
2004-01-31 13:54:28 -05:00
Quincey Koziol
5646fd9b5e [svn-r8137] Purpose:
Bug fix.

Description:
    Allow H5Tget_native_type() to handle opaque fields in compound datatypes.

Platforms tested:
    FreeBSD 4.9 (sleipnir)
    too minor to require h5committest
2004-01-31 13:01:33 -05:00
Quincey Koziol
6cf56ca817 [svn-r8136] Purpose:
Optimization

Description:
    Speed up various parts of the library by setting a global variable for the
endianness of the machine at library startup and use that variable instead of
repeatedly querying the endianness of the native int datatype.

Platforms tested:
    IBM p690 (copper)
    too minor to require h5committest
2004-01-31 10:28:40 -05:00
Quincey Koziol
eb4cc0556c [svn-r8135] Purpose:
Optimization

Description:
    Speed up core ID lookup routine (H5I_find_id) by re-structuring the logic
to reduce the number of 'if' statements.

Platforms tested:
    IBM p690 (copper)
    too minor to require h5committest
2004-01-31 10:21:17 -05:00
Quincey Koziol
10382a1799 [svn-r8134] Purpose:
Code cleanup

Description:
    Add destructor to match constructor fr VFLs when they are shut down by the
library.

Solution:
    Added H5FD_*_term() routines to "undo" changes made in H5FD_*_init()
routines.

Platforms tested:
    IBM p690 (copper)
    too minor to require h5committest
2004-01-31 10:19:48 -05:00
Quincey Koziol
d05f6cde52 [svn-r8130] Purpose:
Bug fix

Description:
    Address the failure in the FORTRAN builds by making some more of the
MPI-related typedefs in the library available outside of parallel builds.

Platforms tested:
    Linux 2.4 (verbena) w/FORTRAN & C++
2004-01-31 10:09:19 -05:00
Quincey Koziol
c3b2c41327 [svn-r8129] Purpose:
Bug fix

Description:
    Include the private H5FD header instead of the public one, to address a
failure in building the library with C++ compiler.

Platforms tested:
    FreeBSD 4.9 (sleipnit) w/CC=g++
    not appropriate for h5committest
2004-01-31 09:15:24 -05:00
Quincey Koziol
2d8964517b [svn-r8128] Purpose:
Update dependencies after restructuring of MPI stuff
2004-01-30 21:32:19 -05:00
Quincey Koziol
327608ada8 [svn-r8127] Purpose:
Bug fix

Description:
    Fix a couple of bugaboos in the serial build that crept in

Platforms tested:
    FreeBSD 4.9 (sleipnir)
    too minor to require h5committest
2004-01-30 21:16:27 -05:00
Quincey Koziol
138bc92ebd [svn-r8126] Purpose:
Bug fix/optimization

Description:
    Address slowdown in MPI-I/O file metadata operations that was introduced
mid-stream.  We now _require_ a POSIX compliant parallel file system for the
MPI-I/O file driver (as well as for the MPI-POSIX file driver).
    Also optimized file open operation when the file is being created by
reducing the number of collective & syncronizing calls.
    Additionally, refactor the MPI routines into a common place, eliminating
duplicated code.

Platforms tested:
    FreeBSD 4.9 (sleipnir) w/parallel
    h5committest
2004-01-30 20:38:44 -05:00
Quincey Koziol
61a451f89e [svn-r8117] Purpose:
Code cleanup

Description:
    Add C++ and FORTRAN wrappers for new H5Pdelete_filter routine, along with
documentation and a note in the release notes.

Platforms tested:
    FreeBSD 4.9 (sleipnir)
    Linux 2.4 (verbena) w/ C++ and FORTRAN
    Too minor for full h5committest
2004-01-27 15:39:20 -05:00
Albert Cheng
b637785b44 [svn-r8114] Purpose:
Added color definition of new API.

Platforms tested:
Copper.
2004-01-27 08:35:18 -05:00
Pedro Vicente Nunes
afc3563b76 [svn-r8113] Purpose:
new library function H5Pdelete_filter
deletes one or all filters from a dataset creation property list
this was done for the NONE option of h5repack, added tests for this feature
added a test for the new function in /test/dsets.c


Description:

Solution:

Platforms tested:
linux
solaris
AIX

Misc. update:
2004-01-26 18:20:20 -05:00
HDF Admin
2a4253ceb8 [svn-r8112] Snapshot version 1.7 release 17 2004-01-25 20:04:58 -05:00
Quincey Koziol
ea84a9d78b [svn-r8109] Purpose:
Add note about B-tree not being balanced during deletion operations,
pointing interested readers at the Yao & Lehman paper.
2004-01-24 14:07:06 -05:00
Quincey Koziol
618e7e7fbb [svn-r8082] Purpose:
Bug fix

Description:
    Tweak address comparison of external file list's heap address a bit to
pacify Windows.

Platforms tested:
    FreeBSD 4.9 (sleipnir)
    Asking Pedro to test on Windows
    Too minor to require h5committest
2004-01-19 15:59:44 -05:00
Quincey Koziol
99208cee65 [svn-r8079] Purpose:
Add tests & docs

Description:
    Added tests for the recent B-tree bug fixes & document their fix in the
release notes.

Platforms tested:
    FreeBSD 4.9 (sleipnir)
    Too minor to require h5committest
2004-01-19 13:48:48 -05:00
HDF Admin
43163efc35 [svn-r8077] Snapshot version 1.7 release 16 2004-01-18 03:24:00 -05:00
Quincey Koziol
35266165fe [svn-r8075] Purpose:
Bug fix.

Description:
    Fix problems in B-tree deletion routine that were corrupting the data
structure when the B-tree had several levels and the right-most item from a
leaf node that was the right-most child of an internal node was removed.
    Also address similar problems when a complete internal or right-most node
was removed.

    NOTE: The B-tree deletion routines are still _NOT_ maintaining the B-tree
properties correctly, that will be addressed in a future (hopefully soon) fix.

Platforms tested:
    FreeBSD 4.9 (sleipnir)
    too obscure to require h5committest
2004-01-16 15:25:58 -05:00
Quincey Koziol
727f26263f [svn-r8057] Purpose:
Bug fix

Description:
    Plug another small memory leak for fill-values.

Platforms tested:
    FreeBSD 4.9 (sleipnir)
    too minor to require h5committest
2004-01-13 13:56:32 -05:00
Quincey Koziol
00edaf52c5 [svn-r8053] Purpose:
Bug fix

Description:
    Correct two problems with variable-length datatypes in datasets:
        - When overwriting an entire dataset, writing the fill value to the
            file would be skipped, causing problems for VL datatypes when
            objects in the file had been unlinked (and thus the space in the
            file was not all zeros)
        - When an application has set a fill-value for a dataset and the
            dataset's datatype contained a VL datatype, the library was filling
            space on disk with the memory form of the VL information, instead
            of the disk form.


Platforms tested:
    FreeBSD 4.9 (sleipnir)
    h5committest
2004-01-13 13:00:59 -05:00
HDF Admin
f151f5a2a5 [svn-r8051] Snapshot version 1.7 release 15 2004-01-11 03:19:32 -05:00
Quincey Koziol
987f5d5e4d [svn-r8048] Purpose:
Code cleanup & reorganization

Description:
    Move further in the testing framework cleanup, eliminating all the
global variables (moving them into testframe.c as static variables) from the
testing framework code and moving it into the libh5test.a.

Platforms tested:
    FreeBSD 4.9 (sleipnir) w & w/o thread-safety, c++ & parallel
    h5committested
2004-01-09 20:41:13 -05:00
Quincey Koziol
feaa5bb9d5 [svn-r8038] Purpose:
Bug fix

Description:
    When two property lists are compared, the H5Pequal routine was just
comparing the raw information for the property values.  This causes problems
when the raw information contains pointers to other information.

Solution:
    Allow a 'compare' callback to be registered for properties, so that a user
application get perform the comparison itself, allowing for "deep" compares of
the property value.
    This was exported to the H5Pregister & H5Pinsert routines in the development
branch, but not the release branch.

Platforms tested:
    FreeBSD 4.9 (sleipnir)
    h5committest
2004-01-08 09:55:11 -05:00
Quincey Koziol
ab9a8af778 [svn-r8026] Purpose:
Bug fix

Description:
    Fix small memory leak of fill-value information inside the library.

Solution:
    "reset" the fill-value object header message, so that the internal buffer
gets freed.

Platforms tested:
    FreeBSD 4.9 (sleipnir)
    too minor to require h5committest
2004-01-06 13:44:34 -05:00
HDF Admin
e076771380 [svn-r8015] Snapshot version 1.7 release 14 2004-01-04 03:14:40 -05:00
Quincey Koziol
4da7b1ee9b [svn-r8009] Purpose:
Bug fix

Description:
    Add special-case handling to floating-point conversion tests to avoid
problems with denormalized values on Cray T3E & T90 platforms.  (Still not
working on Cray SV1, but at least it's closer).

Solution:
    Detect denormalized values and don't try to operate on them on the Crays.

Platforms tested:
    FreeBSD 4.9 (sleipnir)
    Cray T3E (hubble.cray.com)
    Cray T90 (gypsy.cray.com)
2003-12-31 15:36:37 -05:00
Quincey Koziol
b0b020d422 [svn-r8007] Purpose:
Bug fix

Description:
    Range check the szip 'pixels per block' against the chunk size of the
dataset when attempting to create a new dataset, since the szip library
requires the PPB to be at least the size of the fastest changing dimension
in the chunk.

Platforms tested:
    FreeBSD 4.9 (sleipnir)
    too minor for h5committest
2003-12-31 15:28:46 -05:00
Quincey Koziol
7bcc111c2b [svn-r8000] Purpose:
Bug fix

Description:
    Fixed bug in hyperslab iteration where certain combinations of flattened
and non-flattened dimensions would cause incorrect locations to be iterated
over.

Platforms tested:
    FreeBSD 4.9 (sleipnir)
    too minor to require h5committest
2003-12-31 14:19:18 -05:00
Quincey Koziol
5db6c61f18 [svn-r7993] Purpose:
Code cleanup, bug fixes

Description:
    Wrap up rest of changes necessary for fixing the "short" MPI-I/O read
problem that Robb reported.

Platforms tested:
    FreeBSD 4.9 (sleipnir)
    too minor to require h5committest
2003-12-29 14:34:11 -05:00
Quincey Koziol
51984a9926 [svn-r7988] Purpose:
Bug fixes & code cleanup

Description:
    Back out some of the debugging that was inadvertently checked in recently.

Platforms tested:
    FreeBSD 4.9 (sleipnir)
    too minor to require h5committest
2003-12-29 14:01:04 -05:00
Raymond Lu
16c51c2061 [svn-r7984] Purpose: bug fix
Description: VL datatype fails in certain way(hard to describe)


Platforms tested: h5committest
2003-12-29 12:56:08 -05:00
HDF Admin
99e520c8cb [svn-r7982] Snapshot version 1.7 release 13 2003-12-28 03:20:06 -05:00
Albert Cheng
f1e00b2afe [svn-r7980] Purpose:
Regenerate the Dependncies files.

Platforms tested:
"h5committested"

Misc. update:
2003-12-25 19:08:54 -05:00
Albert Cheng
41e958a30f [svn-r7978] Purpose:
Bug fix

Description:
MPIO driver did not detect partial read or write.  It assumed if read
completed, all bytes requested are read.  Therefore, if a dataset was
not completely written yet, the unread part will not be filled with
default fill value.

Solution:
Added the MPI_Get_elements call to find exactly how many bytes
are read (or written).  For read case, if not enough is read,
the rest is padded with zeros.  For write case, it is an error
if not able to write them all in first attempt. (It is not
always possible to repeat write for MPIO since file-view may
be changed, collective would hang, etc. So, we do just one attempt.)

Platforms tested:
eirene (pp).  Should work for other platforms since these
have been tested in v1.6.

Misc. update:
2003-12-25 17:43:20 -05:00
HDF Admin
4b0b1191da [svn-r7974] Snapshot version 1.7 release 12 2003-12-21 03:10:57 -05:00
Quincey Koziol
8f62cb43da [svn-r7967] Purpose:
Code cleanup for VS.NET

Description:
    Clean up several issues that VS.NET was having problems with.

Platforms tested:
    Eyeballed against Kent's bug reports.
2003-12-17 11:39:17 -05:00
HDF Admin
baf1da6e4b [svn-r7955] Snapshot version 1.7 release 11 2003-12-14 03:15:50 -05:00
Quincey Koziol
8dc49da486 [svn-r7950] Purpose:
Bug fix

Description:
    Attributes which were created with scalar dataspaces were reporting their
dataspace as a simple dataspace when queried later.

Solution:
    Fix the dataspace handling code when reading in the attribute message from
the file to set the extent type correctly.

Platforms tested:
    FreeBSD 4.9 (sleipnir)
    too minor to require h5committest
2003-12-13 15:08:09 -05:00
Quincey Koziol
a8161177b9 [svn-r7943] Purpose:
Bug fix.

Description:
    Using a selection offset with hyperslab selections in chunked datasets
was getting into an infinite loop and hanging the application.

Solution:
    Apply the selection offset to the hyperslab selection properly.

Platforms tested:
    FreeBSD 4.9 (sleipnir) w & w/o parallel
    h5committest
2003-12-13 13:14:36 -05:00
Quincey Koziol
15830ae10a [svn-r7941] Purpose:
Bug fix/code cleanup

Description:
    Add MPE information for new H5I functions.

Platforms tested:
    Eyeballed - very minor
2003-12-12 08:46:07 -05:00
Quincey Koziol
c44fd88805 [svn-r7932] Purpose:
Add new feature

Description:
    Add new H5I{dec|get|inc}_ref() routines and tests for them.

Platforms tested:
    FreeBSD 4.9 (sleipnir)
    h5committest
2003-12-11 13:26:51 -05:00
Quincey Koziol
e653e45ece [svn-r7930] Purpose:
Bug fix/code cleanup

Description:
    Make H5Pclose_class() decrement the ID's reference count to close a generic
property class ID, which allows the new H5I routines to work correctly.

Platforms tested:
    FreeBSD 4.9 (sleipnir)
    h5committest
2003-12-11 13:25:11 -05:00
Quincey Koziol
b2e093e28c [svn-r7929] Purpose:
Code cleanup

Description:
    Fix H5MM_malloc() and H5MM_calloc() routines to use new FUNC_ENTER macros.

Platforms tested:
    FreeBSD 4.9 (sleipnir)
    h5committest
2003-12-11 13:23:41 -05:00
Quincey Koziol
f473fc5cb8 [svn-r7926] Purpose:
Bug fix

Description:
    Clean up a few allocations of zero-sized blocks that were detected with
the new free-list assertions.

Platforms tested:
    FreeBSD 4.9 (sleipnir) w & w/o parallel
    too minor to require h5committest
2003-12-10 13:34:53 -05:00
Quincey Koziol
404567ce64 [svn-r7924] Purpose:
Code cleanup

Description:
    Add more assertions to detect attempted allocations of zero-sized blocks.

Platforms tested:
    FreeBSD 4.9 (sleipnir) w & w/o parallel
    too minor to require h5committest
2003-12-10 13:31:39 -05:00