DMPlexSNESComputeResidualFEM#
Sums the local residual into vector locF from the local input locX using pointwise functions specified by the user
Synopsis#
#include "petscdmplex.h"
#include "petscsnes.h"
PetscErrorCode DMPlexSNESComputeResidualFEM(DM dm, Vec locX, Vec locF, PetscCtx ctx)
Collective
Input Parameters#
dm - The mesh
locX - Local solution
ctx - The application context
Output Parameter#
locF - Local output vector
Note#
The residual is summed into locF; the caller is responsible for using VecZeroEntries() or otherwise ensuring that any data in locF is intentional.
See Also#
SNES: Nonlinear Solvers, DM, DMPLEX, DMSNESComputeJacobianAction()
Level#
developer
Location#
Index of all SNES routines
Table of Contents for all manual pages
Index of all manual pages