petsc-3.7.1 2016-05-15
Report Typos and Errors

CHKERRXX

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

Synopsis

#include <petscsys.h>
void CHKERRXX(PetscErrorCode errorcode)
Not Collective Many br

Input Parameters

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

Many br

Notes

Once the error handler throws a ??? exception. Many br

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

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