DMNetworkGetSubnetwork#
Returns the information about a requested subnetwork
Synopsis#
#include "petscdmnetwork.h"
PetscErrorCode DMNetworkGetSubnetwork(DM dm, PetscInt netnum, PeOp PetscInt *nv, PeOp PetscInt *ne, PeOp const PetscInt *vtx[], PeOp const PetscInt *edge[])
Not Collective
Input Parameters#
dm - the
DMNETWORKobjectnetnum - the global index of the subnetwork
Output Parameters#
nv - number of vertices (local)
ne - number of edges (local)
vtx - local vertices of the subnetwork
edge - local edges of the subnetwork
Notes#
Pass NULL for any output argument that is not needed.
Cannot call this routine before DMNetworkLayoutSetup()
The local vertices returned on each rank are determined by DMNETWORK. The user does not have any control over what vertices are local.
See Also#
DM, DMNETWORK, DMNetworkCreate(), DMNetworkAddSubnetwork(), DMNetworkLayoutSetUp()
Level#
intermediate
Location#
src/dm/impls/network/network.c
Index of all DMNetwork routines
Table of Contents for all manual pages
Index of all manual pages