NAME
MMPPIIFFiilleeccrreeaatteeeerrrrhhaannddlleerr - Creates an MPI-style error handler that
can be attached to a file. SSYYNNTTAAXX CC SSyynnttaaxx#include
int MPIFilecreateerrhandler(MPIFileerrhandlerfn *function, MPIErrhandler *errhandler) FFoorrttrraann SSyynnttaaxx INCLUDE 'mpif.h'MPIFILECREATEERRHANDLER(FUNCTION, ERRHANDLER, IERROR)
EXTERNAL FUNCTIONINTEGER ERRHANDLER, IERROR
CC++++ SSyynnttaaxx#include
dler(MPI::File::Errhandlerfn* function) IINNPPUUTT PPAARRAAMMEETTEERRstatic MPI::Errhandler MPI::File::Createerrhan- function User-defined error handling procedure (function).
OOUUTTPPUUTT PPAARRAAMMEETTEERRSS errhandler MPI error handler (handle).IERROR Fortran only: Error status (integer).
DESCRIPTION
Registers the user routine function for use as an MPI exception han-
dler. Returns in errhandler a handle to the registered exception han-
dler. In the C language, the user routine function should be a C function of type MPIFileerrhandlerfn, which is defined as typedef void (MPIFileerrhandlerfn)(MPIFile *, int *, ...); The first argument to function is the file in use. The second is the error code to be returned by the MPI routine that raised the error. In the Fortran language, the user routine should be of the form:SUBROUTINE FILEERRHANDLERFN(FILE, ERRORCODE, ...)
INTEGER FILE, ERRORCODE
In C++, the user routine function should be of the form: typedef void MPI::File::Errhandlerfn(MPI::File &, int *, ...); EERRRROORRSS Almost all MPI routines return an error value; C routines as the valueof the function and Fortran routines in the last argument. C++ func-
tions do not return errors. If the default error handler is set toMPI::ERRORSTHROWEXCEPTIONS, then on error the C++ exception mechanism
will be used to throw an MPI:Exception object. Before the error value is returned, the current MPI error handler is called. For MPI I/O function errors, the default error handler is setto MPIERRORSRETURN. The error handler may be changed with
MPIFileseterrhandler; the predefined error handlerMPIERRORSAREFATAL may be used to make I/O errors fatal. Note that
MPI does not guarantee that an MPI program can continue past an error. Open MPI 1.2 September 2M0P0I6Filecreateerrhandler(3OpenMPI)