PetscBoolToBool3 — PETSc 3.25.1 documentation

Skip to main content
`Ctrl`+`K`

# PetscBoolToBool3

Convert a `PetscBool` to a `PetscBool3`

## Synopsis

    #include <petscsystypes.h>
    PetscBool3 PetscBoolToBool3(PetscBool var)

No Fortran Support

## Note

Evaluates to `PETSC_BOOL3_TRUE` if `var` is `PETSC_TRUE`, and `PETSC_BOOL3_FALSE` otherwise.

## See Also

`PetscBool`, `PetscBool3`, `PetscBool3ToBool()`

## Level

beginner

## Location

include/petscsystypes.h

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