DMPlexComputeMoments#
Compute the first three moments for a field
Synopsis#
#include "petscdmplex.h"
PetscErrorCode DMPlexComputeMoments(DM dm, Vec u, PetscReal moments[])
Noncollective
Input Parameters#
dm - the
DMPLEX
u - the field
Output Parameter#
moments - the field moments
Note#
The moments
array should be of length Nc + 2, where Nc is the number of components for the field.
See Also#
Level#
intermediate
Location#
Index of all DMPlex routines
Table of Contents for all manual pages
Index of all manual pages