# CHKERRABORT
Checks error code returned from PETSc function. If non-zero it aborts immediately. 
## Synopsis
```
#include <petscerror.h>
void CHKERRABORT(MPI_Comm comm, PetscErrorCode ierr)
```
Not Collective


## Input Parameters

- ***comm -*** the MPI communicator
- ***ierr -*** nonzero error code, see the list of standard error codes in include/petscerror.h



## Notes
Deprecated in favor of `PetscCallAbort()`. This routine behaves identically to it.




## See Also
 `PetscCallAbort()`

## Level
deprecated

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/include/petscerror.h.html#CHKERRABORT">include/petscerror.h</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/include/petscerror.h)


[Index of all Sys routines](index.md)  
[Table of Contents for all manual pages](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
