CalculateDivisions

Calculates the number and size of the divisions along the given direction for the given mesh regions.

Synopsis

PetscErrorCode CalculateDivisions(MeshRegion *overlaps, PetscInt numOverlaps,
    PetscInt direction, PetscInt *divs, PetscInt *divSizes)

Input parameters

overlaps - Array of mesh regions with the portion of the new patch owned by each process.
numOverlaps - Number of elements in the overlaps array. ( == mpi size).
direction - The direction to check (XDIR, YDIR, ZDIR)

Output parameters

divs - Number of divisions along the given direction
divSizes - Array containing the size of each divisions.

Keywords

mesh, division

See Also

CreatePatch

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