📄 mpi_add_error_class.3
字号:
.\"Copyright 2006, Sun Microsystems, Inc..\" Copyright (c) 1996 Thinking Machines Corporation.TH MPI_Add_error_class 3OpenMPI "September 2006" "Open MPI 1.2" " ".SH NAME.nf\fBMPI_Add_error_class\fP \- Creates a new error class and returns its value.SH SYNTAX.ft R.SH C Syntax.nf#include <mpi.h>int MPI_Add_error_class(int *\fIerrorclass\fP).SH Fortran Syntax.nfINCLUDE 'mpif.h'MPI_ADD_ERROR_CLASS(\fIERRORCLASS, IERROR\fP) INTEGER \fIERRORCLASS, IERROR\fP .SH C++ Syntax.nf#include <mpi.h>int MPI::Add_error_class().SH OUTPUT PARAMETERS.ft R.TP 1.4ierrorclassNew error class (integer)..ft R.TP 1.4iIERRORFortran only: Error status (integer). .SH DESCRIPTION.ft RThe function MPI_Add_error_class creates a new, local errorclass..SH NOTES.ft RBecause this function is local, the same value of \fIerrorclass\fP maynot be returned on all processes that make this call, even if theycall the function concurrently. Thus, same error on differentprocesses may not cause the same value of \fIerrorclass\fP to bereturned. To reduce the potential for confusion, MPI_Add_error_stringmay be used on multiple processes to associate the same error stringwith the newly created \fIerrorclass\fP. Even though \fIerrorclass\fPmay not be consistent across processes, using MPI_Add_error_stringwill ensure the error string associated with it will be the sameeverywhere..spNo function is provided to free error classes, as it is not expectedthat an application will create them in significant numbers..spThe value returned is always greater than or equal to MPI_ERR_LASTCODE..SH ERRORS.ft RAlmost all MPI routines return an error value; C routines asthe value of the function and Fortran routines in the last argument. C++functions do not return errors. If the default error handler is set toMPI::ERRORS_THROW_EXCEPTIONS, then on error the C++ exception mechanismwill be used to throw an MPI:Exception object..spBefore the error value is returned, the current MPI error handler iscalled. By default, this error handler aborts the MPI job, except forI/O function errors. The error handler may be changed withMPI_Comm_set_errhandler; the predefined error handler MPI_ERRORS_RETURNmay be used to cause error values to be returned. Note that MPI does notguarantee that an MPI program can continue past an error. .SH SEE ALSO.ft R.nfMPI_Add_error_codeMPI_Add_error_stringMPI_Error_classMPI_Error_string' @(#)MPI_Add_error_class.3 1.4 06/03/09
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -