summaryrefslogtreecommitdiffstats
path: root/test/big.c
diff options
context:
space:
mode:
authorRobb Matzke <matzke@llnl.gov>1998-05-13 17:58:24 (GMT)
committerRobb Matzke <matzke@llnl.gov>1998-05-13 17:58:24 (GMT)
commit34f5a59b9eb995997536575eeb796f745a2be784 (patch)
treec70515f61d6167c265f43c7d13c7c75d1e3608cb /test/big.c
parentbb86785ce5b597cdc007f8494c6649b01e386455 (diff)
downloadhdf5-34f5a59b9eb995997536575eeb796f745a2be784.zip
hdf5-34f5a59b9eb995997536575eeb796f745a2be784.tar.gz
hdf5-34f5a59b9eb995997536575eeb796f745a2be784.tar.bz2
[svn-r398] Changes since 19980501
---------------------- ./src/H5Bprivate.h ./src/H5F.c ./src/H5Ffamily.c ./src/H5Fprivate.h ./src/H5Gpkg.h ./src/H5MF.c ./src/H5P.c ./src/H5Ppublic.h ./test/big.c ./html/Big.html ./html/Files.html Family members can now be any size >1kB. Got rid of some places where we were reading a property list after it was closed. ./MANIFEST ./src/Makefile.in ./src/h5repart.c A program to repartition file families. The source and/or destination may be files or file families. Examples: testhdf5 -c -o stab h5repart -m 1m tstab2.h5 x%05d.h5 h5repart -m 100k x%05d.h5 y%05d.h5 h5repart y%05d.h5 z.h5 diff tstab2.h5 z.h5 ./src/h5ls.c Added a usage message, replaced assertions with error messages. ./config/linux Made a warning message more obvious. Added better optimization flags for Pentium-Pro's.
Diffstat (limited to 'test/big.c')
-rw-r--r--test/big.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/test/big.c b/test/big.c
index b54a50a..226eeb0 100644
--- a/test/big.c
+++ b/test/big.c
@@ -16,6 +16,7 @@
#define FNAME "big%05d.h5"
#define WRT_N 50
#define WRT_SIZE 4*1024
+#define FAMILY_SIZE 1024*1024*1024
static hsize_t
randll (hsize_t limit)
@@ -66,7 +67,7 @@ writer (int wrt_n)
* which is a family of files. Each member of the family will be 1GB
*/
plist = H5Pcreate (H5P_FILE_ACCESS);
- H5Pset_family (plist, 30, H5P_DEFAULT);
+ H5Pset_family (plist, FAMILY_SIZE, H5P_DEFAULT);
file = H5Fcreate (FNAME, H5F_ACC_TRUNC, H5P_DEFAULT, plist);
H5Pclose (plist);
@@ -131,7 +132,7 @@ reader (const char *script_name)
/* Open HDF5 file */
plist = H5Pcreate (H5P_FILE_ACCESS);
- H5Pset_family (plist, 30, H5P_DEFAULT);
+ H5Pset_family (plist, FAMILY_SIZE, H5P_DEFAULT);
file = H5Fopen (FNAME, H5F_ACC_RDONLY, plist);
H5Pclose (plist);
@@ -145,7 +146,7 @@ reader (const char *script_name)
/* Read each region */
while (fgets (ln, sizeof(ln), script)) {
if ('#'!=ln[0]) break;
- i = strtol (ln+1, &s, 10);
+ i = (int)strtol (ln+1, &s, 10);
hs_offset[0] = HDstrtoll (s, NULL, 0);
HDfprintf (stdout, "#%03d 0x%016Hx", i, hs_offset[0]);
fflush (stdout);
@@ -198,7 +199,7 @@ main (int argc, char *argv[])
if (1==argc) {
writer (WRT_N);
} else if (isdigit (argv[1][0])) {
- writer (strtol (argv[1], NULL, 0));
+ writer ((int)strtol(argv[1], NULL, 0));
} else {
reader (argv[1]);
}