Manual Pages for UNIX Darwin command on man MPI_File_create_errhandler
MyWebUniversity

Manual Pages for UNIX Darwin command on man MPI_File_create_errhandler

MPIFilecreateerrhandler(3OpenMPI) MPIFilecreateerrhandler(3OpenMPI)

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 FUNCTION

INTEGER ERRHANDLER, IERROR

CC++++ SSyynnttaaxx

#include static MPI::Errhandler MPI::File::Createerrhan-

dler(MPI::File::Errhandlerfn* function) IINNPPUUTT PPAARRAAMMEETTEERR

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 value

of the function and Fortran routines in the last argument. C++ func-

tions do not return errors. If the default error handler is set to

MPI::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 set

to MPIERRORSRETURN. The error handler may be changed with

MPIFileseterrhandler; the predefined error handler

MPIERRORSAREFATAL 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)




Contact us      |      About us      |      Term of use      |       Copyright © 2000-2019 MyWebUniversity.com ™