petsc-3.7.4 2016-10-02
Report Typos and Errors


Returns a communicator consisting only of the processors in a DMDA that own a particular global x, y, or z grid point (corresponding to a logical plane in a 3D grid or a line in a 2D grid).


#include "petscdmda.h"   
PetscErrorCode  DMDAGetProcessorSubset(DM da,DMDADirection dir,PetscInt gp,MPI_Comm *comm)
Collective on DMDA

Input Parameters

da - the distributed array
dir - Cartesian direction, either DMDA_X, DMDA_Y, or DMDA_Z
gp - global grid point number in this direction

Output Parameters

comm -new communicator


All processors that share the DMDA must call this with the same gp value

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.


distributed array, get, processor subset

Index of all DM routines
Table of Contents for all manual pages
Index of all manual pages