petsc-3.6.4 2016-04-12
Report Typos and Errors


Compute geometric factors for gradient reconstruction, which are stored in the geometry data, and compute layout for gradient data


#include "petscdmplex.h"   
PetscErrorCode DMPlexComputeGradientFVM(DM dm, PetscFV fvm, Vec faceGeometry, Vec cellGeometry, DM *dmGrad)
Collective on DM

Input Arguments

dm - The DM
fvm - The PetscFV
faceGeometry - The face geometry from DMPlexGetFaceGeometryFVM()
cellGeometry - The face geometry from DMPlexGetCellGeometryFVM()

Output Parameters

faceGeometry - The geometric factors for gradient calculation are inserted
dmGrad - The DM describing the layout of gradient data

See Also

DMPlexGetFaceGeometryFVM(), DMPlexGetCellGeometryFVM()

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