diff options
Diffstat (limited to 'testpar')
-rw-r--r-- | testpar/t_mdset.c | 6 | ||||
-rw-r--r-- | testpar/t_pflush1.c | 11 |
2 files changed, 8 insertions, 9 deletions
diff --git a/testpar/t_mdset.c b/testpar/t_mdset.c index da67fe9..c282408 100644 --- a/testpar/t_mdset.c +++ b/testpar/t_mdset.c @@ -794,7 +794,7 @@ void collective_group_write(void) * datasets in parallel. */ for(m = 0; m < ngroups; m++) { sprintf(gname, "group%d", m); - gid = H5Gcreate(fid, gname, 0); + gid = H5Gcreate2(fid, gname, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT); VRFY((gid > 0), gname); sprintf(dname, "dataset%d", m); @@ -1000,7 +1000,7 @@ void multiple_group_write(void) * parallel. */ for(m = 0; m < ngroups; m++) { sprintf(gname, "group%d", m); - gid = H5Gcreate(fid, gname, 0); + gid = H5Gcreate2(fid, gname, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT); VRFY((gid > 0), gname); /* create attribute for these groups. */ @@ -1101,7 +1101,7 @@ void create_group_recursive(hid_t memspace, hid_t filespace, hid_t gid, #endif /* BARRIER_CHECKS */ sprintf(gname, "%dth_child_group", counter+1); - child_gid = H5Gcreate(gid, gname, 0); + child_gid = H5Gcreate2(gid, gname, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT); VRFY((child_gid > 0), gname); /* write datasets in parallel. */ diff --git a/testpar/t_pflush1.c b/testpar/t_pflush1.c index 8963627..e35ac2c 100644 --- a/testpar/t_pflush1.c +++ b/testpar/t_pflush1.c @@ -83,15 +83,14 @@ hid_t create_file(char* name, hid_t fapl) the_data[i][j] = (double)(hssize_t)i/(hssize_t)(j+1); } } - if (H5Dwrite(dset, H5T_NATIVE_DOUBLE, space, space, plist, - the_data)<0) goto error; + if(H5Dwrite(dset, H5T_NATIVE_DOUBLE, space, space, plist, the_data) < 0) goto error; /* Create some groups */ - if ((groups=H5Gcreate(file, "some_groups", 0))<0) goto error; - for (i=0; i<100; i++) { + if((groups = H5Gcreate2(file, "some_groups", H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) goto error; + for(i = 0; i < 100; i++) { sprintf(name, "grp%02u", (unsigned)i); - if ((grp=H5Gcreate(groups, name, 0))<0) goto error; - if (H5Gclose(grp)<0) goto error; + if((grp = H5Gcreate2(groups, name, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) goto error; + if(H5Gclose(grp) < 0) goto error; } |