petsc-3.4.5 2014-06-29

SETERRQ2

Macro that is called when an error has been detected,

Synopsis

#include "petscsys.h"
PetscErrorCode SETERRQ2(PetscErrorCode errorcode,char *formatmessage,arg1,arg2)
Not Collective

Input Parameters

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

Notes

Once the error handler is called the calling function is then returned from with the given error code.

Experienced users can set the error handler with PetscPushErrorHandler().

See Also

PetscTraceBackErrorHandler(), PetscPushErrorHandler(), PetscError(), CHKERRQ(), CHKMEMQ, SETERRQ1(), SETERRQ3()

Level:beginner
Location:
src/sys/error/../../../include/petscerror.h
Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages

Examples

src/mat/examples/tutorials/ex4.c.html
src/ksp/ksp/examples/tutorials/ex10.c.html
src/ksp/ksp/examples/tutorials/ex56.c.html
src/snes/examples/tutorials/ex12.c.html
src/snes/examples/tutorials/ex31.c.html
src/snes/examples/tutorials/ex52.c.html
src/snes/examples/tutorials/ex62.c.html
src/snes/examples/tutorials/ex52_integrateElement_coef.cu.html
src/snes/examples/tutorials/ex52_integrateElement.cu.html
src/ts/examples/tutorials/ex9.c.html
src/ts/examples/tutorials/ex11.c.html