summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjhendersonHDF <jhenderson@hdfgroup.org>2023-10-17 16:16:48 (GMT)
committerGitHub <noreply@github.com>2023-10-17 16:16:48 (GMT)
commita6bc1186c35ad0b4ee2df45144124495243a82d6 (patch)
treeed5b5b7fc34715f06e78b01635f75a9c74422b73
parent74fabd144e4355cfebc8d3e78b96c3e9c4ee7705 (diff)
downloadhdf5-a6bc1186c35ad0b4ee2df45144124495243a82d6.zip
hdf5-a6bc1186c35ad0b4ee2df45144124495243a82d6.tar.gz
hdf5-a6bc1186c35ad0b4ee2df45144124495243a82d6.tar.bz2
Initialize API context MPI types to MPI_BYTE (#3688)
-rw-r--r--src/H5CX.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/H5CX.c b/src/H5CX.c
index aa9d0b5..b3b2fca 100644
--- a/src/H5CX.c
+++ b/src/H5CX.c
@@ -778,6 +778,11 @@ H5CX__push_common(H5CX_node_t *cnode)
cnode->ctx.tag = H5AC__INVALID_TAG;
cnode->ctx.ring = H5AC_RING_USER;
+#ifdef H5_HAVE_PARALLEL
+ cnode->ctx.btype = MPI_BYTE;
+ cnode->ctx.ftype = MPI_BYTE;
+#endif
+
/* Push context node onto stack */
cnode->next = *head;
*head = cnode;