summaryrefslogtreecommitdiffstats
path: root/tools/lib/h5diff_array.c
Commit message (Collapse)AuthorAgeFilesLines
* [svn-r12826] Pedro Vicente Nunes2006-10-301-217/+114
| | | | | added a new test for h5diff relative error for the file generator program
* [svn-r12819] Pedro Vicente Nunes2006-10-261-5/+758
| | | | | | | h5diff: print a message of "not comparable" in a case where the relative error compare is not possible, due to the denominator being zero. Modified the test file generator program to include a example for this and a new test on the shell script
* [svn-r12815] Pedro Vicente Nunes2006-10-251-115/+207
| | | | | | | | | | | | | | 1) added a new parameter to the h5diff function diff_array that contains the beginning position of the hyperslab, so that the total position in the array is printed correctly when reading by hyperslabs. 2) added a new test to h5diff that reads and diffs by hyperslabs. The test reads a 1GB dataset, from which a 1KB hyperslab was written with differences . 3) added the generation of 2 files to the generator program to test the h5diff hyperslab read. 4) changed the h5diff binary pre-generated file names to be more descriptive (e.g, instead of file1.h5, made it h5diff_basic1.h5) 5) changed the name of the h5repack options text file to info.h5repack
* [svn-r12736] Description:Quincey Koziol2006-10-091-3/+6
| | | | | | | | | | | | | | | | | | | Add "use the latest format" support for dataspace object header encode/ decode routines and clean up format a bit for the latest format (new to 1.8.x releases) Remove storing 'perm' parameter for array datatypes in memory and the file, and add test to make certain that if any user applications are attempting to store them, we get some reports back. (Should be unlikely, since the RefMan says that the parameter is not implemented and is unsupported). Carry those changes into the tests, etc. Clean up a bunch more compiler warnings. Tested on: FreeBSD/32 4.11 (sleipnir) w/threadsafe Linux/32 2.4 (heping) w/FORTRAN & C++ Linux/64 2.4 (mir) w/enable-1.6-compat
* [svn-r12440] Purpose:Quincey Koziol2006-06-271-419/+419
| | | | | | | | | | | Code cleanup Description: Trim trailing whitespace in Makefile.am and C/C++ source files to make diffing changes easier. Platforms tested: None necessary, whitespace only change
* [svn-r12304] Purpose:Pedro Vicente Nunes2006-04-261-3/+6
| | | | | | | | | | | | | | | bug fix Description: the diff region output was done in verbose mode Solution: avoid it in verbose Platforms tested: linux Misc. update:
* [svn-r12303] Purpose:Pedro Vicente Nunes2006-04-261-1/+1
| | | | | | | | | | | | | | new feature Description: modified the test case for region points, so that there is not an ordered sequence of points that differ, but one with gaps Solution: Platforms tested: linux Misc. update:
* [svn-r12297] Purpose:Pedro Vicente Nunes2006-04-251-52/+173
| | | | | | | | | | | | | | | | | new feature Description: added support for the printout of dataset region references differences added a new test for this merged the h5diff generator of test files into a single file Solution: Platforms tested: linux 32, 64 solaris Misc. update:
* [svn-r12146] Purpose:Pedro Vicente Nunes2006-03-231-16/+77
| | | | | | | | | | | | | | | | | bug fix Description: percent relative error was done using integer arythmetic; use floating point instead added the case for unsigned long long integer to float conversion Solution: Platforms tested: linux (32,64) AIX solaris Misc. update:
* [svn-r12134] Purpose:Pedro Vicente Nunes2006-03-221-204/+215
| | | | | | | | | | | | | | | | | | bug fix Description: 1) added a more explainative usage message 2) the percent relative error for the integer type (division) was being done using integer arythmetic; use floating point arythmetic instead 3) added a new test for integer percent Solution: Platforms tested: linux (32,64) AIX solaris Misc. update:
* [svn-r12126] Purpose:Pedro Vicente Nunes2006-03-211-204/+229
| | | | | | | | | | | | | | | | | bug fix Description: the compare check for the datatype sign was not done in the correct place, causing invalid comparisons to be made Solution: put it on the correct place Platforms tested: linux 32, 64 AIX Misc. update:
* [svn-r12112] Purpose:Pedro Vicente Nunes2006-03-171-3021/+3042
| | | | | | | | | | | | | | | | | | bug fixes Description: 1) the option logic for the print of long types was done incorrectly (extra lines of code that were not supposed to be there) 2) the print of loong long types was incorrect Solution: 1) removed the incorrect code 2) made a long long cast on the printf call Platforms tested: linux (32 and 64) solaris Misc. update:
* [svn-r12094] Purpose:Pedro Vicente Nunes2006-03-151-5/+8
| | | | | | | | | | | | | | | bug fix Description: long long type was being incorrectly printed Solution: added a long_long cast to print function Platforms tested: linux Misc. update:
* [svn-r11886] Purpose:Quincey Koziol2006-01-231-24/+20
| | | | | | | | | | | | | Code cleanup Description: Check in some of the code cleanups from working on the external link support. (This doesn't include any of the external link features) Platforms tested: FreeBSD 4.11 (sleipnir) Mac OSX.4 (amazon) Linux 2.4
* [svn-r11245] Purpose:Quincey Koziol2005-08-131-464/+464
| | | | | | | | | | | | | | | | | | | | Code cleanup Description: Trim trailing whitespace, which is making 'diff'ing the two branches difficult. Solution: Ran this script in each directory: foreach f (*.[ch] *.cpp) sed 's/[[:blank:]]*$//' $f > sed.out && mv sed.out $f end Platforms tested: FreeBSD 4.11 (sleipnir) Too minor to require h5committest
* [svn-r11003] Purpose:Pedro Vicente Nunes2005-06-301-21/+38
| | | | | | | | | | | | | | | | | | | | bug fix Description: when diffing a string type string , a cycle is made using the hdf5 get_size function, which returns the type size some strings might have a NULL terminator character before the type size position this was noticed on a HDF-EOS file on the HDFEOSVersion attribute which was defined as a type with a 32 size, but contained a string with 12 characters, making h5diff to compare the extra garbage characters Solution: detect the NULL terminator character and end the diff at that position Platforms tested: linux Misc. update:
* [svn-r10994] Purpose:Pedro Vicente Nunes2005-06-281-0/+1
| | | | | | | | | | | | | | | | | | | | | bug fix Description: when 2 objects were not comparable, the final print information for the non verbose mode printed "0 differences found" Solution: replaced instead with a Summary message that says "Some objects were not comparable" Platforms tested: linux solaris Misc. update:
* [svn-r9872] Purpose:Albert Cheng2005-01-261-2023/+2044
| | | | | | | | | | | | New feature. Description: Added new tool ph5diff. (Code done by Leon Arber.) Code is changed but test is not working yet. For now, it skipped all tests. Platforms tested: Tested in heping, serial and parallel modes.
* [svn-r9727] Purpose:Quincey Koziol2004-12-291-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug Fix/Code Cleanup/Doc Cleanup/Optimization/Branch Sync :-) Description: Generally speaking, this is the "signed->unsigned" change to selections. However, in the process of merging code back, things got stickier and stickier until I ended up doing a big "sync the two branches up" operation. So... I brought back all the "infrastructure" fixes from the development branch to the release branch (which I think were actually making some improvement in performance) as well as fixed several bugs which had been fixed in one branch, but not the other. I've also tagged the repository before making this checkin with the label "before_signed_unsigned_changes". Platforms tested: FreeBSD 4.10 (sleipnir) w/parallel & fphdf5 FreeBSD 4.10 (sleipnir) w/threadsafe FreeBSD 4.10 (sleipnir) w/backward compatibility Solaris 2.7 (arabica) w/"purify options" Solaris 2.8 (sol) w/FORTRAN & C++ AIX 5.x (copper) w/parallel & FORTRAN IRIX64 6.5 (modi4) w/FORTRAN Linux 2.4 (heping) w/FORTRAN & C++ Misc. update:
* [svn-r9533] Purpose:Pedro Vicente Nunes2004-11-161-35/+1816
| | | | | | | | | | | | | | | | | | | | | | | enhanced performance for h5diff Description: the comparison cycle for the 2 buffers read from file was using a compare function where the type must be checked for each datum (e.g due to recursive calls in compound types) for atomic types this checking can be avoided Solution: introduced cycles for each one of the atomic integer and float class types Platforms tested: linux aix solaris Misc. update:
* [svn-r9370] Purpose:Quincey Koziol2004-10-061-4/+4
| | | | | | | | | | | | | | | Refactor code Description: Refactor common code for determining the native type for using in the tools into separate routine. Also, reduce diffs between the two branches and bring back some fixes from the development branch to the release branch. Platforms tested: FreeBSD 4.10 (sleipnir) too minor to require h5committest
* [svn-r8912] Purpose:Pedro Vicente Nunes2004-07-211-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | bug fixes Description: the return error code for a function was not initialized. in HP-UX it happened that this variable was initialized to -1 causing the function to return with an error condtion solution : initialized the variable to 0 the name of the dataset was printed after the differences in verbose mode and report when differences were found solution : check first if differences were found and then print the name of dataset and differences in verbose mode always print the name first Solution: Platforms tested: linux aix solaris Misc. update:
* [svn-r8904] Purpose:Pedro Vicente Nunes2004-07-201-159/+144
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | h5diff and h5repack changes Description: h5diff introduced the following four modes of output: Normal mode: print the number of differences found and where they occured Report mode: print the above plus the differences Verbose mode: print the above plus a list of objects and warnings Quiet mode: do not print output (h5diff always returns an exit code of 1 when differences are found) h5repack added an extra parameter for SZIP filter (coding method) the new syntax is -f SZIP=<pixels per block,coding> (pixels per block is a even number in 2-32 and coding method is 'EC' or 'NN') Example of use: ./h5repack -i file1 -o file2 -f SZIP=8,NN -v updated usage messages, test scripts and files accordingly Solution: Platforms tested: linux AIX solaris Misc. update:
* [svn-r8383] Purpose:Quincey Koziol2004-04-181-17/+7
| | | | | | | | | | | | | 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
* [svn-r8074] Purpose:Pedro Vicente Nunes2004-01-161-16/+141
| | | | | | | | | | | | | | | | | | | added h5repack and h5diff support for copying and differences of references to dataset regions modified the behaviour in the diff of attributes, when a difference in name is detected in the attribute cycle (number of attributes of object), instead of exiting the cycle, rather continue Description: Solution: Platforms tested: linux solaris AIX Misc. update:
* [svn-r7908] Purpose:Pedro Vicente Nunes2003-12-031-1/+1
| | | | | | | | | | | | | | | | code clean, bug fix Description: cleaned warnings on IRIX fixed bug in parse command line Solution: Platforms tested: linux IRIX 6.5 64 Misc. update:
* [svn-r7904] Purpose:Pedro Vicente Nunes2003-12-021-154/+421
| | | | | | | | | | | | | | | | | | | h5diff new features Description: added comparison for attributes adeded comparison for all dataset datatypes added tests for the new features changed the output format Solution: Platforms tested: linux solaris 5.7 IRIX 6.5 (64) Misc. update:
* [svn-r7804] Purpose:Pedro Vicente Nunes2003-10-311-9/+71
| | | | | | | | | | | | | | | | h5diff new feature Description: added diff for the class ENUM Solution: Platforms tested: linux solaris 2.7 IRIX Misc. update:
* [svn-r7797] Purpose:Pedro Vicente Nunes2003-10-301-2/+2
| | | | | | | | | | | | | | | code clean Description: added some comments Solution: Platforms tested: linux (small change) Misc. update:
* [svn-r7793] Purpose:Pedro Vicente Nunes2003-10-301-64/+148
| | | | | | | | | | | | | | | | | | h5diff new features Description: added the diff for variable lenght, opaque, enum, and bitfield datasets Solution: Platforms tested: linux solaris 2.7 IRIX Misc. update:
* [svn-r7792] Purpose:Pedro Vicente Nunes2003-10-301-53/+235
| | | | | | | | | | | | | | | | | | | h5diff new features bug fix Description: implemented the diff for STRING and ARRAY types fixed a bug. when the datasets are empty, do not try to compare them . the check empty is made with H5Dgetstorage_size Solution: Platforms tested: linux solaris 5.7 IRIX Misc. update:
* [svn-r7791] Purpose:Pedro Vicente Nunes2003-10-291-225/+224
| | | | | | | | | | | | | | | | | | h5diff new features Description: implemented diff for compound types. so far it only compares the integer and float classes of these compound types. this is done with a new recursive function that compares datum by datum Platforms tested: linux solaris 2.7 IRIX Misc. update:
* [svn-r7785] Purpose:Pedro Vicente Nunes2003-10-291-181/+181
| | | | | | | | | | | | | | | | | | | | h5repack new features Description: added a copy routine for all types added a copy routine for attributes commnented some debug messages in h5trav added the verbose option to some h5diff messages Platforms tested: linux solaris 2.5 IRIX Misc. update:
* [svn-r7769] Purpose:Pedro Vicente Nunes2003-10-281-0/+1107
moved h5diff "public API" routines to tools/lib folder Platforms tested: linux solaris 2.7 IRIX Misc. update: