diff options
Diffstat (limited to 'src/H5.c')
-rw-r--r-- | src/H5.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -147,6 +147,7 @@ done: herr_t H5_init_library(void) { + char *env_use_select_io = NULL; herr_t ret_value = SUCCEED; /* Set the 'library initialized' flag as early as possible, to avoid @@ -278,6 +279,15 @@ H5_init_library(void) if (H5VL_init_phase2() < 0) HGOTO_ERROR(H5E_FUNC, H5E_CANTINIT, FAIL, "unable to initialize vol interface") + /* Check for HDF5_USE_SELECTION_IO env variable */ + env_use_select_io = HDgetenv("HDF5_USE_SELECTION_IO"); + if (NULL != env_use_select_io && HDstrcmp(env_use_select_io, "") + && HDstrcmp(env_use_select_io, "0") && HDstrcmp(env_use_select_io, "no") + && HDstrcmp(env_use_select_io, "No") && HDstrcmp(env_use_select_io, "NO") + && HDstrcmp(env_use_select_io, "false") && HDstrcmp(env_use_select_io, "False") + && HDstrcmp(env_use_select_io, "FALSE")) + H5_use_selection_io_g = TRUE; + /* Debugging? */ H5__debug_mask("-all"); H5__debug_mask(HDgetenv("HDF5_DEBUG")); |