petsc-3.7.1 2016-05-15
Report Typos and Errors

DMDAGetNeighbors

Gets an array containing the MPI rank of all the current processes neighbors.

Synopsis

#include "petscdmda.h"   
PetscErrorCode  DMDAGetNeighbors(DM da,const PetscMPIInt *ranks[])
Not Collective Many br

Input Parameter

da - the DMDA object Many br

Output Parameters

ranks - the neighbors ranks, stored with the x index increasing most rapidly. Many brthis process itself is in the list Many br

Notes: In 2d the array is of length 9, in 3d of length 27 Many brNot supported in 1d Many brDo not free the array, it is freed when the DMDA is destroyed. Many br

Fortran Notes: In fortran you must pass in an array of the appropriate length. Many br

Many br

Level:intermediate
Location:
src/dm/impls/da/da.c
Index of all DM routines
Table of Contents for all manual pages
Index of all manual pages