:orphan: # PetscAssertAbort Assert that a particular condition is true, otherwise prints error and aborts ## Synopsis ``` #include void PetscAssertAbort(bool cond, MPI_Comm comm, PetscErrorCode ierr, const char *message, ...) ``` Collective; No Fortran Support ## Input Parameters - ***cond -*** The boolean condition - ***comm -*** The communicator on which the check can be collective on - ***ierr -*** A nonzero error code, see include/petscerror.h for the complete list - ***message -*** Error message in printf format ## Notes Enabled only in debug builds. See `PetscCheckAbort()` for usage. ## See Also `PetscCheckAbort()`, `PetscAssert()`, `PetscCheck()`, `SETERRABORT()`, `PetscError()` ## Level beginner ## Location include/petscerror.h --- [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)