#include "petscdmplex.h" #include "petscsnes.h" PetscErrorCode DMSNESCheckDiscretization(SNES snes, DM dm, Vec u, PetscErrorCode (**exactFuncs)(PetscInt, PetscReal, const PetscReal x[], PetscInt, PetscScalar *u, void *ctx), void **ctxs, PetscReal tol, PetscReal error[])
snes | - the SNES object | |
dm | - the DM | |
u | - a DM vector | |
exactFuncs | - pointwise functions of the exact solution for each field | |
ctxs | - contexts for the functions | |
tol | - A tolerance for the check, or -1 to print the results instead | |
error | - An array which holds the discretization error in each field, or NULL |