summaryrefslogtreecommitdiffstats
path: root/src/H5.c
diff options
context:
space:
mode:
authorRobb Matzke <matzke@llnl.gov>1999-08-17 19:44:03 (GMT)
committerRobb Matzke <matzke@llnl.gov>1999-08-17 19:44:03 (GMT)
commit0b7babc994e59b88a10fb55345159ea6951e72b1 (patch)
treeb7780802df93acfa6a6ed09d84b17002c516e599 /src/H5.c
parentcc89b8a605dfc7370cb760e6c3d7339cbf1e9884 (diff)
downloadhdf5-0b7babc994e59b88a10fb55345159ea6951e72b1.zip
hdf5-0b7babc994e59b88a10fb55345159ea6951e72b1.tar.gz
hdf5-0b7babc994e59b88a10fb55345159ea6951e72b1.tar.bz2
[svn-r1573] Changes since 19990817
---------------------- ./src/H5D.c ./src/H5F.c ./src/H5Fistore.c ./src/H5Smpio.c Incorporated previous changes into MPIO special cases. These are mostly due to the fact that most of the members of the file->shared->fapl struct have been moved into the file->shared->file->shared struct (`file' is an H5F_t*). ./src/H5I.c Fixed a bug with closing the library w.r.t. the VFL stuff. The VFL layer introduced reference counts on object ID's and the library termination functions freed these objects in the wrong order. Now H5I_clear_group() does not normally remove objects with a reference count larger than one because it assumes that those objects are currently in use by the library.
Diffstat (limited to 'src/H5.c')
-rw-r--r--src/H5.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/H5.c b/src/H5.c
index aefff9e..5ee2f26 100644
--- a/src/H5.c
+++ b/src/H5.c
@@ -101,8 +101,13 @@ H5_init_library(void)
/*
* Initialize interfaces that might not be able to initialize themselves
- * soon enough.
+ * soon enough. The file interface must be initialized because calling
+ * H5Pcreate() might require the H5F_access_dflt to be initialized.
*/
+ if (H5F_init()<0) {
+ HRETURN_ERROR(H5E_FUNC, H5E_CANTINIT, FAIL,
+ "unable to initialize file interface");
+ }
if (H5T_init()<0) {
HRETURN_ERROR(H5E_FUNC, H5E_CANTINIT, FAIL,
"unable to initialize type interface");