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
DMkey - The
PetscFormKeyindicating what should be integratedcellIS - The
ISgiving a set of cells to integrate overtime - The time, or
PETSC_MIN_REALto include implicit terms in a time-independent problemslocX - The local solution
locX_t - The time derivative of the local solution, or
NULLfor time-independent problemst - 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