Gets the ranges of indices in the x, y and z direction that are owned by each process
#include "petscdmda.h" PetscErrorCode DMDAGetOwnershipRanges(DM da, const PetscInt *lx, const PetscInt *ly, const PetscInt *lz)
da - the
lx - ownership along x direction (optional)
ly - ownership along y direction (optional)
lz - ownership along z direction (optional)
These correspond to the optional final arguments passed to
In C you should not free these arrays, nor change the values in them. They will only have valid values while the
DMDA they came from still exists (has not been destroyed).
These numbers are NOT multiplied by the number of dof per node.
In Fortran one must pass in arrays
lz that are long enough to hold the values; the sixth, seventh and
eighth arguments from
Index of all DMDA routines
Table of Contents for all manual pages
Index of all manual pages