petsc-3.9.4 2018-09-11
DMPlexSNESComputeJacobianActionFEM
Form the local portion of the Jacobian action Z = J(X) Y at the local solution X using pointwise functions specified by the user.
Synopsis
#include "petscdmplex.h"
#include "petscsnes.h"
PetscErrorCode DMPlexSNESComputeJacobianActionFEM(DM dm, Vec X, Vec Y, Vec Z, void *user)
Input Parameters
| dm | - The mesh
|
| X | - Local solution vector
|
| Y | - Local input vector
|
| user | - The user context
|
Output Parameter
Z -Local output vector
Note
We form the residual one batch of elements at a time. This allows us to offload work onto an accelerator,
like a GPU, or vectorize on a multicore machine.
See Also
FormFunctionLocal()
Level
developer
Location
src/snes/utils/dmplexsnes.c
Index of all SNES routines
Table of Contents for all manual pages
Index of all manual pages