You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge pull request #514 from E3SM-Project/dqwu/hdf5_type_refactoring
This PR completes the first phase of support for HDF5
IO type by adding error handling to all HDF5 API calls.
It also utilizes some internal helper functions to improve code
organization and readability.
Additionally, minor fixes for HDF5 and ADIOS IO types have been
implemented.
The nightly test for HDF5 IO type has also been updated to enable
it only when direct HDF5 support is available.
"Writing variables (number of variables = %d) to file (%s, ncid=%d) using PIO_IOTYPE_HDF5 iotype failed. Out of memory allocating buffer (%lld bytes) for array to store starts of I/O regions written out to file", nvars, pio_get_fname_from_file(file), file->pio_ncid, (long long int) (fndims*sizeof(PIO_Offset)));
444
+
"Writing variables (number of variables = %d) to file (%s, ncid=%d) using HDF5 iotype failed. "
445
+
"Out of memory allocating buffer (%lld bytes) for array to store starts of I/O regions written out to file",
446
+
nvars, pio_get_fname_from_file(file), file->pio_ncid, (long long int) (fndims*sizeof(PIO_Offset)));
445
447
break;
446
448
}
447
449
if (!(countlist[rrcnt] =calloc(fndims, sizeof(PIO_Offset))))
"Writing variables (number of variables = %d) to file (%s, ncid=%d) using PIO_IOTYPE_HDF5 iotype failed. Out of memory allocating buffer (%lld bytes) for array to store counts of I/O regions written out to file", nvars, pio_get_fname_from_file(file), file->pio_ncid, (long long int) (fndims*sizeof(PIO_Offset)));
452
+
"Writing variables (number of variables = %d) to file (%s, ncid=%d) using HDF5 iotype failed. "
453
+
"Out of memory allocating buffer (%lld bytes) for array to store counts of I/O regions written out to file",
454
+
nvars, pio_get_fname_from_file(file), file->pio_ncid, (long long int) (fndims*sizeof(PIO_Offset)));
451
455
break;
452
456
}
453
457
@@ -469,7 +473,15 @@ int write_darray_multi_par(file_desc_t *file, int nvars, int fndims, const int *
"Writing variables (number of variables = %d) to file (%s, ncid=%d) using HDF5 iotype failed. "
506
+
"The low level (HDF5) I/O library call failed to select a hyperslab region for a dataspace copied from the dataset associated with variable (%s, varid=%d)",
"Writing variables (number of variables = %d) to file (%s, ncid=%d) using HDF5 iotype failed. "
532
+
"The low level (HDF5) I/O library call failed to reset the selection region for a dataspace copied from the dataset associated with variable (%s, varid=%d)",
0 commit comments