Skip to main content
Ctrl+K
PETSc v3.26.0-2-g3c5cfaeaff0b 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
  • DMDASetStencilWidth

DMDASetStencilWidth#

Sets the width of the communication stencil

Synopsis#

#include "petscdmda.h"   
PetscErrorCode DMDASetStencilWidth(DM da, PetscInt width)

Logically Collective

Input Parameters#

  • da - The DMDA

  • width - The stencil width

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/tutorials/ex19.c
src/dm/impls/swarm/tests/ex12.c
src/ksp/ksp/tests/ex32.c
src/mat/tests/ex129.c
src/snes/tests/ex2.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-30T03:43:04-0500 (v3.26.0-2-g3c5cfaeaff0b).