Commit Graph

155 Commits

Author SHA1 Message Date
Pedro Vicente Nunes
a5f1d15035 [svn-r8715] Purpose:
h5dump output change, new tests

Description:
the storage layout output format the storage layout output format  had some changes
same for the user defined filter
add an option (-y) for not printing the array indices (default is print indices )
the option for escaping non printable characters covers all characters (default is not escape)
(this might be not very portable, the test files are  tstring.ddl and tstringe.ddl )
add tests for the new options


Solution:

Platforms tested:
linux
solaris
AIX

Misc. update:
2004-06-22 09:29:21 -05:00
Raymond Lu
18a656663a [svn-r8714] *** empty log message *** 2004-06-21 15:59:07 -05:00
Raymond Lu
db3443f310 [svn-r8703] Purpose: bug fix
Description: After I added H5S_NULL dataspace to dumper test, the output violate
XML schema for attribute data.

Solution: changed.

Platforms tested: RH8(fuss), minor change, only dumper is involved.
2004-06-17 16:48:55 -05:00
Pedro Vicente Nunes
435c8b2d7d [svn-r8688] Purpose:
h5dump new feature

Description:
add processing of tab characters (in the context of the new option process CR/LF)

Solution:

Platforms tested:
linux
solaris
AIX

Misc. update:
2004-06-15 09:26:41 -05:00
Quincey Koziol
958d370d13 [svn-r8655] Purpose:
Code cleanup

Description:
    Add more files that should be removed to the clean & distclean targets.

Platforms tested:
    FreeBSD 4.10 (sleipnir)
    Too minor to require h5committest
2004-06-11 09:02:48 -05:00
Pedro Vicente Nunes
9d0ee09708 [svn-r8647] Purpose:
h5dump update

Description:
updated the h5dump test files  generator , so that it coincides with the 1.6 branch

Solution:

Platforms tested:
linux (small)

Misc. update:
2004-06-10 15:55:34 -05:00
Pedro Vicente Nunes
78ca05e040 [svn-r8644] Purpose: h5dump new features
Description:

added the code for print strings with new line and display the path of references (new source files h5tools_ref.c and .h )
added a test suite in testh5dump.sh.in for
( note : to create testh5dump.sh , one must redo ./configure; this detects the availability of filters
and generates  testh5dump.sh accordingly)
1) storage layout
2) fill value
3) print reference with path
4) print strings with new lines
5) filters

Solution:

Platforms tested:
linux
solaris
AIX

Misc. update:
2004-06-10 12:35:48 -05:00
Quincey Koziol
a8e09cbc3e [svn-r8635] Purpose:
Bug fix

Description:
    Correct path to new testh5dump.sh, now that it's generated.

Platforms tested:
    FreeBSD 4.10 (sleipnir) w & w/o srcdir
    Too minor to require h5committest
2004-06-09 13:06:23 -05:00
Quincey Koziol
e81fa063c3 [svn-r8627] Purpose:
Update shell scripts

Description:
    Switch to generating the testh5dump.sh script at configure time, so we can
determine which filters are available to test.

Platforms tested:
    FreeBSD 4.9 (sleipnir)
    too small to require h5committest
2004-06-09 08:47:20 -05:00
Pedro Vicente Nunes
bad5b7ec31 [svn-r8622] Purpose:
h5dump new version

Description:
added the changes already made for 1.6
support for dumping of
1) filters
2) storage layout
3) fill value
4) comments
5) superblock
6) file contents
7) array indices


Solution:

Platforms tested:
linux
solaris
AIX

Misc. update:
2004-06-07 11:40:25 -05:00
Raymond Lu
d77fc6af73 [svn-r8562] Purpose: New feature
Description:  Add null dataspace to h5dump and h5ls.


Platforms tested:  h5committest
2004-05-21 10:58:38 -05:00
Quincey Koziol
583bdf994c [svn-r8495] Purpose:
Bug fixes

Description:
    Updated dependencies

    Fixed error with C++ compiler builds of main library

    Added H5Pset_data_transform to MPE info

Platforms tested:
    FreeBSD 4.9 (sleipnir)
2004-05-08 09:48:42 -05:00
Quincey Koziol
0a29514b9d [svn-r8383] Purpose:
Code cleanup

Description:
    Clean up lots of warnings based on those reported from the SGI compilers
as well as gcc.

Platforms tested:
    SGI O3900, IRIX64 6.5 (Cheryl's SGI machine)
    FreeBSD 4.9 (sleipnir) w/ & w/o parallel
    h5committest
2004-04-17 23:10:09 -05:00
Pedro Vicente Nunes
747dd91641 [svn-r8198] Purpose:
small bug fix

Description:
a dataset creation property list was not closed

Solution:
closed it, calling H5Pclose(dcpl);

Platforms tested:
linux (small fix)

Misc. update:
2004-02-12 16:28:12 -05:00
Quincey Koziol
1b147875db [svn-r8151] Purpose:
Bug fix

Description:
    Fix h5tools routines to not try to call MPI_Init() unless an MPI-based
VFD is actually used.

Platforms tested:
    FreeBSD 4.9 (sleipnir) w/parallel
    Linux 2.4 (verbena) w/parallel
2004-02-04 17:43:00 -05:00
Quincey Koziol
233319898d [svn-r8143] Purpose:
New Feature.  (Contributed by Robb)

Description:
    Allow h5ls to specify a VFL with the '--vfl=' command line flag.

    Add MPI-I/O & MPI-POSIX VFL drivers to list of drivers available for
h5ls and h5dump.

Platforms tested:
    FreeBSD 4.9 (sleipnir) w/parallel
    h5committested
2004-02-01 22:32:41 -05:00
Quincey Koziol
2d8964517b [svn-r8128] Purpose:
Update dependencies after restructuring of MPI stuff
2004-01-30 21:32:19 -05:00
Raymond Lu
c4d9f6ae10 [svn-r8066] Purpose: bug fix
Description: h5dump and h5ls failed an assertion check when a dataset's
    datatype is enumerate type and there are special characters in the names
    of these values.


Platforms tested: h5committest
2004-01-15 11:42:13 -05:00
Quincey Koziol
e1792ebb22 [svn-r7842] Purpose:
Bug fix

Description:
    Variable length strings and sequences with NULL pointers were not handled
by library, causing problems access the data.  This also affected fill values
for variable-length datatypes.

Solution:
    Address the issues in the library by detecting NULL sequences/strings
and avoid trying to convert them.

    Patched up dumper to display NULL sequences/strings.

Platforms tested:
    FreeBSD 4.9 (sleipnir)
    h5committest
2003-11-13 10:19:50 -05:00
Robert E. McGrath
df5d528100 [svn-r7737] Purpose:
bug fix

Description:
wrong parameter to subroutine call

Solution:
use correct parameter

Platforms tested:
verbena

Misc. update:
2003-10-25 14:37:00 -05:00
Quincey Koziol
e2518919c9 [svn-r7626] Purpose:
Update dependencies and tracing information

Platforms tested:
    Linux 2.4 (verbena) w/FORTRAN
    too minor for h5committest
2003-10-14 10:46:38 -05:00
Quincey Koziol
324cd9d1e2 [svn-r7616] Purpose:
Code cleanup

Description:
    Change field member count and indices for compound and enumerated types from
'int' to 'unsigned' to better reflect actual use.

    Cleaned up a few other minor compiler warnings, etc.

Platforms tested:
    FreeBSD 4.9 (sleipnir)
    Linux 2.4 (verbena)
    too minor to require h5committest
2003-10-13 14:31:33 -05:00
Quincey Koziol
71f0aeff2a [svn-r7540] Purpose:
Bug fixes and code cleanup

Description:
    Changes to h5dump code:
        - Dump shared datatypes for any class of datatype, not just compound
            datatypes.
        - Cleaned up formatting to greatly reduce the amount of trailing
            whitespace emitted in output.  Also removed some spurious blank
            lines from named datatype output.

    Added code to generate named datatype attribute test file.

    Added tests for dumping named datatypes in attributes for both DDL and
        XML output.

Platforms tested:
    FreeBSD 4.9 (sleipnir)
    h5committest
2003-10-05 16:19:38 -05:00
Raymond Lu
7e79a8d71e [svn-r7507] *** empty log message *** 2003-09-24 14:26:50 -05:00
Quincey Koziol
32220914a5 [svn-r7401] Purpose:
Code cleanup

Description:
    Remove various "fixtype" routines which duplicate (and actually pre-date)
    the functionality in H5Tget_native_type in favor of having the tools call
    H5Tget_native_type().  This provides the same functionality (actually better
    functionality, since the old "fixtype" routines didn't handle alignment of
    compound fields correctly) and reduces the amount of code to maintain.

    Add additional tests to dump out a "complex" compound datatype which
    exercises more code in the library for aligning compound fields correctly.

Platforms tested:
    FreeBSD 4.8 (sleipnir)
    h5committest
2003-08-25 15:00:56 -05:00
Albert Cheng
374ad0ef30 [svn-r7361] Description:
Updated the copyright notice--mostly by rearranging
some text to make them consistent.

Solution:

Platforms tested:
"h5committested"--sol is down, so, no SUn test.

Misc. update:
2003-08-13 23:58:29 -05:00
Quincey Koziol
7f119036d3 [svn-r7352] Purpose:
Updated dependencies

Platforms tested:
    h5committested
2003-08-12 20:50:11 -05:00
Quincey Koziol
ed92f54f9b [svn-r7334] Purpose:
Bug fix

Description:
    Object references were not getting written out correctly to the file, with
recent changes to their memory structure.

Solution:
    Convert the object references correctly.

Platforms tested:
    h5committested
2003-08-11 07:43:04 -05:00
Quincey Koziol
d309a7fa5d [svn-r7328] Purpose:
Code cleanup

Description:
    Remove recent changes which duplicated code from config/conclude.in, now
that the output of XML schema XID's is portable.

Platforms tested:
    h5committested
2003-08-08 14:41:58 -05:00
Quincey Koziol
4de2ed16c0 [svn-r7325] Purpose:
Code cleanup

Description:
    Changed parameter from "<number>:<number>" form to "<number>"

Platforms tested:
    h5committested
2003-08-08 14:36:37 -05:00
Quincey Koziol
7e461bc202 [svn-r7324] Purpose:
Code cleanups & bug fixes

Description:
    Lots of changes to chase 'objno' and 'fileno' changes in H5G_stat_t struct,
including changing the output of object IDs from "<number>:<number>" to just
"<number>".

    Same change to XML schema XIDs from "xid_<number>-<number>" to just
"xid_<number>"

    Cleaned up a number of memory leaks

    Use the H5_PRINTF_HADDR_FMT macro for printing 'haddr_t's

Platforms tested:
    h5committested
2003-08-08 14:35:34 -05:00
MuQun Yang
6d54973cbf [svn-r7286] Purpose:
bug fix

Description:
1. function rindex is not recognized by windows. Using strrchr instead.
Thereafer strings.h is not necessary.
2. Variable p_type is defined as "hid_t" type at one function; but it is never used.
At the end of that function, H5Tclose(p_type) is assigned. It may cause problems.
So erase two lines.


Solution:
See above

Platforms tested:
windows 2000, linux 2.4, sol 2.7, AIX 5.1.

Misc. update:
2003-08-08 10:19:55 -05:00
Bill Wendling
9266812411 [svn-r7278] Purpose:
Bug Fix

Description:
    pmake failed during make of h5dump because of some undefined
    variables.

Solution:
    Defined the variables.

Platforms tested:
    Modi4 (small change and only Irix specific)

Misc. update:
2003-07-30 15:07:26 -05:00
Robert E. McGrath
014ec80a8f [svn-r7276] Purpose:
This is an omibus update to the h5dump program.

  1. Fixes bug 888
  2. updates XML output to 1.6

Description:

Solution:

Platforms tested:

verbena, arabica, copper (64)

Misc. update:
MANIFEST updated
Need to do release notes.
2003-07-29 16:24:21 -05:00
Raymond Lu
0d22a663df [svn-r7265] *** empty log message *** 2003-07-25 21:55:47 -05:00
Bill Wendling
6c41212cc4 [svn-r7123] Purpose:
Bug Fix

Description:
    The SUBDIRS macro is now defined as "" in the config/commence.in
    file. We shouldn't have definitions of this macro before the
    inclusion of config/commence.in.

Solution:
    Placed all definitions of SUBDIRS after config/commence.in inclusion.

Platforms tested:
    Modi4 (Small fix yet again).

Misc. update:
2003-06-30 11:26:46 -05:00
Quincey Koziol
2629b6e4d3 [svn-r7109] Purpose:
Code cleanup

Description:
    Clean up varios compiler warnings flagged by SGI compiler and gcc 3.3

Platforms tested:
    FreeBSD 4.8 (sleipnir)
    h5committest
2003-06-25 21:10:33 -05:00
Albert Cheng
63844dd77a [svn-r6991] Purpose:
Cleanup

Description:
h5dumpgentest is already included in TEST_PROGS.  Removed its old
entry in PROGS.

Platforms tested:
Only in Copper since this is trivial.

Misc. update:
2003-06-08 08:20:28 -05:00
Pedro Vicente Nunes
e03437e4da [svn-r6960] Purpose:
added writing more attributes to one test file

Description:
added the writing of 3D attributes to one test file of h5ls

Solution:

Platforms tested:

Windows 2000 (octopus)
Linux 2.4 (rockaway)
SunOS 5.7 (arabica)
IRIX 6.5 (modi4)


Misc. update:
2003-06-04 12:37:36 -05:00
Albert Cheng
94bf3a6d7b [svn-r6946] Purpose:
Bug fix

Description:
This would sometimes coredump in machines like PSC Alpha cluster
or linux icc if -g is not used.

Solution:
The real problem was because char string arrays were declared
without including space for the null terminator.  E.g.,
   char s[5][2]={ "s1", "s2", ...}
is not correct.  Increased the size and also need to change
the H5S... definitions too.

Platforms tested:
"h5committested"--the h5dumpgentest passed without problem though
it failed in Fortran but that is a current known problem.
Tested in verbena using icc and also in PSC's cluster.

Misc. update:
Can't find this error in the v1.5 know problem list.
2003-06-02 18:32:33 -05:00
Pedro Vicente Nunes
73508e8d65 [svn-r6912] Purpose:
added a new test for h5ls

Description:

Solution:

Platforms tested:

Misc. update:
2003-05-22 17:22:32 -05:00
Quincey Koziol
e0824c482e [svn-r6863] Purpose:
Bug fix

Description:
    A few groups were left open after they were used.

Solution:
    Closed them. :-)

Platforms tested:
    FreeBSD 4.8 (sleipnir)
    h5committested
2003-05-13 14:48:30 -05:00
Bill Wendling
d5ccf919e4 [svn-r6787] Purpose:
Update

Description:
    Fixed description. Should be 1-byte instead of 1-bytes

Platforms tested:
    Linux

Misc. update:
2003-04-30 17:44:20 -05:00
Bill Wendling
a306b38d67 [svn-r6785] Purpose:
Feature Add

Description:
    It's now possible to print out characters as actual characters
    instead of their decimal equivalent numbers. It's the same thing that
    h5ls does. The flag to do this is "--string" or "-r".

Platforms tested:
    Verbena (Fortran & C++)
    Arabica (Fortran)
    Modi4 (Fortran & Parallel)

Misc. update:
2003-04-30 17:37:06 -05:00
Albert Cheng
d67139f909 [svn-r6783] Purpose:
Bug fix

Description:
"$@" was used to represent all argument provided.  This has the
unfortunate effect as one argument of "" when actually no argument
was given.  Some machines throw the "" away but some like Tflops
and Alpha Q, retains them as a single argument of "".  This caused
the no filename given test to fail.

Solution:
Replaced "$@" with a plain $@.

Platforms tested:
h5committested

Misc. update:
2003-04-30 02:26:58 -05:00
Quincey Koziol
a3a391d457 [svn-r6576] Purpose:
Cleanup

Description:
    Update dependencies.

Solution:

Platforms tested:
    Linux 2.4 (eirene)

Misc. update:
2003-04-03 08:46:11 -05:00
Quincey Koziol
0475dd9a70 [svn-r6412] Purpose:
Code cleanup

Description:
    Update dependencies and clean up a few warnings.

Platforms tested:
    Linux 2.2 (eirene) w/parallel
2003-02-17 12:11:03 -05:00
Quincey Koziol
946c606452 [svn-r6411] Purpose:
Code cleanup

Description:
    Clean up miscellaneous warnings which have crept into the code.

    Fix "_POSIX_C_SOURCE not defined" warning on FreeBSD.

    Adjust gcc compiler flags to be more concise for production mode.

    Refactor the H5O code so that there is a stronger boundary between code
    in the H5O package and code in the library which just calls H5O routines.

Platforms tested:
    Tested h5committest {arabica (fortran), eirene (fortran, C++)
	modi4 (parallel, fortran)}
    FreeBSD 4.7 (sleipnir) serial & parallel and gcc 2.95.4 & gcc 3.2.2

Misc. update:
    Update MANIFEST if you add or remove any file.
2003-02-17 10:54:15 -05:00
Albert Cheng
06ace9e426 [svn-r6310] Purpose:
patch
Description:
    Tflops interprets "$@" as "" when no parameter is given (e.g., the
    case of missing file name).  Changed it to use $@ till Tflops fixes it.
Platforms tested:
    Tflops, burrwhite (pp), modi4(pp)
2003-01-22 01:08:52 -05:00
Quincey Koziol
8e391ad35a [svn-r6269] Purpose:
Code cleanup

Description:
    Various code cleanups to allow the development branch to be compiled with
    a C++ compiler (i.e. CC=g++ )

Platforms tested:
    Tested h5committest {arabica (fortran), eirene (fortran, C++)
	modi4 (parallel, fortran)}
    FreeBSD 4.7 (sleipnir) C++
2003-01-13 08:15:49 -05:00
Quincey Koziol
98f01e2df2 [svn-r6255] Purpose:
Code cleanup

Description:
    Clean up a few more warnings and update dependencies.

Platforms tested:
    Linux 2.2.18smp (eirene) serial & parallel
2003-01-09 13:40:19 -05:00
Quincey Koziol
9a433b99a5 [svn-r6252] Purpose:
Lots of performance improvements & a couple new internal API interfaces.

Description:
    Performance Improvements:
        - Cached file offset & length sizes in shared file struct, to avoid
            constantly looking them up in the FCPL.
        - Generic property improvements:
            - Added "revision" number to generic property classes to speed
                up comparisons.
            - Changed method of storing properties from using a hash-table
                to the TBBT routines in the library.
            - Share the propery names between classes and the lists derived
                from them.
            - Removed redundant 'def_value' buffer from each property.
            - Switching code to use a "copy on write" strategy for
                properties in each list, where the properties in each list
                are shared with the properties in the class, until a
                property's value is changed in a list.
        - Fixed error in layout code which was allocating too many buffers.
        - Redefined public macros of the form (H5open()/H5check, <variable>)
            internally to only be (<variable>), avoiding innumerable useless
            calls to H5open() and H5check_version().
        - Reuse already zeroed buffers in H5F_contig_fill instead of
            constantly re-zeroing them.
        - Don't write fill values if writing entire dataset.
        - Use gettimeofday() system call instead of time() system when
            checking the modification time of a dataset.
        - Added reference counted string API and use it for tracking the
            names of objects opening in a file (for the ID->name code).
        - Removed redundant H5P_get() calls in B-tree routines.
        - Redefine H5T datatype macros internally to the library, to avoid
            calling H5check redundantly.
        - Keep dataspace information for dataset locally instead of reading
            from disk each time.  Added new module to track open objects
            in a file, to allow this (which will be useful eventually for
            some FPH5 metadata caching issues).
        - Remove H5AC_find macro which was inlining metadata cache lookups,
            and call function instead.
        - Remove redundant memset() calls from H5G_namei() routine.
        - Remove redundant checking of object type when locating objects
            in metadata cache and rely on the address only.
        - Create default dataset object to use when default dataset creation
            property list is used to create datasets, bypassing querying
            for all the property list values.
        - Use default I/O vector size when performing raw data with the
            default dataset transfer property list, instead of querying for
            I/O vector size.
        - Remove H5P_DEFAULT internally to the library, replacing it with
            more specific default property list based on the type of
            property list needed.
        - Remove redundant memset() calls in object header message (H5O*)
            routines.
        - Remove redunant memset() calls in data I/O routines.
        - Split free-list allocation routines into malloc() and calloc()-
            like routines, instead of one combined routine.
        - Remove lots of indirection in H5O*() routines.
        - Simplify metadata cache entry comparison routine (used when
            flushing entire cache out).
        - Only enable metadata cache statistics when H5AC_DEBUG is turned
            on, instead of always tracking them.
        - Simplify address comparison macro (H5F_addr_eq).
        - Remove redundant metadata cache entry protections during dataset
            creation by protecting the object header once and making all
            the modifications necessary for the dataset creation before
            unprotecting it.
        - Reduce # of "number of element in extent" computations performed
            by computing and storing the value during dataspace creation.
        - Simplify checking for group location's file information, when file
            has not been involving in file-mounting operations.
        - Use binary encoding for modification time, instead of ASCII.
        - Hoist H5HL_peek calls (to get information in a local heap)
            out of loops in many group routine.
        - Use static variable for iterators of selections, instead of
            dynamically allocation them each time.
        - Lookup & insert new entries in one step, avoiding traversing
            group's B-tree twice.
        - Fixed memory leak in H5Gget_objname_idx() routine (tangential to
            performance improvements, but fixed along the way).
        - Use free-list for reference counted strings.
        - Don't bother copying object names into cached group entries,
            since they are re-created when an object is opened.

        The benchmark I used to measure these results created several thousand
        small (2K) datasets in a file and wrote out the data for them.  This is
        Elena's "regular.c" benchmark.

        These changes resulted in approximately ~4.3x speedup of the
        development branch when compared to the previous code in the
        development branch and ~1.4x speedup compared to the release
        branch.

        Additionally, these changes reduce the total memory used (code and
        data) by the development branch by ~800KB, bringing the development
        branch back into the same ballpark as the release branch.

        I'll send out a more detailed description of the benchmark results
        as a followup note.

    New internal API routines:
        Added "reference counted strings" API for tracking strings that get
            used by multiple owners without duplicating the strings.
        Added "ternary search tree" API for text->object mappings.

Platforms tested:
    Tested h5committest {arabica (fortran), eirene (fortran, C++)
	modi4 (parallel, fortran)}
    Other platforms/configurations tested?
        FreeBSD 4.7 (sleipnir) serial & parallel
        Solaris 2.6 (baldric) serial
2003-01-09 12:20:03 -05:00
Raymond Lu
5f91db8d68 [svn-r6102]
Purpose:
    bug fix
Description:
    forgot to change datatype print-out when fixed VL string bug for h5dump.
Platforms tested:
    modi4
2002-11-19 09:50:04 -05:00
Raymond Lu
0105a3b97c [svn-r6099]
Purpose:
    bug fix.
Description:
    h5dump cannot dump data and datatype for VL string.
Platforms tested:
    eirene, arabica
Misc. update:
    MANIFEST, RELEASE.txt
2002-11-18 11:38:11 -05:00
Albert Cheng
16b3cfabba [svn-r6017] Description:
Renamed h5dumptst.c to h5dumpgentest.c.
    Added a test to run h5dumpgentest to make it can run without error.  Note
    that this does not verify if it is generating the correct test files.
Platforms tested:
    Tested h5committest {arabica (fortran), eirene (fortran, C++)
	modi4 (parallel, fortran)}? YES
Misc. update:
    Update MANIFEST if you add or remove any file. YES
2002-10-19 15:59:19 -05:00
Albert Cheng
e7600e5ff8 [svn-r6008] Purpose:
Changed the file name nofilename.ddl to tnofilename.ddl, to be consistent
    with the other file names.
Platforms tested:
    eirene only since this is a very simple change.
2002-10-16 00:37:54 -05:00
Albert Cheng
3ec37aad96 [svn-r6007] Purpose:
Improvement
Description:
    Moved the code parsing for missing file name in the parse_command_line
    routine.
    Added a test checking if the tool fails as expected when no file name is
    given.
Platforms tested:
    Tested h5committest {arabica (fortran), eirene (fortran, C++)
	modi4 (parallel, fortran)}? YES
Misc. update:
    Update MANIFEST if you add or remove any file. YES, added nofilename.ddl
2002-10-16 00:31:00 -05:00
Albert Cheng
22d4e6a05d [svn-r6000] Purpose:
Bug fix (ID 765 and part of ID 841)
Description:
    "h5dump -H" would core dump.  It was because the code was not
    checking if there was any file argument after option parsing.
    It referred to an non-existing filename argument.
    There was also some very old but not commented code which allowed
    the use of back slash to escape a filename begun with '-'.  The
    '--' option is better and more common practice.
Solution:
    Added code to check if there is still a filename argument after parsing.
    (This checking probably should goto inside the option_parsing routine.
    Also removed that old code mentioned above.
Platforms tested:
    eirene, arabica and modi4
2002-10-15 00:23:54 -05:00
Albert Cheng
3658b8bbd7 [svn-r5998] Purpose:
updated copyright note.
    Copied the UNUSED correction from v1.4.
    Added an example to the usage of -- option.
Description:
    [describe the bug, or describe the new feature, etc]
Solution:
    [details about the changes, algorithm, etc...]
    [Please as detail as you can since your own explanation is
    better than others guessing it from the code.]
Platforms tested:
    arabica (fortran), modi4 (pp, fortran),eirene (fortran, CC).
2002-10-14 23:12:42 -05:00
Quincey Koziol
ea08053e29 [svn-r5983] Purpose:
More fixups to the Dependencies files...
2002-10-14 13:11:12 -05:00
Quincey Koziol
a83585acca [svn-r5981] Purpose:
Regenerate Dependencies files.
2002-10-14 09:58:25 -05:00
Quincey Koziol
ea052ffd55 [svn-r5674] Purpose:
Code cleanup

Description:
    Removed more compiler warnings, etc.

Platforms tested:
    Linux 2.2.x (eirene) w/parallel
2002-06-19 11:06:55 -05:00
Bill Wendling
5afb12313a [svn-r5581] Purpose:
Bug Fix
Description:
    On AIX machines, the number of script interpreters which ran the
    testh5dump.sh script would strip too many of the quotes away, causing
    problems if you're quoting something with a space in it.
Solution:
    Just got rid of the spaces and used ',' instead.
Platforms tested:
    AIX and Linux
2002-06-10 15:26:23 -05:00
Albert Cheng
73683e4380 [svn-r5278] Purpose:
Migrate from configure macros of XYZ_ABC to H5_XYZ_ABC
Description:
    configure generates many macros definitions on the fly and
    were stored in src/H5config.h which is included by H5public.h.
    But other software that uses hdf5 may also run their own configure.
    There can be a clash in macro name space.  We decided awhile ago
    to prepend all generated macros with "H5_" to avoid conflicts.
    The process has started and this commit completes it (at least attempt
    to).
Solution:
    Many macros symbols (e.g. SIZEOF_xxx and HAVE_xxx were changed to
    H5_SIZEOF_xxx and H5_HAVE_xxx).  Then H5private.h no longer includes
    H5config.h.  This cuts H5config.h away from HDF5 source code.
Pending issues:
    The module of fortran and pablo are to be resolved in a different
    commit.
Platforms tested:
    eirene (parallel), arabica (solaris 7 --enable-fortran, --enable-cxx)
2002-04-28 03:34:17 -05:00
Quincey Koziol
e5fc40662c [svn-r5219] Purpose:
Code cleanup

Description:
    Clean up warnings from gcc 3.1

Platforms tested:
    FreeBSD 4.5 (sleipnir)
2002-04-22 12:48:24 -05:00
Quincey Koziol
ef9c40754b [svn-r5200] Purpose:
Code Cleanup

Description:
    Clean up compiler warnings from the last bunch of checkins

Platforms tested:
    FreeBSD 4.5 (sleipnir)
2002-04-18 09:05:38 -05:00
Bill Wendling
78e3463dbb [svn-r5023] Purpose:
Bug Fix
Description:
	There was a problem with having a lot of groups nested together. We
	could only handle 1024 characters at most, but, in a parallel program
	especially, it could occur that there were lots and lots of groups
	and would be more than 1024.
Solution:
	I made the "objname" part of the obj_t structure a pointer instead of
	a fixed size. Added code to allocate/deallocate the memory we need
	for it. Had to fix how the "prefix" was being handled in the h5dump
	program. It was also set to only 1024 characters in length. I made it
	dynamic.

	Added a test case...Go me!
Platforms tested:
	Linux, Solaris
2002-02-27 16:52:19 -05:00
Bill Wendling
c78139de47 [svn-r5009] Purpose:
Oops
Description:
	I added files for testing the group comments dumping feature, but
	didn't actually add it to the testh5dump.sh script.
Solution:
	Added it.
Platforms tested:
	Linux
2002-02-25 18:12:17 -05:00
Bill Wendling
6a22514a56 [svn-r5008] Purpose:
Test Add
Description:
	Added a test for dumping files with the multi driver.
Platforms tested:
	Linux
2002-02-25 18:06:26 -05:00
Bill Wendling
4263340afa [svn-r5006] Purpose:
Test Addition
Description:
	Added tests to the h5dumper for split and family file drivers.
Platforms tested:
	Linux
2002-02-25 17:38:47 -05:00
Bill Wendling
3c6be60da7 [svn-r4782]
Purpose:
	Feature Add
Description:
	Added support for dumping Group Comments. This involved a
	modification of the DDL as well.
Solution:
	Steal code from h5ls and put it in the h5dump. The ddl.html file was
	updated as normal. And a test was created...
Platforms tested:
	Dangermouse, Modi4, Kelgia
2002-01-05 11:33:50 -05:00
Albert Cheng
e22c095636 [svn-r4757] Purpose:
Removing the DPSS (gridstorage) driver source code.
Description:
    The DPSS (using Grid-Storage) driver is retired.
    Removed the configure option with-gridstorage from configure.in.
    Cvs remove the following files
    ./src/H5FDdpss.c
    ./src/H5FDdpss.h
    ./test/dpss_read.c
    ./test/dpss_write.c

    Regenerated Dependencies files (some had to be hand-edited since
    'make depend' did not cover them.)
    Removed reference to DPSS Virtual file driver from H5F.c.
Platforms tested:
    modi4 (Parallel; -with-gass=...), eirene, arabica (fortran, cxx).
2001-12-30 00:23:38 -05:00
Quincey Koziol
5560c64e25 [svn-r4747] Purpose:
Bug Fix.
Description:
    The H5Rget_object_type function could not get the object type for dataset
    region references.
Solution:
    Added a new function, H5Rget_obj_type, to replace H5Rget_object_type.
    The new function requires the reference type as an additional parameter,
    in order to allow queries on different reference types to be performed
    correctly.
Platforms tested:
    FreeBSD 4.4. (sleipnir)
2001-12-20 15:51:30 -05:00
Quincey Koziol
d456c2bb82 [svn-r4643] Purpose:
Code cleanup
Description:
    Windows is generating hundreds of warnings from some of the practices in
    the library.  Mostly, they are because size_t is 32-bit and hsize_t is
    64-bit on Windows and we were carelessly casting the larger values down to
    the smaller ones without checking for overflow.

    Also, some other small code cleanups,etc.

Solution:
    Re-worked some algorithms to eliminate the casts and also added more
    overflow checking for assignments and function parameters which needed
    casts.

    Kent did most of the work, I just went over his changes and fit them into
    the the library code a bit better.

Platforms tested:
    FreeBSD 4.4 (hawkwind)
2001-11-27 11:29:13 -05:00
Raymond Lu
e3a137f39e [svn-r4517]
Purpose:
    Changed to the new generic property list for dataset creation property
    list.
Platforms tested:
    Arabica, modi4 and Hawkwind
2001-10-03 12:57:56 -05:00
Quincey Koziol
ed663577a5 [svn-r4473] Purpose:
Code cleanup for better compatibility with C++ compilers
Description:
    C++ compilers are choking on our C code, for various reasons:
        we used our UNUSED macro incorrectly when referring to pointer types
        we used various C++ keywords as variables, etc.
        we incremented enum's with the ++ operator.
Solution:
    Changed variables, etc.to avoid C++ keywords (new, class, typename, typeid,
        template)

    Fixed usage of UNUSED macro from this:
        char UNUSED *c
    to this:
        char * UNUSED c

    Switched the enums from x++ to x=x+1
Platforms tested:
    FreeBSD 4.4 (hawkwind)
2001-09-25 12:46:32 -05:00
Bill Wendling
be9c42c7b1 [svn-r4456]
Purpose:
    Bug Fix
Description:
    Some so-called "operating systems" (*cough*Windows*cough*) can't
    handle large string sizes.
Solution:
    Replace the Usage string with individual strings which all call
    fprintf() themselves.
Platforms tested:
    Linux
2001-09-18 11:58:27 -05:00
Bill Wendling
8b0a3c5c1f [svn-r4402]
Purpose:
    Bug Fix
Description:
    Object IDs command-line options weren't being picked up.
Solution:
    The wrong flag was being checked for. Changed the flag from "v" to
    "i", which is what the documentation says.
Platforms tested:
    Linux
2001-08-21 14:37:23 -05:00
Quincey Koziol
e87fc517b8 [svn-r4355] Purpose:
Code cleanup (sorta)

Description:
    When the first versions of the HDF5 library were designed, I remembered
    vividly the difficulties of porting code from a 32-bit platform to a 16-bit
    platform and asked that people use intn & uintn instead of int & unsigned
    int, respectively.  However, in hindsight, this was overkill and
    unnecessary since we weren't going to be porting the HDF5 library to
    16-bit architectures.

    Currently, the extra uintn & intn typedefs are causing problems for users
    who'd like to include both the HDF5 and HDF4 header files in one source
    module (like Kent's h4toh5 library).

Solution:
    Changed the uintn & intn's to unsigned and int's respectively.

Platforms tested:
    FreeBSD 4.4 (hawkwind)
2001-08-14 17:09:56 -05:00
Albert Cheng
bb1c2afd58 [svn-r4342] Purpose:
Improvement
Description:
    The stdout and stderr were both redirected to an output file. This
    works fine in tradition sequential Unix machines.  But in some
    parallel systems (like mpi-jobs in IBM SP), the stderr is merged
    with stdout alright but not in the exact order as expected.  This
    is not deterministic in parallel jobs.  So, the test output are
    all there but the ordering maynot be as expected.
Solution:
    Redirect stderr to separated file and append it to the stdout
    file after test-command is executed.  Then compare it with
    the expected output.  This eliminate the assumption that
    stdout and stderr must merged in "chronical orders".
Platforms tested:
    tested in v1.4.  Folded it into v1.5.
2001-08-14 11:35:43 -05:00
Quincey Koziol
d24ae52673 [svn-r4326] Purpose:
Code cleanups, mostly..
Description:
    Work on pacifying the SGI compiler to get the generic properties working
    correctly with --enable-parallel and --enable-fortran.  It's not quite
    fixed yet, but I need to head home and these patches help... :-/
Platforms tested:
    IRIX64 6.5 (modi4)
2001-08-10 17:30:01 -05:00
Bill Wendling
dcfa4009e4 [svn-r4315]
Purpose:
    Feature FIx
Description:
    Fixed description of the --filedriver flag.
Platforms tested:
    Linux
2001-08-06 12:54:42 -05:00
Quincey Koziol
41529d180e [svn-r4312] Purpose:
Feature shift
Description:
    Take out the v1.2.x compatibility stubs and put in the hooks for v1.4.x
    compatibility when needed.
Platforms tested:
    FreeBSD 4.3 (hawkwind)
2001-08-06 11:01:44 -05:00
Bill Wendling
b5d11111b0 [svn-r4292]
Purpose:
    Bug Fix
Description:
    The way we were generating Dependencies and .depend files was broken.
    If the $srcdir or other macros began with a ".", then it would match
    anything and cause problems since it would then overwrite the
    beginning of the header file's path.
Solution:
    Wrote a Perl script which can handle this type of weirdness better.
    It's only used when the environment is a GNU one with a GCC
    compiler...
Platforms tested:
    Linux
2001-08-01 16:00:25 -05:00
Bill Wendling
ff2e3ab9e9 [svn-r4284]
Purpose:
    Feature Change
Description:
    Changed the --family flag to --filedriver to make it clearer what's
    going on.
Platforms tested:
    Linux
2001-07-31 12:20:53 -05:00
Bill Wendling
88729d4c14 [svn-r4282]
Purpose:
    Bug Fix/Feature Add
Description:
    Added new flag ("-f" and "--family") to allow user to specify which
    file driver to use to open the file. If they don't specify anything,
    then it defaults to the old behaviour of trying each driver in turn
    until one actually opens the file.

    If the driver the user specified doesn't succeed in opening the
    file, then we do NOT try other file drivers.
Platforms tested:
    Linux
2001-07-30 16:55:46 -05:00
Quincey Koziol
0c1c23245d [svn-r4180] Purpose:
Documentation
Description:
    Accommodate v1.2.x behavior when --enable-hdf5v1_2 is enabled.
Platforms tested:
    FreeBSD 4.3 (hawkwind)
2001-07-10 15:18:52 -05:00
Bill Wendling
21000f0c09 [svn-r4150]
Purpose:
    Checking in BOb's Changes
Description:
    Just checking in Bob McGrath's changes to the h5dumper's XML code.
2001-07-09 01:40:08 -05:00
Pedro Vicente Nunes
098ed81ec8 [svn-r4083]
code warrior support
and some clean up
the macros file_seek and file_offset_t that were repeated over sevral files were put only in
H5private.h
H5private .h was updated for win32


vthe
Description:
Solution:
Platforms tested:
2001-06-29 10:27:15 -05:00
Quincey Koziol
d41b9fffdf [svn-r4012] Purpose:
Clean up compiler warnings.
Description:
    Just code neatening mostly, some casts, etc.
Platforms tested:
    FreeBSD 4.3 (hawkwind)
2001-06-18 15:22:10 -05:00
Quincey Koziol
c46ac986c5 [svn-r3984] Purpose:
Code cleanups
Description:
    Fixed a small number of warnings.
Platforms tested:
    FreeBSD 4.3 (hawkwind)
2001-06-11 14:53:50 -05:00
Bill Wendling
68887995c8 [svn-r3853] Purpose:
Adding Tests
Description:
    Added tests for the h5dump subsetting feature.
Platforms tested:
    Linux
2001-04-24 17:24:47 -05:00
Bill Wendling
3cd2537c60 [svn-r3841] Purpose:
Oops
Description:
    An "if" was capilalized for some reason.
Solution:
    Changed it from If to if.
Platforms tested:
    Linux
2001-04-24 13:45:03 -05:00
Bill Wendling
ce4408e074 [svn-r3840] Purpose:
small bug fix
Description:
    If specifying --stride, it was checking for the wrong short-form of
    the command-line parameters.
Solution:
    Changed the 'T' to 'S' which is the new short form for the stride
    option.
Platforms tested:
    Linux
2001-04-24 13:40:45 -05:00
Bill Wendling
67b5490df0 [svn-r3811] Purpose:
Update
Description:
    If the count for a subset isn't specified, then we default to the
    remainder of the dataset.
Solution:
    Check for the count to be specified. If not, then find the dimensions
    of the dataset and subtract from the the "start" parameter.
Platforms tested:
    Linux
2001-04-13 15:22:21 -05:00
Bill Wendling
c75ca861ec [svn-r3795] Purpose:
Update
Description:
    Updated the way the subsetting data is retrieved. It now does it one
    row of blocks at a time. It may still run out of memory, but this is
    at least a good first step.

    Also, the start parameter defaults to (0, 0, ...) if it isn't
    specified.
Platforms tested:
    Linux
2001-04-10 14:54:08 -05:00
Bill Wendling
e13b8e8971 [svn-r3782] Purpose:
Update
Description:
    Changed old style includes "with <>" to new style 'with ""' for
    dependencies gathering.
2001-04-05 16:37:17 -05:00
Bill Wendling
fa399abe3d [svn-r3681] Purpose:
Update
Description:
    Applied fix to h5dumper which was applied to the 1.4 branch. Done
    just before creating subdirectories in the 1.4 branch.
Platforms tested:
    Linux
2001-03-21 17:53:34 -05:00
Bill Wendling
bebae0a9e8 [svn-r3634] Purpose:
Bug Fix.
Description:
    Kent is correct about the malloc error. It's harmless if it's not
    needed anyway.
Solution:
    Removed the #ifdef's since all platforms should use this.
Platforms tested:
    Linux
2001-03-14 16:46:31 -05:00
MuQun Yang
693131fe40 [svn-r3632]
Purpose:
    a bug fix on windows(possible on other platforms)
Description:
    not allocating enough space for a string at dump_all for debug version
    a string tmp is defined at dump_all(....),
    The memory that is allocated to tmp is malloc(strlen(prefix)+strlen(name)+1);
    However, there is one testing case : strlen(prefix) is 0 and
    tmp is allocated in the following:
    strcat(tmp,"/");
    strcat(tmp,name);
    ....
    free(tmp);

    the program fails when freeing tmp for debug (dll) version on windows 2000


Solution:
     For windows platform:

    allocate memory     strlen(prefix)+strlen(name)+2
Platforms tested:
    [machines you have tested the changed version.  This is absolute
    important.  Test it out on at least two or three different platforms
    such as Big-endian-32bit (SUN/IRIX), little-endian-32(LINUX) and
    64-bit (IRIX64/UNICOS/DEC-ALPHA) would be good.]
2001-03-14 14:14:13 -05:00