petsc-3.5.4 2015-05-23
Report Typos and Errors

DMPlexProjectFunction

This projects the given function into the function space provided.

Synopsis

#include "petscdmplex.h"   
PetscErrorCode DMPlexProjectFunction(DM dm, void (**funcs)(const PetscReal [], PetscScalar *, void *), void **ctxs, InsertMode mode, Vec X)

Input Parameters

dm - The DM
funcs - The coordinate functions to evaluate, one per field
ctxs - Optional array of contexts to pass to each coordinate function. ctxs itself may be null.
mode - The insertion mode for values

Output Parameter

X -vector

See Also

DMPlexComputeL2Diff()

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/ex12.c.html
src/snes/examples/tutorials/ex62.c.html