"Fossies" - the Fresh Open Source Software Archive

Member "petsc-3.12.4/docs/manualpages/Sys/PetscBool.html" (4 Feb 2020, 2481 Bytes) of package /linux/misc/petsc-3.12.4.tar.gz:


Caution: In this restricted "Fossies" environment the current HTML page may not be correctly presentated and may have some non-functional links. You can here alternatively try to browse the pure source code or just view or download the uninterpreted raw source code. If the rendering is insufficient you may try to find and view the page on the petsc-3.12.4.tar.gz project site itself.

petsc-3.12.4 2020-02-04
Report Typos and Errors

PetscBool

Logical variable. Actually an int in C and a logical in Fortran.

Synopsis

typedef enum { PETSC_FALSE,PETSC_TRUE } PetscBool;

Developer Note

Why have PetscBool , why not use bool in C? The problem is that K and R C, C99 and C++ all have different mechanisms for boolean values. It is not easy to have a simple macro that that will work properly in all circumstances with all three mechanisms.

See Also

PETSC_TRUE, PETSC_FALSE, PetscNot()

Level

beginner

Location

include/petscsystypes.h

Examples

src/ksp/ksp/examples/tutorials/ex42.c.html
src/ksp/ksp/examples/tutorials/ex43.c.html
src/snes/examples/tutorials/ex3.c.html
src/snes/examples/tutorials/ex15.c.html

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