summaryrefslogtreecommitdiffstats
path: root/src/H5.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5.c')
-rw-r--r--src/H5.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/H5.c b/src/H5.c
index 30a33e0..cff6c30 100644
--- a/src/H5.c
+++ b/src/H5.c
@@ -94,6 +94,9 @@ H5_init_library(void)
HRETURN_ERROR(H5E_FUNC, H5E_CANTINIT, FAIL,
"unable to initialize type interface");
}
+#ifdef PHDF5
+ MPI_Init( NULL, NULL );
+#endif
FUNC_LEAVE(SUCCEED);
}
@@ -166,6 +169,9 @@ H5_term_library(void)
HDfree(temp);
temp = lib_exit_head;
} /* end while */
+#ifdef PHDF5
+ MPI_Finalize();
+#endif
} /* end H5_term_library() */
/*--------------------------------------------------------------------------