DMInterpolationSetDof — PETSc 3.21.4 documentation

Skip to main content
`Ctrl`+`K`

# DMInterpolationSetDof

Sets the number of fields interpolated at a point for the interpolation context

## Synopsis

    #include "petscdmplex.h"
    #include "petscsnes.h"
    PetscErrorCode DMInterpolationSetDof(DMInterpolationInfo ctx, PetscInt dof)

Not Collective

## Input Parameters

- ctx - the context

- dof - the number of fields

## See Also

DM Basics, `DM`, `DMInterpolationInfo`, `DMInterpolationGetDof()`, `DMInterpolationEvaluate()`, `DMInterpolationAddPoints()`

## Level

intermediate

## Location

src/snes/utils/dm/dminterpolatesnes.c

## Examples

src/ts/tutorials/ex77.c
src/snes/tutorials/ex63.c

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