DMPlexComputeResidualByKey#
Compute the local residual for terms matching the input key
Synopsis#
#include "petscdmplex.h"   
PetscErrorCode DMPlexComputeResidualByKey(DM dm, PetscFormKey key, IS cellIS, PetscReal time, Vec locX, Vec locX_t, PetscReal t, Vec locF, void *user)
Collective
Input Parameters#
- dm - The output - DM
- key - The - PetscFormKeyindicating what should be integrated
- cellIS - The - ISgiving a set of cells to integrate over
- time - The time, or - PETSC_MIN_REALto include implicit terms in a time-independent problems
- locX - The local solution 
- locX_t - The time derivative of the local solution, or - NULLfor time-independent problems
- t - The time 
- user - An optional user context, passed to the pointwise functions 
Output Parameter#
- locF - The local residual 
See Also#
DMPlexComputeJacobianByKey(), DMPlexComputeResidualHybridByKey(), DMPlexComputeJacobianHybridByKey(), PetscFormKey
Level#
developer
Location#
Index of all DMPlex routines
Table of Contents for all manual pages
Index of all manual pages