petsc-3.8.4 2018-03-24
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"   
#include "petscfe.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 DMPlexComputeFaceGeometryFVM()
cellGeometry - The face geometry from DMPlexComputeCellGeometryFVM()

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 DMPLEX routines
Table of Contents for all manual pages
Index of all manual pages