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#

DM, DMPLEX, DMSwarmComputeMoments()

Level#

intermediate

Location#

src/dm/impls/plex/plexfem.c


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