petsc-3.9.4 2018-09-11
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
Examples
src/dm/examples/tutorials/swarm_ex3.c.html
Implementations
DMGetNeighbors_DA in src/dm/impls/da/dacreate.c
Index of all DM routines
Table of Contents for all manual pages
Index of all manual pages