H5Part  1.6.6
Error Handling
H5Part C API
h5part_int64_t H5PartSetThrottle (H5PartFile *f, int factor)
h5part_int64_t H5PartSetErrorHandler (h5part_error_handler handler)
h5part_error_handler H5PartGetErrorHandler (void)
h5part_int64_t H5PartGetErrno (void)
h5part_int64_t H5PartReportErrorHandler (const char *funcname, const h5part_int64_t eno, const char *fmt,...)
h5part_int64_t H5PartAbortErrorHandler (const char *funcname, const h5part_int64_t eno, const char *fmt,...)

Function Documentation

h5part_int64_t H5PartAbortErrorHandler ( const char *  funcname,
const h5part_int64_t  eno,
const char *  fmt,
  ... 
)

If an error occures, an error message will be printed and the program exists with the error code given in eno.

h5part_int64_t H5PartGetErrno ( void  )

Get last error code.

Returns:
error code
h5part_error_handler H5PartGetErrorHandler ( void  )

Get current error handler.

Returns:
Pointer to error handler.
h5part_int64_t H5PartReportErrorHandler ( const char *  funcname,
const h5part_int64_t  eno,
const char *  fmt,
  ... 
)

This is the H5Part default error handler. If an error occures, an error message will be printed and an error number will be returned.

Returns:
value given in eno
h5part_int64_t H5PartSetErrorHandler ( h5part_error_handler  handler)

Set error handler to handler.

Returns:
H5PART_SUCCESS
h5part_int64_t H5PartSetThrottle ( H5PartFile *  f,
int  factor 
)

Set the `throttle` factor, which causes HDF5 write and read calls to be issued in that number of batches.

This can prevent large cuncurrency parallel applications that use independent writes from overwhelming the underlying parallel file system.

Throttling only works with the H5PART_VFD_MPIPOSIX or H5PART_VFD_MPIIO_IND drivers and is only available in the parallel library.

Returns:
H5PART_SUCCESS