-
Notifications
You must be signed in to change notification settings - Fork 0
/
Array3D_8cc_source.html
431 lines (429 loc) · 87.5 KB
/
Array3D_8cc_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
<!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/Array3D.cc 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">Array3D.cc</div> </div>
</div><!--header-->
<div class="contents">
<a href="Array3D_8cc.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--2018, 2020, 2021, 2022, 2023 Ed Bueler and Constantine Khroulev</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">#include <cstring></span></div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="preprocessor">#include <cstdlib></span></div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#include <cassert></span></div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor">#include <memory></span></div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="preprocessor">#include <petscvec.h></span></div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>  </div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor">#include "pism/util/array/Array3D.hh"</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/ConfigInterface.hh"</span></div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="preprocessor">#include "pism/util/Context.hh"</span></div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="preprocessor">#include "pism/util/Grid.hh"</span></div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="preprocessor">#include "pism/util/VariableMetadata.hh"</span></div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="preprocessor">#include "pism/util/array/Array_impl.hh"</span></div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="preprocessor">#include "pism/util/array/Scalar.hh"</span></div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="preprocessor">#include "pism/util/error_handling.hh"</span></div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span> <span class="preprocessor">#include "pism/util/io/IO_Flags.hh"</span></div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span> <span class="preprocessor">#include "pism/util/io/io_helpers.hh"</span></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> <span class="keyword">namespace </span><a class="code" href="namespacepism.html">pism</a> {</div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span> <span class="keyword">namespace </span>array {</div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  </div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span> <span class="comment">// this file contains method for derived class array::Array3D</span></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="classpism_1_1array_1_1Array3D_aa6c8dbf58dff709e5bbbefb7f9e56e30.html#aa6c8dbf58dff709e5bbbefb7f9e56e30"> 42</a></span> <a class="code" href="classpism_1_1array_1_1Array3D_aa6c8dbf58dff709e5bbbefb7f9e56e30.html#aa6c8dbf58dff709e5bbbefb7f9e56e30">Array3D::Array3D</a>(std::shared_ptr<const Grid> grid, <span class="keyword">const</span> std::string &name, <a class="code" href="namespacepism_1_1array_ab49b8ee9a79e7f46ec91fc40efdb7ca3.html#ab49b8ee9a79e7f46ec91fc40efdb7ca3">Kind</a> ghostedp,</div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  <span class="keyword">const</span> std::vector<double> &levels, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> stencil_width)</div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  : <a class="code" href="classpism_1_1array_1_1Array.html">Array</a>(grid, name, ghostedp, 1, stencil_width, levels) {</div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  <a class="code" href="classpism_1_1array_1_1Array_acdf6a6df6f0b82ee5bf8de3472c36835.html#acdf6a6df6f0b82ee5bf8de3472c36835">set_begin_access_use_dof</a>(<span class="keyword">true</span>);</div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span> }</div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span> <span class="comment"></span> </div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span> <span class="comment">//! Set all values of scalar quantity to given a single value in a particular column.</span></div>
<div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="classpism_1_1array_1_1Array3D_a57f6842686575847d4662ebe9a69bca6.html#a57f6842686575847d4662ebe9a69bca6"> 49</a></span> <span class="comment"></span><span class="keywordtype">void</span> <a class="code" href="classpism_1_1array_1_1Array3D_a57f6842686575847d4662ebe9a69bca6.html#a57f6842686575847d4662ebe9a69bca6">Array3D::set_column</a>(<span class="keywordtype">int</span> i, <span class="keywordtype">int</span> j, <span class="keywordtype">double</span> c) {</div>
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  PetscErrorCode ierr;</div>
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span> <span class="preprocessor">#if (Pism_DEBUG == 1)</span></div>
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  assert(<a class="code" href="classpism_1_1array_1_1Array_a4bc8801a2c4ff3fb139baa69ab2dab7f.html#a4bc8801a2c4ff3fb139baa69ab2dab7f">m_array</a> != NULL);</div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  <a class="code" href="classpism_1_1array_1_1Array_af325585b37b5cd326ca52d6ef2e65e9f.html#af325585b37b5cd326ca52d6ef2e65e9f">check_array_indices</a>(i, j, 0);</div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span> <span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  </div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  <span class="keywordtype">double</span> ***arr = (<span class="keywordtype">double</span> ***)<a class="code" href="classpism_1_1array_1_1Array_a4bc8801a2c4ff3fb139baa69ab2dab7f.html#a4bc8801a2c4ff3fb139baa69ab2dab7f">m_array</a>;</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>  <span class="keywordflow">if</span> (c == 0.0) {</div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  ierr = PetscMemzero(arr[j][i], <a class="code" href="classpism_1_1array_1_1Array_a471583941d54506f80b014efaa14073a.html#a471583941d54506f80b014efaa14073a">levels</a>().<a class="code" href="classpism_1_1array_1_1Array_a47a8eb9b88993e033cce116e499b2ff5.html#a47a8eb9b88993e033cce116e499b2ff5">size</a>() * <span class="keyword">sizeof</span>(<span class="keywordtype">double</span>));</div>
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  <a class="code" href="error__handling_8hh_a970ec877c0e54c6e16c039bfa1b88bad.html#a970ec877c0e54c6e16c039bfa1b88bad">PISM_CHK</a>(ierr, <span class="stringliteral">"PetscMemzero"</span>);</div>
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> nlevels = <a class="code" href="classpism_1_1array_1_1Array_a471583941d54506f80b014efaa14073a.html#a471583941d54506f80b014efaa14073a">levels</a>().size();</div>
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="namespacepism_a7343afff8d353b59dbdec563bd896812.html#a7343afff8d353b59dbdec563bd896812">k</a> = 0; <a class="code" href="namespacepism_a7343afff8d353b59dbdec563bd896812.html#a7343afff8d353b59dbdec563bd896812">k</a> < nlevels; <a class="code" href="namespacepism_a7343afff8d353b59dbdec563bd896812.html#a7343afff8d353b59dbdec563bd896812">k</a>++) {</div>
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  arr[j][i][<a class="code" href="namespacepism_a7343afff8d353b59dbdec563bd896812.html#a7343afff8d353b59dbdec563bd896812">k</a>] = c;</div>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  }</div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  }</div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span> }</div>
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  </div>
<div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="classpism_1_1array_1_1Array3D_aa19e52c983d3f2ab7af86833a7ce0243.html#aa19e52c983d3f2ab7af86833a7ce0243"> 69</a></span> <span class="keywordtype">void</span> <a class="code" href="classpism_1_1array_1_1Array3D_a57f6842686575847d4662ebe9a69bca6.html#a57f6842686575847d4662ebe9a69bca6">Array3D::set_column</a>(<span class="keywordtype">int</span> i, <span class="keywordtype">int</span> j, <span class="keyword">const</span> <span class="keywordtype">double</span> *input) {</div>
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span> <span class="preprocessor">#if (Pism_DEBUG == 1)</span></div>
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  <a class="code" href="classpism_1_1array_1_1Array_af325585b37b5cd326ca52d6ef2e65e9f.html#af325585b37b5cd326ca52d6ef2e65e9f">check_array_indices</a>(i, j, 0);</div>
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span> <span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  <span class="keywordtype">double</span> ***arr = (<span class="keywordtype">double</span> ***)<a class="code" href="classpism_1_1array_1_1Array_a4bc8801a2c4ff3fb139baa69ab2dab7f.html#a4bc8801a2c4ff3fb139baa69ab2dab7f">m_array</a>;</div>
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  PetscErrorCode ierr = PetscMemcpy(arr[j][i], input, <a class="code" href="classpism_1_1array_1_1Array_a1fa9d92d2183dd048612690d41cfcde5.html#a1fa9d92d2183dd048612690d41cfcde5">m_impl</a>-><a class="code" href="structpism_1_1array_1_1Array_1_1Impl_aec81354aaf53e5608f89116c340263da.html#aec81354aaf53e5608f89116c340263da">zlevels</a>.size() * <span class="keyword">sizeof</span>(<span class="keywordtype">double</span>));</div>
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  <a class="code" href="error__handling_8hh_a970ec877c0e54c6e16c039bfa1b88bad.html#a970ec877c0e54c6e16c039bfa1b88bad">PISM_CHK</a>(ierr, <span class="stringliteral">"PetscMemcpy"</span>);</div>
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span> }</div>
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  </div>
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span> <span class="preprocessor">#if (Pism_DEBUG == 1)</span></div>
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span> <span class="keyword">static</span> <span class="keywordtype">bool</span> legal_level(<span class="keyword">const</span> std::vector<double> &levels, <span class="keywordtype">double</span> z) {</div>
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  <span class="keywordtype">double</span> z_min = levels.front();</div>
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  <span class="keywordtype">double</span> z_max = levels.back();</div>
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  <span class="keyword">const</span> <span class="keywordtype">double</span> eps = 1.0e-6;</div>
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  <span class="keywordflow">return</span> not(z < z_min - eps || z > z_max + eps);</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="preprocessor">#endif</span></div>
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span> <span class="comment"></span> </div>
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span> <span class="comment">//! Return value of scalar quantity at level z (m) above base of ice (by linear interpolation).</span></div>
<div class="line"><a name="l00088"></a><span class="lineno"><a class="line" href="classpism_1_1array_1_1Array3D_a4baf48fbb0f675a23093d4d4cc1ab6cb.html#a4baf48fbb0f675a23093d4d4cc1ab6cb"> 88</a></span> <span class="comment"></span><span class="keywordtype">double</span> <a class="code" href="classpism_1_1array_1_1Array3D_a4baf48fbb0f675a23093d4d4cc1ab6cb.html#a4baf48fbb0f675a23093d4d4cc1ab6cb">Array3D::interpolate</a>(<span class="keywordtype">int</span> i, <span class="keywordtype">int</span> j, <span class="keywordtype">double</span> z)<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  <span class="keyword">const</span> <span class="keyword">auto</span> &zs = <a class="code" href="classpism_1_1array_1_1Array_a471583941d54506f80b014efaa14073a.html#a471583941d54506f80b014efaa14073a">levels</a>();</div>
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  <span class="keyword">auto</span> N = zs.size();</div>
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  </div>
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span> <span class="preprocessor">#if (Pism_DEBUG == 1)</span></div>
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  assert(<a class="code" href="classpism_1_1array_1_1Array_a4bc8801a2c4ff3fb139baa69ab2dab7f.html#a4bc8801a2c4ff3fb139baa69ab2dab7f">m_array</a> != NULL);</div>
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  <a class="code" href="classpism_1_1array_1_1Array_af325585b37b5cd326ca52d6ef2e65e9f.html#af325585b37b5cd326ca52d6ef2e65e9f">check_array_indices</a>(i, j, 0);</div>
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  </div>
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  <span class="keywordflow">if</span> (not legal_level(zs, z)) {</div>
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  <span class="keywordflow">throw</span> <a class="code" href="classpism_1_1RuntimeError_ad0ed5f05a9a4e3e403a1d62f8d1e4e7d.html#ad0ed5f05a9a4e3e403a1d62f8d1e4e7d">RuntimeError::formatted</a>(<a class="code" href="error__handling_8hh_aa0c260bffe8a4dbd77d48e8feee7c526.html#aa0c260bffe8a4dbd77d48e8feee7c526">PISM_ERROR_LOCATION</a>,</div>
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  <span class="stringliteral">"Array3D interpolate(): level %f is not legal; name = %s"</span>, z,</div>
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  <a class="code" href="classpism_1_1array_1_1Array_a1fa9d92d2183dd048612690d41cfcde5.html#a1fa9d92d2183dd048612690d41cfcde5">m_impl</a>-><a class="code" href="structpism_1_1array_1_1Array_1_1Impl_ad071bf93059f137225d182dfdd6a7e2f.html#ad071bf93059f137225d182dfdd6a7e2f">name</a>.c_str());</div>
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  }</div>
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span> <span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  </div>
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  <span class="keyword">const</span> <span class="keyword">auto</span> *<a class="code" href="namespacepism_1_1fem_ae2f57ac21774f132ef388b3de9cde364.html#ae2f57ac21774f132ef388b3de9cde364">column</a> = <a class="code" href="classpism_1_1array_1_1Array3D_ac74ddc5a845ca13d159983b9e7b20791.html#ac74ddc5a845ca13d159983b9e7b20791">get_column</a>(i, j);</div>
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  </div>
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  <span class="keywordflow">if</span> (z >= zs[N - 1]) {</div>
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  <span class="keywordflow">return</span> <a class="code" href="namespacepism_1_1fem_ae2f57ac21774f132ef388b3de9cde364.html#ae2f57ac21774f132ef388b3de9cde364">column</a>[N - 1];</div>
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  }</div>
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  </div>
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  <span class="keywordflow">if</span> (z <= zs[0]) {</div>
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  <span class="keywordflow">return</span> <a class="code" href="namespacepism_1_1fem_ae2f57ac21774f132ef388b3de9cde364.html#ae2f57ac21774f132ef388b3de9cde364">column</a>[0];</div>
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  }</div>
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  </div>
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  <span class="keyword">auto</span> mcurr = gsl_interp_accel_find(<a class="code" href="classpism_1_1array_1_1Array_a1fa9d92d2183dd048612690d41cfcde5.html#a1fa9d92d2183dd048612690d41cfcde5">m_impl</a>-><a class="code" href="structpism_1_1array_1_1Array_1_1Impl_a90edba9f54e9a08982973dd017941662.html#a90edba9f54e9a08982973dd017941662">bsearch_accel</a>, zs.data(), N, z);</div>
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  </div>
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  <span class="keyword">const</span> <span class="keywordtype">double</span> incr = (z - zs[mcurr]) / (zs[mcurr + 1] - zs[mcurr]);</div>
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  <span class="keyword">const</span> <span class="keywordtype">double</span> valm = <a class="code" href="namespacepism_1_1fem_ae2f57ac21774f132ef388b3de9cde364.html#ae2f57ac21774f132ef388b3de9cde364">column</a>[mcurr];</div>
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  <span class="keywordflow">return</span> valm + incr * (<a class="code" href="namespacepism_1_1fem_ae2f57ac21774f132ef388b3de9cde364.html#ae2f57ac21774f132ef388b3de9cde364">column</a>[mcurr + 1] - valm);</div>
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span> }</div>
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  </div>
<div class="line"><a name="l00120"></a><span class="lineno"><a class="line" href="classpism_1_1array_1_1Array3D_ac74ddc5a845ca13d159983b9e7b20791.html#ac74ddc5a845ca13d159983b9e7b20791"> 120</a></span> <span class="keywordtype">double</span> *<a class="code" href="classpism_1_1array_1_1Array3D_ac74ddc5a845ca13d159983b9e7b20791.html#ac74ddc5a845ca13d159983b9e7b20791">Array3D::get_column</a>(<span class="keywordtype">int</span> i, <span class="keywordtype">int</span> j) {</div>
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span> <span class="preprocessor">#if (Pism_DEBUG == 1)</span></div>
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  <a class="code" href="classpism_1_1array_1_1Array_af325585b37b5cd326ca52d6ef2e65e9f.html#af325585b37b5cd326ca52d6ef2e65e9f">check_array_indices</a>(i, j, 0);</div>
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span> <span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  <span class="keywordflow">return</span> ((<span class="keywordtype">double</span> ***)<a class="code" href="classpism_1_1array_1_1Array_a4bc8801a2c4ff3fb139baa69ab2dab7f.html#a4bc8801a2c4ff3fb139baa69ab2dab7f">m_array</a>)[j][i];</div>
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span> }</div>
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  </div>
<div class="line"><a name="l00127"></a><span class="lineno"><a class="line" href="classpism_1_1array_1_1Array3D_af897882c774a3ca3e82775688cf8a474.html#af897882c774a3ca3e82775688cf8a474"> 127</a></span> <span class="keyword">const</span> <span class="keywordtype">double</span> *<a class="code" href="classpism_1_1array_1_1Array3D_ac74ddc5a845ca13d159983b9e7b20791.html#ac74ddc5a845ca13d159983b9e7b20791">Array3D::get_column</a>(<span class="keywordtype">int</span> i, <span class="keywordtype">int</span> j)<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span> <span class="preprocessor">#if (Pism_DEBUG == 1)</span></div>
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  <a class="code" href="classpism_1_1array_1_1Array_af325585b37b5cd326ca52d6ef2e65e9f.html#af325585b37b5cd326ca52d6ef2e65e9f">check_array_indices</a>(i, j, 0);</div>
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span> <span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  <span class="keywordflow">return</span> ((<span class="keywordtype">double</span> ***)<a class="code" href="classpism_1_1array_1_1Array_a4bc8801a2c4ff3fb139baa69ab2dab7f.html#a4bc8801a2c4ff3fb139baa69ab2dab7f">m_array</a>)[j][i];</div>
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span> }</div>
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span> <span class="comment"></span> </div>
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span> <span class="comment">//! Copies a horizontal slice at level z of an Array3D into `output`.</span></div>
<div class="line"><a name="l00135"></a><span class="lineno"><a class="line" href="namespacepism_1_1array_a0ce70fa345951f83ae207a765c5273e4.html#a0ce70fa345951f83ae207a765c5273e4"> 135</a></span> <span class="comment"></span><span class="keywordtype">void</span> <a class="code" href="namespacepism_1_1array_a0ce70fa345951f83ae207a765c5273e4.html#a0ce70fa345951f83ae207a765c5273e4">extract_surface</a>(<span class="keyword">const</span> <a class="code" href="classpism_1_1array_1_1Array3D.html">Array3D</a> &data, <span class="keywordtype">double</span> z, <a class="code" href="classpism_1_1array_1_1Scalar.html">Scalar</a> &output) {</div>
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  <a class="code" href="classpism_1_1array_1_1AccessScope.html">array::AccessScope</a> list{ &data, &output };</div>
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  </div>
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  <a class="code" href="classpism_1_1ParallelSection.html">ParallelSection</a> loop(output.<a class="code" href="classpism_1_1array_1_1Array_a982fca110a5d7011f681b928b20e3577.html#a982fca110a5d7011f681b928b20e3577">grid</a>()->com);</div>
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>  <span class="keywordflow">try</span> {</div>
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  <span class="keywordflow">for</span> (<span class="keyword">auto</span> p = output.<a class="code" href="classpism_1_1array_1_1Array_a982fca110a5d7011f681b928b20e3577.html#a982fca110a5d7011f681b928b20e3577">grid</a>()->points(); p; p.next()) {</div>
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  <span class="keyword">const</span> <span class="keywordtype">int</span> i = p.i(), j = p.j();</div>
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span>  output(i, j) = data.<a class="code" href="classpism_1_1array_1_1Array3D_a4baf48fbb0f675a23093d4d4cc1ab6cb.html#a4baf48fbb0f675a23093d4d4cc1ab6cb">interpolate</a>(i, j, z);</div>
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  }</div>
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>  } <span class="keywordflow">catch</span> (...) {</div>
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span>  loop.<a class="code" href="classpism_1_1ParallelSection_a6b0a6e5e64970af7eadabfebe2b20bd2.html#a6b0a6e5e64970af7eadabfebe2b20bd2">failed</a>();</div>
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  }</div>
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  loop.<a class="code" href="classpism_1_1ParallelSection_ac23296abee1cbcb3c3fd68c7f5ce0835.html#ac23296abee1cbcb3c3fd68c7f5ce0835">check</a>();</div>
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span> }</div>
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>  </div>
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span> <span class="comment"></span> </div>
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span> <span class="comment">//! Copies the values of an Array3D at the ice surface (specified by the level `z`) into</span></div>
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span> <span class="comment">//! `output`.</span></div>
<div class="line"><a name="l00153"></a><span class="lineno"><a class="line" href="namespacepism_1_1array_acee0d4b2115002ad95b6f39c1420576e.html#acee0d4b2115002ad95b6f39c1420576e"> 153</a></span> <span class="comment"></span><span class="keywordtype">void</span> <a class="code" href="namespacepism_1_1array_a0ce70fa345951f83ae207a765c5273e4.html#a0ce70fa345951f83ae207a765c5273e4">extract_surface</a>(<span class="keyword">const</span> <a class="code" href="classpism_1_1array_1_1Array3D.html">Array3D</a> &data, <span class="keyword">const</span> <a class="code" href="classpism_1_1array_1_1Scalar.html">Scalar</a> &z, <a class="code" href="classpism_1_1array_1_1Scalar.html">Scalar</a> &output) {</div>
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span>  <a class="code" href="classpism_1_1array_1_1AccessScope.html">array::AccessScope</a> list{ &data, &output, &z };</div>
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span>  </div>
<div class="line"><a name="l00156"></a><span class="lineno"> 156</span>  <a class="code" href="classpism_1_1ParallelSection.html">ParallelSection</a> loop(output.<a class="code" href="classpism_1_1array_1_1Array_a982fca110a5d7011f681b928b20e3577.html#a982fca110a5d7011f681b928b20e3577">grid</a>()->com);</div>
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span>  <span class="keywordflow">try</span> {</div>
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span>  <span class="keywordflow">for</span> (<span class="keyword">auto</span> p = output.<a class="code" href="classpism_1_1array_1_1Array_a982fca110a5d7011f681b928b20e3577.html#a982fca110a5d7011f681b928b20e3577">grid</a>()->points(); p; p.next()) {</div>
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span>  <span class="keyword">const</span> <span class="keywordtype">int</span> i = p.i(), j = p.j();</div>
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span>  output(i, j) = data.<a class="code" href="classpism_1_1array_1_1Array3D_a4baf48fbb0f675a23093d4d4cc1ab6cb.html#a4baf48fbb0f675a23093d4d4cc1ab6cb">interpolate</a>(i, j, z(i, j));</div>
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  }</div>
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span>  } <span class="keywordflow">catch</span> (...) {</div>
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span>  loop.<a class="code" href="classpism_1_1ParallelSection_a6b0a6e5e64970af7eadabfebe2b20bd2.html#a6b0a6e5e64970af7eadabfebe2b20bd2">failed</a>();</div>
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span>  }</div>
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span>  loop.<a class="code" href="classpism_1_1ParallelSection_ac23296abee1cbcb3c3fd68c7f5ce0835.html#ac23296abee1cbcb3c3fd68c7f5ce0835">check</a>();</div>
<div class="line"><a name="l00166"></a><span class="lineno"> 166</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">/** Sum a 3-D vector in the Z direction to create a 2-D vector.</span></div>
<div class="line"><a name="l00169"></a><span class="lineno"> 169</span> <span class="comment"></span> </div>
<div class="line"><a name="l00170"></a><span class="lineno"> 170</span> <span class="comment">Note that this sums up all the values in a column, including ones</span></div>
<div class="line"><a name="l00171"></a><span class="lineno"> 171</span> <span class="comment">above the ice. This may or may not be what you need. Also, take a look</span></div>
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span> <span class="comment">at IceModel::compute_ice_enthalpy(PetscScalar &result) in iMreport.cc.</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">As for the difference between array::Array2D and array::Scalar, the</span></div>
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span> <span class="comment">former can store fields with more than 1 "degree of freedom" per grid</span></div>
<div class="line"><a name="l00176"></a><span class="lineno"> 176</span> <span class="comment">point (such as 2D fields on the "staggered" grid, with the first</span></div>
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span> <span class="comment">degree of freedom corresponding to the i-offset and second to</span></div>
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span> <span class="comment">j-offset).</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">array::Scalar is just array::Array2D with "dof == 1", and</span></div>
<div class="line"><a name="l00181"></a><span class="lineno"> 181</span> <span class="comment">array::Vector is array::Array2D with "dof == 2". (Plus some extra</span></div>
<div class="line"><a name="l00182"></a><span class="lineno"> 182</span> <span class="comment">methods, of course.)</span></div>
<div class="line"><a name="l00183"></a><span class="lineno"> 183</span> <span class="comment"></span> </div>
<div class="line"><a name="l00184"></a><span class="lineno"> 184</span> <span class="comment">Either one of array::Array2D and array::Scalar would work in this</span></div>
<div class="line"><a name="l00185"></a><span class="lineno"> 185</span> <span class="comment">case.</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">Computes output = A*output + B*sum_columns(input) + C</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">@see https://github.com/pism/pism/issues/229 */</span></div>
<div class="line"><a name="l00190"></a><span class="lineno"><a class="line" href="namespacepism_1_1array_a1b1be958c985d6b95f0f529d90bc87d7.html#a1b1be958c985d6b95f0f529d90bc87d7"> 190</a></span> <span class="keywordtype">void</span> <a class="code" href="namespacepism_1_1array_a1b1be958c985d6b95f0f529d90bc87d7.html#a1b1be958c985d6b95f0f529d90bc87d7">sum_columns</a>(<span class="keyword">const</span> <a class="code" href="classpism_1_1array_1_1Array3D.html">Array3D</a> &data, <span class="keywordtype">double</span> A, <span class="keywordtype">double</span> B, <a class="code" href="classpism_1_1array_1_1Scalar.html">Scalar</a> &output) {</div>
<div class="line"><a name="l00191"></a><span class="lineno"> 191</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> Mz = data.<a class="code" href="classpism_1_1array_1_1Array_a982fca110a5d7011f681b928b20e3577.html#a982fca110a5d7011f681b928b20e3577">grid</a>()->Mz();</div>
<div class="line"><a name="l00192"></a><span class="lineno"> 192</span>  </div>
<div class="line"><a name="l00193"></a><span class="lineno"> 193</span>  <a class="code" href="classpism_1_1array_1_1AccessScope.html">AccessScope</a> access{ &data, &output };</div>
<div class="line"><a name="l00194"></a><span class="lineno"> 194</span>  </div>
<div class="line"><a name="l00195"></a><span class="lineno"> 195</span>  <span class="keywordflow">for</span> (<span class="keyword">auto</span> p = data.<a class="code" href="classpism_1_1array_1_1Array_a982fca110a5d7011f681b928b20e3577.html#a982fca110a5d7011f681b928b20e3577">grid</a>()->points(); p; p.next()) {</div>
<div class="line"><a name="l00196"></a><span class="lineno"> 196</span>  <span class="keyword">const</span> <span class="keywordtype">int</span> i = p.i(), j = p.j();</div>
<div class="line"><a name="l00197"></a><span class="lineno"> 197</span>  </div>
<div class="line"><a name="l00198"></a><span class="lineno"> 198</span>  <span class="keyword">const</span> <span class="keywordtype">double</span> *<a class="code" href="namespacepism_1_1fem_ae2f57ac21774f132ef388b3de9cde364.html#ae2f57ac21774f132ef388b3de9cde364">column</a> = data.<a class="code" href="classpism_1_1array_1_1Array3D_ac74ddc5a845ca13d159983b9e7b20791.html#ac74ddc5a845ca13d159983b9e7b20791">get_column</a>(i, j);</div>
<div class="line"><a name="l00199"></a><span class="lineno"> 199</span>  </div>
<div class="line"><a name="l00200"></a><span class="lineno"> 200</span>  <span class="keywordtype">double</span> scalar_sum = 0.0;</div>
<div class="line"><a name="l00201"></a><span class="lineno"> 201</span>  <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="namespacepism_a7343afff8d353b59dbdec563bd896812.html#a7343afff8d353b59dbdec563bd896812">k</a> = 0; <a class="code" href="namespacepism_a7343afff8d353b59dbdec563bd896812.html#a7343afff8d353b59dbdec563bd896812">k</a> < Mz; ++<a class="code" href="namespacepism_a7343afff8d353b59dbdec563bd896812.html#a7343afff8d353b59dbdec563bd896812">k</a>) {</div>
<div class="line"><a name="l00202"></a><span class="lineno"> 202</span>  scalar_sum += <a class="code" href="namespacepism_1_1fem_ae2f57ac21774f132ef388b3de9cde364.html#ae2f57ac21774f132ef388b3de9cde364">column</a>[<a class="code" href="namespacepism_a7343afff8d353b59dbdec563bd896812.html#a7343afff8d353b59dbdec563bd896812">k</a>];</div>
<div class="line"><a name="l00203"></a><span class="lineno"> 203</span>  }</div>
<div class="line"><a name="l00204"></a><span class="lineno"> 204</span>  output(i, j) = A * output(i, j) + B * scalar_sum;</div>
<div class="line"><a name="l00205"></a><span class="lineno"> 205</span>  }</div>
<div class="line"><a name="l00206"></a><span class="lineno"> 206</span> }</div>
<div class="line"><a name="l00207"></a><span class="lineno"> 207</span>  </div>
<div class="line"><a name="l00208"></a><span class="lineno"><a class="line" href="classpism_1_1array_1_1Array3D_a0ea8b6700f5aab01e913dcbad9de72a5.html#a0ea8b6700f5aab01e913dcbad9de72a5"> 208</a></span> <span class="keywordtype">void</span> <a class="code" href="classpism_1_1array_1_1Array3D_a0ea8b6700f5aab01e913dcbad9de72a5.html#a0ea8b6700f5aab01e913dcbad9de72a5">Array3D::copy_from</a>(<span class="keyword">const</span> <a class="code" href="classpism_1_1array_1_1Array3D.html">Array3D</a> &input) {</div>
<div class="line"><a name="l00209"></a><span class="lineno"> 209</span>  <a class="code" href="classpism_1_1array_1_1AccessScope.html">array::AccessScope</a> list{ <span class="keyword">this</span>, &input };</div>
<div class="line"><a name="l00210"></a><span class="lineno"> 210</span>  </div>
<div class="line"><a name="l00211"></a><span class="lineno"> 211</span>  assert(<a class="code" href="classpism_1_1array_1_1Array_a471583941d54506f80b014efaa14073a.html#a471583941d54506f80b014efaa14073a">levels</a>().<a class="code" href="classpism_1_1array_1_1Array_a47a8eb9b88993e033cce116e499b2ff5.html#a47a8eb9b88993e033cce116e499b2ff5">size</a>() == input.<a class="code" href="classpism_1_1array_1_1Array_a471583941d54506f80b014efaa14073a.html#a471583941d54506f80b014efaa14073a">levels</a>().size());</div>
<div class="line"><a name="l00212"></a><span class="lineno"> 212</span>  assert(<a class="code" href="classpism_1_1array_1_1Array_a22abc0084c8d344d0fb1faebb8b4319e.html#a22abc0084c8d344d0fb1faebb8b4319e">ndof</a>() == input.<a class="code" href="classpism_1_1array_1_1Array_a22abc0084c8d344d0fb1faebb8b4319e.html#a22abc0084c8d344d0fb1faebb8b4319e">ndof</a>());</div>
<div class="line"><a name="l00213"></a><span class="lineno"> 213</span>  </div>
<div class="line"><a name="l00214"></a><span class="lineno"> 214</span>  <span class="comment">// 3D arrays have more than one level and ndof() of 1, collections of fields have one</span></div>
<div class="line"><a name="l00215"></a><span class="lineno"> 215</span>  <span class="comment">// level and ndof() > 1</span></div>
<div class="line"><a name="l00216"></a><span class="lineno"> 216</span>  <span class="keyword">auto</span> N = <a class="code" href="namespacepism_1_1array_a8957d08741c6f48d1e554ac7ea98530a.html#a8957d08741c6f48d1e554ac7ea98530a">std::max</a>((<span class="keywordtype">size_t</span>)<a class="code" href="classpism_1_1array_1_1Array_a22abc0084c8d344d0fb1faebb8b4319e.html#a22abc0084c8d344d0fb1faebb8b4319e">ndof</a>(), <a class="code" href="classpism_1_1array_1_1Array_a471583941d54506f80b014efaa14073a.html#a471583941d54506f80b014efaa14073a">levels</a>().<a class="code" href="classpism_1_1array_1_1Array_a47a8eb9b88993e033cce116e499b2ff5.html#a47a8eb9b88993e033cce116e499b2ff5">size</a>());</div>
<div class="line"><a name="l00217"></a><span class="lineno"> 217</span>  </div>
<div class="line"><a name="l00218"></a><span class="lineno"> 218</span>  <a class="code" href="classpism_1_1ParallelSection.html">ParallelSection</a> loop(<a class="code" href="classpism_1_1array_1_1Array_a1fa9d92d2183dd048612690d41cfcde5.html#a1fa9d92d2183dd048612690d41cfcde5">m_impl</a>-><a class="code" href="structpism_1_1array_1_1Array_1_1Impl_a295d8d59d99979427598a947439a2949.html#a295d8d59d99979427598a947439a2949">grid</a>->com);</div>
<div class="line"><a name="l00219"></a><span class="lineno"> 219</span>  <span class="keywordflow">try</span> {</div>
<div class="line"><a name="l00220"></a><span class="lineno"> 220</span>  <span class="keywordflow">for</span> (<span class="keyword">auto</span> p = <a class="code" href="classpism_1_1array_1_1Array_a1fa9d92d2183dd048612690d41cfcde5.html#a1fa9d92d2183dd048612690d41cfcde5">m_impl</a>-><a class="code" href="structpism_1_1array_1_1Array_1_1Impl_a295d8d59d99979427598a947439a2949.html#a295d8d59d99979427598a947439a2949">grid</a>->points(); p; p.next()) {</div>
<div class="line"><a name="l00221"></a><span class="lineno"> 221</span>  <span class="keyword">const</span> <span class="keywordtype">int</span> i = p.i(), j = p.j();</div>
<div class="line"><a name="l00222"></a><span class="lineno"> 222</span>  </div>
<div class="line"><a name="l00223"></a><span class="lineno"> 223</span> <span class="preprocessor">#if PETSC_VERSION_LT(3, 12, 0)</span></div>
<div class="line"><a name="l00224"></a><span class="lineno"> 224</span>  PetscMemmove(this-><a class="code" href="classpism_1_1array_1_1Array3D_ac74ddc5a845ca13d159983b9e7b20791.html#ac74ddc5a845ca13d159983b9e7b20791">get_column</a>(i, j), <span class="keyword">const_cast<</span><span class="keywordtype">double</span> *<span class="keyword">></span>(input.<a class="code" href="classpism_1_1array_1_1Array3D_ac74ddc5a845ca13d159983b9e7b20791.html#ac74ddc5a845ca13d159983b9e7b20791">get_column</a>(i, j)),</div>
<div class="line"><a name="l00225"></a><span class="lineno"> 225</span>  N * <span class="keyword">sizeof</span>(<span class="keywordtype">double</span>));</div>
<div class="line"><a name="l00226"></a><span class="lineno"> 226</span> <span class="preprocessor">#else</span></div>
<div class="line"><a name="l00227"></a><span class="lineno"> 227</span>  PetscArraymove(this-><a class="code" href="classpism_1_1array_1_1Array3D_ac74ddc5a845ca13d159983b9e7b20791.html#ac74ddc5a845ca13d159983b9e7b20791">get_column</a>(i, j), input.<a class="code" href="classpism_1_1array_1_1Array3D_ac74ddc5a845ca13d159983b9e7b20791.html#ac74ddc5a845ca13d159983b9e7b20791">get_column</a>(i, j), N);</div>
<div class="line"><a name="l00228"></a><span class="lineno"> 228</span> <span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00229"></a><span class="lineno"> 229</span>  }</div>
<div class="line"><a name="l00230"></a><span class="lineno"> 230</span>  } <span class="keywordflow">catch</span> (...) {</div>
<div class="line"><a name="l00231"></a><span class="lineno"> 231</span>  loop.<a class="code" href="classpism_1_1ParallelSection_a6b0a6e5e64970af7eadabfebe2b20bd2.html#a6b0a6e5e64970af7eadabfebe2b20bd2">failed</a>();</div>
<div class="line"><a name="l00232"></a><span class="lineno"> 232</span>  }</div>
<div class="line"><a name="l00233"></a><span class="lineno"> 233</span>  loop.<a class="code" href="classpism_1_1ParallelSection_ac23296abee1cbcb3c3fd68c7f5ce0835.html#ac23296abee1cbcb3c3fd68c7f5ce0835">check</a>();</div>
<div class="line"><a name="l00234"></a><span class="lineno"> 234</span>  </div>
<div class="line"><a name="l00235"></a><span class="lineno"> 235</span>  <a class="code" href="classpism_1_1array_1_1Array_ad9defa70b851fd2dfac595cfcbb9d803.html#ad9defa70b851fd2dfac595cfcbb9d803">update_ghosts</a>();</div>
<div class="line"><a name="l00236"></a><span class="lineno"> 236</span>  </div>
<div class="line"><a name="l00237"></a><span class="lineno"> 237</span>  <a class="code" href="classpism_1_1array_1_1Array_aa3b5158e40a9807c547ce7ba7a223b98.html#aa3b5158e40a9807c547ce7ba7a223b98">inc_state_counter</a>();</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>  </div>
<div class="line"><a name="l00240"></a><span class="lineno"><a class="line" href="classpism_1_1array_1_1Array3D_ab2d5de7b9ceac2f86db1288b02bf6572.html#ab2d5de7b9ceac2f86db1288b02bf6572"> 240</a></span> std::shared_ptr<Array3D> <a class="code" href="classpism_1_1array_1_1Array3D_ab2d5de7b9ceac2f86db1288b02bf6572.html#ab2d5de7b9ceac2f86db1288b02bf6572">Array3D::duplicate</a>(<a class="code" href="namespacepism_1_1array_ab49b8ee9a79e7f46ec91fc40efdb7ca3.html#ab49b8ee9a79e7f46ec91fc40efdb7ca3">Kind</a> ghostedp)<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="keyword">auto</span> result =</div>
<div class="line"><a name="l00243"></a><span class="lineno"> 243</span>  std::make_shared<Array3D>(this-><a class="code" href="classpism_1_1array_1_1Array_a982fca110a5d7011f681b928b20e3577.html#a982fca110a5d7011f681b928b20e3577">grid</a>(), this-><a class="code" href="classpism_1_1array_1_1Array_a4fe13d85d5fd0747c00837aaee32651b.html#a4fe13d85d5fd0747c00837aaee32651b">get_name</a>(), ghostedp, this-><a class="code" href="classpism_1_1array_1_1Array_a471583941d54506f80b014efaa14073a.html#a471583941d54506f80b014efaa14073a">levels</a>());</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>  result->metadata() = this-><a class="code" href="classpism_1_1array_1_1Array_af9eece42153cd03bfc8ba237ae5310c4.html#af9eece42153cd03bfc8ba237ae5310c4">metadata</a>();</div>
<div class="line"><a name="l00246"></a><span class="lineno"> 246</span>  </div>
<div class="line"><a name="l00247"></a><span class="lineno"> 247</span>  <span class="keywordflow">return</span> result;</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>  </div>
<div class="line"><a name="l00250"></a><span class="lineno"><a class="line" href="classpism_1_1array_1_1Array3D_a8990db065ae76f3c6434fa58fae33d17.html#a8990db065ae76f3c6434fa58fae33d17"> 250</a></span> <span class="keywordtype">void</span> <a class="code" href="classpism_1_1array_1_1Array3D_a8990db065ae76f3c6434fa58fae33d17.html#a8990db065ae76f3c6434fa58fae33d17">Array3D::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="l00251"></a><span class="lineno"> 251</span>  </div>
<div class="line"><a name="l00252"></a><span class="lineno"> 252</span>  <span class="keyword">auto</span> log = <a class="code" href="classpism_1_1array_1_1Array_a982fca110a5d7011f681b928b20e3577.html#a982fca110a5d7011f681b928b20e3577">grid</a>()->ctx()->log();</div>
<div class="line"><a name="l00253"></a><span class="lineno"> 253</span>  </div>
<div class="line"><a name="l00254"></a><span class="lineno"> 254</span>  <span class="keyword">auto</span> variable = <a class="code" href="classpism_1_1array_1_1Array_af9eece42153cd03bfc8ba237ae5310c4.html#af9eece42153cd03bfc8ba237ae5310c4">metadata</a>(0);</div>
<div class="line"><a name="l00255"></a><span class="lineno"> 255</span>  </div>
<div class="line"><a name="l00256"></a><span class="lineno"> 256</span>  <span class="keyword">auto</span> V = file.<a class="code" href="classpism_1_1File_a4ec169f0ab9d7858d09f07bffc978f2a.html#a4ec169f0ab9d7858d09f07bffc978f2a">find_variable</a>(variable.get_name(), variable[<span class="stringliteral">"standard_name"</span>]);</div>
<div class="line"><a name="l00257"></a><span class="lineno"> 257</span>  </div>
<div class="line"><a name="l00258"></a><span class="lineno"> 258</span>  <a class="code" href="classpism_1_1petsc_1_1TemporaryGlobalVec.html">petsc::TemporaryGlobalVec</a> tmp(<a class="code" href="classpism_1_1array_1_1Array_aa3fb4d0b08e98efb43662be6db1fe2ef.html#aa3fb4d0b08e98efb43662be6db1fe2ef">dm</a>());</div>
<div class="line"><a name="l00259"></a><span class="lineno"> 259</span>  </div>
<div class="line"><a name="l00260"></a><span class="lineno"> 260</span>  <span class="keywordflow">if</span> (not V.exists) {</div>
<div class="line"><a name="l00261"></a><span class="lineno"> 261</span>  <a class="code" href="namespacepism_1_1array_a6340d8382fff157e7b54699b1bd35882.html#a6340d8382fff157e7b54699b1bd35882">set_default_value_or_stop</a>(file.<a class="code" href="classpism_1_1File_a735a2ac444d55f02c4456736fca22223.html#a735a2ac444d55f02c4456736fca22223">filename</a>(), variable, default_value, *log, tmp);</div>
<div class="line"><a name="l00262"></a><span class="lineno"> 262</span>  } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00263"></a><span class="lineno"> 263</span>  <a class="code" href="classpism_1_1grid_1_1InputGridInfo.html">grid::InputGridInfo</a> input_grid(file, V.name, variable.unit_system(), <a class="code" href="classpism_1_1array_1_1Array_a982fca110a5d7011f681b928b20e3577.html#a982fca110a5d7011f681b928b20e3577">grid</a>()->registration());</div>
<div class="line"><a name="l00264"></a><span class="lineno"> 264</span>  </div>
<div class="line"><a name="l00265"></a><span class="lineno"> 265</span>  input_grid.<a class="code" href="classpism_1_1grid_1_1InputGridInfo_af7ffeece246313bb65122f384bd4aa38.html#af7ffeece246313bb65122f384bd4aa38">report</a>(*log, 4, variable.unit_system());</div>
<div class="line"><a name="l00266"></a><span class="lineno"> 266</span>  </div>
<div class="line"><a name="l00267"></a><span class="lineno"> 267</span>  <a class="code" href="namespacepism_1_1io_a68030f868b9f8a08c80c96fcf3b09f5b.html#a68030f868b9f8a08c80c96fcf3b09f5b">io::check_input_grid</a>(input_grid, *<a class="code" href="classpism_1_1array_1_1Array_a982fca110a5d7011f681b928b20e3577.html#a982fca110a5d7011f681b928b20e3577">grid</a>(), <a class="code" href="classpism_1_1array_1_1Array_a471583941d54506f80b014efaa14073a.html#a471583941d54506f80b014efaa14073a">levels</a>());</div>
<div class="line"><a name="l00268"></a><span class="lineno"> 268</span>  </div>
<div class="line"><a name="l00269"></a><span class="lineno"> 269</span>  <a class="code" href="classpism_1_1LocalInterpCtx.html">LocalInterpCtx</a> lic(input_grid, *<a class="code" href="classpism_1_1array_1_1Array_a982fca110a5d7011f681b928b20e3577.html#a982fca110a5d7011f681b928b20e3577">grid</a>(), <a class="code" href="classpism_1_1array_1_1Array_a471583941d54506f80b014efaa14073a.html#a471583941d54506f80b014efaa14073a">levels</a>(), <a class="code" href="classpism_1_1array_1_1Array_a1fa9d92d2183dd048612690d41cfcde5.html#a1fa9d92d2183dd048612690d41cfcde5">m_impl</a>-><a class="code" href="structpism_1_1array_1_1Array_1_1Impl_a3e0a8f5b2176e8aaa858ef6e169c5507.html#a3e0a8f5b2176e8aaa858ef6e169c5507">interpolation_type</a>);</div>
<div class="line"><a name="l00270"></a><span class="lineno"> 270</span>  </div>
<div class="line"><a name="l00271"></a><span class="lineno"> 271</span>  <span class="comment">// Note: this call will read the last time record (the index is set in `lic` based on</span></div>
<div class="line"><a name="l00272"></a><span class="lineno"> 272</span>  <span class="comment">// info in `input_grid`).</span></div>
<div class="line"><a name="l00273"></a><span class="lineno"> 273</span>  <a class="code" href="classpism_1_1petsc_1_1VecArray.html">petsc::VecArray</a> tmp_array(tmp);</div>
<div class="line"><a name="l00274"></a><span class="lineno"> 274</span>  <a class="code" href="namespacepism_1_1io_a0e1b36b1c8f0c67cae5535fd40850bbc.html#a0e1b36b1c8f0c67cae5535fd40850bbc">io::regrid_spatial_variable</a>(variable, *<a class="code" href="classpism_1_1array_1_1Array_a982fca110a5d7011f681b928b20e3577.html#a982fca110a5d7011f681b928b20e3577">grid</a>(), lic, file, tmp_array.<a class="code" href="classpism_1_1petsc_1_1VecArray_aaa06564a211921bb10f02b52f8b956cf.html#aaa06564a211921bb10f02b52f8b956cf">get</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>  </div>
<div class="line"><a name="l00277"></a><span class="lineno"> 277</span>  <span class="keywordflow">if</span> (<a class="code" href="classpism_1_1array_1_1Array_a1fa9d92d2183dd048612690d41cfcde5.html#a1fa9d92d2183dd048612690d41cfcde5">m_impl</a>-><a class="code" href="structpism_1_1array_1_1Array_1_1Impl_a168f31ddc8404eb3ddb3a38a55aee3b7.html#a168f31ddc8404eb3ddb3a38a55aee3b7">ghosted</a>) {</div>
<div class="line"><a name="l00278"></a><span class="lineno"> 278</span>  <a class="code" href="namespacepism_1_1array_a79ae8188b20d8242ce8326fc22d8699b.html#a79ae8188b20d8242ce8326fc22d8699b">global_to_local</a>(*<a class="code" href="classpism_1_1array_1_1Array_aa3fb4d0b08e98efb43662be6db1fe2ef.html#aa3fb4d0b08e98efb43662be6db1fe2ef">dm</a>(), tmp, <a class="code" href="classpism_1_1array_1_1Array_a5da8e0cb6f7c1e6e2ac6efdc841fb80d.html#a5da8e0cb6f7c1e6e2ac6efdc841fb80d">vec</a>());</div>
<div class="line"><a name="l00279"></a><span class="lineno"> 279</span>  } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00280"></a><span class="lineno"> 280</span>  PetscErrorCode ierr = VecCopy(tmp, <a class="code" href="classpism_1_1array_1_1Array_a5da8e0cb6f7c1e6e2ac6efdc841fb80d.html#a5da8e0cb6f7c1e6e2ac6efdc841fb80d">vec</a>());</div>
<div class="line"><a name="l00281"></a><span class="lineno"> 281</span>  <a class="code" href="error__handling_8hh_a970ec877c0e54c6e16c039bfa1b88bad.html#a970ec877c0e54c6e16c039bfa1b88bad">PISM_CHK</a>(ierr, <span class="stringliteral">"VecCopy"</span>);</div>
<div class="line"><a name="l00282"></a><span class="lineno"> 282</span>  }</div>
<div class="line"><a name="l00283"></a><span class="lineno"> 283</span> }</div>
<div class="line"><a name="l00284"></a><span class="lineno"> 284</span>  </div>
<div class="line"><a name="l00285"></a><span class="lineno"> 285</span> } <span class="comment">// end of namespace array</span></div>
<div class="line"><a name="l00286"></a><span class="lineno"> 286</span> } <span class="comment">// end of namespace pism</span></div>
<div class="ttc" id="aclasspism_1_1File_a4ec169f0ab9d7858d09f07bffc978f2a_html_a4ec169f0ab9d7858d09f07bffc978f2a"><div class="ttname"><a href="classpism_1_1File_a4ec169f0ab9d7858d09f07bffc978f2a.html#a4ec169f0ab9d7858d09f07bffc978f2a">pism::File::find_variable</a></div><div class="ttdeci">VariableLookupData find_variable(const std::string &short_name, const std::string &std_name) const</div><div class="ttdoc">Find a variable using its standard name and/or short name.</div><div class="ttdef"><b>Definition:</b> <a href="File_8cc_source.html#l00361">File.cc:361</a></div></div>
<div class="ttc" id="aclasspism_1_1File_a735a2ac444d55f02c4456736fca22223_html_a735a2ac444d55f02c4456736fca22223"><div class="ttname"><a href="classpism_1_1File_a735a2ac444d55f02c4456736fca22223.html#a735a2ac444d55f02c4456736fca22223">pism::File::filename</a></div><div class="ttdeci">std::string filename() const</div><div class="ttdef"><b>Definition:</b> <a href="File_8cc_source.html#l00307">File.cc:307</a></div></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_1LocalInterpCtx_html"><div class="ttname"><a href="classpism_1_1LocalInterpCtx.html">pism::LocalInterpCtx</a></div><div class="ttdef"><b>Definition:</b> <a href="LocalInterpCtx_8hh_source.html#l00054">LocalInterpCtx.hh:54</a></div></div>
<div class="ttc" id="aclasspism_1_1ParallelSection_a6b0a6e5e64970af7eadabfebe2b20bd2_html_a6b0a6e5e64970af7eadabfebe2b20bd2"><div class="ttname"><a href="classpism_1_1ParallelSection_a6b0a6e5e64970af7eadabfebe2b20bd2.html#a6b0a6e5e64970af7eadabfebe2b20bd2">pism::ParallelSection::failed</a></div><div class="ttdeci">void failed()</div><div class="ttdoc">Indicates a failure of a parallel section.</div><div class="ttdef"><b>Definition:</b> <a href="error__handling_8cc_source.html#l00185">error_handling.cc:185</a></div></div>
<div class="ttc" id="aclasspism_1_1ParallelSection_ac23296abee1cbcb3c3fd68c7f5ce0835_html_ac23296abee1cbcb3c3fd68c7f5ce0835"><div class="ttname"><a href="classpism_1_1ParallelSection_ac23296abee1cbcb3c3fd68c7f5ce0835.html#ac23296abee1cbcb3c3fd68c7f5ce0835">pism::ParallelSection::check</a></div><div class="ttdeci">void check()</div><div class="ttdef"><b>Definition:</b> <a href="error__handling_8cc_source.html#l00201">error_handling.cc:201</a></div></div>
<div class="ttc" id="aclasspism_1_1ParallelSection_html"><div class="ttname"><a href="classpism_1_1ParallelSection.html">pism::ParallelSection</a></div><div class="ttdef"><b>Definition:</b> <a href="error__handling_8hh_source.html#l00069">error_handling.hh:69</a></div></div>
<div class="ttc" id="aclasspism_1_1RuntimeError_ad0ed5f05a9a4e3e403a1d62f8d1e4e7d_html_ad0ed5f05a9a4e3e403a1d62f8d1e4e7d"><div class="ttname"><a href="classpism_1_1RuntimeError_ad0ed5f05a9a4e3e403a1d62f8d1e4e7d.html#ad0ed5f05a9a4e3e403a1d62f8d1e4e7d">pism::RuntimeError::formatted</a></div><div class="ttdeci">static RuntimeError formatted(const ErrorLocation &location, const char format[],...) __attribute__((format(printf</div><div class="ttdoc">build a RuntimeError with a formatted message</div><div class="ttdef"><b>Definition:</b> <a href="error__handling_8cc_source.html#l00047">error_handling.cc:47</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_1Array3D_a0ea8b6700f5aab01e913dcbad9de72a5_html_a0ea8b6700f5aab01e913dcbad9de72a5"><div class="ttname"><a href="classpism_1_1array_1_1Array3D_a0ea8b6700f5aab01e913dcbad9de72a5.html#a0ea8b6700f5aab01e913dcbad9de72a5">pism::array::Array3D::copy_from</a></div><div class="ttdeci">void copy_from(const Array3D &input)</div><div class="ttdef"><b>Definition:</b> <a href="Array3D_8cc_source.html#l00208">Array3D.cc:208</a></div></div>
<div class="ttc" id="aclasspism_1_1array_1_1Array3D_a4baf48fbb0f675a23093d4d4cc1ab6cb_html_a4baf48fbb0f675a23093d4d4cc1ab6cb"><div class="ttname"><a href="classpism_1_1array_1_1Array3D_a4baf48fbb0f675a23093d4d4cc1ab6cb.html#a4baf48fbb0f675a23093d4d4cc1ab6cb">pism::array::Array3D::interpolate</a></div><div class="ttdeci">double interpolate(int i, int j, double z) const</div><div class="ttdoc">Return value of scalar quantity at level z (m) above base of ice (by linear interpolation).</div><div class="ttdef"><b>Definition:</b> <a href="Array3D_8cc_source.html#l00088">Array3D.cc:88</a></div></div>
<div class="ttc" id="aclasspism_1_1array_1_1Array3D_a57f6842686575847d4662ebe9a69bca6_html_a57f6842686575847d4662ebe9a69bca6"><div class="ttname"><a href="classpism_1_1array_1_1Array3D_a57f6842686575847d4662ebe9a69bca6.html#a57f6842686575847d4662ebe9a69bca6">pism::array::Array3D::set_column</a></div><div class="ttdeci">void set_column(int i, int j, double c)</div><div class="ttdoc">Set all values of scalar quantity to given a single value in a particular column.</div><div class="ttdef"><b>Definition:</b> <a href="Array3D_8cc_source.html#l00049">Array3D.cc:49</a></div></div>
<div class="ttc" id="aclasspism_1_1array_1_1Array3D_a8990db065ae76f3c6434fa58fae33d17_html_a8990db065ae76f3c6434fa58fae33d17"><div class="ttname"><a href="classpism_1_1array_1_1Array3D_a8990db065ae76f3c6434fa58fae33d17.html#a8990db065ae76f3c6434fa58fae33d17">pism::array::Array3D::regrid_impl</a></div><div class="ttdeci">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="Array3D_8cc_source.html#l00250">Array3D.cc:250</a></div></div>
<div class="ttc" id="aclasspism_1_1array_1_1Array3D_aa6c8dbf58dff709e5bbbefb7f9e56e30_html_aa6c8dbf58dff709e5bbbefb7f9e56e30"><div class="ttname"><a href="classpism_1_1array_1_1Array3D_aa6c8dbf58dff709e5bbbefb7f9e56e30.html#aa6c8dbf58dff709e5bbbefb7f9e56e30">pism::array::Array3D::Array3D</a></div><div class="ttdeci">Array3D(std::shared_ptr< const Grid > grid, const std::string &name, Kind ghostedp, const std::vector< double > &levels, unsigned int stencil_width=1)</div><div class="ttdef"><b>Definition:</b> <a href="Array3D_8cc_source.html#l00042">Array3D.cc:42</a></div></div>
<div class="ttc" id="aclasspism_1_1array_1_1Array3D_ab2d5de7b9ceac2f86db1288b02bf6572_html_ab2d5de7b9ceac2f86db1288b02bf6572"><div class="ttname"><a href="classpism_1_1array_1_1Array3D_ab2d5de7b9ceac2f86db1288b02bf6572.html#ab2d5de7b9ceac2f86db1288b02bf6572">pism::array::Array3D::duplicate</a></div><div class="ttdeci">std::shared_ptr< Array3D > duplicate(Kind ghostedp=WITHOUT_GHOSTS) const</div><div class="ttdef"><b>Definition:</b> <a href="Array3D_8cc_source.html#l00240">Array3D.cc:240</a></div></div>
<div class="ttc" id="aclasspism_1_1array_1_1Array3D_ac74ddc5a845ca13d159983b9e7b20791_html_ac74ddc5a845ca13d159983b9e7b20791"><div class="ttname"><a href="classpism_1_1array_1_1Array3D_ac74ddc5a845ca13d159983b9e7b20791.html#ac74ddc5a845ca13d159983b9e7b20791">pism::array::Array3D::get_column</a></div><div class="ttdeci">double * get_column(int i, int j)</div><div class="ttdef"><b>Definition:</b> <a href="Array3D_8cc_source.html#l00120">Array3D.cc:120</a></div></div>
<div class="ttc" id="aclasspism_1_1array_1_1Array3D_html"><div class="ttname"><a href="classpism_1_1array_1_1Array3D.html">pism::array::Array3D</a></div><div class="ttdoc">A virtual class collecting methods common to ice and bedrock 3D fields.</div><div class="ttdef"><b>Definition:</b> <a href="Array3D_8hh_source.html#l00033">Array3D.hh:33</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_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_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_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_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_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_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_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_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_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_1array_1_1Scalar_html"><div class="ttname"><a href="classpism_1_1array_1_1Scalar.html">pism::array::Scalar</a></div><div class="ttdef"><b>Definition:</b> <a href="Scalar_8hh_source.html#l00031">Scalar.hh:31</a></div></div>
<div class="ttc" id="aclasspism_1_1grid_1_1InputGridInfo_af7ffeece246313bb65122f384bd4aa38_html_af7ffeece246313bb65122f384bd4aa38"><div class="ttname"><a href="classpism_1_1grid_1_1InputGridInfo_af7ffeece246313bb65122f384bd4aa38.html#af7ffeece246313bb65122f384bd4aa38">pism::grid::InputGridInfo::report</a></div><div class="ttdeci">void report(const Logger &log, int threshold, std::shared_ptr< units::System > s) const</div><div class="ttdef"><b>Definition:</b> <a href="Grid_8cc_source.html#l01025">Grid.cc:1025</a></div></div>
<div class="ttc" id="aclasspism_1_1grid_1_1InputGridInfo_html"><div class="ttname"><a href="classpism_1_1grid_1_1InputGridInfo.html">pism::grid::InputGridInfo</a></div><div class="ttdoc">Contains parameters of an input file grid.</div><div class="ttdef"><b>Definition:</b> <a href="Grid_8hh_source.html#l00065">Grid.hh:65</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_1TemporaryGlobalVec_html"><div class="ttname"><a href="classpism_1_1petsc_1_1TemporaryGlobalVec.html">pism::petsc::TemporaryGlobalVec</a></div><div class="ttdef"><b>Definition:</b> <a href="Vec_8hh_source.html#l00092">Vec.hh:92</a></div></div>
<div class="ttc" id="aclasspism_1_1petsc_1_1VecArray_aaa06564a211921bb10f02b52f8b956cf_html_aaa06564a211921bb10f02b52f8b956cf"><div class="ttname"><a href="classpism_1_1petsc_1_1VecArray_aaa06564a211921bb10f02b52f8b956cf.html#aaa06564a211921bb10f02b52f8b956cf">pism::petsc::VecArray::get</a></div><div class="ttdeci">double * get()</div><div class="ttdef"><b>Definition:</b> <a href="Vec_8cc_source.html#l00054">Vec.cc:54</a></div></div>
<div class="ttc" id="aclasspism_1_1petsc_1_1VecArray_html"><div class="ttname"><a href="classpism_1_1petsc_1_1VecArray.html">pism::petsc::VecArray</a></div><div class="ttdoc">Wrapper around VecGetArray and VecRestoreArray.</div><div class="ttdef"><b>Definition:</b> <a href="Vec_8hh_source.html#l00044">Vec.hh:44</a></div></div>
<div class="ttc" id="aerror__handling_8hh_a970ec877c0e54c6e16c039bfa1b88bad_html_a970ec877c0e54c6e16c039bfa1b88bad"><div class="ttname"><a href="error__handling_8hh_a970ec877c0e54c6e16c039bfa1b88bad.html#a970ec877c0e54c6e16c039bfa1b88bad">PISM_CHK</a></div><div class="ttdeci">#define PISM_CHK(errcode, name)</div><div class="ttdef"><b>Definition:</b> <a href="error__handling_8hh_source.html#l00090">error_handling.hh:90</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="anamespacepism_1_1array_a0ce70fa345951f83ae207a765c5273e4_html_a0ce70fa345951f83ae207a765c5273e4"><div class="ttname"><a href="namespacepism_1_1array_a0ce70fa345951f83ae207a765c5273e4.html#a0ce70fa345951f83ae207a765c5273e4">pism::array::extract_surface</a></div><div class="ttdeci">void extract_surface(const Array3D &data, double z, Scalar &output)</div><div class="ttdoc">Copies a horizontal slice at level z of an Array3D into output.</div><div class="ttdef"><b>Definition:</b> <a href="Array3D_8cc_source.html#l00135">Array3D.cc:135</a></div></div>
<div class="ttc" id="anamespacepism_1_1array_a1b1be958c985d6b95f0f529d90bc87d7_html_a1b1be958c985d6b95f0f529d90bc87d7"><div class="ttname"><a href="namespacepism_1_1array_a1b1be958c985d6b95f0f529d90bc87d7.html#a1b1be958c985d6b95f0f529d90bc87d7">pism::array::sum_columns</a></div><div class="ttdeci">void sum_columns(const Array3D &data, double A, double B, Scalar &output)</div><div class="ttdef"><b>Definition:</b> <a href="Array3D_8cc_source.html#l00190">Array3D.cc:190</a></div></div>
<div class="ttc" id="anamespacepism_1_1array_a6340d8382fff157e7b54699b1bd35882_html_a6340d8382fff157e7b54699b1bd35882"><div class="ttname"><a href="namespacepism_1_1array_a6340d8382fff157e7b54699b1bd35882.html#a6340d8382fff157e7b54699b1bd35882">pism::array::set_default_value_or_stop</a></div><div class="ttdeci">void set_default_value_or_stop(const std::string &filename, const VariableMetadata &variable, io::Default default_value, const Logger &log, Vec output)</div><div class="ttdef"><b>Definition:</b> <a href="Array_8cc_source.html#l00387">Array.cc:387</a></div></div>
<div class="ttc" id="anamespacepism_1_1array_a79ae8188b20d8242ce8326fc22d8699b_html_a79ae8188b20d8242ce8326fc22d8699b"><div class="ttname"><a href="namespacepism_1_1array_a79ae8188b20d8242ce8326fc22d8699b.html#a79ae8188b20d8242ce8326fc22d8699b">pism::array::global_to_local</a></div><div class="ttdeci">void global_to_local(petsc::DM &dm, Vec source, Vec destination)</div><div class="ttdef"><b>Definition:</b> <a href="Array_8cc_source.html#l00049">Array.cc:49</a></div></div>
<div class="ttc" id="anamespacepism_1_1array_a8957d08741c6f48d1e554ac7ea98530a_html_a8957d08741c6f48d1e554ac7ea98530a"><div class="ttname"><a href="namespacepism_1_1array_a8957d08741c6f48d1e554ac7ea98530a.html#a8957d08741c6f48d1e554ac7ea98530a">pism::array::max</a></div><div class="ttdeci">double max(const array::Scalar &input)</div><div class="ttdoc">Finds maximum over all the values in an array::Scalar object. Ignores ghosts.</div><div class="ttdef"><b>Definition:</b> <a href="Scalar_8cc_source.html#l00165">Scalar.cc:165</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_1fem_ae2f57ac21774f132ef388b3de9cde364_html_ae2f57ac21774f132ef388b3de9cde364"><div class="ttname"><a href="namespacepism_1_1fem_ae2f57ac21774f132ef388b3de9cde364.html#ae2f57ac21774f132ef388b3de9cde364">pism::fem::column</a></div><div class="ttdeci">static Vector3 column(const double A[3][3], size_t k)</div><div class="ttdef"><b>Definition:</b> <a href="Element_8cc_source.html#l00051">Element.cc:51</a></div></div>
<div class="ttc" id="anamespacepism_1_1io_a0e1b36b1c8f0c67cae5535fd40850bbc_html_a0e1b36b1c8f0c67cae5535fd40850bbc"><div class="ttname"><a href="namespacepism_1_1io_a0e1b36b1c8f0c67cae5535fd40850bbc.html#a0e1b36b1c8f0c67cae5535fd40850bbc">pism::io::regrid_spatial_variable</a></div><div class="ttdeci">void regrid_spatial_variable(SpatialVariableMetadata &variable, const Grid &internal_grid, const LocalInterpCtx &lic, const File &file, double *output)</div><div class="ttdoc">Regrid from a NetCDF file into a distributed array output.</div><div class="ttdef"><b>Definition:</b> <a href="io__helpers_8cc_source.html#l00793">io_helpers.cc:793</a></div></div>
<div class="ttc" id="anamespacepism_1_1io_a68030f868b9f8a08c80c96fcf3b09f5b_html_a68030f868b9f8a08c80c96fcf3b09f5b"><div class="ttname"><a href="namespacepism_1_1io_a68030f868b9f8a08c80c96fcf3b09f5b.html#a68030f868b9f8a08c80c96fcf3b09f5b">pism::io::check_input_grid</a></div><div class="ttdeci">void check_input_grid(const grid::InputGridInfo &input_grid, const Grid &internal_grid, const std::vector< double > &internal_z_levels)</div><div class="ttdoc">Check that x, y, and z coordinates of the input grid are strictly increasing.</div><div class="ttdef"><b>Definition:</b> <a href="io__helpers_8cc_source.html#l00757">io_helpers.cc:757</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_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_a168f31ddc8404eb3ddb3a38a55aee3b7_html_a168f31ddc8404eb3ddb3a38a55aee3b7"><div class="ttname"><a href="structpism_1_1array_1_1Array_1_1Impl_a168f31ddc8404eb3ddb3a38a55aee3b7.html#a168f31ddc8404eb3ddb3a38a55aee3b7">pism::array::Array::Impl::ghosted</a></div><div class="ttdeci">bool ghosted</div><div class="ttdoc">true if this Array is ghosted</div><div class="ttdef"><b>Definition:</b> <a href="Array__impl_8hh_source.html#l00086">Array_impl.hh:86</a></div></div>
<div class="ttc" id="astructpism_1_1array_1_1Array_1_1Impl_a295d8d59d99979427598a947439a2949_html_a295d8d59d99979427598a947439a2949"><div class="ttname"><a href="structpism_1_1array_1_1Array_1_1Impl_a295d8d59d99979427598a947439a2949.html#a295d8d59d99979427598a947439a2949">pism::array::Array::Impl::grid</a></div><div class="ttdeci">std::shared_ptr< const Grid > grid</div><div class="ttdoc">The computational grid.</div><div class="ttdef"><b>Definition:</b> <a href="Array__impl_8hh_source.html#l00077">Array_impl.hh:77</a></div></div>
<div class="ttc" id="astructpism_1_1array_1_1Array_1_1Impl_a3e0a8f5b2176e8aaa858ef6e169c5507_html_a3e0a8f5b2176e8aaa858ef6e169c5507"><div class="ttname"><a href="structpism_1_1array_1_1Array_1_1Impl_a3e0a8f5b2176e8aaa858ef6e169c5507.html#a3e0a8f5b2176e8aaa858ef6e169c5507">pism::array::Array::Impl::interpolation_type</a></div><div class="ttdeci">InterpolationType interpolation_type</div><div class="ttdef"><b>Definition:</b> <a href="Array__impl_8hh_source.html#l00105">Array_impl.hh:105</a></div></div>
<div class="ttc" id="astructpism_1_1array_1_1Array_1_1Impl_a90edba9f54e9a08982973dd017941662_html_a90edba9f54e9a08982973dd017941662"><div class="ttname"><a href="structpism_1_1array_1_1Array_1_1Impl_a90edba9f54e9a08982973dd017941662.html#a90edba9f54e9a08982973dd017941662">pism::array::Array::Impl::bsearch_accel</a></div><div class="ttdeci">gsl_interp_accel * bsearch_accel</div><div class="ttdef"><b>Definition:</b> <a href="Array__impl_8hh_source.html#l00111">Array_impl.hh:111</a></div></div>
<div class="ttc" id="astructpism_1_1array_1_1Array_1_1Impl_ad071bf93059f137225d182dfdd6a7e2f_html_ad071bf93059f137225d182dfdd6a7e2f"><div class="ttname"><a href="structpism_1_1array_1_1Array_1_1Impl_ad071bf93059f137225d182dfdd6a7e2f.html#ad071bf93059f137225d182dfdd6a7e2f">pism::array::Array::Impl::name</a></div><div class="ttdeci">std::string name</div><div class="ttdef"><b>Definition:</b> <a href="Array__impl_8hh_source.html#l00071">Array_impl.hh:71</a></div></div>
<div class="ttc" id="astructpism_1_1array_1_1Array_1_1Impl_aec81354aaf53e5608f89116c340263da_html_aec81354aaf53e5608f89116c340263da"><div class="ttname"><a href="structpism_1_1array_1_1Array_1_1Impl_aec81354aaf53e5608f89116c340263da.html#aec81354aaf53e5608f89116c340263da">pism::array::Array::Impl::zlevels</a></div><div class="ttdeci">std::vector< double > zlevels</div><div class="ttdoc">Vertical levels (for 3D fields)</div><div class="ttdef"><b>Definition:</b> <a href="Array__impl_8hh_source.html#l00108">Array_impl.hh:108</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>