summaryrefslogtreecommitdiffstats
path: root/testpar/t_pflush2.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2014-12-29 05:17:22 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2014-12-29 05:17:22 (GMT)
commit662892e8b18db2dd5c1ebcd923c246adb4fe0fac (patch)
treef47c24c36227feb0c3fc2a57f4c2d30194313d43 /testpar/t_pflush2.c
parentb7047b64254183b0ad75e5812737d09ecaa95e68 (diff)
downloadhdf5-662892e8b18db2dd5c1ebcd923c246adb4fe0fac.zip
hdf5-662892e8b18db2dd5c1ebcd923c246adb4fe0fac.tar.gz
hdf5-662892e8b18db2dd5c1ebcd923c246adb4fe0fac.tar.bz2
[svn-r25928] Description:
Minor code cleanups found while reviewing 'avoid_truncate' changes. Tested on: MacOSX/64 10.10.1 (amazon) w/serial & parallel (too minor to require h5committest)
Diffstat (limited to 'testpar/t_pflush2.c')
-rw-r--r--testpar/t_pflush2.c20
1 files changed, 8 insertions, 12 deletions
diff --git a/testpar/t_pflush2.c b/testpar/t_pflush2.c
index a570d4c..743a3d3 100644
--- a/testpar/t_pflush2.c
+++ b/testpar/t_pflush2.c
@@ -133,9 +133,7 @@ error:
int
main(int argc, char* argv[])
{
- hid_t fapl1, fapl2;
H5E_auto2_t func;
-
char name[1024];
const char *envval = NULL;
@@ -147,13 +145,6 @@ main(int argc, char* argv[])
MPI_Comm_size(comm, &mpi_size);
MPI_Comm_rank(comm, &mpi_rank);
- fapl1 = H5Pcreate(H5P_FILE_ACCESS);
- H5Pset_fapl_mpio(fapl1, comm, info);
-
- fapl2 = H5Pcreate(H5P_FILE_ACCESS);
- H5Pset_fapl_mpio(fapl2, comm, info);
-
-
if(mpi_rank == 0)
TESTING("H5Fflush (part2 with flush)");
@@ -162,6 +153,14 @@ main(int argc, char* argv[])
if (envval == NULL)
envval = "nomatch";
if (HDstrcmp(envval, "core") && HDstrcmp(envval, "split")) {
+ hid_t fapl1, fapl2;
+
+ fapl1 = H5Pcreate(H5P_FILE_ACCESS);
+ H5Pset_fapl_mpio(fapl1, comm, info);
+
+ fapl2 = H5Pcreate(H5P_FILE_ACCESS);
+ H5Pset_fapl_mpio(fapl2, comm, info);
+
/* Check the case where the file was flushed */
h5_fixname(FILENAME[0], fapl1, name, sizeof name);
if(check_file(name, fapl1))
@@ -213,6 +212,3 @@ main(int argc, char* argv[])
return 1;
}
-
-
-