1 | .\"Copyright 2006-2008 Sun Microsystems, Inc. |
---|
2 | .\" Copyright (c) 1996 Thinking Machines Corporation |
---|
3 | .TH MPI_Add_error_code 3 "Dec 08, 2009" "1.4" "Open MPI" |
---|
4 | |
---|
5 | .SH NAME |
---|
6 | \fBMPI_Add_error_code\fP \- Creates a new error code associated |
---|
7 | with \fIerrorclass\fP |
---|
8 | |
---|
9 | .SH SYNTAX |
---|
10 | .ft R |
---|
11 | |
---|
12 | .SH C Syntax |
---|
13 | .nf |
---|
14 | #include <mpi.h> |
---|
15 | int MPI_Add_error_code(int \fIerrorclass\fP, int *\fIerrorcode\fP) |
---|
16 | |
---|
17 | .SH Fortran Syntax |
---|
18 | .nf |
---|
19 | INCLUDE 'mpif.h' |
---|
20 | MPI_ADD_ERROR_CODE(\fIERRORCLASS, ERRORCODE, IERROR\fP) |
---|
21 | INTEGER \fI ERRORCLASS, ERRORCODE, IERROR\fP |
---|
22 | |
---|
23 | .SH C++ Syntax |
---|
24 | .nf |
---|
25 | #include <mpi.h> |
---|
26 | int MPI::Add_error_code(int \fIerrorclass\fP, int* \fIerrorcode\fP) |
---|
27 | |
---|
28 | .SH INPUT PARAMETER |
---|
29 | .ft R |
---|
30 | .TP 1.4i |
---|
31 | errorclass |
---|
32 | MPI error class (integer). |
---|
33 | |
---|
34 | .SH OUTPUT PARAMETERS |
---|
35 | .ft R |
---|
36 | .TP 1.4i |
---|
37 | errorcode |
---|
38 | Error code returned by an MPI routine or an MPI error class (integer). |
---|
39 | .ft R |
---|
40 | .TP 1.4i |
---|
41 | IERROR |
---|
42 | Fortran only: Error status (integer). |
---|
43 | |
---|
44 | .SH DESCRIPTION |
---|
45 | Creates a new error code associated with \fIerrorclass\fP and returns |
---|
46 | its value in \fIerrorcode\fP. |
---|
47 | |
---|
48 | .SH NOTES |
---|
49 | .ft R |
---|
50 | No function is provided to free error codes, as it is not expected |
---|
51 | that an application will create them in significant numbers. |
---|
52 | .sp |
---|
53 | The value returned is always greater than or equal to MPI_ERR_LASTCODE. |
---|
54 | |
---|
55 | .SH ERRORS |
---|
56 | .ft R |
---|
57 | Almost all MPI routines return an error value; C routines as |
---|
58 | the value of the function and Fortran routines in the last argument. C++ |
---|
59 | functions do not return errors. If the default error handler is set to |
---|
60 | MPI::ERRORS_THROW_EXCEPTIONS, then on error the C++ exception mechanism |
---|
61 | will be used to throw an MPI:Exception object. |
---|
62 | .sp |
---|
63 | Before the error value is returned, the current MPI error handler is |
---|
64 | called. By default, this error handler aborts the MPI job, except for |
---|
65 | I/O function errors. The error handler may be changed with |
---|
66 | MPI_Comm_set_errhandler; the predefined error handler MPI_ERRORS_RETURN |
---|
67 | may be used to cause error values to be returned. Note that MPI does not |
---|
68 | guarantee that an MPI program can continue past an error. |
---|
69 | |
---|
70 | .SH SEE ALSO |
---|
71 | .ft R |
---|
72 | .nf |
---|
73 | MPI_Add_error_class |
---|
74 | MPI_Error_class |
---|
75 | |
---|
76 | |
---|