File: petscfe.h.html

package info (click to toggle)
petsc 3.22.5%2Bdfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 516,740 kB
  • sloc: ansic: 814,333; cpp: 50,948; python: 37,416; f90: 17,187; javascript: 3,493; makefile: 3,198; sh: 1,502; xml: 619; objc: 445; java: 13; csh: 1
file content (215 lines) | stat: -rw-r--r-- 53,014 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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
<center><a href="https://gitlab.com/petsc/petsc/-/blob/9fe822445bcdd45fb93170ff68fa7403d3f52f09/include/petscfe.h">Actual source code: petscfe.h</a></center><br>

<html>
<head>
<title></title>
<meta name="generator" content="c2html 0.9.6">
<meta name="date" content="2025-03-28T21:10:40+00:00">
</head>

<body bgcolor="#FFFFFF">
<pre width=80>
<a name="line1">  1: </a><font color="#B22222">/*</font>
<a name="line2">  2: </a><font color="#B22222">      Objects which encapsulate finite element spaces and operations</font>
<a name="line3">  3: </a><font color="#B22222">*/</font>
<a name="line4">  4: </a><font color="#A020F0">#pragma once</font>
<a name="line5">  5: </a><font color="#A020F0">#include </font><font color="#666666">"petscmacros.h"</font><font color="#A020F0"></font>
<a name="line6">  6: </a>#include <A href="../include/petscdm.h.html">&lt;petscdm.h&gt;</A>
<a name="line7">  7: </a>#include <A href="../include/petscdt.h.html">&lt;petscdt.h&gt;</A>
<a name="line8">  8: </a>#include <A href="../include/petscfetypes.h.html">&lt;petscfetypes.h&gt;</A>
<a name="line9">  9: </a>#include <A href="../include/petscdstypes.h.html">&lt;petscdstypes.h&gt;</A>
<a name="line10"> 10: </a>#include <A href="../include/petscspace.h.html">&lt;petscspace.h&gt;</A>
<a name="line11"> 11: </a>#include <A href="../include/petscdualspace.h.html">&lt;petscdualspace.h&gt;</A>

<a name="line13"> 13: </a><font color="#B22222">/* SUBMANSEC = FE */</font>

<a name="line15"> 15: </a><font color="#B22222">/*MC</font>
<a name="line16"> 16: </a><font color="#B22222">    <a href="../manualpages/FE/PetscFEGeom.html">PetscFEGeom</a> - Structure for geometric information for `<a href="../manualpages/FE/PetscFE.html">PetscFE</a>`</font>

<a name="line18"> 18: </a><font color="#B22222">    Level: intermediate</font>

<a name="line20"> 20: </a><font color="#B22222">    Note:</font>
<a name="line21"> 21: </a><font color="#B22222">    This is a struct, not a `<a href="../manualpages/Sys/PetscObject.html">PetscObject</a>`</font>

<a name="line23"> 23: </a><font color="#B22222">.seealso: `<a href="../manualpages/FE/PetscFE.html">PetscFE</a>`, `<a href="../manualpages/FE/PetscFEGeomCreate.html">PetscFEGeomCreate</a>()`, `<a href="../manualpages/FE/PetscFEGeomDestroy.html">PetscFEGeomDestroy</a>()`, `<a href="../manualpages/FE/PetscFEGeomGetChunk.html">PetscFEGeomGetChunk</a>()`, `<a href="../manualpages/FE/PetscFEGeomRestoreChunk.html">PetscFEGeomRestoreChunk</a>()`, `<a href="../manualpages/FE/PetscFEGeomGetPoint.html">PetscFEGeomGetPoint</a>()`, `<a href="../manualpages/FE/PetscFEGeomGetCellPoint.html">PetscFEGeomGetCellPoint</a>()`,</font>
<a name="line24"> 24: </a><font color="#B22222">          `<a href="../manualpages/FE/PetscFEGeomComplete.html">PetscFEGeomComplete</a>()`, `<a href="../manualpages/SPACE/PetscSpace.html">PetscSpace</a>`, `<a href="../manualpages/DUALSPACE/PetscDualSpace.html">PetscDualSpace</a>`</font>
<a name="line25"> 25: </a><font color="#B22222">M*/</font>
<a name="line26"> 26: </a><font color="#4169E1"><a name="_n_PetscFEGeom"></a>typedef struct _n_PetscFEGeom </font>{
<a name="line27"> 27: </a>  const <a href="../manualpages/Sys/PetscReal.html">PetscReal</a> *xi;
<a name="line28"> 28: </a>  <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>       *v;     <font color="#B22222">/* v[Nc*Np*dE]:           The first point in each each in real coordinates */</font>
<a name="line29"> 29: </a>  <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>       *J;     <font color="#B22222">/* J[Nc*Np*dE*dE]:        The Jacobian of the map from reference to real coordinates (if nonsquare it is completed with orthogonal columns) */</font>
<a name="line30"> 30: </a>  <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>       *invJ;  <font color="#B22222">/* invJ[Nc*Np*dE*dE]:     The inverse of the Jacobian of the map from reference to real coordinates (if nonsquare it is completed with orthogonal columns) */</font>
<a name="line31"> 31: </a>  <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>       *detJ;  <font color="#B22222">/* detJ[Nc*Np]:           The determinant of J, and if it is non-square its the volume change */</font>
<a name="line32"> 32: </a>  <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>       *n;     <font color="#B22222">/* n[Nc*Np*dE]:           For faces, the normal to the face in real coordinates, outward for the first supporting cell */</font>
<a name="line33"> 33: </a>  <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> (*face)[4];    <font color="#B22222">/* face[Nc][s*2]:         For faces, the local face number (cone index) and orientation for this face in each supporting cell s */</font>
<a name="line34"> 34: </a>  <a href="../manualpages/Sys/PetscReal.html">PetscReal</a> *suppJ[2];    <font color="#B22222">/* sJ[s][Nc*Np*dE*dE]:    For faces, the Jacobian for each supporting cell s */</font>
<a name="line35"> 35: </a>  <a href="../manualpages/Sys/PetscReal.html">PetscReal</a> *suppInvJ[2]; <font color="#B22222">/* sInvJ[s][Nc*Np*dE*dE]: For faces, the inverse Jacobian for each supporting cell s */</font>
<a name="line36"> 36: </a>  <a href="../manualpages/Sys/PetscReal.html">PetscReal</a> *suppDetJ[2]; <font color="#B22222">/* sInvJ[s][Nc*Np*dE*dE]: For faces, the Jacobian determinant for each supporting cell s */</font>
<a name="line37"> 37: </a>  <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>   dim;         <font color="#B22222">/* dim: Topological dimension */</font>
<a name="line38"> 38: </a>  <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>   dimEmbed;    <font color="#B22222">/* dE:  coordinate dimension */</font>
<a name="line39"> 39: </a>  <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>   numCells;    <font color="#B22222">/* Nc:  Number of mesh points represented in the arrays */</font>
<a name="line40"> 40: </a>  <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>   numPoints;   <font color="#B22222">/* Np:  Number of evaluation points represented in the arrays */</font>
<a name="line41"> 41: </a>  <a href="../manualpages/Sys/PetscBool.html">PetscBool</a>  isAffine;    <font color="#B22222">/* Flag for affine transforms */</font>
<a name="line42"> 42: </a>  <a href="../manualpages/Sys/PetscBool.html">PetscBool</a>  isCohesive;  <font color="#B22222">/* Flag for a cohesive cell */</font>
<a name="line43"> 43: </a>} <a href="../manualpages/FE/PetscFEGeom.html">PetscFEGeom</a>;

<a name="line45"> 45: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/DM/PetscFEInitializePackage.html">PetscFEInitializePackage</a>(void)</font></strong>;

<a name="line47"> 47: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/FE/PetscFEGeomCreate.html">PetscFEGeomCreate</a>(<a href="../manualpages/DT/PetscQuadrature.html">PetscQuadrature</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a>, <a href="../manualpages/FE/PetscFEGeom.html">PetscFEGeom</a> **)</font></strong>;
<a name="line48"> 48: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/FE/PetscFEGeomGetChunk.html">PetscFEGeomGetChunk</a>(<a href="../manualpages/FE/PetscFEGeom.html">PetscFEGeom</a> *, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/FE/PetscFEGeom.html">PetscFEGeom</a> **)</font></strong>;
<a name="line49"> 49: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/FE/PetscFEGeomRestoreChunk.html">PetscFEGeomRestoreChunk</a>(<a href="../manualpages/FE/PetscFEGeom.html">PetscFEGeom</a> *, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/FE/PetscFEGeom.html">PetscFEGeom</a> **)</font></strong>;
<a name="line50"> 50: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/FE/PetscFEGeomGetPoint.html">PetscFEGeomGetPoint</a>(<a href="../manualpages/FE/PetscFEGeom.html">PetscFEGeom</a> *, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, const <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>[], <a href="../manualpages/FE/PetscFEGeom.html">PetscFEGeom</a> *)</font></strong>;
<a name="line51"> 51: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/FE/PetscFEGeomGetCellPoint.html">PetscFEGeomGetCellPoint</a>(<a href="../manualpages/FE/PetscFEGeom.html">PetscFEGeom</a> *, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/FE/PetscFEGeom.html">PetscFEGeom</a> *)</font></strong>;
<a name="line52"> 52: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/FE/PetscFEGeomComplete.html">PetscFEGeomComplete</a>(<a href="../manualpages/FE/PetscFEGeom.html">PetscFEGeom</a> *)</font></strong>;
<a name="line53"> 53: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/FE/PetscFEGeomDestroy.html">PetscFEGeomDestroy</a>(<a href="../manualpages/FE/PetscFEGeom.html">PetscFEGeom</a> **)</font></strong>;

<a name="line55"> 55: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/DUALSPACE/PetscDualSpaceApply.html">PetscDualSpaceApply</a>(<a href="../manualpages/DUALSPACE/PetscDualSpace.html">PetscDualSpace</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>, <a href="../manualpages/FE/PetscFEGeom.html">PetscFEGeom</a> *, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> (*)(<a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>, const <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>[], <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a> *, void *), void *, <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a> *)</font></strong>;
<a name="line56"> 56: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/DUALSPACE/PetscDualSpaceApplyDefault.html">PetscDualSpaceApplyDefault</a>(<a href="../manualpages/DUALSPACE/PetscDualSpace.html">PetscDualSpace</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>, <a href="../manualpages/FE/PetscFEGeom.html">PetscFEGeom</a> *, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> (*)(<a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>, const <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>[], <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a> *, void *), void *, <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a> *)</font></strong>;

<a name="line58"> 58: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/DUALSPACE/PetscDualSpaceTransform.html">PetscDualSpaceTransform</a>(<a href="../manualpages/DUALSPACE/PetscDualSpace.html">PetscDualSpace</a>, <a href="../manualpages/DUALSPACE/PetscDualSpaceTransformType.html">PetscDualSpaceTransformType</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a>, <a href="../manualpages/FE/PetscFEGeom.html">PetscFEGeom</a> *, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a>[])</font></strong>;
<a name="line59"> 59: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/DUALSPACE/PetscDualSpaceTransformGradient.html">PetscDualSpaceTransformGradient</a>(<a href="../manualpages/DUALSPACE/PetscDualSpace.html">PetscDualSpace</a>, <a href="../manualpages/DUALSPACE/PetscDualSpaceTransformType.html">PetscDualSpaceTransformType</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a>, <a href="../manualpages/FE/PetscFEGeom.html">PetscFEGeom</a> *, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a>[])</font></strong>;
<a name="line60"> 60: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/DUALSPACE/PetscDualSpaceTransformHessian.html">PetscDualSpaceTransformHessian</a>(<a href="../manualpages/DUALSPACE/PetscDualSpace.html">PetscDualSpace</a>, <a href="../manualpages/DUALSPACE/PetscDualSpaceTransformType.html">PetscDualSpaceTransformType</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a>, <a href="../manualpages/FE/PetscFEGeom.html">PetscFEGeom</a> *, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a>[])</font></strong>;
<a name="line61"> 61: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/DUALSPACE/PetscDualSpacePullback.html">PetscDualSpacePullback</a>(<a href="../manualpages/DUALSPACE/PetscDualSpace.html">PetscDualSpace</a>, <a href="../manualpages/FE/PetscFEGeom.html">PetscFEGeom</a> *, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a>[])</font></strong>;
<a name="line62"> 62: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/DUALSPACE/PetscDualSpacePushforward.html">PetscDualSpacePushforward</a>(<a href="../manualpages/DUALSPACE/PetscDualSpace.html">PetscDualSpace</a>, <a href="../manualpages/FE/PetscFEGeom.html">PetscFEGeom</a> *, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a>[])</font></strong>;
<a name="line63"> 63: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/DUALSPACE/PetscDualSpacePushforwardGradient.html">PetscDualSpacePushforwardGradient</a>(<a href="../manualpages/DUALSPACE/PetscDualSpace.html">PetscDualSpace</a>, <a href="../manualpages/FE/PetscFEGeom.html">PetscFEGeom</a> *, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a>[])</font></strong>;
<a name="line64"> 64: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/DUALSPACE/PetscDualSpacePushforwardHessian.html">PetscDualSpacePushforwardHessian</a>(<a href="../manualpages/DUALSPACE/PetscDualSpace.html">PetscDualSpace</a>, <a href="../manualpages/FE/PetscFEGeom.html">PetscFEGeom</a> *, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a>[])</font></strong>;

<a name="line66"> 66: </a>PETSC_EXTERN <a href="../manualpages/Sys/PetscClassId.html">PetscClassId</a> PETSCFE_CLASSID;

<a name="line68"> 68: </a><font color="#B22222">/*J</font>
<a name="line69"> 69: </a><font color="#B22222">  <a href="../manualpages/FE/PetscFEType.html">PetscFEType</a> - String with the name of a PETSc finite element space</font>

<a name="line71"> 71: </a><font color="#B22222">  Level: beginner</font>

<a name="line73"> 73: </a><font color="#B22222">  Note:</font>
<a name="line74"> 74: </a><font color="#B22222">  Currently, the classes are concerned with the implementation of element integration</font>

<a name="line76"> 76: </a><font color="#B22222">.seealso: `<a href="../manualpages/FE/PetscFESetType.html">PetscFESetType</a>()`, `<a href="../manualpages/FE/PetscFE.html">PetscFE</a>`</font>
<a name="line77"> 77: </a><font color="#B22222">J*/</font>
<a name="line78"> 78: </a><font color="#4169E1">typedef const char *<a href="../manualpages/FE/PetscFEType.html">PetscFEType</a>;</font>
<a name="line79"> 79: </a><strong><font color="#228B22">#define <a href="../manualpages/FE/PETSCFEBASIC.html">PETSCFEBASIC</a>     </font><font color="#666666">"basic"</font><font color="#228B22"></font></strong>
<a name="line80"> 80: </a><strong><font color="#228B22">#define <a href="../manualpages/FE/PETSCFEOPENCL.html">PETSCFEOPENCL</a>    </font><font color="#666666">"opencl"</font><font color="#228B22"></font></strong>
<a name="line81"> 81: </a><strong><font color="#228B22">#define <a href="../manualpages/FE/PETSCFECOMPOSITE.html">PETSCFECOMPOSITE</a> </font><font color="#666666">"composite"</font><font color="#228B22"></font></strong>
<a name="line82"> 82: </a><strong><font color="#228B22">#define <a href="../manualpages/FE/PETSCFEVECTOR.html">PETSCFEVECTOR</a>    </font><font color="#666666">"vector"</font><font color="#228B22"></font></strong>

<a name="line84"> 84: </a>PETSC_EXTERN <a href="../manualpages/Sys/PetscFunctionList.html">PetscFunctionList</a> PetscFEList;
<a name="line85"> 85: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a>    <a href="../manualpages/FE/PetscFECreate.html">PetscFECreate</a>(<a href="../manualpages/Sys/MPI_Comm.html">MPI_Comm</a>, <a href="../manualpages/FE/PetscFE.html">PetscFE</a> *)</font></strong>;
<a name="line86"> 86: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a>    <a href="../manualpages/FE/PetscFEDestroy.html">PetscFEDestroy</a>(<a href="../manualpages/FE/PetscFE.html">PetscFE</a> *)</font></strong>;
<a name="line87"> 87: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a>    <a href="../manualpages/FE/PetscFESetType.html">PetscFESetType</a>(<a href="../manualpages/FE/PetscFE.html">PetscFE</a>, <a href="../manualpages/FE/PetscFEType.html">PetscFEType</a>)</font></strong>;
<a name="line88"> 88: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a>    <a href="../manualpages/FE/PetscFEGetType.html">PetscFEGetType</a>(<a href="../manualpages/FE/PetscFE.html">PetscFE</a>, <a href="../manualpages/FE/PetscFEType.html">PetscFEType</a> *)</font></strong>;
<a name="line89"> 89: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a>    <a href="../manualpages/FE/PetscFESetUp.html">PetscFESetUp</a>(<a href="../manualpages/FE/PetscFE.html">PetscFE</a>)</font></strong>;
<a name="line90"> 90: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a>    <a href="../manualpages/FE/PetscFESetFromOptions.html">PetscFESetFromOptions</a>(<a href="../manualpages/FE/PetscFE.html">PetscFE</a>)</font></strong>;
<a name="line91"> 91: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a>    <a href="../manualpages/FE/PetscFEViewFromOptions.html">PetscFEViewFromOptions</a>(<a href="../manualpages/FE/PetscFE.html">PetscFE</a>, <a href="../manualpages/Sys/PetscObject.html">PetscObject</a>, const char[])</font></strong>;
<a name="line92"> 92: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a>    <a href="../manualpages/FE/PetscFESetName.html">PetscFESetName</a>(<a href="../manualpages/FE/PetscFE.html">PetscFE</a>, const char[])</font></strong>;
<a name="line93"> 93: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a>    <a href="../manualpages/FE/PetscFECreateVector.html">PetscFECreateVector</a>(<a href="../manualpages/FE/PetscFE.html">PetscFE</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a>, <a href="../manualpages/FE/PetscFE.html">PetscFE</a> *)</font></strong>;

<a name="line95"> 95: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/FE/PetscFEView.html">PetscFEView</a>(<a href="../manualpages/FE/PetscFE.html">PetscFE</a>, <a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>)</font></strong>;
<a name="line96"> 96: </a><strong><font color="#4169E1"><a name="PetscFERegister"></a>PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/FE/PetscFERegister.html">PetscFERegister</a>(const char[], <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> (*)(<a href="../manualpages/FE/PetscFE.html">PetscFE</a>)</font></strong>);
<a name="line97"> 97: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> PetscFERegisterDestroy(void)</font></strong>;
<a name="line98"> 98: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/FE/PetscFECreateDefault.html">PetscFECreateDefault</a>(<a href="../manualpages/Sys/MPI_Comm.html">MPI_Comm</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a>, const char[], <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/FE/PetscFE.html">PetscFE</a> *)</font></strong>;
<a name="line99"> 99: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/FE/PetscFECreateByCell.html">PetscFECreateByCell</a>(<a href="../manualpages/Sys/MPI_Comm.html">MPI_Comm</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/DM/DMPolytopeType.html">DMPolytopeType</a>, const char[], <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/FE/PetscFE.html">PetscFE</a> *)</font></strong>;
<a name="line100">100: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/FE/PetscFECreateLagrange.html">PetscFECreateLagrange</a>(<a href="../manualpages/Sys/MPI_Comm.html">MPI_Comm</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/FE/PetscFE.html">PetscFE</a> *)</font></strong>;
<a name="line101">101: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/FE/PetscFECreateLagrangeByCell.html">PetscFECreateLagrangeByCell</a>(<a href="../manualpages/Sys/MPI_Comm.html">MPI_Comm</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/DM/DMPolytopeType.html">DMPolytopeType</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/FE/PetscFE.html">PetscFE</a> *)</font></strong>;
<a name="line102">102: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/FE/PetscFECreateFromSpaces.html">PetscFECreateFromSpaces</a>(<a href="../manualpages/SPACE/PetscSpace.html">PetscSpace</a>, <a href="../manualpages/DUALSPACE/PetscDualSpace.html">PetscDualSpace</a>, <a href="../manualpages/DT/PetscQuadrature.html">PetscQuadrature</a>, <a href="../manualpages/DT/PetscQuadrature.html">PetscQuadrature</a>, <a href="../manualpages/FE/PetscFE.html">PetscFE</a> *)</font></strong>;
<a name="line103">103: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/FE/PetscFELimitDegree.html">PetscFELimitDegree</a>(<a href="../manualpages/FE/PetscFE.html">PetscFE</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/FE/PetscFE.html">PetscFE</a> *)</font></strong>;

<a name="line105">105: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/FE/PetscFEGetDimension.html">PetscFEGetDimension</a>(<a href="../manualpages/FE/PetscFE.html">PetscFE</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> *)</font></strong>;
<a name="line106">106: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/FE/PetscFEGetSpatialDimension.html">PetscFEGetSpatialDimension</a>(<a href="../manualpages/FE/PetscFE.html">PetscFE</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> *)</font></strong>;
<a name="line107">107: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/FE/PetscFESetNumComponents.html">PetscFESetNumComponents</a>(<a href="../manualpages/FE/PetscFE.html">PetscFE</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>)</font></strong>;
<a name="line108">108: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/FE/PetscFEGetNumComponents.html">PetscFEGetNumComponents</a>(<a href="../manualpages/FE/PetscFE.html">PetscFE</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> *)</font></strong>;
<a name="line109">109: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/FE/PetscFEGetTileSizes.html">PetscFEGetTileSizes</a>(<a href="../manualpages/FE/PetscFE.html">PetscFE</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> *, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> *, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> *, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> *)</font></strong>;
<a name="line110">110: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/FE/PetscFESetTileSizes.html">PetscFESetTileSizes</a>(<a href="../manualpages/FE/PetscFE.html">PetscFE</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>)</font></strong>;
<a name="line111">111: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/FE/PetscFESetBasisSpace.html">PetscFESetBasisSpace</a>(<a href="../manualpages/FE/PetscFE.html">PetscFE</a>, <a href="../manualpages/SPACE/PetscSpace.html">PetscSpace</a>)</font></strong>;
<a name="line112">112: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/FE/PetscFEGetBasisSpace.html">PetscFEGetBasisSpace</a>(<a href="../manualpages/FE/PetscFE.html">PetscFE</a>, <a href="../manualpages/SPACE/PetscSpace.html">PetscSpace</a> *)</font></strong>;
<a name="line113">113: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/FE/PetscFESetDualSpace.html">PetscFESetDualSpace</a>(<a href="../manualpages/FE/PetscFE.html">PetscFE</a>, <a href="../manualpages/DUALSPACE/PetscDualSpace.html">PetscDualSpace</a>)</font></strong>;
<a name="line114">114: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/FE/PetscFEGetDualSpace.html">PetscFEGetDualSpace</a>(<a href="../manualpages/FE/PetscFE.html">PetscFE</a>, <a href="../manualpages/DUALSPACE/PetscDualSpace.html">PetscDualSpace</a> *)</font></strong>;
<a name="line115">115: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/FE/PetscFESetQuadrature.html">PetscFESetQuadrature</a>(<a href="../manualpages/FE/PetscFE.html">PetscFE</a>, <a href="../manualpages/DT/PetscQuadrature.html">PetscQuadrature</a>)</font></strong>;
<a name="line116">116: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/FE/PetscFEGetQuadrature.html">PetscFEGetQuadrature</a>(<a href="../manualpages/FE/PetscFE.html">PetscFE</a>, <a href="../manualpages/DT/PetscQuadrature.html">PetscQuadrature</a> *)</font></strong>;
<a name="line117">117: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/FE/PetscFESetFaceQuadrature.html">PetscFESetFaceQuadrature</a>(<a href="../manualpages/FE/PetscFE.html">PetscFE</a>, <a href="../manualpages/DT/PetscQuadrature.html">PetscQuadrature</a>)</font></strong>;
<a name="line118">118: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/FE/PetscFEGetFaceQuadrature.html">PetscFEGetFaceQuadrature</a>(<a href="../manualpages/FE/PetscFE.html">PetscFE</a>, <a href="../manualpages/DT/PetscQuadrature.html">PetscQuadrature</a> *)</font></strong>;
<a name="line119">119: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/FE/PetscFECopyQuadrature.html">PetscFECopyQuadrature</a>(<a href="../manualpages/FE/PetscFE.html">PetscFE</a>, <a href="../manualpages/FE/PetscFE.html">PetscFE</a>)</font></strong>;
<a name="line120">120: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/FE/PetscFEGetNumDof.html">PetscFEGetNumDof</a>(<a href="../manualpages/FE/PetscFE.html">PetscFE</a>, const <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> **)</font></strong>;

<a name="line122">122: </a><font color="#B22222">/* TODO: Need a function to reuse the memory when retabulating the same FE at different points */</font>
<a name="line123">123: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/FE/PetscFEGetCellTabulation.html">PetscFEGetCellTabulation</a>(<a href="../manualpages/FE/PetscFE.html">PetscFE</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, PetscTabulation *)</font></strong>;
<a name="line124">124: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/FE/PetscFEGetFaceTabulation.html">PetscFEGetFaceTabulation</a>(<a href="../manualpages/FE/PetscFE.html">PetscFE</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, PetscTabulation *)</font></strong>;
<a name="line125">125: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/FE/PetscFEGetFaceCentroidTabulation.html">PetscFEGetFaceCentroidTabulation</a>(<a href="../manualpages/FE/PetscFE.html">PetscFE</a>, PetscTabulation *)</font></strong>;
<a name="line126">126: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/FE/PetscFECreateTabulation.html">PetscFECreateTabulation</a>(<a href="../manualpages/FE/PetscFE.html">PetscFE</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, const <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>[], <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, PetscTabulation *)</font></strong>;
<a name="line127">127: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/FE/PetscFEComputeTabulation.html">PetscFEComputeTabulation</a>(<a href="../manualpages/FE/PetscFE.html">PetscFE</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, const <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>[], <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, PetscTabulation)</font></strong>;
<a name="line128">128: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/FE/PetscTabulationDestroy.html">PetscTabulationDestroy</a>(PetscTabulation *)</font></strong>;

<a name="line130">130: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/FE/PetscFERefine.html">PetscFERefine</a>(<a href="../manualpages/FE/PetscFE.html">PetscFE</a>, <a href="../manualpages/FE/PetscFE.html">PetscFE</a> *)</font></strong>;
<a name="line131">131: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/FE/PetscFEGetHeightSubspace.html">PetscFEGetHeightSubspace</a>(<a href="../manualpages/FE/PetscFE.html">PetscFE</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/FE/PetscFE.html">PetscFE</a> *)</font></strong>;

<a name="line133">133: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> PetscFECreateCellGeometry(<a href="../manualpages/FE/PetscFE.html">PetscFE</a>, <a href="../manualpages/DT/PetscQuadrature.html">PetscQuadrature</a>, <a href="../manualpages/FE/PetscFEGeom.html">PetscFEGeom</a> *)</font></strong>;
<a name="line134">134: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> PetscFEDestroyCellGeometry(<a href="../manualpages/FE/PetscFE.html">PetscFE</a>, <a href="../manualpages/FE/PetscFEGeom.html">PetscFEGeom</a> *)</font></strong>;
<a name="line135">135: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/FE/PetscFEPushforward.html">PetscFEPushforward</a>(<a href="../manualpages/FE/PetscFE.html">PetscFE</a>, <a href="../manualpages/FE/PetscFEGeom.html">PetscFEGeom</a> *, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a>[])</font></strong>;
<a name="line136">136: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/FE/PetscFEPushforwardGradient.html">PetscFEPushforwardGradient</a>(<a href="../manualpages/FE/PetscFE.html">PetscFE</a>, <a href="../manualpages/FE/PetscFEGeom.html">PetscFEGeom</a> *, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a>[])</font></strong>;
<a name="line137">137: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/FE/PetscFEPushforwardHessian.html">PetscFEPushforwardHessian</a>(<a href="../manualpages/FE/PetscFE.html">PetscFE</a>, <a href="../manualpages/FE/PetscFEGeom.html">PetscFEGeom</a> *, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a>[])</font></strong>;

<a name="line139">139: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/FE/PetscFEIntegrate.html">PetscFEIntegrate</a>(<a href="../manualpages/DT/PetscDS.html">PetscDS</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/FE/PetscFEGeom.html">PetscFEGeom</a> *, const <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a>[], <a href="../manualpages/DT/PetscDS.html">PetscDS</a>, const <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a>[], <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a>[])</font></strong>;
<a name="line140">140: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/FE/PetscFEIntegrateBd.html">PetscFEIntegrateBd</a>(<a href="../manualpages/DT/PetscDS.html">PetscDS</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, void (*)(<a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, const <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>[], const <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>[], const <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a>[], const <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a>[], const <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a>[], const <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>[], const <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>[], const <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a>[], const <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a>[], const <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a>[], <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>, const <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>[], const <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>[], <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, const <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a>[], <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a>[]), <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/FE/PetscFEGeom.html">PetscFEGeom</a> *, const <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a>[], <a href="../manualpages/DT/PetscDS.html">PetscDS</a>, const <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a>[], <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a>[])</font></strong>;
<a name="line141">141: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/FE/PetscFEIntegrateResidual.html">PetscFEIntegrateResidual</a>(<a href="../manualpages/DT/PetscDS.html">PetscDS</a>, <a href="../manualpages/DT/PetscFormKey.html">PetscFormKey</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/FE/PetscFEGeom.html">PetscFEGeom</a> *, const <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a>[], const <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a>[], <a href="../manualpages/DT/PetscDS.html">PetscDS</a>, const <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a>[], <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>, <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a>[])</font></strong>;
<a name="line142">142: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/FE/PetscFEIntegrateBdResidual.html">PetscFEIntegrateBdResidual</a>(<a href="../manualpages/DT/PetscDS.html">PetscDS</a>, <a href="../manualpages/DT/PetscWeakForm.html">PetscWeakForm</a>, <a href="../manualpages/DT/PetscFormKey.html">PetscFormKey</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/FE/PetscFEGeom.html">PetscFEGeom</a> *, const <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a>[], const <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a>[], <a href="../manualpages/DT/PetscDS.html">PetscDS</a>, const <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a>[], <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>, <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a>[])</font></strong>;
<a name="line143">143: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/FE/PetscFEIntegrateHybridResidual.html">PetscFEIntegrateHybridResidual</a>(<a href="../manualpages/DT/PetscDS.html">PetscDS</a>, <a href="../manualpages/DT/PetscDS.html">PetscDS</a>, <a href="../manualpages/DT/PetscFormKey.html">PetscFormKey</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/FE/PetscFEGeom.html">PetscFEGeom</a> *, const <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a>[], const <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a>[], <a href="../manualpages/DT/PetscDS.html">PetscDS</a>, const <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a>[], <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>, <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a>[])</font></strong>;
<a name="line144">144: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/FE/PetscFEIntegrateJacobian.html">PetscFEIntegrateJacobian</a>(<a href="../manualpages/DT/PetscDS.html">PetscDS</a>, <a href="../manualpages/FE/PetscFEJacobianType.html">PetscFEJacobianType</a>, <a href="../manualpages/DT/PetscFormKey.html">PetscFormKey</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/FE/PetscFEGeom.html">PetscFEGeom</a> *, const <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a>[], const <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a>[], <a href="../manualpages/DT/PetscDS.html">PetscDS</a>, const <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a>[], <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>, <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a>[])</font></strong>;
<a name="line145">145: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/FE/PetscFEIntegrateBdJacobian.html">PetscFEIntegrateBdJacobian</a>(<a href="../manualpages/DT/PetscDS.html">PetscDS</a>, <a href="../manualpages/DT/PetscWeakForm.html">PetscWeakForm</a>, <a href="../manualpages/FE/PetscFEJacobianType.html">PetscFEJacobianType</a>, <a href="../manualpages/DT/PetscFormKey.html">PetscFormKey</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/FE/PetscFEGeom.html">PetscFEGeom</a> *, const <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a>[], const <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a>[], <a href="../manualpages/DT/PetscDS.html">PetscDS</a>, const <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a>[], <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>, <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a>[])</font></strong>;
<a name="line146">146: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/FE/PetscFEIntegrateHybridJacobian.html">PetscFEIntegrateHybridJacobian</a>(<a href="../manualpages/DT/PetscDS.html">PetscDS</a>, <a href="../manualpages/DT/PetscDS.html">PetscDS</a>, <a href="../manualpages/FE/PetscFEJacobianType.html">PetscFEJacobianType</a>, <a href="../manualpages/DT/PetscFormKey.html">PetscFormKey</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/FE/PetscFEGeom.html">PetscFEGeom</a> *, const <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a>[], const <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a>[], <a href="../manualpages/DT/PetscDS.html">PetscDS</a>, const <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a>[], <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>, <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a>[])</font></strong>;

<a name="line148">148: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/FE/PetscFECompositeGetMapping.html">PetscFECompositeGetMapping</a>(<a href="../manualpages/FE/PetscFE.html">PetscFE</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> *, const <a href="../manualpages/Sys/PetscReal.html">PetscReal</a> *[], const <a href="../manualpages/Sys/PetscReal.html">PetscReal</a> *[], const <a href="../manualpages/Sys/PetscReal.html">PetscReal</a> *[])</font></strong>;

<a name="line150">150: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> PetscFECreateHeightTrace(<a href="../manualpages/FE/PetscFE.html">PetscFE</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/FE/PetscFE.html">PetscFE</a> *)</font></strong>;
<a name="line151">151: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> PetscFECreatePointTrace(<a href="../manualpages/FE/PetscFE.html">PetscFE</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/FE/PetscFE.html">PetscFE</a> *)</font></strong>;

<a name="line153">153: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/FE/PetscFEOpenCLSetRealType.html">PetscFEOpenCLSetRealType</a>(<a href="../manualpages/FE/PetscFE.html">PetscFE</a>, <a href="../manualpages/Sys/PetscDataType.html">PetscDataType</a>)</font></strong>;
<a name="line154">154: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/FE/PetscFEOpenCLGetRealType.html">PetscFEOpenCLGetRealType</a>(<a href="../manualpages/FE/PetscFE.html">PetscFE</a>, <a href="../manualpages/Sys/PetscDataType.html">PetscDataType</a> *)</font></strong>;

<a name="line156">156: </a><font color="#A020F0">#ifdef PETSC_HAVE_LIBCEED</font>

<a name="line158">158: </a><font color="#A020F0">  #ifndef PLEXFE_QFUNCTION</font>
<a name="line159">159: </a><strong><font color="#228B22">    #define PLEXFE_QFUNCTION(fname, f0_name, f1_name) \</font></strong>
<a name="line160">160: </a><strong><font color="#228B22">      CEED_QFUNCTION(PlexQFunction##fname)(void *ctx, const CeedInt Q, const CeedScalar *const *in, CeedScalar *const *out) \</font></strong>
<a name="line161">161: </a><strong><font color="#228B22">      { \</font></strong>
<a name="line162">162: </a><strong><font color="#228B22">        const CeedScalar *u = in[0], *du = in[1], *qdata = in[2]; \</font></strong>
<a name="line163">163: </a><strong><font color="#228B22">        CeedScalar       *v = out[0], *dv = out[1]; \</font></strong>
<a name="line164">164: </a><strong><font color="#228B22">        const <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>    Nc   = 1; \</font></strong>
<a name="line165">165: </a><strong><font color="#228B22">        const <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>    cdim = 2; \</font></strong>
<a name="line166">166: </a><strong><font color="#228B22">\</font></strong>
<a name="line167">167: </a><strong><font color="#228B22">        CeedPragmaSIMD for (CeedInt i = 0; i &lt; Q; ++i) \</font></strong>
<a name="line168">168: </a><strong><font color="#228B22">        { \</font></strong>
<a name="line169">169: </a><strong><font color="#228B22">          const <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>   uOff[2]    = {0, Nc}; \</font></strong>
<a name="line170">170: </a><strong><font color="#228B22">          const <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>   uOff_x[2]  = {0, Nc * cdim}; \</font></strong>
<a name="line171">171: </a><strong><font color="#228B22">          const CeedScalar x[2]       = {qdata[i + Q * 1], qdata[i + Q * 2]}; \</font></strong>
<a name="line172">172: </a><strong><font color="#228B22">          const CeedScalar invJ[2][2] = { \</font></strong>
<a name="line173">173: </a><strong><font color="#228B22">            {qdata[i + Q * 3], qdata[i + Q * 5]}, \</font></strong>
<a name="line174">174: </a><strong><font color="#228B22">            {qdata[i + Q * 4], qdata[i + Q * 6]} \</font></strong>
<a name="line175">175: </a><strong><font color="#228B22">          }; \</font></strong>
<a name="line176">176: </a><strong><font color="#228B22">          const CeedScalar u_x[2] = {invJ[0][0] * du[i + Q * 0] + invJ[1][0] * du[i + Q * 1], invJ[0][1] * du[i + Q * 0] + invJ[1][1] * du[i + Q * 1]}; \</font></strong>
<a name="line177">177: </a><strong><font color="#228B22">          <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a>      f0[Nc]; \</font></strong>
<a name="line178">178: </a><strong><font color="#228B22">          <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a>      f1[Nc * cdim]; \</font></strong>
<a name="line179">179: </a><strong><font color="#228B22">\</font></strong>
<a name="line180">180: </a><strong><font color="#228B22">          for (<a href="../manualpages/Sys/PetscInt.html">PetscInt</a> k = 0; k &lt; Nc; ++k) f0[k] = 0; \</font></strong>
<a name="line181">181: </a><strong><font color="#228B22">          for (<a href="../manualpages/Sys/PetscInt.html">PetscInt</a> k = 0; k &lt; Nc * cdim; ++k) f1[k] = 0; \</font></strong>
<a name="line182">182: </a><strong><font color="#228B22">          f0_name(2, 1, 0, uOff, uOff_x, u, NULL, u_x, NULL, NULL, NULL, NULL, NULL, 0.0, x, 0, NULL, f0); \</font></strong>
<a name="line183">183: </a><strong><font color="#228B22">          f1_name(2, 1, 0, uOff, uOff_x, u, NULL, u_x, NULL, NULL, NULL, NULL, NULL, 0.0, x, 0, NULL, f1); \</font></strong>
<a name="line184">184: </a><strong><font color="#228B22">\</font></strong>
<a name="line185">185: </a><strong><font color="#228B22">          dv[i + Q * 0] = qdata[i + Q * 0] * (invJ[0][0] * f1[0] + invJ[0][1] * f1[1]); \</font></strong>
<a name="line186">186: </a><strong><font color="#228B22">          dv[i + Q * 1] = qdata[i + Q * 0] * (invJ[1][0] * f1[0] + invJ[1][1] * f1[1]); \</font></strong>
<a name="line187">187: </a><strong><font color="#228B22">          v[i]          = qdata[i + Q * 0] * f0[0]; \</font></strong>
<a name="line188">188: </a><strong><font color="#228B22">        } \</font></strong>
<a name="line189">189: </a><strong><font color="#228B22">        return CEED_ERROR_SUCCESS; \</font></strong>
<a name="line190">190: </a><strong><font color="#228B22">      }</font></strong>
<a name="line191">191: </a><font color="#A020F0">  #endif</font>

<a name="line193">193: </a><font color="#A020F0">#else</font>

<a name="line195">195: </a><font color="#A020F0">  #ifndef PLEXFE_QFUNCTION</font>
<a name="line196">196: </a><strong><font color="#228B22">    #define PLEXFE_QFUNCTION(fname, f0_name, f1_name)</font></strong>
<a name="line197">197: </a><font color="#A020F0">  #endif</font>

<a name="line199">199: </a><font color="#A020F0">#endif</font>
</pre>
</body>

</html>