Commit Graph

10634 Commits

Author SHA1 Message Date
Quincey Koziol
a1f3523478 [svn-r15488] Description:
Fix bug where library could core dump when an invalid location ID was
passed to H5Giterate() (and add test for this case).

Tested on:
    Mac OS X/32 10.5.4 (amazon)
    Too minor to require h5committest
2008-08-19 14:37:35 -05:00
Neil Fortner
a59d91d192 [svn-r15485] Purpose: Allow library to shut down properly when objects have reference count
> 1.

Description: Added a new field 'app_count' to H5I_id_info_t struct, to track
    the reference count on an id due to the application.  the old 'count' field
    tracks the total.  Generally any id visible to the application gets placed
    in app_count.  Added app_ref boolean parameter to H5I_inc_ref, H5I_dec_ref,
    H5I_register, H5I_clear_type, and a few other functions, to specify whether
    the operation(s) being performed on the id(s) are due to the application
    (TRUE) or not (FALSE).  Test added for this case.

Tested: kagiso, smirom, linew (h5committest)
2008-08-19 11:35:16 -05:00
Neil Fortner
936e52b581 [svn-r15477] Removed vestigal code from H5SM_delete_from_index() which would have
dereferenced an uninitialized pointer if it had been reachable.  Closes bz
#1280.

Tested: kagiso, smirom, linew (h5committest)
2008-08-17 13:04:05 -05:00
HDF Tester
709c81d710 [svn-r15476] Snapshot version 1.9 release 14 2008-08-17 08:40:56 -05:00
Quincey Koziol
3f643412c8 [svn-r15472] Description:
Correct H5Dopen to H5Dopen2 in error printf

Tested on:
    None, just eyeballed, very trivial.
2008-08-14 06:30:08 -05:00
Neil Fortner
b94a1e9c43 [svn-r15468] Removed prototype for deleted function H5F_has_mount
Tested: kagiso
2008-08-12 14:15:12 -05:00
Pedro Vicente Nunes
c09041c7f7 [svn-r15467] remove h52jpeg 2008-08-12 10:18:53 -05:00
Pedro Vicente Nunes
4e2b072563 [svn-r15466] remove h52jpeg 2008-08-12 10:13:35 -05:00
Pedro Vicente Nunes
f6c102825e [svn-r15465] remove h52jpeg 2008-08-12 09:47:04 -05:00
Pedro Vicente Nunes
57479bc963 [svn-r15464] delete h52jpeg 2008-08-12 09:29:07 -05:00
Quincey Koziol
507a211257 [svn-r15462] Description:
Correct compiler warnings from Visual Studio.

Tested on:
    Mac OS X/32 10.5.4 (amazon) w/FORTRAN & C++
    (Too minor to require full h5committest)
2008-08-12 07:46:40 -05:00
Neil Fortner
4f61812180 [svn-r15458] Purpose: Modify the library to take the proper action when files with incorrect
datatype versions are encountered.

Description: The library now recognizes some problems with datatype versions in
H5O_decode_helper(), and, if not performing strict format checks, automatically
corrects them.  Framework added for other message decode routines to
automatically correct file errors.  Datatype version information added to
h5debug.

Tested: kagiso, smirom, linew (h5committest)
2008-08-11 10:16:34 -05:00
Binh-Minh Ribler
9474f434a3 [svn-r15457] Description:
Added notes about:
        - bugzilla 1068: revising class hierarchy to move Attribute out.
        - replacing IdComponent::dereference with new H5Object member functions
          and constructors in various other classes.
2008-08-11 00:36:08 -05:00
HDF Tester
44941d6ff6 [svn-r15455] Snapshot version 1.9 release 13 2008-08-10 11:47:38 -05:00
Neil Fortner
e980307ed9 [svn-r15451] Purpose: Fix various problems that were occurring when using mounted files.
Description:
Moved mount table from top file structure to shared file structure.  Moved
parent out of mount table and back into top file structure.  Mounted files can
now be accessed from any handle of the parent file.  Changes to how files are
closed.  Stricter cycle checking on mounted files.  Removed unused function
H5F_has_mount().

Tested:
committest in 1.8 branch.  Committing now due to the urgency of the fix.  No
changes here are specific to the trunk, but I will keep an eye on the daily
tests.
2008-08-07 16:49:05 -05:00
Pedro Vicente Nunes
a5de140500 [svn-r15446] bug fix
http://bugzilla.hdfgroup.uiuc.edu/show_bug.cgi?id=788
don't print array indices for regions

tested: windows, linux
2008-08-07 10:15:04 -05:00
Pedro Vicente Nunes
c3bdc28062 [svn-r15445] added some comments
tested: windows, linux
2008-08-07 08:09:35 -05:00
Scott Wegner
35fcfd37d4 [svn-r15440] Purpose: Correct a few typos from my previous edit
Description:
-- Remove a couple lines of debugging output
-- Make sure H5_PACKAGE_NAME outputs 'HDF5' rather than 'hdf5'
-- Take into account version strings with a postfix.  This isn't currently used in HDF5 1.9 branch, but is in HDF5 1.8.

Tested:
kagiso
2008-08-06 14:04:45 -05:00
Peter Cao
2b3a491ee1 [svn-r15439] Add the following patch
===
The following patch to h5copy.c on or near line 173 makes the
tool substantially more useful...
     *flag = (*flag) | fla;
Because the command-line option parsing permits multiple '-f' arguments,
this will have the effect of or'ing the flags together so one can do
someting like....

~/tmp/hdf5-1.8.1/tools/h5copy/h5copy -i multi_ucd3d.h5 -s block5 -o gorfo -d foo -f shallow -f soft

Mark C. Miller, Lawrence Livermore National Laboratory
email: mailto:miller86@llnl.gov
===
2008-08-06 13:16:44 -05:00
Scott Wegner
e47c44c04a [svn-r15438] Purpose: Bring the Windows H5pubconf.h up-to-date
Description:
This commit is a major update to the Windows-maintained H5pubconf.h file.  This file is statically-distributed because Windows cannot generate it dynamically as other platforms do.  Previously, our Windows version contained a minimal subset of the macro definitions required.  To update, I've gone through each macro (based on kagiso's output), and tested for the correct value on Windows.  This allows us to better target code based on feature flags.  It should also be easier to update in the future as changes are made to the configure script.

This commit also contains one small bug fix in h5ls.c.  Some Windows-specific code was missing a local variable definition.  The bug went unnoticed because Windows didn't define the feature flag correctly.

I've also made changes to the h5vers script.  Whenever the version string is incremented (automatically by h5test after a snapshot), the strings in H5pubconf.h will also be updated.

Tested:
VS2005 on WinXP (32- and 64-bit)
VS.NET on WinXP 32-bit
h5vers tested under Cygwin
2008-08-06 12:18:47 -05:00
Pedro Vicente Nunes
8ee8a3fde6 [svn-r15432] bug fix
the compression ratio was being printed for cases where a layout was requested and not a filter

tested: windows, linux
2008-08-05 10:34:12 -05:00
Pedro Vicente Nunes
422ac99509 [svn-r15431] added the h5diff "contents" mode to the h5diff calls in the h5repack test
tested: windows, linux
2008-08-05 10:07:12 -05:00
Scott Wegner
90aa3cb287 [svn-r15430] Purpose: Update Windows test script for new h5diff option: -c
Description:
A new parameter was added to h5diff recently.  We add a new test to the h5diff script, and change the syntax in which h5diff is called from the h5repack test script

Tested:
VS2005 on WinXP
2008-08-04 16:50:37 -05:00
Pedro Vicente Nunes
5eb94a3eb5 [svn-r15429] new test for h5diff 2008-08-04 16:43:43 -05:00
Pedro Vicente Nunes
6787ef71a2 [svn-r15428] http://bugzilla.hdfgroup.uiuc.edu/show_bug.cgi?id=1170
Summary: when using h5diff to compare the results of h5repack (or other tools that copy one HDF5 file to another), a new option is needed to allow h5diff to make an "absolute" comparison of the 2 files. This is the "contents" mode explained in the usage below.

If this mode is present, objects in both files must match (must be exactly the same). If this does not happen, the tool returns an error code of 1 (instead of the success code of 0)

Changes to the h5repack test script: the call to h5diff was changed to include -c (maintaining the previous -q). 

tested: windows, linux, solaris
2008-08-04 16:13:16 -05:00
HDF Tester
2fa8102745 [svn-r15425] Snapshot version 1.9 release 12 2008-08-03 07:54:59 -05:00
Scot Breitenfeld
121acf4bb4 [svn-r15423] Description:
Fix the error of passing an array to a scalar.
2008-07-29 09:15:47 -05:00
Pedro Vicente Nunes
5a752d6e90 [svn-r15421] bug fix
the parsing of the command line strings for the shared object header message type was not being done correctly (strcmp)
fix: substituted by strncmp

tested: windows, linux
2008-07-28 16:08:34 -05:00
Scot Breitenfeld
82416cb36d [svn-r15420] Description:
Initialized a string with a space instead of a blank

i.e. var = '' is now var = ' '

This fixes a problem with AIX for bug 1252
2008-07-28 14:44:25 -05:00
Scot Breitenfeld
63c7182225 [svn-r15418] Description:
Added missing comma, i.e.

WRITE(*, "("" subroutine i"" i2.2,""()"")") j

should be

WRITE(*, "("" subroutine i"", i2.2,""()"")") j

etc...

as noted in bug 1251 and NAG compiler.

Checked the write fix using Sun f95, g95, pgf90, gfortran, ifort, absoft and all gave the correct write output.
2008-07-28 14:20:28 -05:00
Scot Breitenfeld
b829da80a6 [svn-r15417] Description:
Changed the INTENT for total_error to be consistantly
INTENT(INOUT)

as noted in bug 1251
2008-07-28 14:19:11 -05:00
HDF Tester
8a770c8c63 [svn-r15410] Snapshot version 1.9 release 11 2008-07-27 06:07:17 -05:00
Binh-Minh Ribler
05a9cc4c14 [svn-r15408] Purpose: Enable test
Description:
    The daily test failure caused by the C++ API was fixed, so put
    the packet table test back.

Platforms tested:
    SunOS 5.10 (linew)
    Linux 2.6 (kagiso)
    FreeBSD (duty)
2008-07-25 16:56:34 -05:00
Binh-Minh Ribler
18fb7d1a78 [svn-r15407] Purpose: Fix bug
Description:
    Changed all subclasses' setId to protected p_setId and put back setId
    in IdComponent.  p_setId is used in the library where the id provided
    by a C API passed on to user's application in the form of a C++ API
    object, which will be destroyed properly, and so p_setId does not
    call incRefCount.  On the other hand, the public version setId is
    used by other applications, in which the id passed to setId needs
    to be closed properly by the application, so setId must call incRefCount
    for the new object to prevent prematurely closing of the id.

Platforms tested:
    Linux 2.6 (kagiso)
    SunOS 5.10 (linew)
    FreeBSD (duty)
2008-07-25 16:51:01 -05:00
Pedro Vicente Nunes
bb8bf261ee [svn-r15405] added comments, cleaned code
tested: windows, linux
2008-07-25 10:10:57 -05:00
Christian Chilan
1f817abd7b [svn-r15397] Update to the h5perf files that includes bug fixes and extensions.
Tested on kagiso and abe.
2008-07-23 15:41:02 -05:00
Raymond Lu
8704820d1c [svn-r15395] When an attribute was opened twice and data was written with one of the handles,
the file didn't have the data.  It happened because each handle had its own
object structure, and the empty one overwrote the data with fill value.  This is
fixed by making some attribute information like the data be shared in the
attribute structure.

Tested on smirom, kagiso, and linew.
2008-07-22 15:36:31 -05:00
HDF Tester
717388ea06 [svn-r15389] Snapshot version 1.9 release 10 2008-07-20 06:16:44 -05:00
Pedro Vicente Nunes
d1596b2003 [svn-r15383] bug fix: when a requested palette index did not exist , the verbose printing message was referring to the default palette
tested: windows, linux
2008-07-17 09:47:07 -05:00
Scot Breitenfeld
86dff28679 [svn-r15378] Description:
Added optional parameter "mounted" to H5Gget_info_f, H5Gget_info_by_idx_f, H5Gget_info_by_name_f
2008-07-16 11:17:35 -05:00
Scot Breitenfeld
21401d1891 [svn-r15377] Description:
Added optional "mounted" parameter to H5Gget_info_f, H5Gget_info_by_idx_f, H5Gget_info_by_name_f
2008-07-16 11:12:50 -05:00
Quincey Koziol
27ee3e76fa [svn-r15375] Description:
Bump shared library version # for change to H5G_info_t struct
2008-07-16 10:28:39 -05:00
Quincey Koziol
d7742a9354 [svn-r15374] Description:
Correct wrong error return value to avoid compiler warning

Tested on:
    Just eyeballed, extremely minor
2008-07-16 10:13:16 -05:00
Quincey Koziol
f7547f2db7 [svn-r15370] Description:
Update release notes for file mounting bug fix and adding 'mounted' flag
to H5G_info_t.
2008-07-15 17:43:08 -05:00
Quincey Koziol
516c63299f [svn-r15367] Description:
Add check to avoid mounting the a file on a group twice, then the mounts
are done on the same HDF5 file, but opened with separate H5Fopen calls.

    Also add new 'mounted' flag to the H5G_info_t struct, queried with the
H5Gget_info() API call, to allow applications to detect and avoid this
situation.

    This probably fixes Bz#1070 also, I'll check with Dan Anov (who reported
a different sort of behavior, but seems to have the same underlying problem).

Tested on:
    Mac OS X/32 10.5.4 (amazon)
    Linux/64 2.6 (chicago)
2008-07-15 16:00:15 -05:00
Pedro Vicente Nunes
1572fb46e0 [svn-r15366] cleaned warnings and unused features
tested: linux
2008-07-15 09:51:48 -05:00
Pedro Vicente Nunes
bca3b0e1fc [svn-r15364] Convert the HDF5 8bit images to jpeg 24bit truecolor. Add an option for conversion from HDF5 indexed image to jpeg true color and an option to use a specific palette in the conversion.
tested: windows, linux
2008-07-15 09:45:16 -05:00
HDF Tester
ea27003154 [svn-r15347] Snapshot version 1.9 release 9 2008-07-13 07:00:00 -05:00
Neil Fortner
9139c12ea0 [svn-r15337] Unintended change to h5dump.c. Reverted. 2008-07-08 11:49:17 -05:00
Neil Fortner
78d22e2c44 [svn-r15335] Fixed incorrect error message in H5Pset_fletcher32:
"unable to add deflate filter to pipeline"
->
"unable to add fletcher32 filter to pipeline"

Tested: kagiso
2008-07-08 11:19:52 -05:00