File: DMPlexCreateFromCellList.html

package info (click to toggle)
petsc 3.4.2.dfsg1-8.1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 129,104 kB
  • ctags: 516,422
  • sloc: ansic: 395,939; cpp: 47,201; python: 34,788; makefile: 17,193; fortran: 16,251; f90: 1,592; objc: 954; sh: 822; xml: 621; java: 381; lisp: 293; csh: 241
file content (120 lines) | stat: -rw-r--r-- 3,464 bytes parent folder | download
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML3.2 EN">
<HTML>
<HEAD> <link rel="canonical" href="http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/DM/DMPlexCreateFromCellList.html" />
<META NAME="GENERATOR" CONTENT="DOCTEXT">
<TITLE>DMPlexCreateFromCellList</TITLE>
</HEAD>
<BODY BGCOLOR="FFFFFF">
   <div id="version" align=right><b>petsc-3.4.2 2013-07-02</b></div>
<A NAME="DMPlexCreateFromCellList"><H1>DMPlexCreateFromCellList</H1></A>
This takes as input common mesh generator output, a list of the vertices for each cell, and produces a DM 
<H3><FONT COLOR="#CC3333">Synopsis</FONT></H3>
<PRE>
#include "petscdmplex.h"   
PetscErrorCode DMPlexCreateFromCellList(MPI_Comm comm, PetscInt dim, PetscInt numCells, PetscInt numVertices, PetscInt numCorners, PetscBool interpolate, const int cells[], PetscInt spaceDim, const double vertexCoords[], DM *dm)
</PRE>
<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>comm </B></TD><TD>- The communicator
</TD></TR>
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>dim </B></TD><TD>- The topological dimension of the mesh
</TD></TR>
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>numCells </B></TD><TD>- The number of cells
</TD></TR>
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>numVertices </B></TD><TD>- The number of vertices
</TD></TR>
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>numCorners </B></TD><TD>- The number of vertices for each cell
</TD></TR>
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>interpolate </B></TD><TD>- Flag indicating that intermediate mesh entities (faces, edges) should be created automatically
</TD></TR>
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>cells </B></TD><TD>- An array of numCells*numCorners numbers, the vertices for each cell
</TD></TR>
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>spaceDim </B></TD><TD>- The spatial dimension used for coordinates
</TD></TR>
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>vertexCoords </B></TD><TD>- An array of numVertices*spaceDim numbers, the coordinates of each vertex
</TD></TR></TABLE>
<P>
<H3><FONT COLOR="#CC3333">Output Parameter</FONT></H3>
<DT><B>dm </B> -The DM
<br>
<P>
Note: Two triangles sharing a face
<pre>
</pre>
<pre>
       2
</pre>
<pre>
     / | \
</pre>
<pre>
    /  |  \
</pre>
<pre>
   /   |   \
</pre>
<pre>
  0  0 | 1  3
</pre>
<pre>
   \   |   /
</pre>
<pre>
    \  |  /
</pre>
<pre>
     \ | /
</pre>
<pre>
       1
</pre>
would have input
<pre>
 numCells = 2, numVertices = 4
</pre>
<pre>
 cells = [0 1 2  1 3 2]
</pre>
<pre>
</pre>
which would result in the DMPlex
<pre>
</pre>
<pre>
       4
</pre>
<pre>
     / | \
</pre>
<pre>
    /  |  \
</pre>
<pre>
   /   |   \
</pre>
<pre>
  2  0 | 1  5
</pre>
<pre>
   \   |   /
</pre>
<pre>
    \  |  /
</pre>
<pre>
     \ | /
</pre>
<pre>
       3
</pre>
<P>

<P>
<H3><FONT COLOR="#CC3333">See Also</FONT></H3>
 <A HREF="../DM/DMPlexCreate.html#DMPlexCreate">DMPlexCreate</A>()
<BR><P><B><P><B><FONT COLOR="#CC3333">Level:</FONT></B>beginner
<BR><FONT COLOR="#CC3333">Location:</FONT></B><A HREF="../../../src/dm/impls/plex/plexcreate.c.html#DMPlexCreateFromCellList">src/dm/impls/plex/plexcreate.c</A>
<BR><A HREF="./index.html">Index of all DM 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>