#include <petscsys.h> PetscErrorCode SETERRQ9(MPI_Comm comm,PetscErrorCode ierr,char *formatmessage,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9)Collective
comm | - A communicator, so that the error can be collective | |
ierr | - nonzero error code, see the list of standard error codes in include/petscerror.h | |
message | - error message in the printf format | |
arg1 | - argument (for example an integer, string or double) | |
arg2 | - argument (for example an integer, string or double) | |
arg3 | - argument (for example an integer, string or double) | |
arg4 | - argument (for example an integer, string or double) | |
arg5 | - argument (for example an integer, string or double) | |
arg6 | - argument (for example an integer, string or double) | |
arg7 | - argument (for example an integer, string or double) | |
arg8 | - argument (for example an integer, string or double) | |
arg9 | - argument (for example an integer, string or double) |
There are also versions for 0 to 9 arguments.
Experienced users can set the error handler with PetscPushErrorHandler().