File: petscdstypes.h.html

package info (click to toggle)
petsc 3.24.1%2Bdfsg1-1exp1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 524,004 kB
  • sloc: ansic: 762,842; cpp: 52,564; python: 39,546; f90: 17,688; javascript: 3,493; makefile: 3,206; sh: 1,508; xml: 619; objc: 445; java: 13; csh: 1
file content (323 lines) | stat: -rw-r--r-- 43,992 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
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
<center><a href="https://gitlab.com/petsc/petsc/-/blob/b522cb8c110832b61be366220eb7433134308289/include/petscdstypes.h">Actual source code: petscdstypes.h</a></center><br>

<html>
<head>
<title></title>
<meta name="generator" content="c2html 0.9.6">
<meta name="date" content="2025-10-29T18:33:44+00:00">
</head>

<body bgcolor="#FFFFFF">
<pre width=80>
<a name="line1">  1: </a><font color="#A020F0">#pragma once</font>

<a name="line3">  3: </a>#include <A href="../include/petscdmlabel.h.html">&lt;petscdmlabel.h&gt;</A>

<a name="line5">  5: </a><font color="#B22222">/* MANSEC = <a href="../manualpages/DM/DM.html">DM</a> */</font>
<a name="line6">  6: </a><font color="#B22222">/* SUBMANSEC = DT */</font>

<a name="line8">  8: </a><font color="#B22222">/*S</font>
<a name="line9">  9: </a><font color="#B22222">  <a href="../manualpages/DT/PetscDS.html">PetscDS</a> - PETSc object that manages a discrete system, which is a set of discretizations + continuum equations from a `<a href="../manualpages/DT/PetscWeakForm.html">PetscWeakForm</a>`</font>

<a name="line11"> 11: </a><font color="#B22222">  Level: intermediate</font>

<a name="line13"> 13: </a><font color="#B22222">.seealso: `<a href="../manualpages/DT/PetscDSCreate.html">PetscDSCreate</a>()`, `<a href="../manualpages/DT/PetscDSSetType.html">PetscDSSetType</a>()`, `<a href="../manualpages/DT/PetscDSType.html">PetscDSType</a>`, `<a href="../manualpages/DT/PetscWeakForm.html">PetscWeakForm</a>`, `<a href="../manualpages/FE/PetscFECreate.html">PetscFECreate</a>()`, `<a href="../manualpages/FV/PetscFVCreate.html">PetscFVCreate</a>()`</font>
<a name="line14"> 14: </a><font color="#B22222">S*/</font>
<a name="line15"> 15: </a><font color="#4169E1">typedef struct _p_PetscDS *<a href="../manualpages/DT/PetscDS.html">PetscDS</a>;</font>

<a name="line17"> 17: </a><font color="#B22222">/*S</font>
<a name="line18"> 18: </a><font color="#B22222">  <a href="../manualpages/DT/PetscWeakForm.html">PetscWeakForm</a> - PETSc object that manages a sets of pointwise functions defining a system of equations</font>

<a name="line20"> 20: </a><font color="#B22222">  Level: intermediate</font>

<a name="line22"> 22: </a><font color="#B22222">.seealso: `<a href="../manualpages/DT/PetscWeakFormCreate.html">PetscWeakFormCreate</a>()`, `<a href="../manualpages/DT/PetscDS.html">PetscDS</a>`, `<a href="../manualpages/FE/PetscFECreate.html">PetscFECreate</a>()`, `<a href="../manualpages/FV/PetscFVCreate.html">PetscFVCreate</a>()`</font>
<a name="line23"> 23: </a><font color="#B22222">S*/</font>
<a name="line24"> 24: </a><font color="#4169E1">typedef struct _p_PetscWeakForm *<a href="../manualpages/DT/PetscWeakForm.html">PetscWeakForm</a>;</font>

<a name="line26"> 26: </a><font color="#B22222">/*S</font>
<a name="line27"> 27: </a><font color="#B22222">  <a href="../manualpages/DT/PetscFormKey.html">PetscFormKey</a> - This key indicates how to use a set of pointwise functions defining part of a system of equations</font>

<a name="line29"> 29: </a><font color="#B22222">  The subdomain on which to integrate is specified by (label, value), the test function field by (field), and the</font>
<a name="line30"> 30: </a><font color="#B22222">  piece of the equation by (part). For example, LHS = 0 and RHS = 1 in IMEX methods. More pieces can be present for</font>
<a name="line31"> 31: </a><font color="#B22222">  operator splitting methods.</font>

<a name="line33"> 33: </a><font color="#B22222">  Level: intermediate</font>

<a name="line35"> 35: </a><font color="#B22222">  Note:</font>
<a name="line36"> 36: </a><font color="#B22222">  This is a struct, not a `<a href="../manualpages/Sys/PetscObject.html">PetscObject</a>`</font>

<a name="line38"> 38: </a><font color="#B22222">.seealso: `<a href="../manualpages/SNES/DMPlexSNESComputeResidualFEM.html">DMPlexSNESComputeResidualFEM</a>()`, `<a href="../manualpages/SNES/DMPlexSNESComputeJacobianFEM.html">DMPlexSNESComputeJacobianFEM</a>()`, `<a href="../manualpages/SNES/DMPlexSNESComputeBoundaryFEM.html">DMPlexSNESComputeBoundaryFEM</a>()`</font>
<a name="line39"> 39: </a><font color="#B22222">S*/</font>
<a name="line40"> 40: </a><font color="#4169E1">typedef</font> <font color="#4169E1">struct</font> {
<a name="line41"> 41: </a>  <a href="../manualpages/DM/DMLabel.html">DMLabel</a>  label; <font color="#B22222">/* The (label, value) select a subdomain */</font>
<a name="line42"> 42: </a>  <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> value;
<a name="line43"> 43: </a>  <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> field; <font color="#B22222">/* Selects the field for the test function */</font>
<a name="line44"> 44: </a>  <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> part;  <font color="#B22222">/* Selects the equation part. For example, LHS = 0 and RHS = 1 in IMEX methods. More pieces can be present for operator splitting methods. */</font>
<a name="line45"> 45: </a>} <a href="../manualpages/DT/PetscFormKey.html">PetscFormKey</a>;

<a name="line47"> 47: </a><font color="#B22222">/*E</font>
<a name="line48"> 48: </a><font color="#B22222">  <a href="../manualpages/DT/PetscWeakFormKind.html">PetscWeakFormKind</a> - The kind of weak form. The specific forms are given in the documentation for the integraton functions.</font>

<a name="line50"> 50: </a><font color="#B22222">  Values:</font>
<a name="line51"> 51: </a><font color="#B22222">+ OBJECTIVE                  - Objective form</font>
<a name="line52"> 52: </a><font color="#B22222">. F0, F1                     - Residual forms</font>
<a name="line53"> 53: </a><font color="#B22222">. G0, G1, G2, G3             - Jacobian forms</font>
<a name="line54"> 54: </a><font color="#B22222">. GP0, GP1, GP2, GP3         - Jacobian forms used to construct the preconditioner</font>
<a name="line55"> 55: </a><font color="#B22222">. GT0, GT1, GT2, GT3         - Dynamic Jacobian matrix forms</font>
<a name="line56"> 56: </a><font color="#B22222">. BDF0, BDF1                 - Boundary Residual forms</font>
<a name="line57"> 57: </a><font color="#B22222">. BDG0, BDG1, BDG2, BDG3     - Jacobian forms</font>
<a name="line58"> 58: </a><font color="#B22222">. BDGP0, BDGP1, BDGP2, BDGP3 - Jacobian forms used to construct the preconditioner</font>
<a name="line59"> 59: </a><font color="#B22222">. R                          - Riemann solver</font>
<a name="line60"> 60: </a><font color="#B22222">- CEED                       - libCEED QFunction</font>

<a name="line62"> 62: </a><font color="#B22222">  Level: beginner</font>

<a name="line64"> 64: </a><font color="#B22222">.seealso: `<a href="../manualpages/DT/PetscWeakForm.html">PetscWeakForm</a>`, `<a href="../manualpages/FE/PetscFEIntegrateResidual.html">PetscFEIntegrateResidual</a>()`, `<a href="../manualpages/FE/PetscFEIntegrateJacobian.html">PetscFEIntegrateJacobian</a>()`, `<a href="../manualpages/FE/PetscFEIntegrateBdResidual.html">PetscFEIntegrateBdResidual</a>()`, `<a href="../manualpages/FE/PetscFEIntegrateBdJacobian.html">PetscFEIntegrateBdJacobian</a>()`,</font>
<a name="line65"> 65: </a><font color="#B22222">          `<a href="../manualpages/FV/PetscFVIntegrateRHSFunction.html">PetscFVIntegrateRHSFunction</a>()`, `PetscWeakFormSetIndexResidual()`, `PetscWeakFormClearIndex()`</font>
<a name="line66"> 66: </a><font color="#B22222">E*/</font>
<a name="line67"> 67: </a><font color="#4169E1">typedef</font> <font color="#4169E1">enum</font> {
<a name="line68"> 68: </a>  <a href="../manualpages/DT/PetscWeakFormKind.html">PETSC_WF_OBJECTIVE</a>,
<a name="line69"> 69: </a>  <a href="../manualpages/DT/PetscWeakFormKind.html">PETSC_WF_F0</a>,
<a name="line70"> 70: </a>  <a href="../manualpages/DT/PetscWeakFormKind.html">PETSC_WF_F1</a>,
<a name="line71"> 71: </a>  <a href="../manualpages/DT/PetscWeakFormKind.html">PETSC_WF_G0</a>,
<a name="line72"> 72: </a>  <a href="../manualpages/DT/PetscWeakFormKind.html">PETSC_WF_G1</a>,
<a name="line73"> 73: </a>  <a href="../manualpages/DT/PetscWeakFormKind.html">PETSC_WF_G2</a>,
<a name="line74"> 74: </a>  <a href="../manualpages/DT/PetscWeakFormKind.html">PETSC_WF_G3</a>,
<a name="line75"> 75: </a>  <a href="../manualpages/DT/PetscWeakFormKind.html">PETSC_WF_GP0</a>,
<a name="line76"> 76: </a>  <a href="../manualpages/DT/PetscWeakFormKind.html">PETSC_WF_GP1</a>,
<a name="line77"> 77: </a>  <a href="../manualpages/DT/PetscWeakFormKind.html">PETSC_WF_GP2</a>,
<a name="line78"> 78: </a>  <a href="../manualpages/DT/PetscWeakFormKind.html">PETSC_WF_GP3</a>,
<a name="line79"> 79: </a>  <a href="../manualpages/DT/PetscWeakFormKind.html">PETSC_WF_GT0</a>,
<a name="line80"> 80: </a>  <a href="../manualpages/DT/PetscWeakFormKind.html">PETSC_WF_GT1</a>,
<a name="line81"> 81: </a>  <a href="../manualpages/DT/PetscWeakFormKind.html">PETSC_WF_GT2</a>,
<a name="line82"> 82: </a>  <a href="../manualpages/DT/PetscWeakFormKind.html">PETSC_WF_GT3</a>,
<a name="line83"> 83: </a>  <a href="../manualpages/DT/PetscWeakFormKind.html">PETSC_WF_BDF0</a>,
<a name="line84"> 84: </a>  <a href="../manualpages/DT/PetscWeakFormKind.html">PETSC_WF_BDF1</a>,
<a name="line85"> 85: </a>  <a href="../manualpages/DT/PetscWeakFormKind.html">PETSC_WF_BDG0</a>,
<a name="line86"> 86: </a>  <a href="../manualpages/DT/PetscWeakFormKind.html">PETSC_WF_BDG1</a>,
<a name="line87"> 87: </a>  <a href="../manualpages/DT/PetscWeakFormKind.html">PETSC_WF_BDG2</a>,
<a name="line88"> 88: </a>  <a href="../manualpages/DT/PetscWeakFormKind.html">PETSC_WF_BDG3</a>,
<a name="line89"> 89: </a>  <a href="../manualpages/DT/PetscWeakFormKind.html">PETSC_WF_BDGP0</a>,
<a name="line90"> 90: </a>  <a href="../manualpages/DT/PetscWeakFormKind.html">PETSC_WF_BDGP1</a>,
<a name="line91"> 91: </a>  <a href="../manualpages/DT/PetscWeakFormKind.html">PETSC_WF_BDGP2</a>,
<a name="line92"> 92: </a>  <a href="../manualpages/DT/PetscWeakFormKind.html">PETSC_WF_BDGP3</a>,
<a name="line93"> 93: </a>  <a href="../manualpages/DT/PetscWeakFormKind.html">PETSC_WF_R</a>,
<a name="line94"> 94: </a>  <a href="../manualpages/DT/PetscWeakFormKind.html">PETSC_WF_CEED</a>,
<a name="line95"> 95: </a>  <a href="../manualpages/DT/PetscWeakFormKind.html">PETSC_NUM_WF</a>
<a name="line96"> 96: </a>} <a href="../manualpages/DT/PetscWeakFormKind.html">PetscWeakFormKind</a>;
<a name="line97"> 97: </a>PETSC_EXTERN const char *const PetscWeakFormKinds[];

<a name="line99"> 99: </a><font color="#B22222">/*S</font>
<a name="line100">100: </a><font color="#B22222">  <a href="../manualpages/DT/PetscPointFn.html">PetscPointFn</a> - A prototype of a pointwise function that can be passed to, for example, `<a href="../manualpages/DT/PetscDSSetObjective.html">PetscDSSetObjective</a>()`</font>

<a name="line102">102: </a><font color="#B22222">  Calling Sequence:</font>
<a name="line103">103: </a><font color="#B22222">+ dim          - the coordinate dimension</font>
<a name="line104">104: </a><font color="#B22222">. Nf           - the number of fields</font>
<a name="line105">105: </a><font color="#B22222">. NfAux        - the number of auxiliary fields</font>
<a name="line106">106: </a><font color="#B22222">. uOff         - the offset into `u`[] and `u_t`[] for each field</font>
<a name="line107">107: </a><font color="#B22222">. uOff_x       - the offset into `u_x`[] for each field</font>
<a name="line108">108: </a><font color="#B22222">. u            - each field evaluated at the current point</font>
<a name="line109">109: </a><font color="#B22222">. u_t          - the time derivative of each field evaluated at the current point</font>
<a name="line110">110: </a><font color="#B22222">. u_x          - the gradient of each field evaluated at the current point</font>
<a name="line111">111: </a><font color="#B22222">. aOff         - the offset into `a`[] and `a_t`[] for each auxiliary field</font>
<a name="line112">112: </a><font color="#B22222">. aOff_x       - the offset into `a_x`[] for each auxiliary field</font>
<a name="line113">113: </a><font color="#B22222">. a            - each auxiliary field evaluated at the current point</font>
<a name="line114">114: </a><font color="#B22222">. a_t          - the time derivative of each auxiliary field evaluated at the current point</font>
<a name="line115">115: </a><font color="#B22222">. a_x          - the gradient of auxiliary each field evaluated at the current point</font>
<a name="line116">116: </a><font color="#B22222">. t            - current time</font>
<a name="line117">117: </a><font color="#B22222">. x            - coordinates of the current point</font>
<a name="line118">118: </a><font color="#B22222">. numConstants - number of constant parameters</font>
<a name="line119">119: </a><font color="#B22222">. constants    - constant parameters</font>
<a name="line120">120: </a><font color="#B22222">- obj          - output values at the current point</font>

<a name="line122">122: </a><font color="#B22222">  Level: beginner</font>

<a name="line124">124: </a><font color="#B22222">.seealso: `<a href="../manualpages/DT/PetscPointFn.html">PetscPointFn</a>`, `<a href="../manualpages/DT/PetscDSSetObjective.html">PetscDSSetObjective</a>()`, `<a href="../manualpages/DT/PetscDSGetObjective.html">PetscDSGetObjective</a>()`, <a href="../manualpages/DT/PetscDSGetResidual.html">PetscDSGetResidual</a>()`, `<a href="../manualpages/DT/PetscDSSetResidual.html">PetscDSSetResidual</a>()`,</font>
<a name="line125">125: </a><font color="#B22222">          `<a href="../manualpages/DT/PetscDSGetRHSResidual.html">PetscDSGetRHSResidual</a>()`, `<a href="../manualpages/DT/PetscDSGetRHSResidual.html">PetscDSGetRHSResidual</a>()`, `<a href="../manualpages/DT/PetscDSSetUpdate.html">PetscDSSetUpdate</a>()`, `<a href="../manualpages/DT/PetscDSGetUpdate.html">PetscDSGetUpdate</a>()`, `<a href="../manualpages/DMPlex/DMPlexSetCoordinateMap.html">DMPlexSetCoordinateMap</a>()`</font>
<a name="line126">126: </a><font color="#B22222">S*/</font>
<a name="line127">127: </a><strong><font color="#4169E1">typedef void <a href="../manualpages/DT/PetscPointFn.html">PetscPointFn</a>(<a href="../manualpages/Sys/PetscInt.html">PetscInt</a> dim, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> Nf, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> NfAux, const <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> uOff[], const <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> uOff_x[], const <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a> u[], const <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a> u_t[], const <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a> u_x[], const <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> aOff[], const <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> aOff_x[], const <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a> a[], const <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a> a_t[], const <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a> a_x[], <a href="../manualpages/Sys/PetscReal.html">PetscReal</a> t, const <a href="../manualpages/Sys/PetscReal.html">PetscReal</a> X[], <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> numConstants, const <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a> constants[], <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a> result[])</font></strong>;

<a name="line129">129: </a><font color="#B22222">/*S</font>
<a name="line130">130: </a><font color="#B22222">  <a href="../manualpages/DT/PetscPointJacFn.html">PetscPointJacFn</a> - A prototype of a pointwise function that can be passed to, for example, `<a href="../manualpages/DT/PetscDSSetJacobian.html">PetscDSSetJacobian</a>()` for computing Jacobians</font>

<a name="line132">132: </a><font color="#B22222">  Calling Sequence:</font>
<a name="line133">133: </a><font color="#B22222">+ dim          - the coordinate dimension</font>
<a name="line134">134: </a><font color="#B22222">. Nf           - the number of fields</font>
<a name="line135">135: </a><font color="#B22222">. NfAux        - the number of auxiliary fields</font>
<a name="line136">136: </a><font color="#B22222">. uOff         - the offset into `u`[] and `u_t`[] for each field</font>
<a name="line137">137: </a><font color="#B22222">. uOff_x       - the offset into `u_x`[] for each field</font>
<a name="line138">138: </a><font color="#B22222">. u            - each field evaluated at the current point</font>
<a name="line139">139: </a><font color="#B22222">. u_t          - the time derivative of each field evaluated at the current point</font>
<a name="line140">140: </a><font color="#B22222">. u_x          - the gradient of each field evaluated at the current point</font>
<a name="line141">141: </a><font color="#B22222">. aOff         - the offset into `a`[] and `a_t`[] for each auxiliary field</font>
<a name="line142">142: </a><font color="#B22222">. aOff_x       - the offset into a_`x`[] for each auxiliary field</font>
<a name="line143">143: </a><font color="#B22222">. a            - each auxiliary field evaluated at the current point</font>
<a name="line144">144: </a><font color="#B22222">. a_t          - the time derivative of each auxiliary field evaluated at the current point</font>
<a name="line145">145: </a><font color="#B22222">. a_x          - the gradient of auxiliary each field evaluated at the current point</font>
<a name="line146">146: </a><font color="#B22222">. t            - current time</font>
<a name="line147">147: </a><font color="#B22222">. u_tShift     - the multiplier `a` for $dF/dU_t$</font>
<a name="line148">148: </a><font color="#B22222">. x            - coordinates of the current point</font>
<a name="line149">149: </a><font color="#B22222">. numConstants - number of constant parameters</font>
<a name="line150">150: </a><font color="#B22222">. constants    - constant parameters</font>
<a name="line151">151: </a><font color="#B22222">- g            - output values at the current point</font>

<a name="line153">153: </a><font color="#B22222">  Level: beginner</font>

<a name="line155">155: </a><font color="#B22222">.seealso: `<a href="../manualpages/DT/PetscPointFn.html">PetscPointFn</a>`, `<a href="../manualpages/DT/PetscDSSetJacobian.html">PetscDSSetJacobian</a>()`, `<a href="../manualpages/DT/PetscDSGetJacobian.html">PetscDSGetJacobian</a>()`, <a href="../manualpages/DT/PetscDSSetJacobianPreconditioner.html">PetscDSSetJacobianPreconditioner</a>()`, `<a href="../manualpages/DT/PetscDSGetJacobianPreconditioner.html">PetscDSGetJacobianPreconditioner</a>()`,</font>
<a name="line156">156: </a><font color="#B22222">          `<a href="../manualpages/DT/PetscDSSetDynamicJacobian.html">PetscDSSetDynamicJacobian</a>()`, `<a href="../manualpages/DT/PetscDSGetDynamicJacobian.html">PetscDSGetDynamicJacobian</a>()`</font>
<a name="line157">157: </a><font color="#B22222">S*/</font>
<a name="line158">158: </a><strong><font color="#4169E1">typedef void <a href="../manualpages/DT/PetscPointJacFn.html">PetscPointJacFn</a>(<a href="../manualpages/Sys/PetscInt.html">PetscInt</a> dim, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> Nf, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> NfAux, const <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> uOff[], const <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> uOff_x[], const <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a> u[], const <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a> u_t[], const <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a> u_x[], const <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> aOff[], const <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> aOff_x[], const <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a> a[], const <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a> a_t[], const <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a> a_x[], <a href="../manualpages/Sys/PetscReal.html">PetscReal</a> t, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a> u_tShift, const <a href="../manualpages/Sys/PetscReal.html">PetscReal</a> x[], <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> numConstants, const <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a> constants[], <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a> g[])</font></strong>;

<a name="line160">160: </a><font color="#B22222">/*S</font>
<a name="line161">161: </a><font color="#B22222">  <a href="../manualpages/DT/PetscBdPointFn.html">PetscBdPointFn</a> - A prototype of a pointwise boundary function that can be passed to, for example, `<a href="../manualpages/DT/PetscDSSetBdResidual.html">PetscDSSetBdResidual</a>()`</font>

<a name="line163">163: </a><font color="#B22222">  Calling Sequence:</font>
<a name="line164">164: </a><font color="#B22222">+ dim          - the coordinate dimension</font>
<a name="line165">165: </a><font color="#B22222">. Nf           - the number of fields</font>
<a name="line166">166: </a><font color="#B22222">. NfAux        - the number of auxiliary fields</font>
<a name="line167">167: </a><font color="#B22222">. uOff         - the offset into `u`[] and `u_t`[] for each field</font>
<a name="line168">168: </a><font color="#B22222">. uOff_x       - the offset into `u_x`[] for each field</font>
<a name="line169">169: </a><font color="#B22222">. u            - each field evaluated at the current point</font>
<a name="line170">170: </a><font color="#B22222">. u_t          - the time derivative of each field evaluated at the current point</font>
<a name="line171">171: </a><font color="#B22222">. u_x          - the gradient of each field evaluated at the current point</font>
<a name="line172">172: </a><font color="#B22222">. aOff         - the offset into `a`[] and `a_t`[] for each auxiliary field</font>
<a name="line173">173: </a><font color="#B22222">. aOff_x       - the offset into `a_x`[] for each auxiliary field</font>
<a name="line174">174: </a><font color="#B22222">. a            - each auxiliary field evaluated at the current point</font>
<a name="line175">175: </a><font color="#B22222">. a_t          - the time derivative of each auxiliary field evaluated at the current point</font>
<a name="line176">176: </a><font color="#B22222">. a_x          - the gradient of auxiliary each field evaluated at the current point</font>
<a name="line177">177: </a><font color="#B22222">. t            - current time</font>
<a name="line178">178: </a><font color="#B22222">. x            - coordinates of the current point</font>
<a name="line179">179: </a><font color="#B22222">. n            - unit normal at the current point</font>
<a name="line180">180: </a><font color="#B22222">. numConstants - number of constant parameters</font>
<a name="line181">181: </a><font color="#B22222">. constants    - constant parameters</font>
<a name="line182">182: </a><font color="#B22222">- f            - output values at the current point</font>

<a name="line184">184: </a><font color="#B22222">  Level: beginner</font>

<a name="line186">186: </a><font color="#B22222">.seealso: `<a href="../manualpages/DT/PetscPointFn.html">PetscPointFn</a>`, `<a href="../manualpages/DT/PetscDSSetBdResidual.html">PetscDSSetBdResidual</a>()`, `<a href="../manualpages/DT/PetscDSGetBdResidual.html">PetscDSGetBdResidual</a>()`, `<a href="../manualpages/DT/PetscDSSetObjective.html">PetscDSSetObjective</a>()`, `<a href="../manualpages/DT/PetscDSGetObjective.html">PetscDSGetObjective</a>()`, <a href="../manualpages/DT/PetscDSGetResidual.html">PetscDSGetResidual</a>()`,</font>
<a name="line187">187: </a><font color="#B22222">          `<a href="../manualpages/DT/PetscDSGetRHSResidual.html">PetscDSGetRHSResidual</a>()`, `<a href="../manualpages/DT/PetscDSGetRHSResidual.html">PetscDSGetRHSResidual</a>()`, `<a href="../manualpages/DT/PetscDSSetUpdate.html">PetscDSSetUpdate</a>()`, `<a href="../manualpages/DT/PetscDSGetUpdate.html">PetscDSGetUpdate</a>()`, `<a href="../manualpages/DMPlex/DMPlexSetCoordinateMap.html">DMPlexSetCoordinateMap</a>()`,</font>
<a name="line188">188: </a><font color="#B22222">          `<a href="../manualpages/DT/PetscDSSetResidual.html">PetscDSSetResidual</a>()`, `<a href="../manualpages/DT/PetscPointJacFn.html">PetscPointJacFn</a>`</font>
<a name="line189">189: </a><font color="#B22222">S*/</font>
<a name="line190">190: </a><strong><font color="#4169E1">typedef void <a href="../manualpages/DT/PetscBdPointFn.html">PetscBdPointFn</a>(<a href="../manualpages/Sys/PetscInt.html">PetscInt</a> dim, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> Nf, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> NfAux, const <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> uOff[], const <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> uOff_x[], const <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a> u[], const <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a> u_t[], const <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a> u_x[], const <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> aOff[], const <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> aOff_x[], const <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a> a[], const <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a> a_t[], const <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a> a_x[], <a href="../manualpages/Sys/PetscReal.html">PetscReal</a> t, const <a href="../manualpages/Sys/PetscReal.html">PetscReal</a> x[], const <a href="../manualpages/Sys/PetscReal.html">PetscReal</a> n[], <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> numConstants, const <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a> constants[], <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a> f[])</font></strong>;

<a name="line192">192: </a><font color="#B22222">/*S</font>
<a name="line193">193: </a><font color="#B22222">  <a href="../manualpages/DT/PetscBdPointJacFn.html">PetscBdPointJacFn</a> - A prototype of a pointwise boundary function that can be passed to, for example, `<a href="../manualpages/DT/PetscDSSetBdJacobian.html">PetscDSSetBdJacobian</a>()`</font>

<a name="line195">195: </a><font color="#B22222">  Calling Sequence:</font>
<a name="line196">196: </a><font color="#B22222">+ dim          - the coordinate dimension</font>
<a name="line197">197: </a><font color="#B22222">. Nf           - the number of fields</font>
<a name="line198">198: </a><font color="#B22222">. NfAux        - the number of auxiliary fields</font>
<a name="line199">199: </a><font color="#B22222">. uOff         - the offset into `u`[] and `u_t`[] for each field</font>
<a name="line200">200: </a><font color="#B22222">. uOff_x       - the offset into `u_x`[] for each field</font>
<a name="line201">201: </a><font color="#B22222">. u            - each field evaluated at the current point</font>
<a name="line202">202: </a><font color="#B22222">. u_t          - the time derivative of each field evaluated at the current point</font>
<a name="line203">203: </a><font color="#B22222">. u_x          - the gradient of each field evaluated at the current point</font>
<a name="line204">204: </a><font color="#B22222">. aOff         - the offset into `a`[] and `a_t`[] for each auxiliary field</font>
<a name="line205">205: </a><font color="#B22222">. aOff_x       - the offset into `a_x`[] for each auxiliary field</font>
<a name="line206">206: </a><font color="#B22222">. a            - each auxiliary field evaluated at the current point</font>
<a name="line207">207: </a><font color="#B22222">. a_t          - the time derivative of each auxiliary field evaluated at the current point</font>
<a name="line208">208: </a><font color="#B22222">. a_x          - the gradient of auxiliary each field evaluated at the current point</font>
<a name="line209">209: </a><font color="#B22222">. t            - current time</font>
<a name="line210">210: </a><font color="#B22222">. u_tShift     - the multiplier `a` for $dF/dU_t$</font>
<a name="line211">211: </a><font color="#B22222">. x            - coordinates of the current point</font>
<a name="line212">212: </a><font color="#B22222">. n            - normal at the current point</font>
<a name="line213">213: </a><font color="#B22222">. numConstants - number of constant parameters</font>
<a name="line214">214: </a><font color="#B22222">. constants    - constant parameters</font>
<a name="line215">215: </a><font color="#B22222">- g            - output values at the current point</font>

<a name="line217">217: </a><font color="#B22222">  Level: beginner</font>

<a name="line219">219: </a><font color="#B22222">.seealso: `<a href="../manualpages/DT/PetscPointFn.html">PetscPointFn</a>`, `<a href="../manualpages/DT/PetscDSSetBdJacobian.html">PetscDSSetBdJacobian</a>()`, <a href="../manualpages/DT/PetscDSGetBdJacobian.html">PetscDSGetBdJacobian</a>()`, `<a href="../manualpages/DT/PetscDSSetBdJacobianPreconditioner.html">PetscDSSetBdJacobianPreconditioner</a>()`, `<a href="../manualpages/DT/PetscDSGetBdJacobianPreconditioner.html">PetscDSGetBdJacobianPreconditioner</a>()`,</font>
<a name="line220">220: </a><font color="#B22222">          `<a href="../manualpages/DT/PetscDSSetBdResidual.html">PetscDSSetBdResidual</a>()`, `<a href="../manualpages/DT/PetscDSGetBdResidual.html">PetscDSGetBdResidual</a>()`, `<a href="../manualpages/DT/PetscDSSetObjective.html">PetscDSSetObjective</a>()`, `<a href="../manualpages/DT/PetscDSGetObjective.html">PetscDSGetObjective</a>()`, <a href="../manualpages/DT/PetscDSGetResidual.html">PetscDSGetResidual</a>()`,</font>
<a name="line221">221: </a><font color="#B22222">          `<a href="../manualpages/DT/PetscDSGetRHSResidual.html">PetscDSGetRHSResidual</a>()`, `<a href="../manualpages/DT/PetscDSGetRHSResidual.html">PetscDSGetRHSResidual</a>()`, `<a href="../manualpages/DT/PetscDSSetUpdate.html">PetscDSSetUpdate</a>()`, `<a href="../manualpages/DT/PetscDSGetUpdate.html">PetscDSGetUpdate</a>()`, `<a href="../manualpages/DMPlex/DMPlexSetCoordinateMap.html">DMPlexSetCoordinateMap</a>()`,</font>
<a name="line222">222: </a><font color="#B22222">          `<a href="../manualpages/DT/PetscDSSetResidual.html">PetscDSSetResidual</a>()`, `<a href="../manualpages/DT/PetscPointJacFn.html">PetscPointJacFn</a>`</font>
<a name="line223">223: </a><font color="#B22222">S*/</font>
<a name="line224">224: </a><strong><font color="#4169E1">typedef void <a href="../manualpages/DT/PetscBdPointJacFn.html">PetscBdPointJacFn</a>(<a href="../manualpages/Sys/PetscInt.html">PetscInt</a> dim, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> Nf, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> NfAux, const <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> uOff[], const <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> uOff_x[], const <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a> u[], const <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a> u_t[], const <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a> u_x[], const <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> aOff[], const <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> aOff_x[], const <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a> a[], const <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a> a_t[], const <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a> a_x[], <a href="../manualpages/Sys/PetscReal.html">PetscReal</a> t, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a> u_tShift, const <a href="../manualpages/Sys/PetscReal.html">PetscReal</a> x[], const <a href="../manualpages/Sys/PetscReal.html">PetscReal</a> n[], <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> numConstants, const <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a> constants[], <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a> g0[])</font></strong>;

<a name="line226">226: </a><font color="#B22222">/*S</font>
<a name="line227">227: </a><font color="#B22222">  <a href="../manualpages/DT/PetscPointExactSolutionFn.html">PetscPointExactSolutionFn</a> - A prototype of a pointwise function that computes the exact solution to a PDE. Used with, for example,</font>
<a name="line228">228: </a><font color="#B22222">  `<a href="../manualpages/DT/PetscDSSetExactSolution.html">PetscDSSetExactSolution</a>()`</font>

<a name="line230">230: </a><font color="#B22222">  Calling Sequence:</font>
<a name="line231">231: </a><font color="#B22222">+ dim - the coordinate dimension</font>
<a name="line232">232: </a><font color="#B22222">. t   - current time</font>
<a name="line233">233: </a><font color="#B22222">. x   - coordinates of the current point</font>
<a name="line234">234: </a><font color="#B22222">. Nc  - the number of field components</font>
<a name="line235">235: </a><font color="#B22222">. u   - the solution field evaluated at the current point</font>
<a name="line236">236: </a><font color="#B22222">- ctx - a user context, set with `<a href="../manualpages/DT/PetscDSSetExactSolution.html">PetscDSSetExactSolution</a>()` or `<a href="../manualpages/DT/PetscDSSetExactSolutionTimeDerivative.html">PetscDSSetExactSolutionTimeDerivative</a>()`</font>

<a name="line238">238: </a><font color="#B22222">  Level: beginner</font>

<a name="line240">240: </a><font color="#B22222">.seealso: `<a href="../manualpages/DT/PetscPointFn.html">PetscPointFn</a>`, `<a href="../manualpages/DT/PetscDSSetExactSolution.html">PetscDSSetExactSolution</a>()`, `<a href="../manualpages/DT/PetscDSGetExactSolution.html">PetscDSGetExactSolution</a>()`, `<a href="../manualpages/DT/PetscDSSetExactSolutionTimeDerivative.html">PetscDSSetExactSolutionTimeDerivative</a>()`, `<a href="../manualpages/DT/PetscDSGetExactSolutionTimeDerivative.html">PetscDSGetExactSolutionTimeDerivative</a>()`</font>
<a name="line241">241: </a><font color="#B22222">S*/</font>
<a name="line242">242: </a><strong><font color="#4169E1">typedef <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/DT/PetscPointExactSolutionFn.html">PetscPointExactSolutionFn</a>(<a href="../manualpages/Sys/PetscInt.html">PetscInt</a> dim, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a> t, const <a href="../manualpages/Sys/PetscReal.html">PetscReal</a> x[], <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> Nc, <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a> u[], void *ctx)</font></strong>;

<a name="line244">244: </a><font color="#B22222">/*S</font>
<a name="line245">245: </a><font color="#B22222">  <a href="../manualpages/DT/PetscRiemannFn.html">PetscRiemannFn</a> - A prototype of a pointwise function that can be passed to, for example, `<a href="../manualpages/DT/PetscDSSetRiemannSolver.html">PetscDSSetRiemannSolver</a>()`</font>

<a name="line247">247: </a><font color="#B22222">  Calling Sequence:</font>
<a name="line248">248: </a><font color="#B22222">+ dim          - the coordinate dimension</font>
<a name="line249">249: </a><font color="#B22222">. Nf           - The number of fields</font>
<a name="line250">250: </a><font color="#B22222">. x            - The coordinates at a point on the interface</font>
<a name="line251">251: </a><font color="#B22222">. n            - The normal vector to the interface</font>
<a name="line252">252: </a><font color="#B22222">. uL           - The state vector to the left of the interface</font>
<a name="line253">253: </a><font color="#B22222">. uR           - The state vector to the right of the interface</font>
<a name="line254">254: </a><font color="#B22222">. numConstants - number of constant parameters</font>
<a name="line255">255: </a><font color="#B22222">. constants    - constant parameters</font>
<a name="line256">256: </a><font color="#B22222">. flux         - output array of flux through the interface</font>
<a name="line257">257: </a><font color="#B22222">- ctx          - optional user context</font>

<a name="line259">259: </a><font color="#B22222">  Level: beginner</font>

<a name="line261">261: </a><font color="#B22222">.seealso: `<a href="../manualpages/DT/PetscPointFn.html">PetscPointFn</a>`, `<a href="../manualpages/DT/PetscDSSetRiemannSolver.html">PetscDSSetRiemannSolver</a>()`, `<a href="../manualpages/DT/PetscDSGetRiemannSolver.html">PetscDSGetRiemannSolver</a>()`</font>
<a name="line262">262: </a><font color="#B22222">S*/</font>
<a name="line263">263: </a><strong><font color="#4169E1">typedef void <a href="../manualpages/DT/PetscRiemannFn.html">PetscRiemannFn</a>(<a href="../manualpages/Sys/PetscInt.html">PetscInt</a> dim, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> Nf, const <a href="../manualpages/Sys/PetscReal.html">PetscReal</a> x[], const <a href="../manualpages/Sys/PetscReal.html">PetscReal</a> n[], const <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a> uL[], const <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a> uR[], <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> numConstants, const <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a> constants[], <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a> flux[], void *ctx)</font></strong>;

<a name="line265">265: </a><font color="#B22222">/*S</font>
<a name="line266">266: </a><font color="#B22222">  <a href="../manualpages/DT/PetscSimplePointFn.html">PetscSimplePointFn</a> - A prototype of a simple pointwise function that can be passed to, for example, `<a href="../manualpages/DMPlex/DMPlexTransformExtrudeSetNormalFunction.html">DMPlexTransformExtrudeSetNormalFunction</a>()`</font>

<a name="line268">268: </a><font color="#B22222">  Calling Sequence:</font>
<a name="line269">269: </a><font color="#B22222">+ dim  - The coordinate dimension of the original mesh (usually a surface)</font>
<a name="line270">270: </a><font color="#B22222">. time - The current time, or 0.</font>
<a name="line271">271: </a><font color="#B22222">. x    - The location of the current normal, in the coordinate space of the original mesh</font>
<a name="line272">272: </a><font color="#B22222">. r    - The layer number of this point</font>
<a name="line273">273: </a><font color="#B22222">. u    - The user provides the computed normal on output</font>
<a name="line274">274: </a><font color="#B22222">- ctx  - An optional user context, this context may be obtained by the calling code with `<a href="../manualpages/DM/DMGetApplicationContext.html">DMGetApplicationContext</a>()`</font>

<a name="line276">276: </a><font color="#B22222">  Level: beginner</font>

<a name="line278">278: </a><font color="#B22222">  Developer Note:</font>
<a name="line279">279: </a><font color="#B22222">  The handling of `ctx` in the use of such functions may not be ideal since the context is not provided when the function pointer is provided with, for example, `<a href="../manualpages/DMSwarm/DMSwarmSetCoordinateFunction.html">DMSwarmSetCoordinateFunction</a>()`</font>

<a name="line281">281: </a><font color="#B22222">.seealso: `<a href="../manualpages/DT/PetscPointFn.html">PetscPointFn</a>`, `<a href="../manualpages/DMPlex/DMPlexTransformExtrudeSetNormalFunction.html">DMPlexTransformExtrudeSetNormalFunction</a>()`, `<a href="../manualpages/DMSwarm/DMSwarmSetCoordinateFunction.html">DMSwarmSetCoordinateFunction</a>()`</font>
<a name="line282">282: </a><font color="#B22222">S*/</font>
<a name="line283">283: </a><strong><font color="#4169E1">PETSC_EXTERN_TYPEDEF typedef <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/DT/PetscSimplePointFn.html">PetscSimplePointFn</a>(<a href="../manualpages/Sys/PetscInt.html">PetscInt</a> dim, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a> time, const <a href="../manualpages/Sys/PetscReal.html">PetscReal</a> x[], <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> r, <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a> u[], void *ctx)</font></strong>;

<a name="line285">285: </a>PETSC_EXTERN_TYPEDEF <font color="#4169E1">typedef</font> <a href="../manualpages/DT/PetscSimplePointFn.html">PetscSimplePointFn</a> *PetscSimplePointFunc PETSC_DEPRECATED_TYPEDEF(3, 24, 0, <font color="#666666">"<a href="../manualpages/DT/PetscSimplePointFn.html">PetscSimplePointFn</a>*"</font>, );
<a name="line286">286: </a>PETSC_EXTERN_TYPEDEF <font color="#4169E1">typedef</font> <a href="../manualpages/DT/PetscPointFn.html">PetscPointFn</a>       *PetscPointFunc PETSC_DEPRECATED_TYPEDEF(3, 24, 0, <font color="#666666">"<a href="../manualpages/DT/PetscPointFn.html">PetscPointFn</a>*"</font>, );
<a name="line287">287: </a>PETSC_EXTERN_TYPEDEF <font color="#4169E1">typedef</font> <a href="../manualpages/DT/PetscPointJacFn.html">PetscPointJacFn</a>    *PetscPointJac PETSC_DEPRECATED_TYPEDEF(3, 24, 0, <font color="#666666">"<a href="../manualpages/DT/PetscPointJacFn.html">PetscPointJacFn</a>*"</font>, );
<a name="line288">288: </a>PETSC_EXTERN_TYPEDEF <font color="#4169E1">typedef</font> <a href="../manualpages/DT/PetscBdPointFn.html">PetscBdPointFn</a>     *PetscBdPointFunc PETSC_DEPRECATED_TYPEDEF(3, 24, 0, <font color="#666666">"<a href="../manualpages/DT/PetscBdPointFn.html">PetscBdPointFn</a>*"</font>, );
<a name="line289">289: </a>PETSC_EXTERN_TYPEDEF <font color="#4169E1">typedef</font> <a href="../manualpages/DT/PetscBdPointJacFn.html">PetscBdPointJacFn</a>  *PetscBdPointJac PETSC_DEPRECATED_TYPEDEF(3, 24, 0, <font color="#666666">"<a href="../manualpages/DT/PetscBdPointJacFn.html">PetscBdPointJacFn</a>*"</font>, );
<a name="line290">290: </a>PETSC_EXTERN_TYPEDEF <font color="#4169E1">typedef</font> <a href="../manualpages/DT/PetscRiemannFn.html">PetscRiemannFn</a>     *PetscRiemannFunc PETSC_DEPRECATED_TYPEDEF(3, 24, 0, <font color="#666666">"<a href="../manualpages/DT/PetscRiemannFn.html">PetscRiemannFn</a>*"</font>, );

<a name="line292">292: </a><font color="#B22222">/*S</font>
<a name="line293">293: </a><font color="#B22222">  <a href="../manualpages/DT/PetscPointBoundFn.html">PetscPointBoundFn</a> - A prototype of a pointwise function that can be passed to, for example, `<a href="../manualpages/DT/PetscDSSetLowerBound.html">PetscDSSetLowerBound</a>()`</font>

<a name="line295">295: </a><font color="#B22222">  Calling Sequence:</font>
<a name="line296">296: </a><font color="#B22222">+ dim - the coordinate dimension</font>
<a name="line297">297: </a><font color="#B22222">. t   - current time</font>
<a name="line298">298: </a><font color="#B22222">. x   - coordinates of the current point</font>
<a name="line299">299: </a><font color="#B22222">. Nc  - the number of field components</font>
<a name="line300">300: </a><font color="#B22222">. u   - the lower bound evaluated at the current point</font>
<a name="line301">301: </a><font color="#B22222">- ctx - a user context, passed in with, for example, `<a href="../manualpages/DT/PetscDSSetLowerBound.html">PetscDSSetLowerBound</a>()`</font>

<a name="line303">303: </a><font color="#B22222">  Level: beginner</font>

<a name="line305">305: </a><font color="#B22222">.seealso: `<a href="../manualpages/DT/PetscPointFn.html">PetscPointFn</a>`, `<a href="../manualpages/DT/PetscDSSetLowerBound.html">PetscDSSetLowerBound</a>()`, `<a href="../manualpages/DT/PetscDSSetUpperBound.html">PetscDSSetUpperBound</a>()`</font>
<a name="line306">306: </a><font color="#B22222">S*/</font>
<a name="line307">307: </a><strong><font color="#4169E1">PETSC_EXTERN_TYPEDEF typedef <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/DT/PetscPointBoundFn.html">PetscPointBoundFn</a>(<a href="../manualpages/Sys/PetscInt.html">PetscInt</a> dim, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a> t, const <a href="../manualpages/Sys/PetscReal.html">PetscReal</a> x[], <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> Nc, <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a> u[], void *ctx)</font></strong>;
</pre>
</body>

</html>