summaryrefslogtreecommitdiffstats
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
* [svn-r16840] Bug fix:Albert Cheng2009-04-221-2/+2
| | | | | | | | | | | | | If the AR command has embedded shell separators such as the case of "AR = ar -X 64", $AR ends up as a blank. Solution: Put quotes around the command substitution string to protect against embedded separators. Applied the same to both AR and RANLIB assignments. Tested: At Up (AIX 5.3) only because that was where I discovered the error when AR is ar -X 64
* [svn-r15651] Purpose: Bug FixMike McGreevy2008-09-181-2/+2
| | | | | | | | | Description: examples/ph5example was being built and tested even in serial mode. Added lines to the examples/Makefile.in to ensure that this is not built and tested unless parallel has been enabled by configure. Tested: kagiso and smirom
* [svn-r14641] Purpose:Albert Cheng2008-02-251-1/+5
| | | | | | | | | | | | | | | | | | Bug fix. Description: It used to clean out all *.h5 when done but this could cause a racing condition error if parallel make (e.g., gmake -j ...) is used because the "rm ... *.h5 ..." would remove *.h5 generaged and are still used by other test programs (e.g. h5_write/h5_read). Solution: Removed "*.h5" from the cleanup list since the test program has already taken care of removing temporary *.h5 generated. Tested platform: Kagiso. Not triple platforms tested since this is just a simple shell script change.
* [svn-r14639] Purpose:Albert Cheng2008-02-231-0/+4
| | | | | | | | | | | | Bug fix. Descriptions: Some examples are dependent on other files. E.g., a read program depend a write program to create the data file first. Adapted the dependencies from v1.8 Makefiles. Tested: By hand and also by h5committest.
* [svn-r14423] Description:Quincey Koziol2008-01-151-2/+1
| | | | | | | | Change the 'coord' parameter for H5Sselect_elements() from 'hsize_t **' to 'hsize_t *' in this branch also. Tested on: Mac OS X/32 10.5.1 (amazon)
* [svn-r14329] Run make depend to regenerate all these Dependencies files afterAlbert Cheng2007-12-071-4/+4
| | | | removing the stream-vfd.
* [svn-r13949] Purpose:Albert Cheng2007-07-061-0/+1
| | | | | | | | | Cleanup. Added the compiler test script to distclean target. Tested platform: Just kagiso. No h5committest because it was a trivial addition to Makefile.in.
* [svn-r13819] Bug fix.Albert Cheng2007-05-301-1/+1
| | | | | | | | | The test scripts did not take in account that the binary has been installed somewhere other than the original prefix. Added a provision to allow explicit definition of $prefix to work. Tested: kagiso.
* [svn-r13653] Purpose:Albert Cheng2007-04-131-6/+30
| | | | | | | | | | features. Description: Added -shlib tests and verbosity control. Tested Platform: Kagiso.
* [svn-r13641] Description:Albert Cheng2007-04-111-7/+12
| | | | | | | | Updated comments and some cosmetic rearrangement. No substance changes. Tested platform: Copper.
* [svn-r13612] Purpose:Albert Cheng2007-04-081-24/+2
| | | | | | | Cleaned some old comments that are not valid any more. Test: Just eyeballed.
* [svn-r13608] Purpose:Albert Cheng2007-04-061-0/+1
| | | | | | | | | | new feature. Description: Added test scripts for testing the compiler commands. Tested: kagiso(serial & pp)
* [svn-r13606] Purpose:Albert Cheng2007-04-061-52/+138
| | | | | | | | | | new feature. Description: Changed it from using the -show to really compile and build the applications. Tested: kagiso.
* [svn-r13513] a: Command not found.Albert Cheng2007-03-141-0/+164
| | | | | | | M MANIFEST AM examples/testh5cc.sh.in AM fortran/examples/testh5fc.sh.in AM c++/examples/testh5c++.sh.in
* [svn-r13387] Brought changes back to 1.6 branchElena Pourmal2007-02-251-13/+22
| | | | | Platforms tested: kagiso (too minor change)
* [svn-r13318] Updated Copyright notices.Albert Cheng2007-02-152-22/+24
| | | | Tested platform: Kagiso (serial, pp)
* [svn-r13316] Updated Copyright notices.Albert Cheng2007-02-1412-24/+36
| | | | Tested platform: Kagiso (serial, pp)
* [svn-r12160] Purpose:James Laird2006-03-271-2/+1
| | | | | | | | | | | | | | | | | | | Added test Description: The deploy Daily Test is now more robust Solution: Previously, the Daily Tests (using the bin/snapshot script) would run bin/deploy to install HDF5 into a directory other than the --prefix specified at configure-time. However, this new installation was never tested using make check-install. Modified bin/snapshot to clean the test directory and run make check-install for the newly-deployed library. Platforms tested: tested snapshot script on mir. No changes to code. Trial by fire in Daily Tests tonight!
* [svn-r12000] Purpose:James Laird2006-03-031-0/+1
| | | | | | | | | | | | | | | | Bug fix Description: Fixed errors in hl examples on modi4 and in parallel. Solution: Parallel error was a typo. D'oh! Used the wrong variable for h5pcc. modi4 was because pmake needs all of its variables defined before they are used. Forgot to define $(LIBHDF5_HL). 1.7 branch is smarter about this. :) Platforms tested: mir, modi4
* [svn-r11892] Purpose: Small bug fixElena Pourmal2006-01-251-1/+3
| | | | | | | | | | | | | | | | Description: h5_group example didn't work on VMS; it turned out that a group was not closed and since the default file close degree is "weak", file was not closed either. When program attempted to open the same file, system reported an error since the file was "locked by another user". UNIX systems apperently do not care and open the same file without any problem. Solution: Added H5Gclose calls. Platforms tested: VMS server and heping Misc. update:
* [svn-r11570] Purpose:Albert Cheng2005-10-171-353/+26
| | | | | | | | | | | | | | Appearance change. Description: depend1.in: Change the style of the copyright generation commands to a simplier style. Dependencies: Regenerated the Dependencies file. Platforms tested: Tested in heping in serial and parallel modes.
* [svn-r11380] Purpose:Albert Cheng2005-09-091-1/+1
| | | | | | | | | | | | | | | | | | | bug fix. Description: In Janus (Tflops), the test would seg-fault in production (compiled with -O). If compiled with -O0, it would be okay. Track down the problem to the for loop index i & j being declared with type hsize_t which is usually unsigned long int. Guess the Tflop compiler has a bug in optimization that could not handle unsigned int as for loop index. Solution: Since it is no need for i & j to be hsize_t and it makes more sense to have them with type int. Changed them to int type. Platforms tested: Passed in tflops and colonelk here.
* [svn-r11246] Purpose:Quincey Koziol2005-08-1312-384/+384
| | | | | | | | | | | | | | | | | | | | 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-r9729] Purpose:Quincey Koziol2004-12-2911-99/+112
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-r9099] Purpose:Albert Cheng2004-08-161-1/+1
| | | | | | | | | | | | | | | | | | | Bug fix Description: The examples would compile even if some header file were not installed. That was because the CPPFLAGS has -I... components that included the src directories. Solution: The h5cc or h5pcc commands should have all the necessarily library include directories covered. Changed CPPFLAGS to search only the examples source directory for local header files. Platforms tested: No h5committest tests which do not check examples. Hand tested it in sol.
* [svn-r8200] Purpose:Quincey Koziol2004-02-131-1/+1
| | | | | | | | | | | Bug fix typo Description: Correct typo in last fix... *sigh* Platforms tested: FreeBSD 4.9 (sleipnir) too minor to require h5committest - Really! :-)
* [svn-r8196] Purpose:Quincey Koziol2004-02-121-1/+1
| | | | | | | | | | | | Bug fix Description: Hack on include paths some more to make srcdir builds work correctly with the [broken] dependency generation from the Intel 7.1 C compiler. Platforms tested: Linux 2.4 (titan) w/srcdir build Too minor to require h5committest
* [svn-r8186] Purpose:Quincey Koziol2004-02-121-1/+1
| | | | | | | | | | | | Bug fix Description: Added directory where actual source code is located to allow broken Intel C 7.1 compiler to generate dependencies correctly. Platforms tested: Linux 2.4 (titan) too minor to need h5committest
* [svn-r8177] Purpose:Albert Cheng2004-02-101-48/+48
| | | | | | | | | | | | | | | | | | Bug fix. Description: "make check" failed because the macro "$<" is not known to those makes. Solution: Replace that macro with a string name in the form of a more basic macro of "$@". Platforms tested: Using make in sol, copper. Using gmake in eirene (serial and PP). Misc. update:
* [svn-r8170] Purpose: MaintenanceElena Pourmal2004-02-1012-0/+179
| | | | | | | | | | Description: C examples didn't have copyright notice. Solution: Added copyright notice. Platforms tested: verbena Misc. update:
* [svn-r8035] Purpose:Albert Cheng2004-01-071-17/+91
| | | | | | | | | | | feature Description: Install the C and Fortran compiler commands as h5pcc and h5pfc if parallel mode is used. Platforms tested: "h5committested"
* [svn-r7897] Description:Albert Cheng2003-11-271-1/+2
| | | | | | | | | Added *.clog which are generated by the MPE option, to the CLEAN list. Platforms tested: Tested in copper which supports the MPE option. Misc. update:
* [svn-r7556] Elena Pourmal2003-10-061-0/+2
| | | | | | | | | | | | | | | | | | Purpose: Enhancement Description: On 64-bit Solaris and on Crays h5_chunk_read example displayed garbage instead of 0. One may mistakenly conclude that example is broken. h5_chunk_read reads data written by h5_extend_write. h5_extend_write extends dataset and does only partial writes. Therefore some data is never written to the file and since fill value is not set up, garbage is read back by h5_chunk_read Solution: Set up fill value to initialize data. Platforms tested: arabica 64-bit and Cray T3E. Misc. update:
* [svn-r6842] Purpose:Bill Wendling2003-05-081-2/+0
| | | | | | | | | | | | | | | | | | | Code Cleanup Description: Warning messages were being produced by the "make" program because the "docdir" was being specified twice as a target in the generated Makefiles. This is because the "EXAMPLESDIR" was also defined as "docdir". Solution: Made "EXAMPLESDIR" unique for C, Fortran, and C++ in the commence.in file and removed EXAMPLESDIR from the Makefile.ins Platforms tested: Dangermouse (only affects make system, not code). Misc. update:
* [svn-r6066] Purpose:Albert Cheng2002-11-111-4/+4
| | | | | | | | | | | | Improvement Description: if neither -f option nor $HDF5_PARAPREFIX was set, it exited. Solution: Use '.' (current directory) if neither -f option nor $HDF5_PARAPREFIX is used. Try to proceed as much as possible. Platforms tested: only sleipnir since it was a simple fix and was failing in sleipnir only.
* [svn-r5701] Purpose:Bill Wendling2002-06-251-24/+24
| | | | | | | | | | | | Bug Fix Description: Making of the programs when using the --srcdir option didn't work. It couldn't find the files to compile. Solution: Specified where the files are by prepending the $(srcdir) macro to them. Platforms tested: Linux
* [svn-r5692] Purpose:Bill Wendling2002-06-241-27/+35
| | | | | | | | | | | | | | Bug Fix Description: Ported the bug fix for h5cc failing on platforms from the 1.4 branch to 1.5 branch. In a nutshell, when we ran "make check" in the examples directory, libtool would get in the way trying to compile things to .lo for us. but we didn't want libtool to do this. Solution: Made it so that make check will compile only the .c files to executables without the intervening .lo stage... Platforms tested: Linux (Dangermouse and Platinum)
* [svn-r5014] Purpose:Albert Cheng2002-02-271-10/+126
| | | | | | | | | | | | | | | | | | | | | fetures Description: The example code used to just run parallel I/O test in the current directory which is most likely where the program is compiled. In general, this directory is most likely not a parallel file system. Therefore, the example code often fails. Solution: Add an option "-f <prefix>" for specifying the correct test files pathname prefix. The program now requires an explicite file prefix either via the "-f" option or the environment variable $HDF5_PARAPREFIX. (With the proper setup of $HDF5_PARAPREFIX, the example code can run automatically in situtaions such as batch job or gmake check.) Also added feature to cleaup up the test files created. Of course, an added option "-c" to turn OFF the cleanup action. Platforms tested: eirene, modi4, dangermouse (all parallel modes). modi4 (serial) just to verify it can compile.
* [svn-r4976] Purpose:Albert Cheng2002-02-151-16/+16
| | | | | | | | | | | | | Feature Description: Change examples to use the installed h5cc to compile the examples programs. That will test the correctness of the installed software. Removed examples from make targets in the top level so that it does not get invoked in make or make check since one cannot compile the example programs until after "make install" has completed. Platforms tested: eirene and modi4 (parallel)
* [svn-r4972] Description:Albert Cheng2002-02-151-58/+28
| | | | | | Cleaned out lots of warnings. Platforms tested: modi4 and eirene (parallel)
* [svn-r4880] Purpose:Albert Cheng2002-01-291-56/+0
| | | | | | | | Retired run_examples.sh. Its purpose is covered by the "check" target. Platforms tested: No tests--hard to test something that is removed. Pretty sure it is not needed by any Make targets.
* [svn-r4879] Purpose:Albert Cheng2002-01-292-5/+4
| | | | | | | | | | | | | Bug fix Description: $TEST_PROG_PARA was included in the serial tests. $TEST_PROG_PARA was not dependent on $LIBHDF5 (it should.) Solution: Adjusted the file to fix both problems. Platforms tested: eirene (pp, linux 2.2.), dangermouse (pp, linux 2.4) modi4 (pp, -64) and modi4 serial (to verify that ph5example was not tested at all.)
* [svn-r4757] Purpose:Albert Cheng2001-12-301-10/+34
| | | | | | | | | | | | | | | | | | 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).
* [svn-r4747] Purpose:Quincey Koziol2001-12-201-2/+2
| | | | | | | | | | | | | | 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)
* [svn-r4517] Raymond Lu2001-10-033-1/+8
| | | | | | | | Purpose: Changed to the new generic property list for dataset creation property list. Platforms tested: Arabica, modi4 and Hawkwind
* [svn-r4473] Purpose:Quincey Koziol2001-09-252-12/+12
| | | | | | | | | | | | | | | | | | | | | 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)
* [svn-r4466] Bill Wendling2001-09-211-9/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | Purpose: Feature Add Description: Added "install-example" and "install-all" to the Makefile system. The behaviour of the "make install*" options: make install - Installs binaries, libraries, include files, and example programs. make install-examples - Installs only the example programs. The directories are: ${prefix}/doc/hdf5/examples/{c,c++,fortran} make install-all - Install the binaries, libraries, include files, example programs, and documentation. The whole kit-n'-caboodle. make uninstall-examples - Get rid of those example files (but not the ${prefix}/doc/hdf5/examples/... directories) There's a new bin/ program which helps create directories which are deeply nested called "mkdirs". It's a simple shell script. Platforms tested: Linux
* [svn-r4449] Purpose:Albert Cheng2001-09-182-3/+95
| | | | | | | | | Feature Description: Added an example program showing how to use different virtual file drivers. First example is to show the Split File driver. Platforms tested: eirene.
* [svn-r4292] Bill Wendling2001-08-011-0/+2
| | | | | | | | | | | | | | | | 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
* [svn-r4012] Purpose:Quincey Koziol2001-06-181-1/+1
| | | | | | | | Clean up compiler warnings. Description: Just code neatening mostly, some casts, etc. Platforms tested: FreeBSD 4.3 (hawkwind)