DMTSGetRHSFunctionLocal — PETSc 3.25.0 documentation

Skip to main content
`Ctrl`+`K`

# DMTSGetRHSFunctionLocal

get a local rhs function evaluation function. This function is called with local vector containing the local vector information PLUS ghost point information. It should compute a result for all local elements and `DM` will automatically accumulate the overlapping values.

## Synopsis

    #include "petscts.h"
    PetscErrorCode DMTSGetRHSFunctionLocal(DM dm, PetscErrorCode (**func)(DM dm, PetscReal t, Vec u, Vec udot, PetscCtx ctx), PetscCtxRt ctx)

Logically Collective

## Input Parameter

- dm - `DM` to associate callback with

## Output Parameters

- func - local function evaluation

- ctx - context for function evaluation

## Calling sequence of `func`

- dm - the `DM`

- t - the current time

- u - the current solution

- udot - output, the evaluated right hand side

- ctx - the application context for the function

## See Also

TS: Scalable ODE and DAE Solvers, `DM`, `DMTSSetRHSFunctionLocal()`, `DMTSSetRHSFunction()`, `DMTSSetIFunction()`, `DMTSSetIJacobianLocal()`

## Level

beginner

## Location

src/ts/utils/dmlocalts.c

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