#include "petscdm.h" #include "petscdmlabel.h" #include "petscds.h" PetscErrorCode DMProjectFunctionLabel(DM dm, PetscReal time, DMLabel label, PetscInt numIds, const PetscInt ids[], PetscInt Nc, const PetscInt comps[], PetscErrorCode (**funcs)(PetscInt, PetscReal, const PetscReal [], PetscInt, PetscScalar *, void *), void **ctxs, InsertMode mode, Vec X)Collective on DM
dm | - The DM | |
time | - The time | |
label | - The DMLabel selecting the portion of the mesh for projection | |
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 |
X | - vector |
func(PetscInt dim, PetscReal time, const PetscReal x[], PetscInt Nc, PetscScalar u[], void *ctx);
dim | - The spatial dimension | |
x | - The coordinates | |
Nc | - The number of components | |
u | - The output field values | |
ctx | - optional user-defined function context |