petsc-3.14.5 2021-03-03
Report Typos and Errors

# DMSetLocalSection

Set the PetscSection encoding the local data layout for the DM.

### Synopsis

    #include "petscdm.h"
    #include "petscdmlabel.h"
    #include "petscds.h"
    PetscErrorCode DMSetLocalSection(DM dm, PetscSection section)

### Input Parameters

| dm | - The DM
| section | - The PetscSection

Note: Any existing Section will be destroyed

### See Also

DMGetLocalSection(), DMSetGlobalSection()

### Level

intermediate

### Location

src/dm/interface/dm.c

### Examples

src/dm/impls/plex/tutorials/ex1.c.html
src/dm/impls/plex/tutorials/ex6.c.html
src/dm/impls/plex/tutorials/ex7.c.html
src/dm/impls/plex/tutorials/ex1f90.F90.html
src/dm/tutorials/ex20.c.html
src/ts/tutorials/ex11.c.html
src/ts/tutorials/ex52.c.html
Index of all DM routines
Table of Contents for all manual pages
Index of all manual pages