1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML3.2 EN">
<HTML>
<HEAD> <link rel="canonical" href="http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/DMNetwork/DMNetworkSetEdgeList.html" />
<META NAME="GENERATOR" CONTENT="DOCTEXT">
<TITLE>DMNetworkSetEdgeList</TITLE>
</HEAD>
<BODY BGCOLOR="FFFFFF">
<div id="version" align=right><b>petsc-3.10.3 2018-12-18</b></div>
<div id="bugreport" align=right><a href="mailto:petsc-maint@mcs.anl.gov?subject=Typo or Error in Documentation &body=Please describe the typo or error in the documentation: petsc-3.10.3 v3.10.3 docs/manualpages/DMNetwork/DMNetworkSetEdgeList.html "><small>Report Typos and Errors</small></a></div>
<A NAME="DMNetworkSetEdgeList"><H1>DMNetworkSetEdgeList</H1></A>
Sets the list of local edges (vertex connectivity) for the network
<H3><FONT COLOR="#CC3333">Synopsis</FONT></H3>
<PRE>
#include "petscdmnetwork.h"
<A HREF="../Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</A> <A HREF="../DMNetwork/DMNetworkSetEdgeList.html#DMNetworkSetEdgeList">DMNetworkSetEdgeList</A>(<A HREF="../DM/DM.html#DM">DM</A> dm,<A HREF="../Sys/PetscInt.html#PetscInt">PetscInt</A> *edgelist[],<A HREF="../Sys/PetscInt.html#PetscInt">PetscInt</A> *edgelistCouple[])
</PRE>
Logically collective on <A HREF="../DM/DM.html#DM">DM</A>
<P>
<H3><FONT COLOR="#CC3333">Input Parameters</FONT></H3>
<TABLE border="0" cellpadding="0" cellspacing="0">
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>dm </B></TD><TD>- the dm object
</TD></TR>
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>edgelist </B></TD><TD>- list of edges for each subnetwork
</TD></TR>
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>edgelistCouple </B></TD><TD>- list of edges for each coupling subnetwork
</TD></TR></TABLE>
<P>
<H3><FONT COLOR="#CC3333">Notes</FONT></H3>
There is no copy involved in this operation, only the pointer is referenced. The edgelist should
not be destroyed before the call to <A HREF="../DMNetwork/DMNetworkLayoutSetUp.html#DMNetworkLayoutSetUp">DMNetworkLayoutSetUp</A>
<P>
<P>
<H3><FONT COLOR="#CC3333">Example usage</FONT></H3>
<H3><FONT COLOR="#CC3333">Consider the following 2 separate networks and a coupling network</FONT></H3>
<P>
<PRE>
network 0: v0 -> v1 -> v2 -> v3
network 1: v1 -> v2 -> v0
coupling network: network 1: v2 -> network 0: v0
</PRE>
<P>
The resulting input
edgelist[0] = [0 1 | 1 2 | 2 3];
edgelist[1] = [1 2 | 2 0]
edgelistCouple[0] = [(network)1 (v)2 (network)0 (v)0].
<P>
<H3><FONT COLOR="#CC3333">See Also</FONT></H3>
<A HREF="../DMNetwork/DMNetworkCreate.html#DMNetworkCreate">DMNetworkCreate</A>, <A HREF="../DMNetwork/DMNetworkSetSizes.html#DMNetworkSetSizes">DMNetworkSetSizes</A>
<BR><P><B></B><H3><FONT COLOR="#CC3333">Level</FONT></H3>intermediate<BR>
<H3><FONT COLOR="#CC3333">Location</FONT></H3>
</B><A HREF="../../../src/dm/impls/network/network.c.html#DMNetworkSetEdgeList">src/dm/impls/network/network.c</A>
<BR><A HREF="./index.html">Index of all DMNetwork routines</A>
<BR><A HREF="../../index.html">Table of Contents for all manual pages</A>
<BR><A HREF="../singleindex.html">Index of all manual pages</A>
</BODY></HTML>
|