DMPlexSNESComputeResidualCEED — PETSc 3.25.4 documentation

Skip to main content
`Ctrl`+`K`

# DMPlexSNESComputeResidualCEED

Assemble the local residual for a `SNES` on a `DMPLEX` using the libCEED operator attached to the `DM`

## Synopsis

    #include "petscdmplex.h"
    #include "petscsnes.h"
    PetscErrorCode DMPlexSNESComputeResidualCEED(DM dm, Vec locX, Vec locF, PetscCtx ctx)

Collective

## Input Parameters

- dm - the `DMPLEX` for which libCEED operators have been created by `DMCeedCreate()`

- locX - local solution vector including ghost values

- ctx - application context (unused)

## Output Parameter

- locF - local residual vector to be assembled

## Note

This is normally installed as the `SNES` local residual callback via `DMSNESSetFunctionLocal()` when using libCEED for the finite-element evaluation.

## See Also

SNES: Nonlinear Solvers, `SNES`, `DMPLEX`, `DMCeedCreate()`, `DMSNESSetFunctionLocal()`, `DMPlexTSComputeRHSFunctionFVMCEED()`

## Level

developer

## Location

src/snes/utils/libceed/dmplexsnesceed.c

Index of all SNES routines
Table of Contents for all manual pages
Index of all manual pages