#include "petscdmplex.h" PetscErrorCode DMPlexComputeL2DiffVec(DM dm, PetscReal time, PetscErrorCode (**funcs)(PetscInt, PetscReal, const PetscReal [], PetscInt, PetscScalar *, void *), void **ctxs, Vec X, Vec D)Collective on dm
dm | - The DM | |
time | - The time | |
funcs | - The functions to evaluate for each field component: NULL means that component does not contribute to error calculation | |
ctxs | - Optional array of contexts to pass to each function, or NULL. | |
X | - The coefficient vector u_h |
D | - A Vec which holds the difference ||u - u_h||_2 for each cell |