PetscErrorCode DMStagGetOwnershipRanges(DM dm,const PetscInt *lx[],const PetscInt *ly[],const PetscInt *lz[])Not Collective
dm | - the DMStag object |
lx | - ownership along x direction (optional) | |
ly | - ownership along y direction (optional) | |
lz | - ownership along z direction (optional) |
Arguments corresponding to higher dimensions are ignored for 1D and 2D grids. These arguments may be set to NULL in this case.
In C you should not free these arrays, nor change the values in them. They will only have valid values while the DMStag they came from still exists (has not been destroyed).