#include "petscdmplex.h" #include "petscsnes.h" PetscErrorCode DMSNESCheckDiscretization(SNES snes, DM dm, PetscReal t, Vec u, PetscReal tol, PetscReal error[])
snes | - the SNES object | |
dm | - the DM | |
t | - the time | |
u | - a DM vector | |
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 |
Note: The user must call PetscDSSetExactSolution() beforehand