Commit Graph

23049 Commits

Author SHA1 Message Date
Albert Cheng
fa5fd6a800 [svn-r200] Purpose: bug fix.
Problem:
    Step 8 failed because H5Pcreate_simple expects size_t dimension
    array but the code used an int array.  (In IRIX64 -64 mode, size_t
    is a 64bit unsigned long but ints are only 32 bits long.)  casting
    it to size_t* just avoided warning message but did not change the
    data type.
Solution:
    Throw in a kludge by using a temporary dimension array of size_t.
    Can't change the type of h_size since it is also used for the hyperslab
    routine which expects an int dimension array.  The Hyperslab routine
    will be changed.  Put in a patch for now.
1998-01-30 03:35:12 -05:00
Albert Cheng
69902d9278 [svn-r199] Added -ansi compile option. 1998-01-30 03:25:38 -05:00
Robb Matzke
cb8a986afd [svn-r198] Changes since 19980129
----------------------

./INSTALL
./INSTALL_MAINT
./README
	Updated installation instructions for hdf-5.0.0a.

./RELEASE
	Updated release notes.  Needs more work.

./bin/release
	The tarballs include the name of the root directory like
	hdf-5.0.0a so it doesn't have to be explicitly created when
	the files are extracted.
1998-01-29 16:56:06 -05:00
Robb Matzke
28e23330df [svn-r197] Changes since 19980129
----------------------

./config/freebds2.2.1
./config/irix64
./config/linux
	Added -DH5T_DEBUG to the debugging flags.  Also changed `true'
	to `:' for the Irix64 ranlib program.  This turns on printing
	of data type conversion statistics when the program exits.

./html/Datatypes.html
	Fixed documentation for data conversion functions and updated
	examples.

./src/H5D.c
	The I/O pipeline updates data type conversion statistics.

./src/H5T.c
./src/H5Tconv.c
./src/H5Tpkg.h
./src/H5Tpublic.h
	Cleaned up data type conversion registration interface.
1998-01-29 14:36:16 -05:00
Robb Matzke
5761b90f63 [svn-r196] Changes since 19980128
----------------------

./MANIFEST
	Added new files.

./bin/Makefile.dist		[NEW]
	This file becomes the default top-level Makefile which invokes
	configure with no arguments and then re-runs make.  It's for
	those people that don't read the INSTALL file.

./bin/release			[NEW]
	Build HDF release tarballs.  Arguments are a list of tarball
	types and are: tar, compress, gzip, or bzip2.  The default is
	gzip. If the only argument is `all' then all types of tarballs
	are created.  The results are put in the `releases' directory.
	Make sure you keep MANIFEST up to date.  This program requires
	perl-5.003 or better.

./src/H5AC.c
	Fixed a printf format.
1998-01-29 11:31:24 -05:00
Albert Cheng
cf52ce8fc4 [svn-r195] Purpose: minor bug fix
Made the ncalls declaration explicitedly 'int' type.
1998-01-29 09:46:36 -05:00
Robb Matzke
d51c454c82 [svn-r194] Changes since 19980128
----------------------

./src/H5P.c
	Removed H5Pcreate()

./src/H5Psimp.c
	Copy int[] return value from H5P_get_hyperslab() to size_t[]
	argument to pass to other hyperslab functions.

./test/dsets.c
	Added a call to H5Eprint() to help track down Alberts O2k bug.
1998-01-28 23:11:58 -05:00
Robb Matzke
d4a3224c0f [svn-r193] Changes since 19980128
----------------------

./MANIFEST
	Added new config files.

./src/H5private.h
	Changed FUNC_ENTER() so it calls H5Eclear() for all API
	functions but not for any private functions.  It also prints
	the names of all API functions on file 55 (just for the
	prototype) so we can get a list of API functions called with
	the Bourne shell commands like:

		./testhdf5 55>api_list		or
		./testhdf5 55>&1 1>/dev/null 2>&1 | less

	Otherwise the names are silently discarded.

./src/H5.c
./src/H5C.c
./src/H5D.c
./src/H5F.c
./src/H5G.c
./src/H5M.c
./src/H5P.c
./src/H5T.c
	Removed `H5ECLEAR' from lots of places in the source code.

./src/H5E.c
./src/H5Eprivate.h
	Recursion is a problem here, so to disable a call to
	H5Eclear() from FUNC_ENTER just define a local variable like
	this before you call FUNC_ENTER:

	     const H5E_clearable_g = FALSE;

	Unfortunately this results in a warning: declaration of
	`H5E_clearable_g' shadows global declaration.  Good thing it's
	only used in two places.
1998-01-28 16:43:08 -05:00
Quincey Koziol
c131a549dc [svn-r192] Added sensible flags for gcc on Solaris 2.5 1998-01-28 15:58:22 -05:00
Albert Cheng
8032966d86 [svn-r191] Added configuration for IRIX64 OS. Distinguish it from plain
irix.
1998-01-28 15:52:47 -05:00
Albert Cheng
037b106cf9 [svn-r190] initial version for IRIX64 OS such as those on O2K and Power
Challenge.
1998-01-28 15:42:30 -05:00
Quincey Koziol
cfe9e28c94 [svn-r189] Minor cleanups for clean compilation on IRIX 6.2 1998-01-28 15:25:14 -05:00
Quincey Koziol
55ac27633b [svn-r188] Changed hbool_t from an enum to 'int' and removed BTRUE/BFALSE/BFAIL from code.
Changed interface to the H5P..hyperslab functions to 'int' instead of 'size_t'.
Cleaned up lots of warnings on IRIX 6.2 platform.  Minor other tweaks to get
to a mostly clean build on the SGI.  It still whines about 'long long' being
non-standard and some "pointless comparison of unsigned with 0" but those
aren't big problems.
1998-01-28 15:24:49 -05:00
Quincey Koziol
9287018553 [svn-r187] Added some sensible flags 1998-01-28 15:21:41 -05:00
Robb Matzke
3e601905e3 [svn-r186] Changes since 19980128
----------------------

./config/conclude.in
	The maintainer-clean target removes Emacs backup files,
	mirroring backup and contrib files, core files, and profile
	output files in addition to what it used to remove.

./src/H5D.c
	Fixed a buffer allocation bug in the output pipeline.

./src/H5Gnode.c
	Fixed a comparison against size_t

./test/Makefile.in
	Added the other temporary h5 files to the `MOSTLYCLEAN' var.

./test/cmpd_dset.c
	Added four tests for partial I/O. Don't you just love it when
	something works on the first try!
1998-01-28 13:52:53 -05:00
Robb Matzke
c0cfc4421a [svn-r185] Changes since 19980128
----------------------

./src/H5D.c
./src/H5Dpublic.c
	Added H5Dget_space().

./src/H5Gstab.c
./src/H5H.c
	Fixed a comparison with size_t against <0.

./src/H5P.c
./src/H5Pprivate.h
./src/H5Ppublic.h
	Changed `intn' to `int' for public function args and
	returns. H5Pget_hyperslab() returns the dimensionality.

./test/testhdf5.h
	Clears error stack more frequently.

./src/H5Psimp.c
./test/cmpd_dset.c
	Impelementing data space conversion.
1998-01-28 11:50:09 -05:00
Albert Cheng
538069b3e0 [svn-r184] Purpose: Feature
Problem: Some *.h5 files are left behind after tests.
Solution: Added the MOSTLYCLEAN line for those few .h5 to be removed
if "make clean" is called.  Did not use "*.h5" because of concern that
it may blow away legitimate .h5 files.  Though it is possible to put
legitimate .h5 in a subdirectory, it is better to play it safe this
way.
1998-01-28 10:41:45 -05:00
Quincey Koziol
22a7d4852a [svn-r183] Added comparison of selected hyperslabs to H5P_cmp 1998-01-28 09:20:36 -05:00
Quincey Koziol
2102520e90 [svn-r182] Fixed typo... 1998-01-28 07:47:59 -05:00
Quincey Koziol
b1f57d906e [svn-r181] Reset hyperslab selection changing changing dataspace dimensions. 1998-01-28 07:46:26 -05:00
Quincey Koziol
faab4bbf1b [svn-r180] Seperated range checking of start, count & stride in H5Pset_hyperslab from
building hyperslab arrays so earlier hyperslab don't get blown away if the new
one is incorrect.  Fixed fence-post error in range checking also.
1998-01-28 07:35:04 -05:00
Quincey Koziol
67bfd03657 [svn-r179] Added SIGN macro 1998-01-28 07:33:25 -05:00
Robb Matzke
7aa4f57811 [svn-r178] Changes since 19980127
----------------------

./Makefile.in
./config/commence.in
	With GNU make you can now use `-j' and `-l' options and things
	get built correctly.  I can do a `make -j -l6 test' from a
	clean hdf5 source tree (after configure) in 45 seconds (8 to
	build dependencies, 26 to compile everything, and 11 to run
	the tests).

./src/H5Gnode.c
	Removed a comment that no longer applies.

./src/H5P.c
./src/H5Pprivate.h
./src/H5Ppublic.h
	Changed H5Pselect_hyperslab() to H5Pset_hyperslab() and added
	H5Pget_hyperslab() and H5P_get_hyperslab().

	Replaced a couple short memset() calls with a for loop.

	Removed `if (foo!=NULL)' from around H5MM_xfree() calls.

	Clear hslab_def when the hyperslab disappears.

./src/H5Tpublic.h
	Removed trailing enum comma.
1998-01-28 00:47:19 -05:00
Quincey Koziol
84e5e6fd28 [svn-r177] Added H5Pselect_hyperslab routine. The parameters to this routine are similar
to the HDF4 SDwritedata routine: start, count & stride.  The start indicates
the base location of the hyperslab, count indicates the number of elements in
the hyperslab and stride indicates the packing of the hyperslab.  The hyperslab
is assumed to be the same rank as the dataspace it is located within.  The
hyperslab is stored for future use, no I/O occurs in this routine.
1998-01-27 19:23:05 -05:00
Quincey Koziol
bae13084f0 [svn-r176] added ABS macro 1998-01-27 19:20:01 -05:00
Quincey Koziol
e1b3f3e3b3 [svn-r175] Minor formatting tweaks 1998-01-27 16:11:53 -05:00
Quincey Koziol
a49ca01622 [svn-r174] Switched calls from H5Pcreate to H5Pcreate_simple 1998-01-27 16:11:32 -05:00
Quincey Koziol
6b2d17d4bb [svn-r173] ifdef'ed out H5Pcreate function and put in H5Pcreate_simple function. 1998-01-27 16:11:07 -05:00
Quincey Koziol
9a8e8a659d [svn-r172] Cleaned up formatting for nicer printing 1998-01-27 16:10:31 -05:00
Robb Matzke
8a8b71b3f5 [svn-r171] Changes since 19980126
----------------------

./MANIFEST
        Added new files.

./config/linux
        Added `-pipe' to the default GCC flags since this is supposed
        to result in better performance on a multi-processor machine.

./html/Datasets.html
./html/dataset_p1.gif           [NEW]
./html/dataset_p1.obj           [NEW]
        Updated to match source.  The things which aren't part of the
        Feb-1 prototype are marked in bold. Added an example for
        partial I/O.

./html/Groups.html              [NEW]
./html/group_p1.gif             [NEW]
./html/group_p1.obj             [NEW]
./html/group_p2.gif             [NEW]
./html/group_p2.obj             [NEW]
./html/group_p3.gif             [NEW]
./html/group_p3.obj             [NEW]
        New documentation for groups.

./html/H5.sample_code.html
        Updated two examples to match code.
1998-01-27 14:35:36 -05:00
Robb Matzke
5c6a3af396 [svn-r170] Changes since 19980123
----------------------

./src/H5D.c
./src/H5T.c
./src/H5Tconv.c
./src/H5Tpkg.h
./src/H5Tprivate.h
./src/H5Tpublic.h
./test/cmpd_dset.c
        Added support to turn background buffer on/off to help speed
        up conversions.  Currently, every type of conversion turns it
        off except compound-->compound conversions which always turn
        it on.  In the future the compound-->compound conversions
        might be more frugal.
1998-01-26 15:56:18 -05:00
Robb Matzke
6cd8818b73 [svn-r169] Forgot this file the first time... 1998-01-23 14:58:38 -05:00
Robb Matzke
6ee36e2b3a [svn-r168] Changes since 19980122
----------------------

./MANIFEST
	Added new files.

./src/H5D.c
	Added support for partial datatype I/O which is needed when
	merging struct members between file and disk.  This isn't the
	efficient version because the merge requires an extra gather
	(step 1b in my pipeline diagram) that isn't turned off when it
	isn't needed.

./src/H5T.c
./src/H5Tpkg.h
./src/H5Tprivate.h
./src/H5Tpublic.h
	Conversion functions take an extra argument which is a pointer
	to a blob of private data that can be used by the conversion
	function to save anything that's expensive to compute and
	is constant for a particular conversion path.

./src/H5Tconv.c
	Compound data type conversion is beginning to work!  We can
	handle conversions between compound types that have members
	which are not arrays.  It also supports partial conversion so
	we can omit certain members of the source and not clobber
	extra members in the destination.

./test/Makefile.in
./test/cmpd_dset.c	[NEW]
	Added a test case that demonstrates how to use compound data
	types in a dataset.  The output doesn't match the output of
	the other test cases yet, the the entire example is more
	readable and written entirely with the API.
1998-01-23 14:53:37 -05:00
Robb Matzke
dd36e4a341 [svn-r167] Pipeline as currently implemented. 1998-01-23 10:21:35 -05:00
Quincey Koziol
118089bb5e [svn-r166] Initial version of I/O pipeline graph 1998-01-22 16:33:52 -05:00
Robb Matzke
dec0c95436 [svn-r165] Changes since 19980122
----------------------

./src/H5.c
./src/H5B.c
./src/H5Bprivate.h
	Changed `new' to something else in 6 places for Fabio.

./src/H5T.c
./src/H5Tconv.c
	Beginning to work on compound data type conversion. Don't look
	yet :-)
1998-01-22 14:57:48 -05:00
Robb Matzke
a0ee2c57e9 [svn-r164] Changes since 19980122
----------------------

./src/*.h
	Fixed indentation where indent(1) screwed up.  This isn't by
	any means the final say, but it's better than it was.

./src/H5A.c
./src/H5Aprivate.h
./src/H5Apublic.h
./src/H5C.c
./src/H5D.c
./src/H5E.c
./src/H5F.c
./src/H5G.c
./src/H5M.c
./src/H5P.c
./src/H5T.c
./src/H5Tconv.c
./src/debug.c
./test/dtypes.c
./test/istore.c
./test/theap.c
./test/tohdr.c
./test/tstab.c
	Removed some atom functions from the API and made them
	library-scope. Also changed some names by removing the
	redundant `atom' from the name and by adding a `_' after the
	`H5A'.
1998-01-22 11:41:32 -05:00
Robb Matzke
fdfb6dfd26 [svn-r163] Changes since 19980121
----------------------

./Makefile.in
        Added more dependencies to .PHONY.

./src/H5D.c
        The write side of the I/O pipeline is implemented now too.
        Things are looking good for the prototype and it's just a
        matter of populating the library with the data type and data
        space conversion functions.

./src/H5Farray.c
./src/H5Fprivate.h
./test/istore.c
        Changed the order of the arguments for H5F_arr_read() and
        H5F_arr_write().

./src/H5P.c
./src/H5Pprivate.h
        Changed the names of the arguments of H5P_find().  Fleshed out
        the mgath and fscat callback types.

./src/H5Psimp.c
        Added stubs for H5P_simp_mgath() and H5P_simp_fscat() that
        operate on the entire data space.  Quincey, once you have the
        data space hyperslab stuff in place let me know and I'll
        finish the H5P_simp_*() functions to do partial I/O.  Or you
        can take a look at it too if you like; there's some comments
        in there for you.

./src/H5V.c
./src/H5Vprivate.h
        Changed dimensionality arguments from `size_t' to `intn' to be
        consistent with the rest of the library and to get rid of
        warnings on 64-bit Irix.
1998-01-22 10:27:29 -05:00
Robb Matzke
851b17c87a [svn-r162] *** empty log message *** 1998-01-21 15:05:56 -05:00
Robb Matzke
f5cc0548b8 [svn-r161] Changes since 19980121
----------------------

./MANIFEST
./src/H5Psimp.c		[NEW]
./src/Makefile.in
	Added H5Psimp.c and populated it with some conversion
	functions. Eventually the parts of H5P.c that operate on
	simple data spaces will be migrated to H5Psimp.c and other
	files will be created for other types of data spaces.

./src/H5D.c
	The read pipeline, H5Dread(), has been updated to handle data
	space conversion although the actual simple data space
	conversion functions don't do anything yet. But we're getting
	really close!

./src/H5P.c
./src/H5Pprivate.h
	Added H5P_find() to locate data space conversion functions.
	Added typedefs for structs related to data space conversion.
1998-01-21 15:01:02 -05:00
Robb Matzke
b7f919cccb [svn-r160] ./src/H5D.c
Fixed a rather major bug when reading/writing a chunked dataset.
1998-01-21 12:54:17 -05:00
Quincey Koziol
b23133fabb [svn-r159] Changed variables named "template" to "tid" to avoid name clash with C++
keyword.
1998-01-20 14:37:52 -05:00
Robb Matzke
a4e47e25eb [svn-r158] Changes since 19980116
----------------------

./src/H5AC.c
./src/H5ACprivate.h
./src/H5B.c
./src/H5D.c
./src/H5Farray.c
./src/H5Fprivate.h
./src/H5V.c
./src/H5Vprivate.h
        Fixed indent oopses.

./src/H5D.c
./src/H5Fprivate.h
./src/H5Farray.c
./test/istore.c
        We can now perform partial I/O on contiguous storage
        transferring between a hyperslab of file storage and a
        hyperslab of memory.  However, partial I/O hasn't been added
        to the I/O pipeline yet in H5D.c
1998-01-20 14:10:08 -05:00
Quincey Koziol
c2c94c3187 [svn-r157] Reformatted code with indent... 1998-01-16 17:23:43 -05:00
Quincey Koziol
903e677366 [svn-r156] Initial set of indention flags to fight about later... :-) 1998-01-16 16:58:25 -05:00
Robb Matzke
74618e3670 [svn-r155] Changes since 19980114
----------------------

./html/Datasets.html
	Removed some archaic comments about data spaces. Fixed example
	code.

./MANIFEST
./html/H5.format.html
./src/H5O.c
./src/H5Oprivate.h
./src/H5Ocstore.c		[DELETED]
./src/H5Oistore.c		[DELETED]
./src/H5Olayout.c		[NEW]
./src/Makefile.in
./test/istore.c
	Replaced H5O_CSTORE and H5O_ISTORE messages with a more
	general H5O_LAYOUT message.

./src/H5D.c
./src/H5Dprivate.h
./src/H5Dpublic.h
	A little more work on the pipeline.  Access to the file data
	is through the new H5F_arr_read() and H5F_arr_write() which do
	I/O on hyperslabs of byte arrays and don't depend on data
	layout.  This should simplify the I/O pipeline quite a bit.

	I also added another argument to H5Dread() and H5Dwrite() to
	describe the hyerslab of the file array on which I/O is
	occuring. We discussed this at last week's meeting.

./src/H5Farray.c		[NEW]
	Added functions that sit on top of H5F_block_read() and
	H5F_istore_read() and implement a common set of functions
	between all layouts.  This means I/O of hyperslabs of
	byte-arrays in the file to arrays of bytes in memory.  When
	operating on arrays of elements (>1byte) then we just add
	another dimension.  That is, a 10x20 array of int32 becomes a
	10x20x4 array of bytes.

	[This is the area I'll be working on most of next week to
	implement partial I/O for contiguous data and to improve
	performance for chunked data.]

./src/H5Fistore.c
./src/H5Fprivate.h
	Replaced the H5F_istore_t data type with the layout message
	H5O_layout_t which looks almost the same.  Eventually I'd like
	to rename `istore' to `chunked' everywhere and use `istore'
	for 1-d storage where the chunks are all different sizes like
	in the small object heap where each object is a chunk.

./src/H5V.c
	Changed ISTORE to LAYOUT in one place.

./test/dsets.c
	Fixed for extra argument to H5Dread() and H5Dwrite().
1998-01-16 14:52:04 -05:00
Robb Matzke
e591380319 [svn-r154] *** empty log message *** 1998-01-15 14:54:49 -05:00
Robb Matzke
d70c7d7a64 [svn-r153] Changes since 19980108
----------------------

./MANIFEST
./src/H5Dconv.c		[REMOVED]
./src/H5Tconv.c		[NEW]
./src/Makefile.in
	Changed H5Dconv.c to H5Tconv.c

./html/Datatypes.html
	Updated data type conversion section.

./html/H5.apiv2.html
	Removed sections about datasets and data types since they're
	covered in their own chapters.

./src/H5D.c
	Supports data type conversion.

./src/H5Odtype.c
./src/H5Tpkg.h
	Changed `lo_pad' and `hi_pad' to `lsb_pad' and `msb_pad'.

./src/H5T.c
./src/H5Tpkg.h
./src/H5Tprivate.h
./src/H5Tpublic.h
./src/H5detect.c
	Added predefined data types. Added query/set more
	properties. Added type conversion infrastructure.

./test/dsets.c
	Tests data type conversion during read.
1998-01-14 14:42:59 -05:00
Robb Matzke
1063eb8a1e [svn-r152] Changes since 19980107
----------------------

./html/Datatypes.html
	Updated to match code.

./src/H5Odtype.c
./src/H5Oprivate.h
./src/H5Tpkg.h
./src/H5detect.c
	Changed H5T_FIXED to H5T_INTEGER.

./src/H5T.c
./src/H5Tprivate.h
./src/H5Tpublic.h
./test/dtypes.c
	Implemented lots of type properties.

./src/H5detect.c
./src/H5Tpublic.h
	It is no longer necessary to call H5init() before using a
	predefined data type.
1998-01-09 12:49:23 -05:00
Robb Matzke
159fa7a232 [svn-r151] Changes since 19980105
----------------------

./config/freebsd2.2.1
./config/linux
        Added -UH5O_DEBUG to the debug flags.  Turn this on to get
        lots of lines on stderr to show what objects are opened and
        closed.

./src/H5C.o
./src/H5Cpublic.h
./test/dsets.c
./test/tfile.c
        Split H5Cget_prop() and H5Cset_prop() into functions for each
        property.

./src/H5D.c
./src/H5Dpublic.h
./src/H5Gstab.c
./src/H5O.c
./src/H5Ocont.c
./src/H5Ocstore.c
./src/H5Odtype.c
./src/H5Oefl.c
./src/H5Oistore.c
./src/H5Oname.c
./src/H5Onull.c
./src/H5Oprivate.h
./src/H5Osdspace.c
./src/H5Ostab.c
./src/H5P.c
./src/istore.c
./test/tohdr.c
        Object header functions now understand constant
        vs. non-constant messages.

./src/H5F.c
./src/H5Fprivate.h
        The file OID can be closed before other OID's.

./src/H5Flow.c
        H5F_addr_defined() is a macro in this file.

./src/H5G.c
./src/H5Gpublic.h
./test/tstab.c
        A current working group cannot be deleted.

./src/H5Gent.c
./src/H5Gpkg.h
        Removed unused functionality.

./src/H5public.h
        Includes <sys/types.h> for size_t.
1998-01-07 12:14:26 -05:00