MPI_Error_class(3OpenMPI)MPI_Error_class(3OpenMPI)NAME
MPI_Error_class - Converts an error code into an error class.
SYNTAX C Syntax
#include <mpi.h>
int MPI_Error_class(int errorcode, int *errorclass)
Fortran Syntax
INCLUDE 'mpif.h'
MPI_ERROR_CLASS(ERRORCODE, ERRORCLASS, IERROR)
INTEGER ERRORCODE, ERRORCLASS, IERROR
C++ Syntax
#include <mpi.h>
int Get_error_class(int errorcode)
INPUT PARAMETER
errorcode Error code returned by an MPI routine.
OUTPUT PARAMETERS
errorclass
Error class associated with errorcode.
IERROR Fortran only: Error status (integer).
DESCRIPTION
The function MPI_Error_class maps each standard error code (error class) onto itself.
ERRORS
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::ERRORS_THROW_EXCEPTIONS, 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. By default, this error handler aborts the MPI job, except for
I/O function errors. The error handler may be changed with MPI_Comm_set_errhandler; the predefined error handler MPI_ERRORS_RETURN may be
used to cause error values to be returned. Note that MPI does not guarantee that an MPI program can continue past an error.
SEE ALSO
MPI_Error_string
Open MPI 1.2 September 2006 MPI_Error_class(3OpenMPI)
Check Out this Related Man Page
MPI_Add_error_string(3OpenMPI)MPI_Add_error_string(3OpenMPI)NAME
MPI_Add_error_string - Associates a string with an error code or class
SYNTAX C Syntax
#include <mpi.h>
int MPI_Add_error_string(int errorcode, char *string)
Fortran Syntax
INCLUDE 'mpif.h'
MPI_ADD_ERROR_STRING(ERRORCODE, STRING, IERROR)
INTEGER ERRORCODE, IERROR
CHARACTER*(*) STRING
C++ Syntax
#include <mpi.h>
void MPI::Add_error_string(int errorcode, const char* string)
INPUT PARAMETERS
errorcode MPI error class, or an error code returned by an MPI routine (integer).
string Text that corresponds to the error code or class (string).
OUTPUT PARAMETER
IERROR Fortran only: Error status (integer).
DESCRIPTION
This routine associates an error string with an error code or class. Calling MPI_Add_error_string for an error code or class that already
has an associated error string will replace the old string with the new one. It is erroneous to call MPI_Add_error_string for an error
value not generated via MPI_Add_error_class or MPI_Add_error_code (e.g., an error code or class with a value not greater than
MPI_LAST_ERRCODE).
ERRORS
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::ERRORS_THROW_EXCEPTIONS, 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. By default, this error handler aborts the MPI job, except for
I/O function errors. The error handler may be changed with MPI_Comm_set_errhandler; the predefined error handler MPI_ERRORS_RETURN may be
used to cause error values to be returned. Note that MPI does not guarantee that an MPI program can continue past an error.
SEE ALSO
MPI_Add_error_class
MPI_Add_error_code
MPI_Error_class
MPI_Error_string
Open MPI 1.2 September 2006 MPI_Add_error_string(3OpenMPI)
Hi all,
I write a simple MPI program to send a text message to another process. The code is below.
(test.c)
#include "mpi.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(int argc, char* argv) {
int dest, noProcesses, processId;
MPI_Status status;
... (0 Replies)
Hi guys i'd like to show you this code of my script, where i couldn't find this error
" #! /bin/bash
#copiabin.sh: copia todos los archivos ejecutables a bin
if
then
mkdir $HOME/bin
fi
# copia de archivos y contador N
N=0
for ARCH in *
do
if # Si el archivo es... (9 Replies)
Hi,
While executing my code i am getting below Error:
./check_disk1: 0403-057 Syntax error at line 55 : `(' is not expected.
My code is :
#!/bin/ksh
PROGNAME=`basename $0`
STATE_OK=0
STATE_WARNING=1
STATE_CRITICAL=2
STATE_UNKNOWN=3
OS=$(uname)
AWK="/usr/bin/awk"... (6 Replies)
Hello all,
I am running a script to generate a report and mail it to an email address.
When I am trying to validate whether the file is a 0 kb file, I am getting the below error.
Error: "Syntax error; unexpected end of file"
Any suggestions please?
Code:
#!/bin/sh
.... (1 Reply)