summaryrefslogtreecommitdiffstats
path: root/src/H5HL.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5HL.c')
-rw-r--r--src/H5HL.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/H5HL.c b/src/H5HL.c
index 9dec1eb..340387f 100644
--- a/src/H5HL.c
+++ b/src/H5HL.c
@@ -380,7 +380,8 @@ H5HL_flush(H5F_t *f, hbool_t destroy, haddr_t addr, H5HL_t *heap)
if (H5F_addr_eq(heap->addr, hdr_end_addr)) {
/* The header and data are contiguous */
#ifdef H5_HAVE_PARALLEL
- H5FD_mpio_tas_allsame( f->shared->lf, TRUE ); /* only p0 writes */
+ if (IS_H5FD_MPIO(f))
+ H5FD_mpio_tas_allsame( f->shared->lf, TRUE ); /* only p0 writes */
#endif /* H5_HAVE_PARALLEL */
if (H5F_block_write(f, addr,
(hsize_t)(H5HL_SIZEOF_HDR(f)+heap->disk_alloc),
@@ -390,7 +391,8 @@ H5HL_flush(H5F_t *f, hbool_t destroy, haddr_t addr, H5HL_t *heap)
}
} else {
#ifdef H5_HAVE_PARALLEL
- H5FD_mpio_tas_allsame( f->shared->lf, TRUE ); /* only p0 writes */
+ if (IS_H5FD_MPIO(f))
+ H5FD_mpio_tas_allsame( f->shared->lf, TRUE ); /* only p0 writes */
#endif /* H5_HAVE_PARALLEL */
if (H5F_block_write(f, addr, (hsize_t)H5HL_SIZEOF_HDR(f),
H5P_DEFAULT, heap->chunk)<0) {
@@ -398,7 +400,8 @@ H5HL_flush(H5F_t *f, hbool_t destroy, haddr_t addr, H5HL_t *heap)
"unable to write heap header to file");
}
#ifdef H5_HAVE_PARALLEL
- H5FD_mpio_tas_allsame( f->shared->lf, TRUE ); /* only p0 writes */
+ if (IS_H5FD_MPIO(f))
+ H5FD_mpio_tas_allsame( f->shared->lf, TRUE ); /* only p0 writes */
#endif /* H5_HAVE_PARALLEL */
if (H5F_block_write(f, heap->addr, (hsize_t)(heap->disk_alloc),
H5P_DEFAULT,