Skip to main content
Ctrl+K
PETSc v3.25.5-910-g913ca81738d4 documentation - Home
  • Overview
  • Install
  • Tutorials
  • User-Guide
  • C/Fortran API
  • petsc4py API
  • FAQ
  • Community
  • Developers
  • Misc.
  • GitLab
  • Overview
  • Install
  • Tutorials
  • User-Guide
  • C/Fortran API
  • petsc4py API
  • FAQ
  • Community
  • Developers
  • Misc.
  • GitLab
  • DMDASetStencilType

DMDASetStencilType#

Sets the type of the communication stencil

Synopsis#

#include "petscdmda.h"   
PetscErrorCode DMDASetStencilType(DM da, DMDAStencilType stype)

Logically Collective

Input Parameters#

  • da - The DMDA

  • stype - The stencil type, use either DMDA_STENCIL_BOX or DMDA_STENCIL_STAR.

See Also#

DMDA - Creating vectors for structured grids, DM, DMDA, DMDACreate(), DMDestroy(), DMDAStencilType, DMDA_STENCIL_BOX, DMDA_STENCIL_STAR.

Level#

intermediate

Location#

src/dm/impls/da/da.c

Examples#

src/dm/impls/swarm/tests/ex12.c
src/ksp/ksp/tests/ex32.c
src/mat/tests/ex129.c


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

On this page
  • Synopsis
  • Input Parameters
  • See Also
  • Level
  • Location
  • Examples
Edit on GitLab
Show Source

© Copyright 1991-2026, UChicago Argonne, LLC and the PETSc Development Team.

Created using Sphinx 7.3.7.

Built with the PyData Sphinx Theme 0.15.1.

Last updated on 2026-09-16T03:39:54-0500 (v3.25.5-910-g913ca81738d4).