PetscFVSetComputeGradients#

Toggle computation of cell gradients on a PetscFV

Synopsis#

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

Logically Collective

Input Parameters#

  • fvm - the PetscFV object

  • computeGradients - Flag to compute cell gradients

See Also#

PetscFV, PetscFVGetComputeGradients()

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