CreatePatch

Creates a new patch, adds it to the global list and calculates the local subpatch (with and without ghost nodes).

Synopsis

PetscErrorCode CreatePatch(PetscInt x, PetscInt nx, PetscInt y,
    PetscInt ny, PetscInt z, PetscInt nz, DAPeriodicType periodicity,
    PetscInt stencil, PetscInt dof, Ptr_Patch *patch)

Input parameters

ixfirst - The first (lower-indexes) corner of the patch in x-direction.
nx - The number of cells in the patch in x-direction.
iyfirst - The first (lower-indexes) corner of the patch in y-direction.
ny - The number of cells in the patch in direction.
izfirst - The first (lower-indexes) corner of the patch in z-direction.
nz - The number of cells in the patch in z-direction.

Output parameters

patch -Pointer to the new patch.

Keywords

create, patch

See Also

CalculateLocalPatchCorner,
CalculateLocalPatchCornerGhost

Level:developer
Location:
src/patch.c
Index of all MICSc routines
Table of Contents for all manual pages
Index of all manual pages