:orphan:
# CHKERRA
Fortran-only replacement for use of `CHKERRQ()` in the main program, which aborts immediately 
## Synopsis
```
#include <petscsys.h>
PetscErrorCode CHKERRA(PetscErrorCode ierr)
```
Not Collective


## Input Parameter

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





## Note
This macro is rarely needed, normal usage is `PetscCallA()` in the main Fortran program.


## Developer Note
Why isn't this named `CHKERRABORT()` in Fortran?


## See Also
 `PetscCall()`, `PetscCallA()`, `PetscCallAbort()`, `CHKERRQ()`, `SETERRA()`, `SETERRQ()`, `SETERRABORT()`

## Level
deprecated

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

## Examples
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/snes/tutorials/ex5f.F90.html">src/snes/tutorials/ex5f.F90</A><BR>


---
[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](/manualpages/index.md)  
[Index of all manual pages](/manualpages/singleindex.md)  
