petsc-3.11.4 2019-09-28
Report Typos and Errors

PetscNot

negates a logical type value and returns result as a PetscBool

Notes

This is useful in cases like
    int        *a;
    PetscBool  flag = PetscNot(a)
where !a would not return a PetscBool because we cannot provide a cast from int to PetscBool in C.

.seealso : PetscBool, PETSC_TRUE, PETSC_FALSE

Level

beginner

Location

include/petscsys.h
Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages