petsc-3.6.1 2015-08-06
Report Typos and Errors

DMPlexComputeL2FieldDiff

This function computes the L_2 difference between a function u and an FEM interpolant solution u_h, separated into field components.

Synopsis

#include "petscdmplex.h"   
PetscErrorCode DMPlexComputeL2FieldDiff(DM dm, PetscErrorCode (**funcs)(PetscInt, const PetscReal [], PetscInt, PetscScalar *, void *), void **ctxs, Vec X, PetscReal diff[])

Input Parameters

dm - The DM
funcs - The functions to evaluate for each field component
ctxs - Optional array of contexts to pass to each function, or NULL.
X - The coefficient vector u_h

Output Parameter

diff -The array of differences, ||u^f - u^f_h||_2

See Also

DMPlexProjectFunction(), DMPlexComputeL2Diff(), DMPlexComputeL2GradientDiff()

Level:developer
Location:
src/dm/impls/plex/plexfem.c
Index of all DM routines
Table of Contents for all manual pages
Index of all manual pages

Examples

src/snes/examples/tutorials/ex62.c.html