summaryrefslogtreecommitdiffstats
path: root/src/H5FDmpiposix.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2004-01-31 15:19:48 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2004-01-31 15:19:48 (GMT)
commit10382a1799504c5b2dea4c70881c021d1c0b04d1 (patch)
tree87b70cd2ab0443565e8d5f13e62e53dcbabb1271 /src/H5FDmpiposix.c
parentefca86dc64d5b72c75603c93730c4273e6d5335f (diff)
downloadhdf5-10382a1799504c5b2dea4c70881c021d1c0b04d1.zip
hdf5-10382a1799504c5b2dea4c70881c021d1c0b04d1.tar.gz
hdf5-10382a1799504c5b2dea4c70881c021d1c0b04d1.tar.bz2
[svn-r8134] Purpose:
Code cleanup Description: Add destructor to match constructor fr VFLs when they are shut down by the library. Solution: Added H5FD_*_term() routines to "undo" changes made in H5FD_*_init() routines. Platforms tested: IBM p690 (copper) too minor to require h5committest
Diffstat (limited to 'src/H5FDmpiposix.c')
-rw-r--r--src/H5FDmpiposix.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/H5FDmpiposix.c b/src/H5FDmpiposix.c
index c6263f5..5cf68ef 100644
--- a/src/H5FDmpiposix.c
+++ b/src/H5FDmpiposix.c
@@ -277,6 +277,32 @@ done:
} /* end H5FD_mpiposix_init() */
+/*---------------------------------------------------------------------------
+ * Function: H5FD_mpiposix_term
+ *
+ * Purpose: Shut down the VFD
+ *
+ * Return: <none>
+ *
+ * Programmer: Quincey Koziol
+ * Friday, Jan 30, 2004
+ *
+ * Modification:
+ *
+ *---------------------------------------------------------------------------
+ */
+void
+H5FD_mpiposix_term(void)
+{
+ FUNC_ENTER_NOAPI_NOINIT_NOFUNC(H5FD_mpiposix_term)
+
+ /* Reset VFL ID */
+ H5FD_MPIPOSIX_g=0;
+
+ FUNC_LEAVE_NOAPI_VOID
+} /* end H5FD_mpiposix_term() */
+
+
/*-------------------------------------------------------------------------
* Function: H5Pset_fapl_mpiposix
*