PetscErrorCode DMStagSetUniformCoordinates(DM dm,PetscReal xmin,PetscReal xmax,PetscReal ymin,PetscReal ymax,PetscReal zmin,PetscReal zmax)Collective
dm | - the DMStag object | |
xmin,xmax,ymin,ymax,zmin,zmax | - maximum and minimum global coordinate values |
Local coordinates are populated (using DMSetCoordinatesLocal()), linearly extrapolated to ghost cells, including those outside the physical domain. This is also done in case of periodic boundaries, meaning that the same global point may have different coordinates in different local representations, which are equivalent assuming a periodicity implied by the arguments to this function, i.e. two points are equivalent if their difference is a multiple of (xmax - xmin) in the x direction, (ymax - ymin) in the y direction, and (zmax - zmin) in the z direction.