#include "petscdmplex.h" #include "petscsnes.h" PetscErrorCode DMSNESCheckResidual(SNES snes, DM dm, Vec u, PetscReal tol, PetscReal *residual)
snes | - the SNES object | |
dm | - the DM | |
u | - a DM vector | |
tol | - A tolerance for the check, or -1 to print the results instead | |
residual | - The residual norm of the exact solution, or NULL |