IsPatchInProc

Determines whether a global patch overlays the local subdomain.

Synopsis

PetscErrorCode IsPatchInProc(PetscInt x, PetscInt nx, PetscInt y,
    PetscInt ny, PetscInt z, PetscInt nz, PetscTruth *flag)

Input parameters

x - X coordinate of the patch's lower corner.
nx - Number of patch elements along the X direction.
y - Y coordinate of the patch's lower corner.
ny - Number of patch elements along the Y direction.
z - Z coordinate of the patch's lower corner.
nz - Number of patch elements along the Z direction.

Output parameters

flag -Flag to determine if the global patch overlaps the local subdomain

Keywords

local, global, patch

See Also

CalculateOverlaps

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