PETSc version 3.17.0
Fix/Edit manual page

# DMStagSetUniformCoordinatesExplicit

set DMStag coordinates to be a uniform grid, storing all values

### Synopsis

    PetscErrorCode DMStagSetUniformCoordinatesExplicit(DM dm,PetscReal xmin,PetscReal xmax,PetscReal ymin,PetscReal ymax,PetscReal zmin,PetscReal zmax)

Collective

### Input Parameters

| dm | - the DMStag object
| xmin,xmax,ymin,ymax,zmin,zmax | - maximum and minimum global coordinate values

### Notes

DMStag supports 2 different types of coordinate DM: either another DMStag, or a DMProduct. If the grid is orthogonal, using DMProduct should be more efficient.

Arguments corresponding to higher dimensions are ignored for 1D and 2D grids.

See the manual page for DMStagSetUniformCoordinates() for information on how coordinates for dummy cells outside the physical domain boundary are populated.

### See Also

DMSTAG, DMStagSetUniformCoordinates(), DMStagSetUniformCoordinatesProduct(), DMStagSetCoordinateDMType()

### Level

beginner

### Location

src/dm/impls/stag/stagutils.c

### Examples

src/dm/impls/stag/tutorials/ex1.c.html
src/dm/impls/stag/tutorials/ex3.c.html
src/dm/impls/stag/tutorials/ex4.c.html

### Implementations

DMStagSetUniformCoordinatesExplicit_1d in src/dm/impls/stag/stag1d.c
DMStagSetUniformCoordinatesExplicit_2d in src/dm/impls/stag/stag2d.c
DMStagSetUniformCoordinatesExplicit_3d in src/dm/impls/stag/stag3d.c
Index of all DMSTAG routines
Table of Contents for all manual pages
Index of all manual pages