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
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML3.2 EN">
<HTML>
<HEAD> <link rel="canonical" href="http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/MatOrderings/MatMeshToVertexGraph.html" />
<META NAME="GENERATOR" CONTENT="DOCTEXT">
<TITLE>MatMeshToVertexGraph</TITLE>
</HEAD>
<BODY BGCOLOR="FFFFFF">
<div id="version" align=right><b>petsc-3.4.2 2013-07-02</b></div>
<A NAME="MatMeshToVertexGraph"><H1>MatMeshToVertexGraph</H1></A>
This routine does not exist because ParMETIS does not provide the functionality. Uses the ParMETIS package to convert a <A HREF="../Mat/Mat.html#Mat">Mat</A> that represents a mesh to a <A HREF="../Mat/Mat.html#Mat">Mat</A> the represents the graph of the coupling between vertices of the cells and is suitable for partitioning with the <A HREF="../Mat/MatPartitioning.html#MatPartitioning">MatPartitioning</A> object. Use this to partition vertices of a mesh. More likely you should use <A HREF="../MatOrderings/MatMeshToCellGraph.html#MatMeshToCellGraph">MatMeshToCellGraph</A>()
<H3><FONT COLOR="#CC3333">Synopsis</FONT></H3>
<PRE>
#include "petscmat.h"
PetscErrorCode MatMeshToVertexGraph(Mat mesh,PetscInt ncommonnodes,Mat *dual)
</PRE>
Collective on <A HREF="../Mat/Mat.html#Mat">Mat</A>
<P>
<H3><FONT COLOR="#CC3333">Input Parameter</FONT></H3>
<TABLE border="0" cellpadding="0" cellspacing="0">
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>mesh </B></TD><TD>- the graph that represents the mesh
</TD></TR>
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>ncommonnodes </B></TD><TD>- mesh elements that share this number of common nodes are considered neighbors, use 2 for triangules and
quadralaterials, 3 for tetrahedrals and 4 for hexahedrals
</TD></TR></TABLE>
<P>
<H3><FONT COLOR="#CC3333">Output Parameter</FONT></H3>
<DT><B>dual </B> -the dual graph
<br>
<P>
<H3><FONT COLOR="#CC3333">Notes</FONT></H3>
Currently requires ParMetis to be installed and uses ParMETIS_V3_Mesh2Dual()
<P>
The columns of each row of the <A HREF="../Mat/Mat.html#Mat">Mat</A> mesh are the global vertex numbers of the vertices of that rows cell. The number of rows in mesh is
number of cells, the number of columns is the number of vertices.
<P>
<P>
<H3><FONT COLOR="#CC3333">See Also</FONT></H3>
<A HREF="../MatOrderings/MatMeshToCellGraph.html#MatMeshToCellGraph">MatMeshToCellGraph</A>(), <A HREF="../Mat/MatCreateMPIAdj.html#MatCreateMPIAdj">MatCreateMPIAdj</A>(), <A HREF="../MatOrderings/MatPartitioningCreate.html#MatPartitioningCreate">MatPartitioningCreate</A>()
<BR>
<P>
<P><B><P><B><FONT COLOR="#CC3333">Level:</FONT></B>advanced
<BR><FONT COLOR="#CC3333">Location:</FONT></B><A HREF="../../../src/mat/partition/impls/pmetis/pmetis.c.html#MatMeshToVertexGraph">src/mat/partition/impls/pmetis/pmetis.c</A>
<BR><A HREF="./index.html">Index of all MatOrderings 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>
|