petsc-3.5.4 2015-05-23
Report Typos and Errors

CHKERRXX

Checks error code, if non-zero it calls the C++ error handler which throws an exception

Synopsis

#include 
void CHKERRXX(PetscErrorCode errorcode)
Not Collective

Input Parameters

errorcode -nonzero error code, see the list of standard error codes in include/petscerror.h

Notes

Once the error handler throws a ??? exception.

You can use CHKERRV() which returns without an error code (bad idea since the error is ignored) or CHKERRABORT(comm,n) to have MPI_Abort() returned immediately.

See Also

PetscTraceBackErrorHandler(), PetscPushErrorHandler(), PetscError(), SETERRQ(), CHKERRQ(), CHKMEMQ

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