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
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML3.2 EN">
<HTML>
<HEAD> <link rel="canonical" href="http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/PC/PCBDDCSetLocalAdjacencyGraph.html" />
<META NAME="GENERATOR" CONTENT="DOCTEXT">
<TITLE>PCBDDCSetLocalAdjacencyGraph</TITLE>
</HEAD>
<BODY BGCOLOR="FFFFFF">
<div id="version" align=right><b>petsc-3.14.5 2021-03-03</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.14.5 v3.14.5 docs/manualpages/PC/PCBDDCSetLocalAdjacencyGraph.html "><small>Report Typos and Errors</small></a></div>
<A NAME="PCBDDCSetLocalAdjacencyGraph"><H1>PCBDDCSetLocalAdjacencyGraph</H1></A>
Set adjacency structure (CSR graph) of the local degrees of freedom.
<H3><FONT COLOR="#CC3333">Synopsis</FONT></H3>
<PRE>
#include "petscpc.h"
<A HREF="../Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</A> <A HREF="../PC/PCBDDCSetLocalAdjacencyGraph.html#PCBDDCSetLocalAdjacencyGraph">PCBDDCSetLocalAdjacencyGraph</A>(<A HREF="../PC/PC.html#PC">PC</A> pc,<A HREF="../Sys/PetscInt.html#PetscInt">PetscInt</A> nvtxs,const <A HREF="../Sys/PetscInt.html#PetscInt">PetscInt</A> xadj[],const <A HREF="../Sys/PetscInt.html#PetscInt">PetscInt</A> adjncy[], <A HREF="../Sys/PetscCopyMode.html#PetscCopyMode">PetscCopyMode</A> copymode)
</PRE>
Not collective
<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>pc </B></TD><TD>- the preconditioning context.
</TD></TR>
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>nvtxs </B></TD><TD>- number of local vertices of the graph (i.e., the number of local dofs).
</TD></TR>
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>xadj, adjncy </B></TD><TD>- the connectivity of the dofs in CSR format.
</TD></TR>
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>copymode </B></TD><TD>- supported modes are <A HREF="../Sys/PetscCopyMode.html#PetscCopyMode">PETSC_COPY_VALUES</A>, <A HREF="../Sys/PetscCopyMode.html#PetscCopyMode">PETSC_USE_POINTER</A> or <A HREF="../Sys/PetscCopyMode.html#PetscCopyMode">PETSC_OWN_POINTER</A>.
</TD></TR></TABLE>
<P>
<P>
<H3><FONT COLOR="#CC3333">Notes</FONT></H3>
A dof is considered connected with all local dofs if xadj[dof+1]-xadj[dof] == 1 and adjncy[xadj[dof]] is negative.
<P>
<H3><FONT COLOR="#CC3333">See Also</FONT></H3>
<A HREF="../PC/PCBDDC.html#PCBDDC">PCBDDC</A>,<A HREF="../Sys/PetscCopyMode.html#PetscCopyMode">PetscCopyMode</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/ksp/pc/impls/bddc/bddc.c.html#PCBDDCSetLocalAdjacencyGraph">src/ksp/pc/impls/bddc/bddc.c</A>
<P><H3><FONT COLOR="#CC3333">Examples</FONT></H3>
<A HREF="../../../src/ksp/ksp/tutorials/ex59.c.html">src/ksp/ksp/tutorials/ex59.c.html</A><BR>
<P><H3><FONT COLOR="CC3333">Implementations</FONT></H3><A HREF="../../../src/ksp/pc/impls/bddc/bddc.c.html#PCBDDCSetLocalAdjacencyGraph_BDDC">PCBDDCSetLocalAdjacencyGraph_BDDC in src/ksp/pc/impls/bddc/bddc.c</A><BR>
<BR><A HREF="./index.html">Index of all PC 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>
|