Commit Graph

9125 Commits

Author SHA1 Message Date
Albert Cheng
cd5a522434 [svn-r226] Turned off couple tedious warning messages. One (1174) due to incorrect
local O2K system configuration. The other (1429 about long long) is
ignorable since long long is standard in the next version of ANSI C.
1998-02-05 22:06:48 -05:00
Albert Cheng
f23e12ca73 [svn-r225] H5F_open has been changed due to the PHDF work. It needed an extra
argument of access-template.
1998-02-05 22:02:00 -05:00
Albert Cheng
238cccd5e8 [svn-r224] Initial implementation of the upper levels of PHDF5. The
MPIO lower interface layer (H5Fmpio.c) has been commited by Kim already.
All PHDF5 codes are "bracket'ed" by #ifdef HAVE_PARALLEL macro.
1998-02-05 22:00:35 -05:00
Albert Cheng
858b8fbfae [svn-r223] Somehow the default create template header is causing heap routines
failures.  Row back the offset and length sizes to 4 (instead of
sizeof(size_t)) for now to pass all tests.  Will fix it later.
(Also changed the default create template in H5F.c).
1998-02-05 21:56:45 -05:00
Albert Cheng
0e55445d79 [svn-r222] Problem: UINT64DECODE and INT64DECODE were not working because it did
not assign the decoded value back to n.

Solution: Removed temporary variable _n (don't see why it is needed.)
Use the variable n directly.

Platform tested: IRIX64 -64
1998-02-05 12:13:43 -05:00
Robert Kim Yates
34e8bb7d12 [svn-r221] In H5F_mpio_open, if truncation was requested, all processes must call
MPI_File_set_size (a collective operation).
Also changed/added some error messages.
1998-02-05 10:51:25 -05:00
Robb Matzke
92160353e3 [svn-r220] Changes since 19980204
----------------------

./src/H5H.c
	Changed a temporary buffer from 20 bytes to 52 bytes.

./test/tfile.c
	Default sizes for file addresses and sizes are the same as
	sizeof(size_t) on the machine that creates the file.
1998-02-05 08:52:15 -05:00
Robb Matzke
125f368560 [svn-r219] Changes since 19980204
----------------------

./src/H5Odtype.c
	Compound data type names weren't aligned correctly. Thanks to
	Elena for finding this bug.
1998-02-04 13:31:13 -05:00
Robb Matzke
a47ba809ea [svn-r218] ./src/H5F.c
The default file addr and size sizes for new files are the
	same as sizeof(size_t) on the machine that creates the
	file. They used to always be 4.

./src/H5Pprivate.h
./src/H5Psimp.c
	Fixed `start' and `nelmts' arguments to be `size_t'.
1998-02-04 10:14:29 -05:00
Quincey Koziol
3d5f479f87 [svn-r217] Fixed fence-post & memory copy errors in H5F_encode_length_unusual() 1998-02-04 09:56:06 -05:00
Quincey Koziol
71be4b3cca [svn-r216] Added (ifdef'ed out currently) support for creating scalar simple variables. 1998-02-04 09:55:12 -05:00
Albert Cheng
8212bc9499 [svn-r215] offset was declared intn when it actually dealed with pointer addresses.
Changed it to size_t type.
1998-02-03 22:07:04 -05:00
Robb Matzke
519b33c5b0 [svn-r214] Changes since 19980203
----------------------

./src/H5C.c
./src/H5Cprivate.h
./src/H5D.c
./src/H5Dpublic.h
	Added H5Dget_create_parms(), trying to stay one step ahead of
	Elena ;-)
1998-02-03 12:29:54 -05:00
Robb Matzke
137bc83f7a [svn-r213] Changes since 19980130
----------------------

./MANIFEST
	Added H5Fmpio.c.  One way to check that you've properly
	included new files is to run `./bin/release none', then unpack
	the resulting tar file somewhere and try to compile it.  The
	tar file will be ./releases/hdf-5.0.0a.tar.

./config/freebsd2.2.1
./config/linux
	Added `-ansi'

./acconfig.h
	Added definitions for PHDF5 and HAVE_PARALLEL.

./configure.in
	Added minimal support for parallel build.  Kim and Albert will
	have to flesh this out or I can do it if they're more specific
	about what they need.

./config/commence.in
	Added default value for $(RUNTEST)

./config/conclude.in
	`make test' uses value of $(RUNTEST) to run test cases.

./src/Makefile.in
	Added PARALLEL_SRC for conditional compilation of H5Fmpio.c

./src/H5D.c
./src/H5Dpublic.h
	Added H5Dget_type() for Elena


NOTE: These changes require that configure be rerun.  If you're using
      GNU make it will happen automatically, otherwise do it by
      hand.
1998-02-03 12:03:13 -05:00
Robert Kim Yates
6cbd672251 [svn-r212] Fixed H5F_mpio_read's handling of number of bytes read,
and removed MPI_Init and MPI_Finalize from H5.c
(these should be done in the user program).
1998-02-03 10:29:05 -05:00
Robert Kim Yates
a6f59faa9d [svn-r211] Added hooks for MPI-IO low-level I/O module. 1998-02-02 11:26:49 -05:00
Robb Matzke
8831ff175c [svn-r210] Changes since 19980130
----------------------

./MANIFEST
./html/study.html		[NEW]
./html/study_1000x1000.gif	[NEW]
./html/study_250x250.gif	[NEW]
./html/study_499x499.gif	[NEW]
./html/study_5000x1000.gif	[NEW]
./html/study_500x500.gif	[NEW]
./html/study_p1.gif		[NEW]
./html/study_p1.obj		[NEW]
	The conclusions from a study of the HDF5 chunking
	layout. Shows overhead and disk seeking.
1998-01-30 22:47:38 -05:00
Robb Matzke
374e5ae39b [svn-r209] Changes since 19980130
----------------------

./INSTALL
	Added instructions for which C flags to set for debugging.

./src/H5C.c
./src/H5Cpublic.h
	H5Cset_chunk() takes const pointer.

./src/H5D.c
./src/H5Dprivate.h
./src/H5Dpublic.h
	Added H5Dextend() to extend the dimensions of a dataset.

./src/H5Osdspace.c
./src/H5P.c
./src/H5Pprivate.h
./src/H5Ppublic.h
./test/cmpd_dset.c
./test/dsets.c
./test/th5p.c
	Added the optional `maxdims' argument to H5Pcreate_simple()
	and defined constant H5P_UNLIMITED which can appear in the
	maxdims.  Added `const' to arguments.

	Implemented H5Pcopy()

	Removed the unused file argument from H5P_modify.

	Added H5P_extend().

	Removed the `flags' field from simple data types and we
	determine if the `max' or `perm' arrays are valid by looking
	at the pointer.  Cleaned up the H5O_sdspace_debug output.

./src/H5T.c
	Fixed a printf format.

./MANIFEST
./test/Makefile.in
./test/extend.c			[NEW]
	Added a test for multi-dimensional unlimited dimensions.
1998-01-30 18:32:28 -05:00
Albert Cheng
d9329a23aa [svn-r208] Just added in a missing bracket, just to make vi-matching happier. 1998-01-30 17:24:07 -05:00
Robb Matzke
8d800ef654 [svn-r207] Testing 1998-01-30 16:51:02 -05:00
Robb Matzke
ff100248a3 [svn-r206] Testing 1998-01-30 16:09:01 -05:00
Robb Matzke
6e6366aec2 [svn-r205] Changes since 19980130
----------------------

./INSTALL
./Makefile.dist
./Makefile.in
./config/conclude.in
	Some stupid make's don't know what PHONY means.  I added
	changed config to _config in the default makefile and added
	_test to the other makefiles.

./src/H5Psim.c
	A `file_offset' argument got changed to `int' accidently that
	causes tests to fail on 64-bit machines.  I changed it back to
	size_t.

./src/H5T.c
	Changed a couple printf formats.
1998-01-30 15:17:25 -05:00
Robb Matzke
b227b38853 [svn-r204] Changes since 19980129
----------------------

./RELEASE
        Added Library functions that I missed the first time.

./html/Datasets.html
        Added an example for Elena's question about how to read a
        single member of a compound data type so it becomes an array
        of that member in memory.

./src/H5Pprivate.h
        Fixed the prototype for H5P_get_hyperslab() to match the
        definition.

./src/H5Psimp.c
        Oops, added the kludge back in for the offset argument, which
        is still an `intn' instead of a `size_t'.

./src/H5.c
./src/H5public.h
./src/H5F.c
./src/H5T.c
./src/H5Tpublic.h
        Changed H5init() to H5open() and added an H5close() to fit our
        create/open/close paradigm.  The H5open() happens
        automatically on the first call to the HDF5 library.  The
        H5close() happens automatically on exit() (unless the app
        turns off that feature). H5close() closes all datasets and
        files and releases all resources used by the library.

./test/dsets.c
        Added calls to H5open() and H5close() to test them.

./test/dtypes.c
        Removed call to H5init() since we no longer need it there.

./src/H5Fstdio.c
        Changed the PABLO_MASK to the right value.  Thanks Kim.
1998-01-30 14:25:44 -05:00
Quincey Koziol
0a7b2071a0 [svn-r203] Changed H5Pcreate_simple call... 1998-01-30 09:57:09 -05:00
Quincey Koziol
e6e056ebbd [svn-r202] Changed H5Pget/set_hyperslab routines to int, size_t, size_t paramters 1998-01-30 09:56:28 -05:00
Quincey Koziol
7e7e5513e1 [svn-r201] Changed H5Pget/set_hyperslab to final consensus types: int for offset and
size_t for count & stride.
1998-01-30 09:19:34 -05:00
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