#include "petscdm.h" #include "petscdmplex.h" #include "petscksp.h" PetscErrorCode DMProjectField(DM dm, PetscReal time, Vec U, void (**funcs)(PetscInt, PetscInt, PetscInt, const PetscInt[], const PetscInt[], const PetscScalar[], const PetscScalar[], const PetscScalar[], const PetscInt[], const PetscInt[], const PetscScalar[], const PetscScalar[], const PetscScalar[], PetscReal, const PetscReal[], PetscInt, const PetscScalar[], PetscScalar[]), InsertMode mode, Vec X)
dm | - The DM | |
time | - The time | |
U | - The input field vector | |
funcs | - The functions to evaluate, one per field | |
mode | - The insertion mode for values |