petsc-3.13.6 2020-09-29
Report Typos and Errors

DMDASetUniformCoordinates

Sets a DMDA coordinates to be a uniform grid

Synopsis

#include "petscdmda.h"   
PetscErrorCode  DMDASetUniformCoordinates(DM da,PetscReal xmin,PetscReal xmax,PetscReal ymin,PetscReal ymax,PetscReal zmin,PetscReal zmax)
Collective on da

Input Parameters

da - the distributed array object
xmin,xmax - extremes in the x direction
ymin,ymax - extremes in the y direction (value ignored for 1 dimensional problems)
zmin,zmax - extremes in the z direction (value ignored for 1 or 2 dimensional problems)

See Also

DMSetCoordinates(), DMGetCoordinates(), DMDACreate1d(), DMDACreate2d(), DMDACreate3d(), DMStagSetUniformCoordinates()

Level

beginner

Location

src/dm/impls/da/gr1.c

Examples

src/dm/tutorials/ex3.c.html
src/dm/tutorials/ex4.c.html
src/dm/tutorials/ex10.c.html
src/dm/tutorials/ex20.c.html
src/dm/tutorials/swarm_ex1.c.html
src/dm/tutorials/swarm_ex3.c.html
src/dm/tutorials/ex13f90.F90.html
src/ksp/ksp/tutorials/ex29.c.html
src/ksp/ksp/tutorials/ex42.c.html
src/ksp/ksp/tutorials/ex43.c.html
src/ksp/ksp/tutorials/ex49.c.html

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