:orphan: # CHKERRQ Checks error code returned from PETSc function ## Synopsis ``` #include void CHKERRQ(PetscErrorCode ierr) ``` Not Collective ## Input Parameter - ***ierr -*** nonzero error code ## Note Deprecated in favor of `PetscCall()`. This routine behaves identically to it. ## See Also `PetscCall()` ## Level deprecated ## Location include/petscerror.h ## Examples src/snes/tutorials/ex5f.F90
--- [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)