petsc-3.8.4 2018-03-24
Report Typos and Errors

DMGetNeighbors

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

Synopsis

#include "petscdm.h"          
#include "petscdmlabel.h"     
#include "petscds.h"     
PetscErrorCode DMGetNeighbors(DM dm,PetscInt *nranks,const PetscMPIInt *ranks[])
Not Collective

Input Parameter

. dm - The DM

Output Parameter

. nranks - the number of neighbours . ranks - the neighbors ranks

Notes

Do not free the array, it is freed when the DM is destroyed.

.seealso: DMDAGetNeighbors(), PetscSFGetRanks()

Level:beginner
Location:
src/dm/interface/dm.c
Index of all DM routines
Table of Contents for all manual pages
Index of all manual pages