-
Notifications
You must be signed in to change notification settings - Fork 0
/
Array_8hh_source.html
516 lines (514 loc) · 108 KB
/
Array_8hh_source.html
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
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>PISM, A Parallel Ice Sheet Model: src/util/array/Array.hh Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
extensions: ["tex2jax.js"],
jax: ["input/TeX","output/HTML-CSS"],
});
</script>
<script type="text/javascript" async="async" src="https://cdn.jsdelivr.net/npm/mathjax@2/MathJax.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="browser.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">PISM, A Parallel Ice Sheet Model
 <span id="projectnumber">stable v2.1-1-g6902d5502 committed by Ed Bueler on 2023-12-20 08:38:27 -0800</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_b7878ad5ecbf2506f4125b9d34c97e45.html">util</a></li><li class="navelem"><a class="el" href="dir_694baf79f0b9500ddbbf7bc0025b9d91.html">array</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">Array.hh</div> </div>
</div><!--header-->
<div class="contents">
<a href="Array_8hh.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">// Copyright (C) 2008--2023 Ed Bueler, Constantine Khroulev, and David Maxwell</span></div>
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">//</span></div>
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment">// This file is part of PISM.</span></div>
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment">//</span></div>
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment">// PISM is free software; you can redistribute it and/or modify it under the</span></div>
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment">// terms of the GNU General Public License as published by the Free Software</span></div>
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment">// Foundation; either version 3 of the License, or (at your option) any later</span></div>
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment">// version.</span></div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment">//</span></div>
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment">// PISM is distributed in the hope that it will be useful, but WITHOUT ANY</span></div>
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment">// WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS</span></div>
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment">// FOR A PARTICULAR PURPOSE. See the GNU General Public License for more</span></div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment">// details.</span></div>
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment">//</span></div>
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment">// You should have received a copy of the GNU General Public License</span></div>
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment">// along with PISM; if not, write to the Free Software</span></div>
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment">// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA</span></div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>  </div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="preprocessor">#ifndef PISM_ARRAY_H</span></div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="preprocessor">#define PISM_ARRAY_H</span></div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>  </div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor">#include <initializer_list></span></div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="preprocessor">#include <memory></span> <span class="comment">// shared_ptr, dynamic_pointer_cast</span></div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#include <cstdint></span> <span class="comment">// uint64_t</span></div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor">#include <array></span></div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>  </div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor">#include "pism/util/error_handling.hh"</span> <span class="comment">// RuntimeError</span></div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  </div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="keyword">namespace </span><a class="code" href="namespacepism.html">pism</a> {</div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  </div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="keyword">enum</span> <a class="code" href="namespacepism_a3415cf6a7a4530c4e489feebe6365e03.html#a3415cf6a7a4530c4e489feebe6365e03">InterpolationType</a> : int;</div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  </div>
<div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="namespacepism_1_1io.html"> 33</a></span> <span class="keyword">namespace </span>io {</div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span> <span class="keyword">enum</span> <a class="code" href="namespacepism_1_1io_a53ffb40793c398e10644fbd2ecda3e77.html#a53ffb40793c398e10644fbd2ecda3e77">Type</a> : int;</div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span> <span class="keyword">class </span><a class="code" href="classpism_1_1io_1_1Default.html">Default</a>;</div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span> }</div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  </div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span> <span class="keyword">class </span><a class="code" href="classpism_1_1Grid.html">Grid</a>;</div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span> <span class="keyword">class </span><a class="code" href="classpism_1_1File.html">File</a>;</div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span> <span class="keyword">class </span><a class="code" href="classpism_1_1SpatialVariableMetadata.html">SpatialVariableMetadata</a>;</div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  </div>
<div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="namespacepism_1_1petsc.html"> 42</a></span> <span class="keyword">namespace </span>petsc {</div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span> <span class="keyword">class </span><a class="code" href="classpism_1_1petsc_1_1DM.html">DM</a>;</div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span> <span class="keyword">class </span><a class="code" href="classpism_1_1petsc_1_1Vec.html">Vec</a>;</div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span> <span class="keyword">class </span><a class="code" href="classpism_1_1petsc_1_1Viewer.html">Viewer</a>;</div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span> } <span class="comment">// end of namespace petsc</span></div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  </div>
<div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="namespacepism_1_1units.html"> 48</a></span> <span class="keyword">namespace </span>units {</div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span> <span class="keyword">class </span><a class="code" href="classpism_1_1units_1_1System.html">System</a>;</div>
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span> }</div>
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  </div>
<div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="classpism_1_1PetscAccessible.html"> 52</a></span> <span class="keyword">class </span><a class="code" href="classpism_1_1PetscAccessible.html">PetscAccessible</a> {</div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span> <span class="keyword">public</span>:</div>
<div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="classpism_1_1PetscAccessible_a2a5ee8392bf3bfd7e1d5f8aa76f49f45.html#a2a5ee8392bf3bfd7e1d5f8aa76f49f45"> 54</a></span>  <span class="keyword">virtual</span> <a class="code" href="classpism_1_1PetscAccessible_a2a5ee8392bf3bfd7e1d5f8aa76f49f45.html#a2a5ee8392bf3bfd7e1d5f8aa76f49f45">~PetscAccessible</a>() = <span class="keywordflow">default</span>;</div>
<div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="classpism_1_1PetscAccessible_a3479683e4a350e10ae36242daf3ca011.html#a3479683e4a350e10ae36242daf3ca011"> 55</a></span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classpism_1_1PetscAccessible_a3479683e4a350e10ae36242daf3ca011.html#a3479683e4a350e10ae36242daf3ca011">begin_access</a>() <span class="keyword">const</span> = 0;</div>
<div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="classpism_1_1PetscAccessible_a7f0f57337f18a79b121cc108aa5ec37c.html#a7f0f57337f18a79b121cc108aa5ec37c"> 56</a></span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classpism_1_1PetscAccessible_a7f0f57337f18a79b121cc108aa5ec37c.html#a7f0f57337f18a79b121cc108aa5ec37c">end_access</a>() <span class="keyword">const</span> = 0;</div>
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span> };</div>
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  </div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span> <span class="keyword">namespace </span>array {</div>
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span> <span class="comment"></span> </div>
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span> <span class="comment">//! What "kind" of a vector to create: with or without ghosts.</span></div>
<div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="namespacepism_1_1array_ab49b8ee9a79e7f46ec91fc40efdb7ca3.html#ab49b8ee9a79e7f46ec91fc40efdb7ca3"> 62</a></span> <span class="comment"></span><span class="keyword">enum</span> <a class="code" href="namespacepism_1_1array_ab49b8ee9a79e7f46ec91fc40efdb7ca3.html#ab49b8ee9a79e7f46ec91fc40efdb7ca3">Kind</a> {<a class="code" href="namespacepism_1_1array_ab49b8ee9a79e7f46ec91fc40efdb7ca3.html#ab49b8ee9a79e7f46ec91fc40efdb7ca3af672399d2e1a4112ca5d4a4591c30885">WITHOUT_GHOSTS</a>=0, <a class="code" href="namespacepism_1_1array_ab49b8ee9a79e7f46ec91fc40efdb7ca3.html#ab49b8ee9a79e7f46ec91fc40efdb7ca3a7aa2276678f0b2cd3f63c15be430372f">WITH_GHOSTS</a>=1};</div>
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span> <span class="comment"></span> </div>
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span> <span class="comment">//! Makes sure that we call begin_access() and end_access() for all accessed array::Arrays.</span></div>
<div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="classpism_1_1array_1_1AccessScope.html"> 65</a></span> <span class="comment"></span><span class="keyword">class </span><a class="code" href="classpism_1_1array_1_1AccessScope.html">AccessScope</a> {</div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span> <span class="keyword">public</span>:</div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  <a class="code" href="classpism_1_1array_1_1AccessScope_ae18bd835e0b5ee2b4f83d0a7e4f330a1.html#ae18bd835e0b5ee2b4f83d0a7e4f330a1">AccessScope</a>();</div>
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  <a class="code" href="classpism_1_1array_1_1AccessScope_ae18bd835e0b5ee2b4f83d0a7e4f330a1.html#ae18bd835e0b5ee2b4f83d0a7e4f330a1">AccessScope</a>(std::initializer_list<const PetscAccessible *> vecs);</div>
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  <a class="code" href="classpism_1_1array_1_1AccessScope_ae18bd835e0b5ee2b4f83d0a7e4f330a1.html#ae18bd835e0b5ee2b4f83d0a7e4f330a1">AccessScope</a>(<span class="keyword">const</span> <a class="code" href="classpism_1_1PetscAccessible.html">PetscAccessible</a> &v);</div>
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  <a class="code" href="classpism_1_1array_1_1AccessScope_a7b645191ff12347a173b1137bad274e2.html#a7b645191ff12347a173b1137bad274e2">~AccessScope</a>();</div>
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  <span class="keywordtype">void</span> <a class="code" href="classpism_1_1array_1_1AccessScope_a46c8cd5c8fb2dee06845dc385f04cc28.html#a46c8cd5c8fb2dee06845dc385f04cc28">add</a>(<span class="keyword">const</span> <a class="code" href="classpism_1_1PetscAccessible.html">PetscAccessible</a> &v);</div>
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  <span class="keywordtype">void</span> <a class="code" href="classpism_1_1array_1_1AccessScope_a46c8cd5c8fb2dee06845dc385f04cc28.html#a46c8cd5c8fb2dee06845dc385f04cc28">add</a>(<span class="keyword">const</span> std::vector<const PetscAccessible*> &vecs);</div>
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span> <span class="keyword">private</span>:</div>
<div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="classpism_1_1array_1_1AccessScope_afe5fd53d93439e9137f82aeb9eee6abe.html#afe5fd53d93439e9137f82aeb9eee6abe"> 74</a></span>  std::vector<const PetscAccessible*> <a class="code" href="classpism_1_1array_1_1AccessScope_afe5fd53d93439e9137f82aeb9eee6abe.html#afe5fd53d93439e9137f82aeb9eee6abe">m_vecs</a>;</div>
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span> };</div>
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span> <span class="comment"></span> </div>
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span> <span class="comment">/*!</span></div>
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span> <span class="comment"> * Interpolation helper. Does not check if points needed for interpolation are within the current</span></div>
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span> <span class="comment"> * processor's sub-domain.</span></div>
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span> <span class="keyword">template</span><<span class="keyword">class</span> F, <span class="keyword">typename</span> T></div>
<div class="line"><a name="l00082"></a><span class="lineno"><a class="line" href="namespacepism_1_1array_acc78626832aa1c59a74bd4cd7cc5519c.html#acc78626832aa1c59a74bd4cd7cc5519c"> 82</a></span> T <a class="code" href="namespacepism_1_1array_acc78626832aa1c59a74bd4cd7cc5519c.html#acc78626832aa1c59a74bd4cd7cc5519c">interpolate</a>(<span class="keyword">const</span> <a class="code" href="namespacepism_a200b1c89a64c718f6b0f585508e55172.html#a200b1c89a64c718f6b0f585508e55172">F</a> &field, <span class="keywordtype">double</span> x, <span class="keywordtype">double</span> y) {</div>
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  <span class="keyword">auto</span> grid = field.grid();</div>
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  </div>
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  <span class="keywordtype">int</span> i_left = 0, i_right = 0, j_bottom = 0, j_top = 0;</div>
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  grid->compute_point_neighbors(x, y, i_left, i_right, j_bottom, j_top);</div>
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  </div>
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  <span class="keyword">auto</span> w = grid->compute_interp_weights(x, y);</div>
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  </div>
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  <span class="keywordflow">return</span> (w[0] * field(i_left, j_bottom) +</div>
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  w[1] * field(i_right, j_bottom) +</div>
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  w[2] * field(i_right, j_top) +</div>
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  w[3] * field(i_left, j_top));</div>
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span> }</div>
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span> <span class="comment"></span> </div>
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span> <span class="comment">//! \brief Abstract class for reading, writing, allocating, and accessing a</span></div>
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span> <span class="comment">//! DA-based PETSc Vec (2D and 3D fields) from within IceModel.</span></div>
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span> <span class="comment"></span><span class="comment">/*!</span></div>
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span> <span class="comment"> @anchor icemodelvec_use</span></div>
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span> <span class="comment"></span> </div>
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span> <span class="comment"> This class represents 2D and 3D fields in PISM. Its methods common to all</span></div>
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span> <span class="comment"> the derived classes can be split (roughly) into six kinds:</span></div>
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span> <span class="comment"></span> </div>
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span> <span class="comment"> - memory allocation (create)</span></div>
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span> <span class="comment"> - point-wise access (begin_access(), end_access())</span></div>
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span> <span class="comment"> - arithmetic (range(), norm(), add(), shift(), scale(), set(), ...)</span></div>
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span> <span class="comment"> - setting or reading metadata (set_attrs(), metadata())</span></div>
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span> <span class="comment"> - file input/output (read, write, regrid)</span></div>
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span> <span class="comment"> - tracking whether a field was updated (get_state_counter(), inc_state_counter())</span></div>
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span> <span class="comment"></span> </div>
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span> <span class="comment"> ## Memory allocation</span></div>
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span> <span class="comment"></span> </div>
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span> <span class="comment"> \code</span></div>
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span> <span class="comment"> array::Scalar var(grid, "var_name", WITH_GHOSTS);</span></div>
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span> <span class="comment"> // var is ready to use</span></div>
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span> <span class="comment"> \endcode</span></div>
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span> <span class="comment"></span> </div>
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span> <span class="comment"> ("WITH_GHOSTS" means "can be used in computations using map-plane neighbors</span></div>
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span> <span class="comment"> of grid points.)</span></div>
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span> <span class="comment"></span> </div>
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span> <span class="comment"> It is usually a good idea to set variable metadata right after creating it.</span></div>
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span> <span class="comment"> The method set_attrs() is used throughout PISM to set commonly used</span></div>
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span> <span class="comment"> attributes.</span></div>
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span> <span class="comment"></span> </div>
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span> <span class="comment"> ## Point-wise access</span></div>
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span> <span class="comment"></span> </div>
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span> <span class="comment"> PETSc performs some pointer arithmetic magic to allow convenient indexing of</span></div>
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span> <span class="comment"> grid point values. Because of this one needs to surround the code using row,</span></div>
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span> <span class="comment"> column or level indexes with begin_access() and end_access() calls:</span></div>
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span> <span class="comment"></span> </div>
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span> <span class="comment"> \code</span></div>
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span> <span class="comment"> double foo;</span></div>
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span> <span class="comment"> int i = 0, j = 0;</span></div>
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span> <span class="comment"> array::Scalar var;</span></div>
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span> <span class="comment"> // assume that var was allocated</span></div>
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span> <span class="comment"> ierr = var.begin_access(); CHKERRQ(ierr);</span></div>
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span> <span class="comment"> foo = var(i,j) * 2;</span></div>
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span> <span class="comment"> ierr = var.end_access(); CHKERRQ(ierr);</span></div>
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span> <span class="comment"> \endcode</span></div>
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span> <span class="comment"></span> </div>
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span> <span class="comment"> Please see [this page](@ref computational_grid) for a discussion of the</span></div>
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span> <span class="comment"> organization of PISM's computational grid and examples of for-loops you will</span></div>
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span> <span class="comment"> probably put between begin_access() and end_access().</span></div>
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span> <span class="comment"></span> </div>
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span> <span class="comment"> To ensure that ghost values are up to date add the following call</span></div>
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span> <span class="comment"> before the code using ghosts:</span></div>
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span> <span class="comment"></span> </div>
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span> <span class="comment"> \code</span></div>
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span> <span class="comment"> ierr = var.update_ghosts(); CHKERRQ(ierr);</span></div>
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span> <span class="comment"> \endcode</span></div>
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span> <span class="comment"></span> </div>
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span> <span class="comment"> ## Reading and writing variables</span></div>
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span> <span class="comment"></span> </div>
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span> <span class="comment"> PISM can read variables either from files with data on a grid matching the</span></div>
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span> <span class="comment"> current grid (read()) or, using bilinear interpolation, from files</span></div>
<div class="line"><a name="l00156"></a><span class="lineno"> 156</span> <span class="comment"> containing data on a different (but compatible) grid (regrid()).</span></div>
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span> <span class="comment"></span> </div>
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span> <span class="comment"> To write a field to a "prepared" NetCDF file, use write(). (A file is prepared</span></div>
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span> <span class="comment"> if it contains all the necessary dimensions, coordinate variables and global</span></div>
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span> <span class="comment"> metadata.)</span></div>
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span> <span class="comment"></span> </div>
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span> <span class="comment"> If you need to "prepare" a file, do:</span></div>
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span> <span class="comment"> \code</span></div>
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span> <span class="comment"> File file(grid.com, PISM_NETCDF3);</span></div>
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span> <span class="comment"> io::prepare_for_output(file, *grid.ctx());</span></div>
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span> <span class="comment"> \endcode</span></div>
<div class="line"><a name="l00167"></a><span class="lineno"> 167</span> <span class="comment"></span> </div>
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span> <span class="comment"> A note about NetCDF write performance: due to limitations of the NetCDF</span></div>
<div class="line"><a name="l00169"></a><span class="lineno"> 169</span> <span class="comment"> (classic, version 3) format, it is significantly faster to</span></div>
<div class="line"><a name="l00170"></a><span class="lineno"> 170</span> <span class="comment"> \code</span></div>
<div class="line"><a name="l00171"></a><span class="lineno"> 171</span> <span class="comment"> for (all variables)</span></div>
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span> <span class="comment"> var.define(...);</span></div>
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span> <span class="comment"></span> </div>
<div class="line"><a name="l00174"></a><span class="lineno"> 174</span> <span class="comment"> for (all variables)</span></div>
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span> <span class="comment"> var.write(...);</span></div>
<div class="line"><a name="l00176"></a><span class="lineno"> 176</span> <span class="comment"> \endcode</span></div>
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span> <span class="comment"></span> </div>
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span> <span class="comment"> as opposed to</span></div>
<div class="line"><a name="l00179"></a><span class="lineno"> 179</span> <span class="comment"></span> </div>
<div class="line"><a name="l00180"></a><span class="lineno"> 180</span> <span class="comment"> \code</span></div>
<div class="line"><a name="l00181"></a><span class="lineno"> 181</span> <span class="comment"> for (all variables) {</span></div>
<div class="line"><a name="l00182"></a><span class="lineno"> 182</span> <span class="comment"> var.define(...);</span></div>
<div class="line"><a name="l00183"></a><span class="lineno"> 183</span> <span class="comment"> var.write(...);</span></div>
<div class="line"><a name="l00184"></a><span class="lineno"> 184</span> <span class="comment"> }</span></div>
<div class="line"><a name="l00185"></a><span class="lineno"> 185</span> <span class="comment"> \endcode</span></div>
<div class="line"><a name="l00186"></a><span class="lineno"> 186</span> <span class="comment"></span> </div>
<div class="line"><a name="l00187"></a><span class="lineno"> 187</span> <span class="comment"> array::Array::define() is here so that we can use the first approach.</span></div>
<div class="line"><a name="l00188"></a><span class="lineno"> 188</span> <span class="comment"></span> </div>
<div class="line"><a name="l00189"></a><span class="lineno"> 189</span> <span class="comment"> ## Tracking if a field changed</span></div>
<div class="line"><a name="l00190"></a><span class="lineno"> 190</span> <span class="comment"></span> </div>
<div class="line"><a name="l00191"></a><span class="lineno"> 191</span> <span class="comment"> It is possible to track if a certain field changed with the help of</span></div>
<div class="line"><a name="l00192"></a><span class="lineno"> 192</span> <span class="comment"> get_state_counter() and inc_state_counter() methods.</span></div>
<div class="line"><a name="l00193"></a><span class="lineno"> 193</span> <span class="comment"></span> </div>
<div class="line"><a name="l00194"></a><span class="lineno"> 194</span> <span class="comment"> For example, PISM's SIA code re-computes the smoothed bed only if the bed</span></div>
<div class="line"><a name="l00195"></a><span class="lineno"> 195</span> <span class="comment"> deformation code updated it:</span></div>
<div class="line"><a name="l00196"></a><span class="lineno"> 196</span> <span class="comment"></span> </div>
<div class="line"><a name="l00197"></a><span class="lineno"> 197</span> <span class="comment"> \code</span></div>
<div class="line"><a name="l00198"></a><span class="lineno"> 198</span> <span class="comment"> if (bed->get_state_counter() > bed_state_counter) {</span></div>
<div class="line"><a name="l00199"></a><span class="lineno"> 199</span> <span class="comment"> ierr = bed_smoother->preprocess_bed(...); CHKERRQ(ierr);</span></div>
<div class="line"><a name="l00200"></a><span class="lineno"> 200</span> <span class="comment"> bed_state_counter = bed->get_state_counter();</span></div>
<div class="line"><a name="l00201"></a><span class="lineno"> 201</span> <span class="comment"> }</span></div>
<div class="line"><a name="l00202"></a><span class="lineno"> 202</span> <span class="comment"> \endcode</span></div>
<div class="line"><a name="l00203"></a><span class="lineno"> 203</span> <span class="comment"></span> </div>
<div class="line"><a name="l00204"></a><span class="lineno"> 204</span> <span class="comment"> The state counter is **not** updated automatically. For the code snippet above</span></div>
<div class="line"><a name="l00205"></a><span class="lineno"> 205</span> <span class="comment"> to work, a bed deformation model has to call inc_state_counter() after an</span></div>
<div class="line"><a name="l00206"></a><span class="lineno"> 206</span> <span class="comment"> update.</span></div>
<div class="line"><a name="l00207"></a><span class="lineno"> 207</span> <span class="comment">*/</span></div>
<div class="line"><a name="l00208"></a><span class="lineno"><a class="line" href="classpism_1_1array_1_1Array.html"> 208</a></span> <span class="keyword">class </span><a class="code" href="classpism_1_1array_1_1Array.html">Array</a> : <span class="keyword">public</span> <a class="code" href="classpism_1_1PetscAccessible.html">PetscAccessible</a> {</div>
<div class="line"><a name="l00209"></a><span class="lineno"> 209</span> <span class="keyword">public</span>:</div>
<div class="line"><a name="l00210"></a><span class="lineno"> 210</span>  <span class="keyword">virtual</span> <a class="code" href="classpism_1_1array_1_1Array_a57e576c6c3873ad06edabcd2b30e0f4a.html#a57e576c6c3873ad06edabcd2b30e0f4a">~Array</a>();</div>
<div class="line"><a name="l00211"></a><span class="lineno"> 211</span>  </div>
<div class="line"><a name="l00212"></a><span class="lineno"> 212</span>  std::shared_ptr<const Grid> <a class="code" href="classpism_1_1array_1_1Array_a982fca110a5d7011f681b928b20e3577.html#a982fca110a5d7011f681b928b20e3577">grid</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00213"></a><span class="lineno"> 213</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classpism_1_1array_1_1Array_aa78dff7e30d312e2d45b939b5237f68e.html#aa78dff7e30d312e2d45b939b5237f68e">ndims</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00214"></a><span class="lineno"> 214</span>  std::vector<int> <a class="code" href="classpism_1_1array_1_1Array_a8a4885c56a7e19ea98e4a126dba612af.html#a8a4885c56a7e19ea98e4a126dba612af">shape</a>() <span class="keyword">const</span>;<span class="comment"></span></div>
<div class="line"><a name="l00215"></a><span class="lineno"> 215</span> <span class="comment"> //! @brief Returns the number of degrees of freedom per grid point.</span></div>
<div class="line"><a name="l00216"></a><span class="lineno"> 216</span> <span class="comment"></span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classpism_1_1array_1_1Array_a22abc0084c8d344d0fb1faebb8b4319e.html#a22abc0084c8d344d0fb1faebb8b4319e">ndof</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00217"></a><span class="lineno"> 217</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classpism_1_1array_1_1Array_ade892a3412dcdc9f21129c2aed50e84d.html#ade892a3412dcdc9f21129c2aed50e84d">stencil_width</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00218"></a><span class="lineno"> 218</span>  </div>
<div class="line"><a name="l00219"></a><span class="lineno"> 219</span>  <span class="keyword">const</span> std::vector<double>& <a class="code" href="classpism_1_1array_1_1Array_a471583941d54506f80b014efaa14073a.html#a471583941d54506f80b014efaa14073a">levels</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00220"></a><span class="lineno"> 220</span>  </div>
<div class="line"><a name="l00221"></a><span class="lineno"> 221</span>  std::array<double,2> <a class="code" href="classpism_1_1array_1_1Array_a363541662d9b80d79985fb76df22913b.html#a363541662d9b80d79985fb76df22913b">range</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00222"></a><span class="lineno"> 222</span>  std::vector<double> <a class="code" href="classpism_1_1array_1_1Array_ad9b51e2677b0927d2de4eda2b81c3e48.html#ad9b51e2677b0927d2de4eda2b81c3e48">norm</a>(<span class="keywordtype">int</span> <a class="code" href="exactTestM_8c_ad5228cd48403ef9d8b632f5c7c124720.html#ad5228cd48403ef9d8b632f5c7c124720">n</a>) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00223"></a><span class="lineno"> 223</span>  </div>
<div class="line"><a name="l00224"></a><span class="lineno"> 224</span>  <span class="keywordtype">void</span> <a class="code" href="classpism_1_1array_1_1Array_ad11b3ebab1177fd1e6713959389b9de1.html#ad11b3ebab1177fd1e6713959389b9de1">add</a>(<span class="keywordtype">double</span> alpha, <span class="keyword">const</span> <a class="code" href="classpism_1_1array_1_1Array.html">Array</a> &x);</div>
<div class="line"><a name="l00225"></a><span class="lineno"> 225</span>  <span class="keywordtype">void</span> <a class="code" href="classpism_1_1array_1_1Array_a4682225eaaf7a6f647b7f1bf8dafb6e0.html#a4682225eaaf7a6f647b7f1bf8dafb6e0">shift</a>(<span class="keywordtype">double</span> alpha);</div>
<div class="line"><a name="l00226"></a><span class="lineno"> 226</span>  <span class="keywordtype">void</span> <a class="code" href="classpism_1_1array_1_1Array_a7b700739a7f5845c95fa33375a497901.html#a7b700739a7f5845c95fa33375a497901">scale</a>(<span class="keywordtype">double</span> alpha);</div>
<div class="line"><a name="l00227"></a><span class="lineno"> 227</span>  </div>
<div class="line"><a name="l00228"></a><span class="lineno"> 228</span>  <a class="code" href="classpism_1_1petsc_1_1Vec.html">petsc::Vec</a>& <a class="code" href="classpism_1_1array_1_1Array_a5da8e0cb6f7c1e6e2ac6efdc841fb80d.html#a5da8e0cb6f7c1e6e2ac6efdc841fb80d">vec</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00229"></a><span class="lineno"> 229</span>  std::shared_ptr<petsc::DM> <a class="code" href="classpism_1_1array_1_1Array_aa3fb4d0b08e98efb43662be6db1fe2ef.html#aa3fb4d0b08e98efb43662be6db1fe2ef">dm</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00230"></a><span class="lineno"> 230</span>  </div>
<div class="line"><a name="l00231"></a><span class="lineno"> 231</span>  <span class="keywordtype">void</span> <a class="code" href="classpism_1_1array_1_1Array_a2ff33ea8873af12a63971854f0a35304.html#a2ff33ea8873af12a63971854f0a35304">set_name</a>(<span class="keyword">const</span> std::string &name);</div>
<div class="line"><a name="l00232"></a><span class="lineno"> 232</span>  <span class="keyword">const</span> std::string& <a class="code" href="classpism_1_1array_1_1Array_a4fe13d85d5fd0747c00837aaee32651b.html#a4fe13d85d5fd0747c00837aaee32651b">get_name</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00233"></a><span class="lineno"> 233</span>  </div>
<div class="line"><a name="l00234"></a><span class="lineno"> 234</span>  <span class="keywordtype">void</span> <a class="code" href="classpism_1_1array_1_1Array_a3e1a5859cef073a95e5e0cc5f1cc0fdb.html#a3e1a5859cef073a95e5e0cc5f1cc0fdb">define</a>(<span class="keyword">const</span> <a class="code" href="classpism_1_1File.html">File</a> &file, <a class="code" href="namespacepism_1_1io_a53ffb40793c398e10644fbd2ecda3e77.html#a53ffb40793c398e10644fbd2ecda3e77">io::Type</a> default_type) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00235"></a><span class="lineno"> 235</span>  </div>
<div class="line"><a name="l00236"></a><span class="lineno"> 236</span>  <span class="keywordtype">void</span> <a class="code" href="classpism_1_1array_1_1Array_a0326efd779d857755513901da9a54992.html#a0326efd779d857755513901da9a54992">read</a>(<span class="keyword">const</span> std::string &filename, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> time);</div>
<div class="line"><a name="l00237"></a><span class="lineno"> 237</span>  <span class="keywordtype">void</span> <a class="code" href="classpism_1_1array_1_1Array_a0326efd779d857755513901da9a54992.html#a0326efd779d857755513901da9a54992">read</a>(<span class="keyword">const</span> <a class="code" href="classpism_1_1File.html">File</a> &file, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> time);</div>
<div class="line"><a name="l00238"></a><span class="lineno"> 238</span>  </div>
<div class="line"><a name="l00239"></a><span class="lineno"> 239</span>  <span class="keywordtype">void</span> <a class="code" href="classpism_1_1array_1_1Array_a4cdaeb827d166a076668d2ab86416793.html#a4cdaeb827d166a076668d2ab86416793">write</a>(<span class="keyword">const</span> std::string &filename) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00240"></a><span class="lineno"> 240</span>  <span class="keywordtype">void</span> <a class="code" href="classpism_1_1array_1_1Array_a4cdaeb827d166a076668d2ab86416793.html#a4cdaeb827d166a076668d2ab86416793">write</a>(<span class="keyword">const</span> <a class="code" href="classpism_1_1File.html">File</a> &file) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00241"></a><span class="lineno"> 241</span>  </div>
<div class="line"><a name="l00242"></a><span class="lineno"> 242</span>  <span class="keywordtype">void</span> <a class="code" href="classpism_1_1array_1_1Array_aa7de6be7e8f785321df81d9fd6518a16.html#aa7de6be7e8f785321df81d9fd6518a16">regrid</a>(<span class="keyword">const</span> std::string &filename, <a class="code" href="classpism_1_1io_1_1Default.html">io::Default</a> default_value);</div>
<div class="line"><a name="l00243"></a><span class="lineno"> 243</span>  <span class="keywordtype">void</span> <a class="code" href="classpism_1_1array_1_1Array_aa7de6be7e8f785321df81d9fd6518a16.html#aa7de6be7e8f785321df81d9fd6518a16">regrid</a>(<span class="keyword">const</span> <a class="code" href="classpism_1_1File.html">File</a> &file, <a class="code" href="classpism_1_1io_1_1Default.html">io::Default</a> default_value);</div>
<div class="line"><a name="l00244"></a><span class="lineno"> 244</span>  </div>
<div class="line"><a name="l00245"></a><span class="lineno"> 245</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classpism_1_1array_1_1Array_a3ea8fcc8fd376aff2754a8ad081d0195.html#a3ea8fcc8fd376aff2754a8ad081d0195">begin_access</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00246"></a><span class="lineno"> 246</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classpism_1_1array_1_1Array_a0fa36087e9f96f8af1a50d28fcf0f699.html#a0fa36087e9f96f8af1a50d28fcf0f699">end_access</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00247"></a><span class="lineno"> 247</span>  <span class="keywordtype">void</span> <a class="code" href="classpism_1_1array_1_1Array_ad9defa70b851fd2dfac595cfcbb9d803.html#ad9defa70b851fd2dfac595cfcbb9d803">update_ghosts</a>();</div>
<div class="line"><a name="l00248"></a><span class="lineno"> 248</span>  </div>
<div class="line"><a name="l00249"></a><span class="lineno"> 249</span>  std::shared_ptr<petsc::Vec> <a class="code" href="classpism_1_1array_1_1Array_ab03888a9f5e399025704ae789738bba2.html#ab03888a9f5e399025704ae789738bba2">allocate_proc0_copy</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00250"></a><span class="lineno"> 250</span>  <span class="keywordtype">void</span> <a class="code" href="classpism_1_1array_1_1Array_ab56dc4d6cf0f9660ce580bbf4f3585d9.html#ab56dc4d6cf0f9660ce580bbf4f3585d9">put_on_proc0</a>(<a class="code" href="classpism_1_1petsc_1_1Vec.html">petsc::Vec</a> &onp0) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00251"></a><span class="lineno"> 251</span>  <span class="keywordtype">void</span> <a class="code" href="classpism_1_1array_1_1Array_a4b0a2833f2ca67c37228e037d1821ccf.html#a4b0a2833f2ca67c37228e037d1821ccf">get_from_proc0</a>(<a class="code" href="classpism_1_1petsc_1_1Vec.html">petsc::Vec</a> &onp0);</div>
<div class="line"><a name="l00252"></a><span class="lineno"> 252</span>  </div>
<div class="line"><a name="l00253"></a><span class="lineno"> 253</span>  <span class="keywordtype">void</span> <a class="code" href="classpism_1_1array_1_1Array_a9959fcf0124f084e6a2835ed745ce0d1.html#a9959fcf0124f084e6a2835ed745ce0d1">set</a>(<span class="keywordtype">double</span> c);</div>
<div class="line"><a name="l00254"></a><span class="lineno"> 254</span>  </div>
<div class="line"><a name="l00255"></a><span class="lineno"> 255</span>  <a class="code" href="classpism_1_1SpatialVariableMetadata.html">SpatialVariableMetadata</a>& <a class="code" href="classpism_1_1array_1_1Array_af9eece42153cd03bfc8ba237ae5310c4.html#af9eece42153cd03bfc8ba237ae5310c4">metadata</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> N = 0);</div>
<div class="line"><a name="l00256"></a><span class="lineno"> 256</span>  </div>
<div class="line"><a name="l00257"></a><span class="lineno"> 257</span>  <span class="keyword">const</span> <a class="code" href="classpism_1_1SpatialVariableMetadata.html">SpatialVariableMetadata</a>& <a class="code" href="classpism_1_1array_1_1Array_af9eece42153cd03bfc8ba237ae5310c4.html#af9eece42153cd03bfc8ba237ae5310c4">metadata</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> N = 0) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00258"></a><span class="lineno"> 258</span>  </div>
<div class="line"><a name="l00259"></a><span class="lineno"> 259</span>  <span class="keywordtype">int</span> <a class="code" href="classpism_1_1array_1_1Array_a8944ba25bc076e69faafe183268ec390.html#a8944ba25bc076e69faafe183268ec390">state_counter</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00260"></a><span class="lineno"> 260</span>  <span class="keywordtype">void</span> <a class="code" href="classpism_1_1array_1_1Array_aa3b5158e40a9807c547ce7ba7a223b98.html#aa3b5158e40a9807c547ce7ba7a223b98">inc_state_counter</a>();</div>
<div class="line"><a name="l00261"></a><span class="lineno"> 261</span>  </div>
<div class="line"><a name="l00262"></a><span class="lineno"> 262</span>  <span class="keywordtype">void</span> <a class="code" href="classpism_1_1array_1_1Array_a2990bf1b48b47192f64a198ad3b80de3.html#a2990bf1b48b47192f64a198ad3b80de3">set_interpolation_type</a>(<a class="code" href="namespacepism_a3415cf6a7a4530c4e489feebe6365e03.html#a3415cf6a7a4530c4e489feebe6365e03">InterpolationType</a> type);</div>
<div class="line"><a name="l00263"></a><span class="lineno"> 263</span>  </div>
<div class="line"><a name="l00264"></a><span class="lineno"> 264</span>  <span class="keywordtype">void</span> <a class="code" href="classpism_1_1array_1_1Array_a93ecc3ba18b8ee1b19387703814fa5ed.html#a93ecc3ba18b8ee1b19387703814fa5ed">view</a>(std::vector<std::shared_ptr<petsc::Viewer> > viewers) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00265"></a><span class="lineno"> 265</span>  </div>
<div class="line"><a name="l00266"></a><span class="lineno"> 266</span> <span class="keyword">protected</span>:</div>
<div class="line"><a name="l00267"></a><span class="lineno"> 267</span>  <a class="code" href="classpism_1_1array_1_1Array_a1eaef8ef14e4acaa36bfa2476ce4a81d.html#a1eaef8ef14e4acaa36bfa2476ce4a81d">Array</a>(std::shared_ptr<const Grid> <a class="code" href="classpism_1_1array_1_1Array_a982fca110a5d7011f681b928b20e3577.html#a982fca110a5d7011f681b928b20e3577">grid</a>,</div>
<div class="line"><a name="l00268"></a><span class="lineno"> 268</span>  <span class="keyword">const</span> std::string &name,</div>
<div class="line"><a name="l00269"></a><span class="lineno"> 269</span>  <a class="code" href="namespacepism_1_1array_ab49b8ee9a79e7f46ec91fc40efdb7ca3.html#ab49b8ee9a79e7f46ec91fc40efdb7ca3">Kind</a> ghostedp,</div>
<div class="line"><a name="l00270"></a><span class="lineno"> 270</span>  <span class="keywordtype">size_t</span> dof,</div>
<div class="line"><a name="l00271"></a><span class="lineno"> 271</span>  <span class="keywordtype">size_t</span> <a class="code" href="classpism_1_1array_1_1Array_ade892a3412dcdc9f21129c2aed50e84d.html#ade892a3412dcdc9f21129c2aed50e84d">stencil_width</a>,</div>
<div class="line"><a name="l00272"></a><span class="lineno"> 272</span>  <span class="keyword">const</span> std::vector<double> &zlevels);</div>
<div class="line"><a name="l00273"></a><span class="lineno"> 273</span>  <span class="keyword">struct </span><a class="code" href="structpism_1_1array_1_1Array_1_1Impl.html">Impl</a>;</div>
<div class="line"><a name="l00274"></a><span class="lineno"><a class="line" href="classpism_1_1array_1_1Array_a1fa9d92d2183dd048612690d41cfcde5.html#a1fa9d92d2183dd048612690d41cfcde5"> 274</a></span>  <a class="code" href="structpism_1_1array_1_1Array_1_1Impl.html">Impl</a> *<a class="code" href="classpism_1_1array_1_1Array_a1fa9d92d2183dd048612690d41cfcde5.html#a1fa9d92d2183dd048612690d41cfcde5">m_impl</a>;</div>
<div class="line"><a name="l00275"></a><span class="lineno"> 275</span>  </div>
<div class="line"><a name="l00276"></a><span class="lineno"> 276</span>  <span class="comment">// will be cast to double**, double***, or Vector2** in derived classes</span></div>
<div class="line"><a name="l00277"></a><span class="lineno"> 277</span>  <span class="comment">// This is not hidden in m_impl to make it possible to inline operator()</span></div>
<div class="line"><a name="l00278"></a><span class="lineno"><a class="line" href="classpism_1_1array_1_1Array_a4bc8801a2c4ff3fb139baa69ab2dab7f.html#a4bc8801a2c4ff3fb139baa69ab2dab7f"> 278</a></span>  <span class="keyword">mutable</span> <span class="keywordtype">void</span> *<a class="code" href="classpism_1_1array_1_1Array_a4bc8801a2c4ff3fb139baa69ab2dab7f.html#a4bc8801a2c4ff3fb139baa69ab2dab7f">m_array</a>;</div>
<div class="line"><a name="l00279"></a><span class="lineno"> 279</span>  </div>
<div class="line"><a name="l00280"></a><span class="lineno"> 280</span>  <span class="keywordtype">void</span> <a class="code" href="classpism_1_1array_1_1Array_acdf6a6df6f0b82ee5bf8de3472c36835.html#acdf6a6df6f0b82ee5bf8de3472c36835">set_begin_access_use_dof</a>(<span class="keywordtype">bool</span> flag);</div>
<div class="line"><a name="l00281"></a><span class="lineno"> 281</span>  </div>
<div class="line"><a name="l00282"></a><span class="lineno"> 282</span>  <span class="keywordtype">void</span> <a class="code" href="classpism_1_1array_1_1Array_ae34325e69b37407305d08dac29791ee6.html#ae34325e69b37407305d08dac29791ee6">read_impl</a>(<span class="keyword">const</span> <a class="code" href="classpism_1_1File.html">File</a> &file, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> time);</div>
<div class="line"><a name="l00283"></a><span class="lineno"> 283</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classpism_1_1array_1_1Array_a10cc4a99c07691fc367bdd87b4757b28.html#a10cc4a99c07691fc367bdd87b4757b28">regrid_impl</a>(<span class="keyword">const</span> <a class="code" href="classpism_1_1File.html">File</a> &file, <a class="code" href="classpism_1_1io_1_1Default.html">io::Default</a> default_value);</div>
<div class="line"><a name="l00284"></a><span class="lineno"> 284</span>  <span class="keywordtype">void</span> <a class="code" href="classpism_1_1array_1_1Array_a0db005265cf0541f36beec52d6779da2.html#a0db005265cf0541f36beec52d6779da2">write_impl</a>(<span class="keyword">const</span> <a class="code" href="classpism_1_1File.html">File</a> &file) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00285"></a><span class="lineno"> 285</span>  </div>
<div class="line"><a name="l00286"></a><span class="lineno"> 286</span>  <span class="keywordtype">void</span> <a class="code" href="classpism_1_1array_1_1Array_ae273bca5ed37b7b588c2b0e2a9c0f572.html#ae273bca5ed37b7b588c2b0e2a9c0f572">checkCompatibility</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *<span class="keyword">function</span>, <span class="keyword">const</span> <a class="code" href="classpism_1_1array_1_1Array.html">Array</a> &other) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00287"></a><span class="lineno"> 287</span> <span class="comment"></span> </div>
<div class="line"><a name="l00288"></a><span class="lineno"> 288</span> <span class="comment"> //! @brief Check array indices and warn if they are out of range.</span></div>
<div class="line"><a name="l00289"></a><span class="lineno"> 289</span> <span class="comment"></span> <span class="keywordtype">void</span> <a class="code" href="classpism_1_1array_1_1Array_af325585b37b5cd326ca52d6ef2e65e9f.html#af325585b37b5cd326ca52d6ef2e65e9f">check_array_indices</a>(<span class="keywordtype">int</span> i, <span class="keywordtype">int</span> j, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="namespacepism_a7343afff8d353b59dbdec563bd896812.html#a7343afff8d353b59dbdec563bd896812">k</a>) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00290"></a><span class="lineno"> 290</span>  </div>
<div class="line"><a name="l00291"></a><span class="lineno"> 291</span>  <span class="keywordtype">void</span> <a class="code" href="classpism_1_1array_1_1Array_a4d2682345688240e2773608bda9924ad.html#a4d2682345688240e2773608bda9924ad">copy_to_vec</a>(std::shared_ptr<petsc::DM> destination_da, <a class="code" href="classpism_1_1petsc_1_1Vec.html">petsc::Vec</a> &destination) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00292"></a><span class="lineno"> 292</span>  <span class="keywordtype">void</span> <a class="code" href="classpism_1_1array_1_1Array_a7443e19f7b2c8705e4ace9c775f173bd.html#a7443e19f7b2c8705e4ace9c775f173bd">get_dof</a>(std::shared_ptr<petsc::DM> da_result, <a class="code" href="classpism_1_1petsc_1_1Vec.html">petsc::Vec</a> &result, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> start,</div>
<div class="line"><a name="l00293"></a><span class="lineno"> 293</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="test__cube_8c_ad43c3812e6d13e0518d9f8b8f463ffcf.html#ad43c3812e6d13e0518d9f8b8f463ffcf">count</a>=1) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00294"></a><span class="lineno"> 294</span>  <span class="keywordtype">void</span> <a class="code" href="classpism_1_1array_1_1Array_a9e04ef2f4b5c7082a4903876cc21740d.html#a9e04ef2f4b5c7082a4903876cc21740d">set_dof</a>(std::shared_ptr<petsc::DM> da_source, <a class="code" href="classpism_1_1petsc_1_1Vec.html">petsc::Vec</a> &source, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> start,</div>
<div class="line"><a name="l00295"></a><span class="lineno"> 295</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="test__cube_8c_ad43c3812e6d13e0518d9f8b8f463ffcf.html#ad43c3812e6d13e0518d9f8b8f463ffcf">count</a>=1);</div>
<div class="line"><a name="l00296"></a><span class="lineno"> 296</span> <span class="keyword">private</span>:</div>
<div class="line"><a name="l00297"></a><span class="lineno"> 297</span>  <span class="keywordtype">size_t</span> <a class="code" href="classpism_1_1array_1_1Array_a47a8eb9b88993e033cce116e499b2ff5.html#a47a8eb9b88993e033cce116e499b2ff5">size</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00298"></a><span class="lineno"> 298</span>  <span class="comment">// disable copy constructor and the assignment operator:</span></div>
<div class="line"><a name="l00299"></a><span class="lineno"><a class="line" href="classpism_1_1array_1_1Array_a3c06cb44d9e11f8daee2d39729ccb655.html#a3c06cb44d9e11f8daee2d39729ccb655"> 299</a></span>  <a class="code" href="classpism_1_1array_1_1Array_a3c06cb44d9e11f8daee2d39729ccb655.html#a3c06cb44d9e11f8daee2d39729ccb655">Array</a>(<span class="keyword">const</span> <a class="code" href="classpism_1_1array_1_1Array.html">Array</a> &other);</div>
<div class="line"><a name="l00300"></a><span class="lineno"><a class="line" href="classpism_1_1array_1_1Array_a9e5c68ab1889c9f01198d1b78118f678.html#a9e5c68ab1889c9f01198d1b78118f678"> 300</a></span>  <a class="code" href="classpism_1_1array_1_1Array.html">Array</a>& <a class="code" href="classpism_1_1array_1_1Array_a9e5c68ab1889c9f01198d1b78118f678.html#a9e5c68ab1889c9f01198d1b78118f678">operator=</a>(<span class="keyword">const</span> <a class="code" href="classpism_1_1array_1_1Array.html">Array</a>&);</div>
<div class="line"><a name="l00301"></a><span class="lineno"> 301</span> <span class="keyword">public</span>:<span class="comment"></span></div>
<div class="line"><a name="l00302"></a><span class="lineno"> 302</span> <span class="comment"> //! Dump an Array to a file. *This is for debugging only.*</span></div>
<div class="line"><a name="l00303"></a><span class="lineno"> 303</span> <span class="comment"> //! Uses const char[] to make it easier to call it from gdb.</span></div>
<div class="line"><a name="l00304"></a><span class="lineno"> 304</span> <span class="comment"></span> <span class="keywordtype">void</span> <a class="code" href="classpism_1_1array_1_1Array_a349f572801677e376b220abfb88f2118.html#a349f572801677e376b220abfb88f2118">dump</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> filename[]) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00305"></a><span class="lineno"> 305</span>  </div>
<div class="line"><a name="l00306"></a><span class="lineno"> 306</span>  uint64_t <a class="code" href="classpism_1_1array_1_1Array_a600df48032d0a35e21bd95e3239793c4.html#a600df48032d0a35e21bd95e3239793c4">fletcher64_serial</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00307"></a><span class="lineno"> 307</span>  uint64_t <a class="code" href="classpism_1_1array_1_1Array_ab3d67dc7b767fd3dcdfb667c0569d8e3.html#ab3d67dc7b767fd3dcdfb667c0569d8e3">fletcher64</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00308"></a><span class="lineno"> 308</span>  std::string <a class="code" href="classpism_1_1array_1_1Array_a8d8b6e5742fcbf3f2f34d905f4fcd99e.html#a8d8b6e5742fcbf3f2f34d905f4fcd99e">checksum</a>(<span class="keywordtype">bool</span> serial) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00309"></a><span class="lineno"> 309</span>  <span class="keywordtype">void</span> <a class="code" href="classpism_1_1array_1_1Array_a86870f60d7c377faf5a6433d1e1aff20.html#a86870f60d7c377faf5a6433d1e1aff20">print_checksum</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *prefix = <span class="stringliteral">""</span>, <span class="keywordtype">bool</span> serial=<span class="keyword">false</span>) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00310"></a><span class="lineno"> 310</span>  </div>
<div class="line"><a name="l00311"></a><span class="lineno"> 311</span> <span class="keyword">protected</span>:</div>
<div class="line"><a name="l00312"></a><span class="lineno"> 312</span>  <span class="keywordtype">void</span> <a class="code" href="classpism_1_1array_1_1Array_ab56dc4d6cf0f9660ce580bbf4f3585d9.html#ab56dc4d6cf0f9660ce580bbf4f3585d9">put_on_proc0</a>(<a class="code" href="classpism_1_1petsc_1_1Vec.html">petsc::Vec</a> &parallel, <a class="code" href="classpism_1_1petsc_1_1Vec.html">petsc::Vec</a> &onp0) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00313"></a><span class="lineno"> 313</span>  <span class="keywordtype">void</span> <a class="code" href="classpism_1_1array_1_1Array_a4b0a2833f2ca67c37228e037d1821ccf.html#a4b0a2833f2ca67c37228e037d1821ccf">get_from_proc0</a>(<a class="code" href="classpism_1_1petsc_1_1Vec.html">petsc::Vec</a> &onp0, <a class="code" href="classpism_1_1petsc_1_1Vec.html">petsc::Vec</a> &parallel) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00314"></a><span class="lineno"> 314</span> };</div>
<div class="line"><a name="l00315"></a><span class="lineno"> 315</span> <span class="comment"></span> </div>
<div class="line"><a name="l00316"></a><span class="lineno"> 316</span> <span class="comment">//! `std::dynamic_pointer_cast` wrapper that checks if the cast succeeded.</span></div>
<div class="line"><a name="l00317"></a><span class="lineno"> 317</span> <span class="comment"></span><span class="keyword">template</span> <<span class="keyword">class</span> T></div>
<div class="line"><a name="l00318"></a><span class="lineno"><a class="line" href="namespacepism_1_1array_ae447cfd4c50f67ec58fc796a76c7129a.html#ae447cfd4c50f67ec58fc796a76c7129a"> 318</a></span> <span class="keyword">static</span> <span class="keyword">typename</span> std::shared_ptr<T> <a class="code" href="namespacepism_1_1array_ae447cfd4c50f67ec58fc796a76c7129a.html#ae447cfd4c50f67ec58fc796a76c7129a">cast</a>(std::shared_ptr<Array> input) {</div>
<div class="line"><a name="l00319"></a><span class="lineno"> 319</span>  <span class="keyword">auto</span> result = std::dynamic_pointer_cast<T, Array>(input);</div>
<div class="line"><a name="l00320"></a><span class="lineno"> 320</span>  </div>
<div class="line"><a name="l00321"></a><span class="lineno"> 321</span>  <span class="keywordflow">if</span> (not result) {</div>
<div class="line"><a name="l00322"></a><span class="lineno"> 322</span>  <span class="keywordflow">throw</span> <a class="code" href="classpism_1_1RuntimeError.html">RuntimeError</a>(<a class="code" href="error__handling_8hh_aa0c260bffe8a4dbd77d48e8feee7c526.html#aa0c260bffe8a4dbd77d48e8feee7c526">PISM_ERROR_LOCATION</a>, <span class="stringliteral">"dynamic cast failure"</span>);</div>
<div class="line"><a name="l00323"></a><span class="lineno"> 323</span>  }</div>
<div class="line"><a name="l00324"></a><span class="lineno"> 324</span>  </div>
<div class="line"><a name="l00325"></a><span class="lineno"> 325</span>  <span class="keywordflow">return</span> result;</div>
<div class="line"><a name="l00326"></a><span class="lineno"> 326</span> }</div>
<div class="line"><a name="l00327"></a><span class="lineno"> 327</span>  </div>
<div class="line"><a name="l00328"></a><span class="lineno"> 328</span> } <span class="comment">// end of namespace array</span></div>
<div class="line"><a name="l00329"></a><span class="lineno"> 329</span> <span class="comment"></span> </div>
<div class="line"><a name="l00330"></a><span class="lineno"> 330</span> <span class="comment">/**</span></div>
<div class="line"><a name="l00331"></a><span class="lineno"> 331</span> <span class="comment"> * Convert a PETSc Vec from the units in `from` into units in `to` (in place).</span></div>
<div class="line"><a name="l00332"></a><span class="lineno"> 332</span> <span class="comment"> *</span></div>
<div class="line"><a name="l00333"></a><span class="lineno"> 333</span> <span class="comment"> * @param v data to convert</span></div>
<div class="line"><a name="l00334"></a><span class="lineno"> 334</span> <span class="comment"> * @param system unit system</span></div>
<div class="line"><a name="l00335"></a><span class="lineno"> 335</span> <span class="comment"> * @param spec1 source unit specification string</span></div>
<div class="line"><a name="l00336"></a><span class="lineno"> 336</span> <span class="comment"> * @param spec2 destination unit specification string</span></div>
<div class="line"><a name="l00337"></a><span class="lineno"> 337</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00338"></a><span class="lineno"><a class="line" href="namespacepism_ad84858a051f421bc00d00dad164c4004.html#ad84858a051f421bc00d00dad164c4004"> 338</a></span> <span class="keywordtype">void</span> <a class="code" href="namespacepism_aded10babcc1dfd7b9d3f41562db82090.html#aded10babcc1dfd7b9d3f41562db82090">convert_vec</a>(<a class="code" href="classpism_1_1petsc_1_1Vec.html">petsc::Vec</a> &v, std::shared_ptr<units::System> system,</div>
<div class="line"><a name="l00339"></a><span class="lineno"> 339</span>  <span class="keyword">const</span> std::string &spec1, <span class="keyword">const</span> std::string &spec2);</div>
<div class="line"><a name="l00340"></a><span class="lineno"> 340</span>  </div>
<div class="line"><a name="l00341"></a><span class="lineno"> 341</span> } <span class="comment">// end of namespace pism</span></div>
<div class="line"><a name="l00342"></a><span class="lineno"> 342</span>  </div>
<div class="line"><a name="l00343"></a><span class="lineno"> 343</span> <span class="preprocessor">#endif </span><span class="comment">/* PISM_ARRAY_H */</span><span class="preprocessor"></span></div>
<div class="ttc" id="aclasspism_1_1File_html"><div class="ttname"><a href="classpism_1_1File.html">pism::File</a></div><div class="ttdoc">High-level PISM I/O class.</div><div class="ttdef"><b>Definition:</b> <a href="File_8hh_source.html#l00055">File.hh:56</a></div></div>
<div class="ttc" id="aclasspism_1_1Grid_html"><div class="ttname"><a href="classpism_1_1Grid.html">pism::Grid</a></div><div class="ttdoc">Describes the PISM grid and the distribution of data across processors.</div><div class="ttdef"><b>Definition:</b> <a href="Grid_8hh_source.html#l00282">Grid.hh:282</a></div></div>
<div class="ttc" id="aclasspism_1_1PetscAccessible_a2a5ee8392bf3bfd7e1d5f8aa76f49f45_html_a2a5ee8392bf3bfd7e1d5f8aa76f49f45"><div class="ttname"><a href="classpism_1_1PetscAccessible_a2a5ee8392bf3bfd7e1d5f8aa76f49f45.html#a2a5ee8392bf3bfd7e1d5f8aa76f49f45">pism::PetscAccessible::~PetscAccessible</a></div><div class="ttdeci">virtual ~PetscAccessible()=default</div></div>
<div class="ttc" id="aclasspism_1_1PetscAccessible_a3479683e4a350e10ae36242daf3ca011_html_a3479683e4a350e10ae36242daf3ca011"><div class="ttname"><a href="classpism_1_1PetscAccessible_a3479683e4a350e10ae36242daf3ca011.html#a3479683e4a350e10ae36242daf3ca011">pism::PetscAccessible::begin_access</a></div><div class="ttdeci">virtual void begin_access() const =0</div></div>
<div class="ttc" id="aclasspism_1_1PetscAccessible_a7f0f57337f18a79b121cc108aa5ec37c_html_a7f0f57337f18a79b121cc108aa5ec37c"><div class="ttname"><a href="classpism_1_1PetscAccessible_a7f0f57337f18a79b121cc108aa5ec37c.html#a7f0f57337f18a79b121cc108aa5ec37c">pism::PetscAccessible::end_access</a></div><div class="ttdeci">virtual void end_access() const =0</div></div>
<div class="ttc" id="aclasspism_1_1PetscAccessible_html"><div class="ttname"><a href="classpism_1_1PetscAccessible.html">pism::PetscAccessible</a></div><div class="ttdef"><b>Definition:</b> <a href="Array_8hh_source.html#l00052">Array.hh:52</a></div></div>
<div class="ttc" id="aclasspism_1_1RuntimeError_html"><div class="ttname"><a href="classpism_1_1RuntimeError.html">pism::RuntimeError</a></div><div class="ttdef"><b>Definition:</b> <a href="error__handling_8hh_source.html#l00046">error_handling.hh:46</a></div></div>
<div class="ttc" id="aclasspism_1_1SpatialVariableMetadata_html"><div class="ttname"><a href="classpism_1_1SpatialVariableMetadata.html">pism::SpatialVariableMetadata</a></div><div class="ttdoc">Spatial NetCDF variable (corresponding to a 2D or 3D scalar field).</div><div class="ttdef"><b>Definition:</b> <a href="VariableMetadata_8hh_source.html#l00188">VariableMetadata.hh:188</a></div></div>
<div class="ttc" id="aclasspism_1_1array_1_1AccessScope_a46c8cd5c8fb2dee06845dc385f04cc28_html_a46c8cd5c8fb2dee06845dc385f04cc28"><div class="ttname"><a href="classpism_1_1array_1_1AccessScope_a46c8cd5c8fb2dee06845dc385f04cc28.html#a46c8cd5c8fb2dee06845dc385f04cc28">pism::array::AccessScope::add</a></div><div class="ttdeci">void add(const PetscAccessible &v)</div><div class="ttdef"><b>Definition:</b> <a href="Array_8cc_source.html#l00933">Array.cc:933</a></div></div>
<div class="ttc" id="aclasspism_1_1array_1_1AccessScope_a7b645191ff12347a173b1137bad274e2_html_a7b645191ff12347a173b1137bad274e2"><div class="ttname"><a href="classpism_1_1array_1_1AccessScope_a7b645191ff12347a173b1137bad274e2.html#a7b645191ff12347a173b1137bad274e2">pism::array::AccessScope::~AccessScope</a></div><div class="ttdeci">~AccessScope()</div><div class="ttdef"><b>Definition:</b> <a href="Array_8cc_source.html#l00911">Array.cc:911</a></div></div>
<div class="ttc" id="aclasspism_1_1array_1_1AccessScope_ae18bd835e0b5ee2b4f83d0a7e4f330a1_html_ae18bd835e0b5ee2b4f83d0a7e4f330a1"><div class="ttname"><a href="classpism_1_1array_1_1AccessScope_ae18bd835e0b5ee2b4f83d0a7e4f330a1.html#ae18bd835e0b5ee2b4f83d0a7e4f330a1">pism::array::AccessScope::AccessScope</a></div><div class="ttdeci">AccessScope()</div><div class="ttdef"><b>Definition:</b> <a href="Array_8cc_source.html#l00907">Array.cc:907</a></div></div>
<div class="ttc" id="aclasspism_1_1array_1_1AccessScope_afe5fd53d93439e9137f82aeb9eee6abe_html_afe5fd53d93439e9137f82aeb9eee6abe"><div class="ttname"><a href="classpism_1_1array_1_1AccessScope_afe5fd53d93439e9137f82aeb9eee6abe.html#afe5fd53d93439e9137f82aeb9eee6abe">pism::array::AccessScope::m_vecs</a></div><div class="ttdeci">std::vector< const PetscAccessible * > m_vecs</div><div class="ttdef"><b>Definition:</b> <a href="Array_8hh_source.html#l00074">Array.hh:74</a></div></div>
<div class="ttc" id="aclasspism_1_1array_1_1AccessScope_html"><div class="ttname"><a href="classpism_1_1array_1_1AccessScope.html">pism::array::AccessScope</a></div><div class="ttdoc">Makes sure that we call begin_access() and end_access() for all accessed array::Arrays.</div><div class="ttdef"><b>Definition:</b> <a href="Array_8hh_source.html#l00065">Array.hh:65</a></div></div>
<div class="ttc" id="aclasspism_1_1array_1_1Array_a0326efd779d857755513901da9a54992_html_a0326efd779d857755513901da9a54992"><div class="ttname"><a href="classpism_1_1array_1_1Array_a0326efd779d857755513901da9a54992.html#a0326efd779d857755513901da9a54992">pism::array::Array::read</a></div><div class="ttdeci">void read(const std::string &filename, unsigned int time)</div><div class="ttdef"><b>Definition:</b> <a href="Array_8cc_source.html#l00809">Array.cc:809</a></div></div>
<div class="ttc" id="aclasspism_1_1array_1_1Array_a0db005265cf0541f36beec52d6779da2_html_a0db005265cf0541f36beec52d6779da2"><div class="ttname"><a href="classpism_1_1array_1_1Array_a0db005265cf0541f36beec52d6779da2.html#a0db005265cf0541f36beec52d6779da2">pism::array::Array::write_impl</a></div><div class="ttdeci">void write_impl(const File &file) const</div><div class="ttdoc">Writes an Array to a NetCDF file.</div><div class="ttdef"><b>Definition:</b> <a href="Array_8cc_source.html#l00564">Array.cc:564</a></div></div>
<div class="ttc" id="aclasspism_1_1array_1_1Array_a0fa36087e9f96f8af1a50d28fcf0f699_html_a0fa36087e9f96f8af1a50d28fcf0f699"><div class="ttname"><a href="classpism_1_1array_1_1Array_a0fa36087e9f96f8af1a50d28fcf0f699.html#a0fa36087e9f96f8af1a50d28fcf0f699">pism::array::Array::end_access</a></div><div class="ttdeci">virtual void end_access() const</div><div class="ttdoc">Checks if an Array is allocated and calls DAVecRestoreArray.</div><div class="ttdef"><b>Definition:</b> <a href="Array_8cc_source.html#l00667">Array.cc:667</a></div></div>
<div class="ttc" id="aclasspism_1_1array_1_1Array_a10cc4a99c07691fc367bdd87b4757b28_html_a10cc4a99c07691fc367bdd87b4757b28"><div class="ttname"><a href="classpism_1_1array_1_1Array_a10cc4a99c07691fc367bdd87b4757b28.html#a10cc4a99c07691fc367bdd87b4757b28">pism::array::Array::regrid_impl</a></div><div class="ttdeci">virtual void regrid_impl(const File &file, io::Default default_value)</div><div class="ttdoc">Gets an Array from a file file, interpolating onto the current grid.</div><div class="ttdef"><b>Definition:</b> <a href="Array_8cc_source.html#l00426">Array.cc:426</a></div></div>
<div class="ttc" id="aclasspism_1_1array_1_1Array_a1eaef8ef14e4acaa36bfa2476ce4a81d_html_a1eaef8ef14e4acaa36bfa2476ce4a81d"><div class="ttname"><a href="classpism_1_1array_1_1Array_a1eaef8ef14e4acaa36bfa2476ce4a81d.html#a1eaef8ef14e4acaa36bfa2476ce4a81d">pism::array::Array::Array</a></div><div class="ttdeci">Array(std::shared_ptr< const Grid > grid, const std::string &name, Kind ghostedp, size_t dof, size_t stencil_width, const std::vector< double > &zlevels)</div><div class="ttdef"><b>Definition:</b> <a href="Array_8cc_source.html#l00059">Array.cc:59</a></div></div>
<div class="ttc" id="aclasspism_1_1array_1_1Array_a1fa9d92d2183dd048612690d41cfcde5_html_a1fa9d92d2183dd048612690d41cfcde5"><div class="ttname"><a href="classpism_1_1array_1_1Array_a1fa9d92d2183dd048612690d41cfcde5.html#a1fa9d92d2183dd048612690d41cfcde5">pism::array::Array::m_impl</a></div><div class="ttdeci">Impl * m_impl</div><div class="ttdef"><b>Definition:</b> <a href="Array_8hh_source.html#l00274">Array.hh:273</a></div></div>
<div class="ttc" id="aclasspism_1_1array_1_1Array_a22abc0084c8d344d0fb1faebb8b4319e_html_a22abc0084c8d344d0fb1faebb8b4319e"><div class="ttname"><a href="classpism_1_1array_1_1Array_a22abc0084c8d344d0fb1faebb8b4319e.html#a22abc0084c8d344d0fb1faebb8b4319e">pism::array::Array::ndof</a></div><div class="ttdeci">unsigned int ndof() const</div><div class="ttdoc">Returns the number of degrees of freedom per grid point.</div><div class="ttdef"><b>Definition:</b> <a href="Array_8cc_source.html#l00136">Array.cc:136</a></div></div>
<div class="ttc" id="aclasspism_1_1array_1_1Array_a2990bf1b48b47192f64a198ad3b80de3_html_a2990bf1b48b47192f64a198ad3b80de3"><div class="ttname"><a href="classpism_1_1array_1_1Array_a2990bf1b48b47192f64a198ad3b80de3.html#a2990bf1b48b47192f64a198ad3b80de3">pism::array::Array::set_interpolation_type</a></div><div class="ttdeci">void set_interpolation_type(InterpolationType type)</div><div class="ttdef"><b>Definition:</b> <a href="Array_8cc_source.html#l00179">Array.cc:179</a></div></div>
<div class="ttc" id="aclasspism_1_1array_1_1Array_a2ff33ea8873af12a63971854f0a35304_html_a2ff33ea8873af12a63971854f0a35304"><div class="ttname"><a href="classpism_1_1array_1_1Array_a2ff33ea8873af12a63971854f0a35304.html#a2ff33ea8873af12a63971854f0a35304">pism::array::Array::set_name</a></div><div class="ttdeci">void set_name(const std::string &name)</div><div class="ttdoc">Sets the variable name to name.</div><div class="ttdef"><b>Definition:</b> <a href="Array_8cc_source.html#l00371">Array.cc:371</a></div></div>
<div class="ttc" id="aclasspism_1_1array_1_1Array_a349f572801677e376b220abfb88f2118_html_a349f572801677e376b220abfb88f2118"><div class="ttname"><a href="classpism_1_1array_1_1Array_a349f572801677e376b220abfb88f2118.html#a349f572801677e376b220abfb88f2118">pism::array::Array::dump</a></div><div class="ttdeci">void dump(const char filename[]) const</div><div class="ttdoc">Dumps a variable to a file, overwriting this file's contents (for debugging).</div><div class="ttdef"><b>Definition:</b> <a href="Array_8cc_source.html#l00607">Array.cc:607</a></div></div>
<div class="ttc" id="aclasspism_1_1array_1_1Array_a363541662d9b80d79985fb76df22913b_html_a363541662d9b80d79985fb76df22913b"><div class="ttname"><a href="classpism_1_1array_1_1Array_a363541662d9b80d79985fb76df22913b.html#a363541662d9b80d79985fb76df22913b">pism::array::Array::range</a></div><div class="ttdeci">std::array< double, 2 > range() const</div><div class="ttdoc">Result: min <- min(v[j]), max <- max(v[j]).</div><div class="ttdef"><b>Definition:</b> <a href="Array_8cc_source.html#l00194">Array.cc:194</a></div></div>
<div class="ttc" id="aclasspism_1_1array_1_1Array_a3c06cb44d9e11f8daee2d39729ccb655_html_a3c06cb44d9e11f8daee2d39729ccb655"><div class="ttname"><a href="classpism_1_1array_1_1Array_a3c06cb44d9e11f8daee2d39729ccb655.html#a3c06cb44d9e11f8daee2d39729ccb655">pism::array::Array::Array</a></div><div class="ttdeci">Array(const Array &other)</div></div>
<div class="ttc" id="aclasspism_1_1array_1_1Array_a3e1a5859cef073a95e5e0cc5f1cc0fdb_html_a3e1a5859cef073a95e5e0cc5f1cc0fdb"><div class="ttname"><a href="classpism_1_1array_1_1Array_a3e1a5859cef073a95e5e0cc5f1cc0fdb.html#a3e1a5859cef073a95e5e0cc5f1cc0fdb">pism::array::Array::define</a></div><div class="ttdeci">void define(const File &file, io::Type default_type) const</div><div class="ttdoc">Define variables corresponding to an Array in a file opened using file.</div><div class="ttdef"><b>Definition:</b> <a href="Array_8cc_source.html#l00540">Array.cc:540</a></div></div>
<div class="ttc" id="aclasspism_1_1array_1_1Array_a3ea8fcc8fd376aff2754a8ad081d0195_html_a3ea8fcc8fd376aff2754a8ad081d0195"><div class="ttname"><a href="classpism_1_1array_1_1Array_a3ea8fcc8fd376aff2754a8ad081d0195.html#a3ea8fcc8fd376aff2754a8ad081d0195">pism::array::Array::begin_access</a></div><div class="ttdeci">virtual void begin_access() const</div><div class="ttdoc">Checks if an Array is allocated and calls DAVecGetArray.</div><div class="ttdef"><b>Definition:</b> <a href="Array_8cc_source.html#l00646">Array.cc:646</a></div></div>
<div class="ttc" id="aclasspism_1_1array_1_1Array_a4682225eaaf7a6f647b7f1bf8dafb6e0_html_a4682225eaaf7a6f647b7f1bf8dafb6e0"><div class="ttname"><a href="classpism_1_1array_1_1Array_a4682225eaaf7a6f647b7f1bf8dafb6e0.html#a4682225eaaf7a6f647b7f1bf8dafb6e0">pism::array::Array::shift</a></div><div class="ttdeci">void shift(double alpha)</div><div class="ttdoc">Result: v[j] <- v[j] + alpha for all j. Calls VecShift.</div><div class="ttdef"><b>Definition:</b> <a href="Array_8cc_source.html#l00245">Array.cc:245</a></div></div>
<div class="ttc" id="aclasspism_1_1array_1_1Array_a471583941d54506f80b014efaa14073a_html_a471583941d54506f80b014efaa14073a"><div class="ttname"><a href="classpism_1_1array_1_1Array_a471583941d54506f80b014efaa14073a.html#a471583941d54506f80b014efaa14073a">pism::array::Array::levels</a></div><div class="ttdeci">const std::vector< double > & levels() const</div><div class="ttdef"><b>Definition:</b> <a href="Array_8cc_source.html#l00140">Array.cc:140</a></div></div>
<div class="ttc" id="aclasspism_1_1array_1_1Array_a47a8eb9b88993e033cce116e499b2ff5_html_a47a8eb9b88993e033cce116e499b2ff5"><div class="ttname"><a href="classpism_1_1array_1_1Array_a47a8eb9b88993e033cce116e499b2ff5.html#a47a8eb9b88993e033cce116e499b2ff5">pism::array::Array::size</a></div><div class="ttdeci">size_t size() const</div><div class="ttdoc">Return the total number of elements in the owned part of an array.</div><div class="ttdef"><b>Definition:</b> <a href="Array_8cc_source.html#l00946">Array.cc:946</a></div></div>
<div class="ttc" id="aclasspism_1_1array_1_1Array_a4b0a2833f2ca67c37228e037d1821ccf_html_a4b0a2833f2ca67c37228e037d1821ccf"><div class="ttname"><a href="classpism_1_1array_1_1Array_a4b0a2833f2ca67c37228e037d1821ccf.html#a4b0a2833f2ca67c37228e037d1821ccf">pism::array::Array::get_from_proc0</a></div><div class="ttdeci">void get_from_proc0(petsc::Vec &onp0)</div><div class="ttdoc">Gets a local Array2 from processor 0.</div><div class="ttdef"><b>Definition:</b> <a href="Array_8cc_source.html#l01095">Array.cc:1095</a></div></div>
<div class="ttc" id="aclasspism_1_1array_1_1Array_a4bc8801a2c4ff3fb139baa69ab2dab7f_html_a4bc8801a2c4ff3fb139baa69ab2dab7f"><div class="ttname"><a href="classpism_1_1array_1_1Array_a4bc8801a2c4ff3fb139baa69ab2dab7f.html#a4bc8801a2c4ff3fb139baa69ab2dab7f">pism::array::Array::m_array</a></div><div class="ttdeci">void * m_array</div><div class="ttdef"><b>Definition:</b> <a href="Array_8hh_source.html#l00278">Array.hh:278</a></div></div>
<div class="ttc" id="aclasspism_1_1array_1_1Array_a4cdaeb827d166a076668d2ab86416793_html_a4cdaeb827d166a076668d2ab86416793"><div class="ttname"><a href="classpism_1_1array_1_1Array_a4cdaeb827d166a076668d2ab86416793.html#a4cdaeb827d166a076668d2ab86416793">pism::array::Array::write</a></div><div class="ttdeci">void write(const std::string &filename) const</div><div class="ttdef"><b>Definition:</b> <a href="Array_8cc_source.html#l00800">Array.cc:800</a></div></div>
<div class="ttc" id="aclasspism_1_1array_1_1Array_a4d2682345688240e2773608bda9924ad_html_a4d2682345688240e2773608bda9924ad"><div class="ttname"><a href="classpism_1_1array_1_1Array_a4d2682345688240e2773608bda9924ad.html#a4d2682345688240e2773608bda9924ad">pism::array::Array::copy_to_vec</a></div><div class="ttdeci">void copy_to_vec(std::shared_ptr< petsc::DM > destination_da, petsc::Vec &destination) const</div><div class="ttdoc">Copies v to a global vector 'destination'. Ghost points are discarded.</div><div class="ttdef"><b>Definition:</b> <a href="Array_8cc_source.html#l00267">Array.cc:267</a></div></div>
<div class="ttc" id="aclasspism_1_1array_1_1Array_a4fe13d85d5fd0747c00837aaee32651b_html_a4fe13d85d5fd0747c00837aaee32651b"><div class="ttname"><a href="classpism_1_1array_1_1Array_a4fe13d85d5fd0747c00837aaee32651b.html#a4fe13d85d5fd0747c00837aaee32651b">pism::array::Array::get_name</a></div><div class="ttdeci">const std::string & get_name() const</div><div class="ttdoc">Get the name of an Array object.</div><div class="ttdef"><b>Definition:</b> <a href="Array_8cc_source.html#l00383">Array.cc:383</a></div></div>
<div class="ttc" id="aclasspism_1_1array_1_1Array_a57e576c6c3873ad06edabcd2b30e0f4a_html_a57e576c6c3873ad06edabcd2b30e0f4a"><div class="ttname"><a href="classpism_1_1array_1_1Array_a57e576c6c3873ad06edabcd2b30e0f4a.html#a57e576c6c3873ad06edabcd2b30e0f4a">pism::array::Array::~Array</a></div><div class="ttdeci">virtual ~Array()</div><div class="ttdef"><b>Definition:</b> <a href="Array_8cc_source.html#l00105">Array.cc:105</a></div></div>
<div class="ttc" id="aclasspism_1_1array_1_1Array_a5da8e0cb6f7c1e6e2ac6efdc841fb80d_html_a5da8e0cb6f7c1e6e2ac6efdc841fb80d"><div class="ttname"><a href="classpism_1_1array_1_1Array_a5da8e0cb6f7c1e6e2ac6efdc841fb80d.html#a5da8e0cb6f7c1e6e2ac6efdc841fb80d">pism::array::Array::vec</a></div><div class="ttdeci">petsc::Vec & vec() const</div><div class="ttdef"><b>Definition:</b> <a href="Array_8cc_source.html#l00339">Array.cc:339</a></div></div>
<div class="ttc" id="aclasspism_1_1array_1_1Array_a600df48032d0a35e21bd95e3239793c4_html_a600df48032d0a35e21bd95e3239793c4"><div class="ttname"><a href="classpism_1_1array_1_1Array_a600df48032d0a35e21bd95e3239793c4.html#a600df48032d0a35e21bd95e3239793c4">pism::array::Array::fletcher64_serial</a></div><div class="ttdeci">uint64_t fletcher64_serial() const</div><div class="ttdef"><b>Definition:</b> <a href="Array_8cc_source.html#l01112">Array.cc:1112</a></div></div>
<div class="ttc" id="aclasspism_1_1array_1_1Array_a7443e19f7b2c8705e4ace9c775f173bd_html_a7443e19f7b2c8705e4ace9c775f173bd"><div class="ttname"><a href="classpism_1_1array_1_1Array_a7443e19f7b2c8705e4ace9c775f173bd.html#a7443e19f7b2c8705e4ace9c775f173bd">pism::array::Array::get_dof</a></div><div class="ttdeci">void get_dof(std::shared_ptr< petsc::DM > da_result, petsc::Vec &result, unsigned int start, unsigned int count=1) const</div><div class="ttdef"><b>Definition:</b> <a href="Array_8cc_source.html#l00277">Array.cc:277</a></div></div>
<div class="ttc" id="aclasspism_1_1array_1_1Array_a7b700739a7f5845c95fa33375a497901_html_a7b700739a7f5845c95fa33375a497901"><div class="ttname"><a href="classpism_1_1array_1_1Array_a7b700739a7f5845c95fa33375a497901.html#a7b700739a7f5845c95fa33375a497901">pism::array::Array::scale</a></div><div class="ttdeci">void scale(double alpha)</div><div class="ttdoc">Result: v <- v * alpha. Calls VecScale.</div><div class="ttdef"><b>Definition:</b> <a href="Array_8cc_source.html#l00253">Array.cc:253</a></div></div>
<div class="ttc" id="aclasspism_1_1array_1_1Array_a86870f60d7c377faf5a6433d1e1aff20_html_a86870f60d7c377faf5a6433d1e1aff20"><div class="ttname"><a href="classpism_1_1array_1_1Array_a86870f60d7c377faf5a6433d1e1aff20.html#a86870f60d7c377faf5a6433d1e1aff20">pism::array::Array::print_checksum</a></div><div class="ttdeci">void print_checksum(const char *prefix="", bool serial=false) const</div><div class="ttdef"><b>Definition:</b> <a href="Array_8cc_source.html#l01198">Array.cc:1198</a></div></div>
<div class="ttc" id="aclasspism_1_1array_1_1Array_a8944ba25bc076e69faafe183268ec390_html_a8944ba25bc076e69faafe183268ec390"><div class="ttname"><a href="classpism_1_1array_1_1Array_a8944ba25bc076e69faafe183268ec390.html#a8944ba25bc076e69faafe183268ec390">pism::array::Array::state_counter</a></div><div class="ttdeci">int state_counter() const</div><div class="ttdoc">Get the object state counter.</div><div class="ttdef"><b>Definition:</b> <a href="Array_8cc_source.html#l00128">Array.cc:128</a></div></div>
<div class="ttc" id="aclasspism_1_1array_1_1Array_a8a4885c56a7e19ea98e4a126dba612af_html_a8a4885c56a7e19ea98e4a126dba612af"><div class="ttname"><a href="classpism_1_1array_1_1Array_a8a4885c56a7e19ea98e4a126dba612af.html#a8a4885c56a7e19ea98e4a126dba612af">pism::array::Array::shape</a></div><div class="ttdeci">std::vector< int > shape() const</div><div class="ttdef"><b>Definition:</b> <a href="Array_8cc_source.html#l00160">Array.cc:160</a></div></div>
<div class="ttc" id="aclasspism_1_1array_1_1Array_a8d8b6e5742fcbf3f2f34d905f4fcd99e_html_a8d8b6e5742fcbf3f2f34d905f4fcd99e"><div class="ttname"><a href="classpism_1_1array_1_1Array_a8d8b6e5742fcbf3f2f34d905f4fcd99e.html#a8d8b6e5742fcbf3f2f34d905f4fcd99e">pism::array::Array::checksum</a></div><div class="ttdeci">std::string checksum(bool serial) const</div><div class="ttdef"><b>Definition:</b> <a href="Array_8cc_source.html#l01189">Array.cc:1189</a></div></div>
<div class="ttc" id="aclasspism_1_1array_1_1Array_a93ecc3ba18b8ee1b19387703814fa5ed_html_a93ecc3ba18b8ee1b19387703814fa5ed"><div class="ttname"><a href="classpism_1_1array_1_1Array_a93ecc3ba18b8ee1b19387703814fa5ed.html#a93ecc3ba18b8ee1b19387703814fa5ed">pism::array::Array::view</a></div><div class="ttdeci">void view(std::vector< std::shared_ptr< petsc::Viewer > > viewers) const</div><div class="ttdoc">View a 2D vector field using existing PETSc viewers.</div><div class="ttdef"><b>Definition:</b> <a href="Array_8cc_source.html#l01205">Array.cc:1205</a></div></div>
<div class="ttc" id="aclasspism_1_1array_1_1Array_a982fca110a5d7011f681b928b20e3577_html_a982fca110a5d7011f681b928b20e3577"><div class="ttname"><a href="classpism_1_1array_1_1Array_a982fca110a5d7011f681b928b20e3577.html#a982fca110a5d7011f681b928b20e3577">pism::array::Array::grid</a></div><div class="ttdeci">std::shared_ptr< const Grid > grid() const</div><div class="ttdef"><b>Definition:</b> <a href="Array_8cc_source.html#l00132">Array.cc:132</a></div></div>
<div class="ttc" id="aclasspism_1_1array_1_1Array_a9959fcf0124f084e6a2835ed745ce0d1_html_a9959fcf0124f084e6a2835ed745ce0d1"><div class="ttname"><a href="classpism_1_1array_1_1Array_a9959fcf0124f084e6a2835ed745ce0d1.html#a9959fcf0124f084e6a2835ed745ce0d1">pism::array::Array::set</a></div><div class="ttdeci">void set(double c)</div><div class="ttdoc">Result: v[j] <- c for all j.</div><div class="ttdef"><b>Definition:</b> <a href="Array_8cc_source.html#l00707">Array.cc:707</a></div></div>
<div class="ttc" id="aclasspism_1_1array_1_1Array_a9e04ef2f4b5c7082a4903876cc21740d_html_a9e04ef2f4b5c7082a4903876cc21740d"><div class="ttname"><a href="classpism_1_1array_1_1Array_a9e04ef2f4b5c7082a4903876cc21740d.html#a9e04ef2f4b5c7082a4903876cc21740d">pism::array::Array::set_dof</a></div><div class="ttdeci">void set_dof(std::shared_ptr< petsc::DM > da_source, petsc::Vec &source, unsigned int start, unsigned int count=1)</div><div class="ttdef"><b>Definition:</b> <a href="Array_8cc_source.html#l00302">Array.cc:302</a></div></div>
<div class="ttc" id="aclasspism_1_1array_1_1Array_a9e5c68ab1889c9f01198d1b78118f678_html_a9e5c68ab1889c9f01198d1b78118f678"><div class="ttname"><a href="classpism_1_1array_1_1Array_a9e5c68ab1889c9f01198d1b78118f678.html#a9e5c68ab1889c9f01198d1b78118f678">pism::array::Array::operator=</a></div><div class="ttdeci">Array & operator=(const Array &)</div></div>
<div class="ttc" id="aclasspism_1_1array_1_1Array_aa3b5158e40a9807c547ce7ba7a223b98_html_aa3b5158e40a9807c547ce7ba7a223b98"><div class="ttname"><a href="classpism_1_1array_1_1Array_aa3b5158e40a9807c547ce7ba7a223b98.html#aa3b5158e40a9807c547ce7ba7a223b98">pism::array::Array::inc_state_counter</a></div><div class="ttdeci">void inc_state_counter()</div><div class="ttdoc">Increment the object state counter.</div><div class="ttdef"><b>Definition:</b> <a href="Array_8cc_source.html#l00151">Array.cc:151</a></div></div>
<div class="ttc" id="aclasspism_1_1array_1_1Array_aa3fb4d0b08e98efb43662be6db1fe2ef_html_aa3fb4d0b08e98efb43662be6db1fe2ef"><div class="ttname"><a href="classpism_1_1array_1_1Array_aa3fb4d0b08e98efb43662be6db1fe2ef.html#aa3fb4d0b08e98efb43662be6db1fe2ef">pism::array::Array::dm</a></div><div class="ttdeci">std::shared_ptr< petsc::DM > dm() const</div><div class="ttdef"><b>Definition:</b> <a href="Array_8cc_source.html#l00353">Array.cc:353</a></div></div>
<div class="ttc" id="aclasspism_1_1array_1_1Array_aa78dff7e30d312e2d45b939b5237f68e_html_aa78dff7e30d312e2d45b939b5237f68e"><div class="ttname"><a href="classpism_1_1array_1_1Array_aa78dff7e30d312e2d45b939b5237f68e.html#aa78dff7e30d312e2d45b939b5237f68e">pism::array::Array::ndims</a></div><div class="ttdeci">unsigned int ndims() const</div><div class="ttdoc">Returns the number of spatial dimensions.</div><div class="ttdef"><b>Definition:</b> <a href="Array_8cc_source.html#l00156">Array.cc:156</a></div></div>
<div class="ttc" id="aclasspism_1_1array_1_1Array_aa7de6be7e8f785321df81d9fd6518a16_html_aa7de6be7e8f785321df81d9fd6518a16"><div class="ttname"><a href="classpism_1_1array_1_1Array_aa7de6be7e8f785321df81d9fd6518a16.html#aa7de6be7e8f785321df81d9fd6518a16">pism::array::Array::regrid</a></div><div class="ttdeci">void regrid(const std::string &filename, io::Default default_value)</div><div class="ttdef"><b>Definition:</b> <a href="Array_8cc_source.html#l00814">Array.cc:814</a></div></div>
<div class="ttc" id="aclasspism_1_1array_1_1Array_ab03888a9f5e399025704ae789738bba2_html_ab03888a9f5e399025704ae789738bba2"><div class="ttname"><a href="classpism_1_1array_1_1Array_ab03888a9f5e399025704ae789738bba2.html#ab03888a9f5e399025704ae789738bba2">pism::array::Array::allocate_proc0_copy</a></div><div class="ttdeci">std::shared_ptr< petsc::Vec > allocate_proc0_copy() const</div><div class="ttdef"><b>Definition:</b> <a href="Array_8cc_source.html#l00963">Array.cc:963</a></div></div>
<div class="ttc" id="aclasspism_1_1array_1_1Array_ab3d67dc7b767fd3dcdfb667c0569d8e3_html_ab3d67dc7b767fd3dcdfb667c0569d8e3"><div class="ttname"><a href="classpism_1_1array_1_1Array_ab3d67dc7b767fd3dcdfb667c0569d8e3.html#ab3d67dc7b767fd3dcdfb667c0569d8e3">pism::array::Array::fletcher64</a></div><div class="ttdeci">uint64_t fletcher64() const</div><div class="ttdef"><b>Definition:</b> <a href="Array_8cc_source.html#l01144">Array.cc:1144</a></div></div>
<div class="ttc" id="aclasspism_1_1array_1_1Array_ab56dc4d6cf0f9660ce580bbf4f3585d9_html_ab56dc4d6cf0f9660ce580bbf4f3585d9"><div class="ttname"><a href="classpism_1_1array_1_1Array_ab56dc4d6cf0f9660ce580bbf4f3585d9.html#ab56dc4d6cf0f9660ce580bbf4f3585d9">pism::array::Array::put_on_proc0</a></div><div class="ttdeci">void put_on_proc0(petsc::Vec &onp0) const</div><div class="ttdoc">Puts a local array::Scalar on processor 0.</div><div class="ttdef"><b>Definition:</b> <a href="Array_8cc_source.html#l01052">Array.cc:1052</a></div></div>
<div class="ttc" id="aclasspism_1_1array_1_1Array_acdf6a6df6f0b82ee5bf8de3472c36835_html_acdf6a6df6f0b82ee5bf8de3472c36835"><div class="ttname"><a href="classpism_1_1array_1_1Array_acdf6a6df6f0b82ee5bf8de3472c36835.html#acdf6a6df6f0b82ee5bf8de3472c36835">pism::array::Array::set_begin_access_use_dof</a></div><div class="ttdeci">void set_begin_access_use_dof(bool flag)</div><div class="ttdef"><b>Definition:</b> <a href="Array_8cc_source.html#l00175">Array.cc:175</a></div></div>
<div class="ttc" id="aclasspism_1_1array_1_1Array_ad11b3ebab1177fd1e6713959389b9de1_html_ad11b3ebab1177fd1e6713959389b9de1"><div class="ttname"><a href="classpism_1_1array_1_1Array_ad11b3ebab1177fd1e6713959389b9de1.html#ad11b3ebab1177fd1e6713959389b9de1">pism::array::Array::add</a></div><div class="ttdeci">void add(double alpha, const Array &x)</div><div class="ttdoc">Result: v <- v + alpha * x. Calls VecAXPY.</div><div class="ttdef"><b>Definition:</b> <a href="Array_8cc_source.html#l00235">Array.cc:235</a></div></div>
<div class="ttc" id="aclasspism_1_1array_1_1Array_ad9b51e2677b0927d2de4eda2b81c3e48_html_ad9b51e2677b0927d2de4eda2b81c3e48"><div class="ttname"><a href="classpism_1_1array_1_1Array_ad9b51e2677b0927d2de4eda2b81c3e48.html#ad9b51e2677b0927d2de4eda2b81c3e48">pism::array::Array::norm</a></div><div class="ttdeci">std::vector< double > norm(int n) const</div><div class="ttdoc">Computes the norm of all the components of an Array.</div><div class="ttdef"><b>Definition:</b> <a href="Array_8cc_source.html#l00746">Array.cc:746</a></div></div>
<div class="ttc" id="aclasspism_1_1array_1_1Array_ad9defa70b851fd2dfac595cfcbb9d803_html_ad9defa70b851fd2dfac595cfcbb9d803"><div class="ttname"><a href="classpism_1_1array_1_1Array_ad9defa70b851fd2dfac595cfcbb9d803.html#ad9defa70b851fd2dfac595cfcbb9d803">pism::array::Array::update_ghosts</a></div><div class="ttdeci">void update_ghosts()</div><div class="ttdoc">Updates ghost points.</div><div class="ttdef"><b>Definition:</b> <a href="Array_8cc_source.html#l00693">Array.cc:693</a></div></div>
<div class="ttc" id="aclasspism_1_1array_1_1Array_ade892a3412dcdc9f21129c2aed50e84d_html_ade892a3412dcdc9f21129c2aed50e84d"><div class="ttname"><a href="classpism_1_1array_1_1Array_ade892a3412dcdc9f21129c2aed50e84d.html#ade892a3412dcdc9f21129c2aed50e84d">pism::array::Array::stencil_width</a></div><div class="ttdeci">unsigned int stencil_width() const</div><div class="ttdoc">Get the stencil width of the current Array. Returns 0 if ghosts are not available.</div><div class="ttdef"><b>Definition:</b> <a href="Array_8cc_source.html#l00331">Array.cc:331</a></div></div>
<div class="ttc" id="aclasspism_1_1array_1_1Array_ae273bca5ed37b7b588c2b0e2a9c0f572_html_ae273bca5ed37b7b588c2b0e2a9c0f572"><div class="ttname"><a href="classpism_1_1array_1_1Array_ae273bca5ed37b7b588c2b0e2a9c0f572.html#ae273bca5ed37b7b588c2b0e2a9c0f572">pism::array::Array::checkCompatibility</a></div><div class="ttdeci">void checkCompatibility(const char *function, const Array &other) const</div><div class="ttdoc">Checks if two Arrays have compatible sizes, dimensions and numbers of degrees of freedom.</div><div class="ttdef"><b>Definition:</b> <a href="Array_8cc_source.html#l00623">Array.cc:623</a></div></div>
<div class="ttc" id="aclasspism_1_1array_1_1Array_ae34325e69b37407305d08dac29791ee6_html_ae34325e69b37407305d08dac29791ee6"><div class="ttname"><a href="classpism_1_1array_1_1Array_ae34325e69b37407305d08dac29791ee6.html#ae34325e69b37407305d08dac29791ee6">pism::array::Array::read_impl</a></div><div class="ttdeci">void read_impl(const File &file, unsigned int time)</div><div class="ttdoc">Reads appropriate NetCDF variable(s) into an Array.</div><div class="ttdef"><b>Definition:</b> <a href="Array_8cc_source.html#l00493">Array.cc:493</a></div></div>
<div class="ttc" id="aclasspism_1_1array_1_1Array_af325585b37b5cd326ca52d6ef2e65e9f_html_af325585b37b5cd326ca52d6ef2e65e9f"><div class="ttname"><a href="classpism_1_1array_1_1Array_af325585b37b5cd326ca52d6ef2e65e9f.html#af325585b37b5cd326ca52d6ef2e65e9f">pism::array::Array::check_array_indices</a></div><div class="ttdeci">void check_array_indices(int i, int j, unsigned int k) const</div><div class="ttdoc">Check array indices and warn if they are out of range.</div><div class="ttdef"><b>Definition:</b> <a href="Array_8cc_source.html#l00714">Array.cc:714</a></div></div>
<div class="ttc" id="aclasspism_1_1array_1_1Array_af9eece42153cd03bfc8ba237ae5310c4_html_af9eece42153cd03bfc8ba237ae5310c4"><div class="ttname"><a href="classpism_1_1array_1_1Array_af9eece42153cd03bfc8ba237ae5310c4.html#af9eece42153cd03bfc8ba237ae5310c4">pism::array::Array::metadata</a></div><div class="ttdeci">SpatialVariableMetadata & metadata(unsigned int N=0)</div><div class="ttdoc">Returns a reference to the SpatialVariableMetadata object containing metadata for the compoment N.</div><div class="ttdef"><b>Definition:</b> <a href="Array_8cc_source.html#l00553">Array.cc:553</a></div></div>
<div class="ttc" id="aclasspism_1_1array_1_1Array_html"><div class="ttname"><a href="classpism_1_1array_1_1Array.html">pism::array::Array</a></div><div class="ttdoc">Abstract class for reading, writing, allocating, and accessing a DA-based PETSc Vec (2D and 3D fields...</div><div class="ttdef"><b>Definition:</b> <a href="Array_8hh_source.html#l00208">Array.hh:208</a></div></div>
<div class="ttc" id="aclasspism_1_1io_1_1Default_html"><div class="ttname"><a href="classpism_1_1io_1_1Default.html">pism::io::Default</a></div><div class="ttdef"><b>Definition:</b> <a href="IO__Flags_8hh_source.html#l00091">IO_Flags.hh:91</a></div></div>
<div class="ttc" id="aclasspism_1_1petsc_1_1DM_html"><div class="ttname"><a href="classpism_1_1petsc_1_1DM.html">pism::petsc::DM</a></div><div class="ttdef"><b>Definition:</b> <a href="DM_8hh_source.html#l00037">DM.hh:37</a></div></div>
<div class="ttc" id="aclasspism_1_1petsc_1_1Vec_html"><div class="ttname"><a href="classpism_1_1petsc_1_1Vec.html">pism::petsc::Vec</a></div><div class="ttdef"><b>Definition:</b> <a href="Vec_8hh_source.html#l00036">Vec.hh:36</a></div></div>
<div class="ttc" id="aclasspism_1_1petsc_1_1Viewer_html"><div class="ttname"><a href="classpism_1_1petsc_1_1Viewer.html">pism::petsc::Viewer</a></div><div class="ttdef"><b>Definition:</b> <a href="Viewer_8hh_source.html#l00030">Viewer.hh:30</a></div></div>
<div class="ttc" id="aclasspism_1_1units_1_1System_html"><div class="ttname"><a href="classpism_1_1units_1_1System.html">pism::units::System</a></div><div class="ttdef"><b>Definition:</b> <a href="Units_8hh_source.html#l00044">Units.hh:44</a></div></div>
<div class="ttc" id="aerror__handling_8hh_aa0c260bffe8a4dbd77d48e8feee7c526_html_aa0c260bffe8a4dbd77d48e8feee7c526"><div class="ttname"><a href="error__handling_8hh_aa0c260bffe8a4dbd77d48e8feee7c526.html#aa0c260bffe8a4dbd77d48e8feee7c526">PISM_ERROR_LOCATION</a></div><div class="ttdeci">#define PISM_ERROR_LOCATION</div><div class="ttdef"><b>Definition:</b> <a href="error__handling_8hh_source.html#l00043">error_handling.hh:43</a></div></div>
<div class="ttc" id="aexactTestM_8c_ad5228cd48403ef9d8b632f5c7c124720_html_ad5228cd48403ef9d8b632f5c7c124720"><div class="ttname"><a href="exactTestM_8c_ad5228cd48403ef9d8b632f5c7c124720.html#ad5228cd48403ef9d8b632f5c7c124720">n</a></div><div class="ttdeci">#define n</div><div class="ttdef"><b>Definition:</b> <a href="exactTestM_8c_source.html#l00037">exactTestM.c:37</a></div></div>
<div class="ttc" id="anamespacepism_1_1array_ab49b8ee9a79e7f46ec91fc40efdb7ca3_html_ab49b8ee9a79e7f46ec91fc40efdb7ca3"><div class="ttname"><a href="namespacepism_1_1array_ab49b8ee9a79e7f46ec91fc40efdb7ca3.html#ab49b8ee9a79e7f46ec91fc40efdb7ca3">pism::array::Kind</a></div><div class="ttdeci">Kind</div><div class="ttdoc">What "kind" of a vector to create: with or without ghosts.</div><div class="ttdef"><b>Definition:</b> <a href="Array_8hh_source.html#l00062">Array.hh:62</a></div></div>
<div class="ttc" id="anamespacepism_1_1array_ab49b8ee9a79e7f46ec91fc40efdb7ca3_html_ab49b8ee9a79e7f46ec91fc40efdb7ca3a7aa2276678f0b2cd3f63c15be430372f"><div class="ttname"><a href="namespacepism_1_1array_ab49b8ee9a79e7f46ec91fc40efdb7ca3.html#ab49b8ee9a79e7f46ec91fc40efdb7ca3a7aa2276678f0b2cd3f63c15be430372f">pism::array::WITH_GHOSTS</a></div><div class="ttdeci">@ WITH_GHOSTS</div><div class="ttdef"><b>Definition:</b> <a href="Array_8hh_source.html#l00062">Array.hh:62</a></div></div>
<div class="ttc" id="anamespacepism_1_1array_ab49b8ee9a79e7f46ec91fc40efdb7ca3_html_ab49b8ee9a79e7f46ec91fc40efdb7ca3af672399d2e1a4112ca5d4a4591c30885"><div class="ttname"><a href="namespacepism_1_1array_ab49b8ee9a79e7f46ec91fc40efdb7ca3.html#ab49b8ee9a79e7f46ec91fc40efdb7ca3af672399d2e1a4112ca5d4a4591c30885">pism::array::WITHOUT_GHOSTS</a></div><div class="ttdeci">@ WITHOUT_GHOSTS</div><div class="ttdef"><b>Definition:</b> <a href="Array_8hh_source.html#l00062">Array.hh:62</a></div></div>
<div class="ttc" id="anamespacepism_1_1array_acc78626832aa1c59a74bd4cd7cc5519c_html_acc78626832aa1c59a74bd4cd7cc5519c"><div class="ttname"><a href="namespacepism_1_1array_acc78626832aa1c59a74bd4cd7cc5519c.html#acc78626832aa1c59a74bd4cd7cc5519c">pism::array::interpolate</a></div><div class="ttdeci">T interpolate(const F &field, double x, double y)</div><div class="ttdef"><b>Definition:</b> <a href="Array_8hh_source.html#l00082">Array.hh:82</a></div></div>
<div class="ttc" id="anamespacepism_1_1array_ae447cfd4c50f67ec58fc796a76c7129a_html_ae447cfd4c50f67ec58fc796a76c7129a"><div class="ttname"><a href="namespacepism_1_1array_ae447cfd4c50f67ec58fc796a76c7129a.html#ae447cfd4c50f67ec58fc796a76c7129a">pism::array::cast</a></div><div class="ttdeci">static std::shared_ptr< T > cast(std::shared_ptr< Array > input)</div><div class="ttdoc">std::dynamic_pointer_cast wrapper that checks if the cast succeeded.</div><div class="ttdef"><b>Definition:</b> <a href="Array_8hh_source.html#l00318">Array.hh:318</a></div></div>
<div class="ttc" id="anamespacepism_1_1io_a53ffb40793c398e10644fbd2ecda3e77_html_a53ffb40793c398e10644fbd2ecda3e77"><div class="ttname"><a href="namespacepism_1_1io_a53ffb40793c398e10644fbd2ecda3e77.html#a53ffb40793c398e10644fbd2ecda3e77">pism::io::Type</a></div><div class="ttdeci">Type</div><div class="ttdef"><b>Definition:</b> <a href="IO__Flags_8hh_source.html#l00045">IO_Flags.hh:45</a></div></div>
<div class="ttc" id="anamespacepism_a200b1c89a64c718f6b0f585508e55172_html_a200b1c89a64c718f6b0f585508e55172"><div class="ttname"><a href="namespacepism_a200b1c89a64c718f6b0f585508e55172.html#a200b1c89a64c718f6b0f585508e55172">pism::F</a></div><div class="ttdeci">static double F(double SL, double B, double H, double alpha)</div><div class="ttdef"><b>Definition:</b> <a href="grounded__cell__fraction_8cc_source.html#l00225">grounded_cell_fraction.cc:225</a></div></div>
<div class="ttc" id="anamespacepism_a3415cf6a7a4530c4e489feebe6365e03_html_a3415cf6a7a4530c4e489feebe6365e03"><div class="ttname"><a href="namespacepism_a3415cf6a7a4530c4e489feebe6365e03.html#a3415cf6a7a4530c4e489feebe6365e03">pism::InterpolationType</a></div><div class="ttdeci">InterpolationType</div><div class="ttdef"><b>Definition:</b> <a href="interpolation_8hh_source.html#l00029">interpolation.hh:29</a></div></div>
<div class="ttc" id="anamespacepism_a7343afff8d353b59dbdec563bd896812_html_a7343afff8d353b59dbdec563bd896812"><div class="ttname"><a href="namespacepism_a7343afff8d353b59dbdec563bd896812.html#a7343afff8d353b59dbdec563bd896812">pism::k</a></div><div class="ttdeci">static const double k</div><div class="ttdef"><b>Definition:</b> <a href="exactTestP_8cc_source.html#l00042">exactTestP.cc:42</a></div></div>
<div class="ttc" id="anamespacepism_aded10babcc1dfd7b9d3f41562db82090_html_aded10babcc1dfd7b9d3f41562db82090"><div class="ttname"><a href="namespacepism_aded10babcc1dfd7b9d3f41562db82090.html#aded10babcc1dfd7b9d3f41562db82090">pism::convert_vec</a></div><div class="ttdeci">void convert_vec(petsc::Vec &v, units::System::Ptr system, const std::string &spec1, const std::string &spec2)</div><div class="ttdef"><b>Definition:</b> <a href="Array_8cc_source.html#l01262">Array.cc:1262</a></div></div>
<div class="ttc" id="anamespacepism_html"><div class="ttname"><a href="namespacepism.html">pism</a></div><div class="ttdef"><b>Definition:</b> <a href="AgeColumnSystem_8cc_source.html#l00023">AgeColumnSystem.cc:23</a></div></div>
<div class="ttc" id="astructpism_1_1array_1_1Array_1_1Impl_html"><div class="ttname"><a href="structpism_1_1array_1_1Array_1_1Impl.html">pism::array::Array::Impl</a></div><div class="ttdef"><b>Definition:</b> <a href="Array__impl_8hh_source.html#l00038">Array_impl.hh:38</a></div></div>
<div class="ttc" id="atest__cube_8c_ad43c3812e6d13e0518d9f8b8f463ffcf_html_ad43c3812e6d13e0518d9f8b8f463ffcf"><div class="ttname"><a href="test__cube_8c_ad43c3812e6d13e0518d9f8b8f463ffcf.html#ad43c3812e6d13e0518d9f8b8f463ffcf">count</a></div><div class="ttdeci">int count</div><div class="ttdef"><b>Definition:</b> <a href="test__cube_8c_source.html#l00016">test_cube.c:16</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>