summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorPatrick Lu <ptlu@hawkwind.ncsa.uiuc.edu>1999-07-02 17:52:18 (GMT)
committerPatrick Lu <ptlu@hawkwind.ncsa.uiuc.edu>1999-07-02 17:52:18 (GMT)
commit970c3a06b93f2d3726eb217563f0b277c754b475 (patch)
tree9374da94b7382b0767c0a61970a4e0f94eb790d7 /tools
parent98a9636474b775ffcc342ef2fbf7cbfc9eb767c4 (diff)
downloadhdf5-970c3a06b93f2d3726eb217563f0b277c754b475.zip
hdf5-970c3a06b93f2d3726eb217563f0b277c754b475.tar.gz
hdf5-970c3a06b93f2d3726eb217563f0b277c754b475.tar.bz2
[svn-r1409]
updated the functions that create the tstr.h5 and tdset.h5 so they have different values in the integer parts of the data. for the tdset: it is i+j for the values instead of just i.(i and j are variables used in a set of nested for loops) for the tstr.h5: changed the data(originally just l to (l+k+j) squared). these 3 variables are from 3 nested for loops. more changes to tests to come
Diffstat (limited to 'tools')
-rw-r--r--tools/h5dumptst.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/h5dumptst.c b/tools/h5dumptst.c
index b6f9721..5539f9a 100644
--- a/tools/h5dumptst.c
+++ b/tools/h5dumptst.c
@@ -112,7 +112,7 @@ int i, j;
dataset = H5Dcreate(fid, "/dset1", H5T_NATIVE_INT, space, H5P_DEFAULT);
for (i = 0; i < 10; i++)
for (j = 0; j < 20; j++)
- dset1[i][j] = j;
+ dset1[i][j] = j+i;
H5Dwrite(dataset, H5T_NATIVE_INT, H5S_ALL, H5S_ALL, H5P_DEFAULT, dset1);
H5Sclose(space);
H5Dclose(dataset);
@@ -123,7 +123,7 @@ int i, j;
dataset = H5Dcreate(fid, "/dset2", H5T_NATIVE_DOUBLE, space, H5P_DEFAULT);
for (i = 0; i < 30; i++)
for (j = 0; j < 20; j++)
- dset2[i][j] = 0.0001*j;
+ dset2[i][j] = 0.0001*j+i;
H5Dwrite(dataset, H5T_NATIVE_DOUBLE, H5S_ALL, H5S_ALL, H5P_DEFAULT, dset2);
H5Sclose(space);
H5Dclose(dataset);
@@ -204,7 +204,7 @@ int point = 100;
dims[0] = 10;
space = H5Screate_simple(1, dims, NULL);
attr = H5Acreate (root, "attr2", H5T_NATIVE_INT, space, H5P_DEFAULT);
- for (i = 0; i < 10; i++) data[i] = i+1;
+ for (i = 0; i < 20; i++) data[i] = i+1;
H5Awrite(attr, H5T_NATIVE_INT, data);
H5Sclose(space);
H5Aclose(attr);
@@ -1076,7 +1076,7 @@ size_t mdims[2];
for (j = 0; j < 6; j++) {
for (k = 0 ; k < 8; k++)
for (l = 0; l < 10; l++)
- comp1[i][j].a[k][l] = l;
+ comp1[i][j].a[k][l] = (l+j+k) * (l+j+k);
for (k = 0 ; k < 12; k++)
sprintf(comp1[i][j].s[k], "abcdefgh12345678abcdefgh12345678");
}