PETSc version 3.17.0
Fix/Edit manual page

PetscCheckFalse

Check that a particular condition is false

Synopsis

#include <petscerror.h>
void PetscCheckFalse(bool cond, MPI_Comm comm, PetscErrorCode ierr, const char *message, ...)
Collective

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

Invert your boolean condition and use PetscCheck() instead. This macro is a temporary stopgap to converting to PetscCheck() and is subject to removal without deprecation in a future release.

See Also

PetscCheck()

Level

deprecated

Location

src/sys/error/../../../include/petscerror.h

Examples

src/sys/classes/random/tutorials/ex1.c.html
src/sys/classes/random/tutorials/ex2.c.html
src/sys/tutorials/ex3.c.html
src/sys/tutorials/ex17.c.html
src/vec/is/is/tutorials/ex2.c.html
src/vec/is/is/tutorials/ex3.c.html
src/vec/is/sf/tutorials/ex2.c.html
src/dm/impls/plex/tutorials/ex6.c.html
src/dm/impls/plex/tutorials/ex10.c.html
src/dm/impls/plex/tutorials/ex11.c.html
src/dm/impls/stag/tutorials/ex3.c.html

Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages