PetscFVGetComputeGradients — PETSc 3.23.0 documentation

Skip to main content
`Ctrl`+`K`

# PetscFVGetComputeGradients

Return flag for computation of cell gradients on a `PetscFV`

## Synopsis

    #include "petscfv.h"
    PetscErrorCode PetscFVGetComputeGradients(PetscFV fvm, PetscBool *computeGradients)

Not Collective

## Input Parameter

- fvm - the `PetscFV` object

## Output Parameter

- computeGradients - Flag to compute cell gradients

## See Also

`PetscFV`, `PetscFVSetComputeGradients()`

## Level

intermediate

## Location

src/dm/dt/fv/interface/fv.c

## Examples

src/ts/tutorials/ex11.c

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