#include "petscdmda.h" PetscErrorCode DMDAGetProcessorSubset(DM da,DMDirection dir,PetscInt gp,MPI_Comm *comm)Collective on da
da | - the distributed array | |
dir | - Cartesian direction, either DM_X, DM_Y, or DM_Z | |
gp | - global grid point number in this direction |
comm | - new communicator |
After use, comm should be freed with MPI_Comm_free()
This routine is particularly useful to compute boundary conditions or other application-specific calculations that require manipulating sets of data throughout a logical plane of grid points.
Not supported from Fortran