-
Notifications
You must be signed in to change notification settings - Fork 0
/
Array__impl_8hh_source.html
239 lines (237 loc) · 39.9 KB
/
Array__impl_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
<!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_impl.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_impl.hh</div> </div>
</div><!--header-->
<div class="contents">
<a href="Array__impl_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) 2020, 2021, 2022, 2023 PISM Authors</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> <span class="comment"> */</span></div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="preprocessor">#ifndef PISM_ARRAY_IMPL_HH</span></div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="preprocessor">#define PISM_ARRAY_IMPL_HH</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 <map></span></div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="preprocessor">#include <memory></span></div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#include <string></span></div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor">#include <vector></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/array/Array.hh"</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="preprocessor">#include <gsl/gsl_interp.h></span></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="preprocessor">#include "pism/util/petscwrappers/Vec.hh"</span></div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="preprocessor">#include "pism/util/interpolation.hh"</span></div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="preprocessor">#include "pism/util/VariableMetadata.hh"</span></div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  </div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span> <span class="keyword">namespace </span><a class="code" href="namespacepism.html">pism</a> {</div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span> <span class="keyword">namespace </span>array {</div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  </div>
<div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="structpism_1_1array_1_1Array_1_1Impl.html"> 38</a></span> <span class="keyword">struct </span><a class="code" href="structpism_1_1array_1_1Array_1_1Impl.html">Array::Impl</a> {</div>
<div class="line"><a name="l00039"></a><span class="lineno"><a class="line" href="structpism_1_1array_1_1Array_1_1Impl_a49532a89d31d97a9bf2eb775a23bac0a.html#a49532a89d31d97a9bf2eb775a23bac0a"> 39</a></span>  <a class="code" href="structpism_1_1array_1_1Array_1_1Impl_a49532a89d31d97a9bf2eb775a23bac0a.html#a49532a89d31d97a9bf2eb775a23bac0a">Impl</a>() {</div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  <a class="code" href="structpism_1_1array_1_1Array_1_1Impl_ab55199ee152175b7c5cd213f47f7b82d.html#ab55199ee152175b7c5cd213f47f7b82d">access_counter</a> = 0;</div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  </div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  <a class="code" href="structpism_1_1array_1_1Array_1_1Impl_aed733ad520c76599d407b7059831e49a.html#aed733ad520c76599d407b7059831e49a">da</a>.reset();</div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  </div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  <a class="code" href="structpism_1_1array_1_1Array_1_1Impl_a961bf463efac459983019621ea7594d1.html#a961bf463efac459983019621ea7594d1">da_stencil_width</a> = 1;</div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  <a class="code" href="structpism_1_1array_1_1Array_1_1Impl_afed8669b7b65408241944b89f5d5eaf8.html#afed8669b7b65408241944b89f5d5eaf8">dof</a> = 1;</div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  <a class="code" href="structpism_1_1array_1_1Array_1_1Impl_a06bf21dbba62d30c451037e5de5a5f97.html#a06bf21dbba62d30c451037e5de5a5f97">begin_access_use_dof</a> = <span class="keyword">false</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"> 48</span>  <a class="code" href="structpism_1_1array_1_1Array_1_1Impl_a168f31ddc8404eb3ddb3a38a55aee3b7.html#a168f31ddc8404eb3ddb3a38a55aee3b7">ghosted</a> = <span class="keyword">true</span>;</div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  </div>
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  <a class="code" href="structpism_1_1array_1_1Array_1_1Impl_a71a1ccaa803f38c6edd4c027c031339a.html#a71a1ccaa803f38c6edd4c027c031339a">report_range</a> = <span class="keyword">true</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"> 52</span>  <a class="code" href="structpism_1_1array_1_1Array_1_1Impl_ad071bf93059f137225d182dfdd6a7e2f.html#ad071bf93059f137225d182dfdd6a7e2f">name</a> = <span class="stringliteral">"uninitialized variable"</span>;</div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  </div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  <a class="code" href="structpism_1_1array_1_1Array_1_1Impl_aec81354aaf53e5608f89116c340263da.html#aec81354aaf53e5608f89116c340263da">zlevels</a> = {0.0};</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>  <a class="code" href="structpism_1_1array_1_1Array_1_1Impl_a100d6ba747878ecf1aa09542976970b1.html#a100d6ba747878ecf1aa09542976970b1">state_counter</a> = 0;</div>
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  <a class="code" href="structpism_1_1array_1_1Array_1_1Impl_a3e0a8f5b2176e8aaa858ef6e169c5507.html#a3e0a8f5b2176e8aaa858ef6e169c5507">interpolation_type</a> = <a class="code" href="namespacepism_a3415cf6a7a4530c4e489feebe6365e03.html#a3415cf6a7a4530c4e489feebe6365e03aa03926dd636ce1d977b1a8a9ed608c85">LINEAR</a>;</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>  <a class="code" href="structpism_1_1array_1_1Array_1_1Impl_a90edba9f54e9a08982973dd017941662.html#a90edba9f54e9a08982973dd017941662">bsearch_accel</a> = <span class="keyword">nullptr</span>;</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"> //! If true, report range when regridding.</span></div>
<div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="structpism_1_1array_1_1Array_1_1Impl_a71a1ccaa803f38c6edd4c027c031339a.html#a71a1ccaa803f38c6edd4c027c031339a"> 62</a></span> <span class="comment"></span> <span class="keywordtype">bool</span> <a class="code" href="structpism_1_1array_1_1Array_1_1Impl_a71a1ccaa803f38c6edd4c027c031339a.html#a71a1ccaa803f38c6edd4c027c031339a">report_range</a>;</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"> //! The array itself</span></div>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span> <span class="comment"> //!</span></div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span> <span class="comment"> //! Note: do not access this directly (via `m_impl->v`). Use `vec()` instead.</span></div>
<div class="line"><a name="l00067"></a><span class="lineno"><a class="line" href="structpism_1_1array_1_1Array_1_1Impl_ae6675398609d961132a8e6948b3d2777.html#ae6675398609d961132a8e6948b3d2777"> 67</a></span> <span class="comment"></span> <a class="code" href="classpism_1_1petsc_1_1Vec.html">petsc::Vec</a> <a class="code" href="structpism_1_1array_1_1Array_1_1Impl_ae6675398609d961132a8e6948b3d2777.html#ae6675398609d961132a8e6948b3d2777">v</a>;</div>
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span> <span class="comment"></span> </div>
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span> <span class="comment"> //! Name of the field. In general this is *not* the name of the corresponding NetCDF</span></div>
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span> <span class="comment"> //! variable.</span></div>
<div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="structpism_1_1array_1_1Array_1_1Impl_ad071bf93059f137225d182dfdd6a7e2f.html#ad071bf93059f137225d182dfdd6a7e2f"> 71</a></span> <span class="comment"></span> std::string <a class="code" href="structpism_1_1array_1_1Array_1_1Impl_ad071bf93059f137225d182dfdd6a7e2f.html#ad071bf93059f137225d182dfdd6a7e2f">name</a>;</div>
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span> <span class="comment"></span> </div>
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span> <span class="comment"> //! Metadata (NetCDF variable attributes)</span></div>
<div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="structpism_1_1array_1_1Array_1_1Impl_aa4a72e5a1f1c7602b0a3abfaa970ab59.html#aa4a72e5a1f1c7602b0a3abfaa970ab59"> 74</a></span> <span class="comment"></span> std::vector<SpatialVariableMetadata> <a class="code" href="structpism_1_1array_1_1Array_1_1Impl_aa4a72e5a1f1c7602b0a3abfaa970ab59.html#aa4a72e5a1f1c7602b0a3abfaa970ab59">metadata</a>;</div>
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span> <span class="comment"></span> </div>
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span> <span class="comment"> //! The computational grid</span></div>
<div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="structpism_1_1array_1_1Array_1_1Impl_a295d8d59d99979427598a947439a2949.html#a295d8d59d99979427598a947439a2949"> 77</a></span> <span class="comment"></span> std::shared_ptr<const Grid> <a class="code" href="structpism_1_1array_1_1Array_1_1Impl_a295d8d59d99979427598a947439a2949.html#a295d8d59d99979427598a947439a2949">grid</a>;</div>
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span> <span class="comment"></span> </div>
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span> <span class="comment"> //! number of "degrees of freedom" per grid point</span></div>
<div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="structpism_1_1array_1_1Array_1_1Impl_afed8669b7b65408241944b89f5d5eaf8.html#afed8669b7b65408241944b89f5d5eaf8"> 80</a></span> <span class="comment"></span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="structpism_1_1array_1_1Array_1_1Impl_afed8669b7b65408241944b89f5d5eaf8.html#afed8669b7b65408241944b89f5d5eaf8">dof</a>;</div>
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span> <span class="comment"></span> </div>
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span> <span class="comment"> //! stencil width supported by the DA</span></div>
<div class="line"><a name="l00083"></a><span class="lineno"><a class="line" href="structpism_1_1array_1_1Array_1_1Impl_a961bf463efac459983019621ea7594d1.html#a961bf463efac459983019621ea7594d1"> 83</a></span> <span class="comment"></span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="structpism_1_1array_1_1Array_1_1Impl_a961bf463efac459983019621ea7594d1.html#a961bf463efac459983019621ea7594d1">da_stencil_width</a>;</div>
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span> <span class="comment"></span> </div>
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span> <span class="comment"> //! true if this Array is ghosted</span></div>
<div class="line"><a name="l00086"></a><span class="lineno"><a class="line" href="structpism_1_1array_1_1Array_1_1Impl_a168f31ddc8404eb3ddb3a38a55aee3b7.html#a168f31ddc8404eb3ddb3a38a55aee3b7"> 86</a></span> <span class="comment"></span> <span class="keywordtype">bool</span> <a class="code" href="structpism_1_1array_1_1Array_1_1Impl_a168f31ddc8404eb3ddb3a38a55aee3b7.html#a168f31ddc8404eb3ddb3a38a55aee3b7">ghosted</a>;</div>
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span> <span class="comment"></span> </div>
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span> <span class="comment"> //! distributed mesh manager (DM)</span></div>
<div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="structpism_1_1array_1_1Array_1_1Impl_aed733ad520c76599d407b7059831e49a.html#aed733ad520c76599d407b7059831e49a"> 89</a></span> <span class="comment"></span> std::shared_ptr<petsc::DM> <a class="code" href="structpism_1_1array_1_1Array_1_1Impl_aed733ad520c76599d407b7059831e49a.html#aed733ad520c76599d407b7059831e49a">da</a>;</div>
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span> <span class="comment"></span> </div>
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span> <span class="comment"> //! If true, use DMDAVecGetArrayDOF() in begin_access()</span></div>
<div class="line"><a name="l00092"></a><span class="lineno"><a class="line" href="structpism_1_1array_1_1Array_1_1Impl_a06bf21dbba62d30c451037e5de5a5f97.html#a06bf21dbba62d30c451037e5de5a5f97"> 92</a></span> <span class="comment"></span> <span class="keywordtype">bool</span> <a class="code" href="structpism_1_1array_1_1Array_1_1Impl_a06bf21dbba62d30c451037e5de5a5f97.html#a06bf21dbba62d30c451037e5de5a5f97">begin_access_use_dof</a>;</div>
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span> <span class="comment"></span> </div>
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span> <span class="comment"> //! Map plane viewers. It is a map because a temporary Array can be used to view</span></div>
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span> <span class="comment"> //! different quantities</span></div>
<div class="line"><a name="l00096"></a><span class="lineno"><a class="line" href="structpism_1_1array_1_1Array_1_1Impl_a69eee55ddbbbc6b3d66aa69a7e532e37.html#a69eee55ddbbbc6b3d66aa69a7e532e37"> 96</a></span> <span class="comment"></span> std::map<std::string,std::shared_ptr<petsc::Viewer> > <a class="code" href="structpism_1_1array_1_1Array_1_1Impl_a69eee55ddbbbc6b3d66aa69a7e532e37.html#a69eee55ddbbbc6b3d66aa69a7e532e37">map_viewers</a>;</div>
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  </div>
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  <span class="comment">// used in begin_access() and end_access()</span></div>
<div class="line"><a name="l00099"></a><span class="lineno"><a class="line" href="structpism_1_1array_1_1Array_1_1Impl_ab55199ee152175b7c5cd213f47f7b82d.html#ab55199ee152175b7c5cd213f47f7b82d"> 99</a></span>  <span class="keywordtype">int</span> <a class="code" href="structpism_1_1array_1_1Array_1_1Impl_ab55199ee152175b7c5cd213f47f7b82d.html#ab55199ee152175b7c5cd213f47f7b82d">access_counter</a>;</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"> //! Internal array::Array "revision number"</span></div>
<div class="line"><a name="l00102"></a><span class="lineno"><a class="line" href="structpism_1_1array_1_1Array_1_1Impl_a100d6ba747878ecf1aa09542976970b1.html#a100d6ba747878ecf1aa09542976970b1"> 102</a></span> <span class="comment"></span> <span class="keywordtype">int</span> <a class="code" href="structpism_1_1array_1_1Array_1_1Impl_a100d6ba747878ecf1aa09542976970b1.html#a100d6ba747878ecf1aa09542976970b1">state_counter</a>;</div>
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  </div>
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  <span class="comment">// 2D Interpolation type (used by regrid())</span></div>
<div class="line"><a name="l00105"></a><span class="lineno"><a class="line" href="structpism_1_1array_1_1Array_1_1Impl_a3e0a8f5b2176e8aaa858ef6e169c5507.html#a3e0a8f5b2176e8aaa858ef6e169c5507"> 105</a></span>  <a class="code" href="namespacepism_a3415cf6a7a4530c4e489feebe6365e03.html#a3415cf6a7a4530c4e489feebe6365e03">InterpolationType</a> <a class="code" href="structpism_1_1array_1_1Array_1_1Impl_a3e0a8f5b2176e8aaa858ef6e169c5507.html#a3e0a8f5b2176e8aaa858ef6e169c5507">interpolation_type</a>;</div>
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span> <span class="comment"></span> </div>
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span> <span class="comment"> //! Vertical levels (for 3D fields)</span></div>
<div class="line"><a name="l00108"></a><span class="lineno"><a class="line" href="structpism_1_1array_1_1Array_1_1Impl_aec81354aaf53e5608f89116c340263da.html#aec81354aaf53e5608f89116c340263da"> 108</a></span> <span class="comment"></span> std::vector<double> <a class="code" href="structpism_1_1array_1_1Array_1_1Impl_aec81354aaf53e5608f89116c340263da.html#aec81354aaf53e5608f89116c340263da">zlevels</a>;</div>
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  </div>
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  <span class="comment">// binary search accelerator (used for interpolation in a column in 3D fields)</span></div>
<div class="line"><a name="l00111"></a><span class="lineno"><a class="line" href="structpism_1_1array_1_1Array_1_1Impl_a90edba9f54e9a08982973dd017941662.html#a90edba9f54e9a08982973dd017941662"> 111</a></span>  gsl_interp_accel *<a class="code" href="structpism_1_1array_1_1Array_1_1Impl_a90edba9f54e9a08982973dd017941662.html#a90edba9f54e9a08982973dd017941662">bsearch_accel</a>;</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>  </div>
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span> <span class="keywordtype">void</span> <a class="code" href="namespacepism_1_1array_a79ae8188b20d8242ce8326fc22d8699b.html#a79ae8188b20d8242ce8326fc22d8699b">global_to_local</a>(<a class="code" href="classpism_1_1petsc_1_1DM.html">petsc::DM</a> &dm, Vec source, Vec destination);</div>
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  </div>
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span> <span class="comment">// set default value or stop with an error message (during regridding)</span></div>
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span> <span class="keywordtype">void</span> <a class="code" href="namespacepism_1_1array_a6340d8382fff157e7b54699b1bd35882.html#a6340d8382fff157e7b54699b1bd35882">set_default_value_or_stop</a>(<span class="keyword">const</span> std::string &filename, <span class="keyword">const</span> <a class="code" href="classpism_1_1VariableMetadata.html">VariableMetadata</a> &variable,</div>
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  <a class="code" href="classpism_1_1io_1_1Default.html">io::Default</a> default_value, <span class="keyword">const</span> <a class="code" href="classpism_1_1Logger.html">Logger</a> &log,</div>
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  Vec output);</div>
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  </div>
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span> } <span class="comment">// end of namespace array</span></div>
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span> } <span class="comment">// end of namespace pism</span></div>
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  </div>
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span> <span class="preprocessor">#endif </span><span class="comment">/* PISM_ARRAY_IMPL_HH */</span><span class="preprocessor"></span></div>
<div class="ttc" id="aclasspism_1_1Logger_html"><div class="ttname"><a href="classpism_1_1Logger.html">pism::Logger</a></div><div class="ttdoc">A basic logging class.</div><div class="ttdef"><b>Definition:</b> <a href="Logger_8hh_source.html#l00040">Logger.hh:40</a></div></div>
<div class="ttc" id="aclasspism_1_1VariableMetadata_html"><div class="ttname"><a href="classpism_1_1VariableMetadata.html">pism::VariableMetadata</a></div><div class="ttdef"><b>Definition:</b> <a href="VariableMetadata_8hh_source.html#l00100">VariableMetadata.hh:100</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="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_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_a3415cf6a7a4530c4e489feebe6365e03_html_a3415cf6a7a4530c4e489feebe6365e03aa03926dd636ce1d977b1a8a9ed608c85"><div class="ttname"><a href="namespacepism_a3415cf6a7a4530c4e489feebe6365e03.html#a3415cf6a7a4530c4e489feebe6365e03aa03926dd636ce1d977b1a8a9ed608c85">pism::LINEAR</a></div><div class="ttdeci">@ LINEAR</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_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_a06bf21dbba62d30c451037e5de5a5f97_html_a06bf21dbba62d30c451037e5de5a5f97"><div class="ttname"><a href="structpism_1_1array_1_1Array_1_1Impl_a06bf21dbba62d30c451037e5de5a5f97.html#a06bf21dbba62d30c451037e5de5a5f97">pism::array::Array::Impl::begin_access_use_dof</a></div><div class="ttdeci">bool begin_access_use_dof</div><div class="ttdoc">If true, use DMDAVecGetArrayDOF() in begin_access()</div><div class="ttdef"><b>Definition:</b> <a href="Array__impl_8hh_source.html#l00092">Array_impl.hh:92</a></div></div>
<div class="ttc" id="astructpism_1_1array_1_1Array_1_1Impl_a100d6ba747878ecf1aa09542976970b1_html_a100d6ba747878ecf1aa09542976970b1"><div class="ttname"><a href="structpism_1_1array_1_1Array_1_1Impl_a100d6ba747878ecf1aa09542976970b1.html#a100d6ba747878ecf1aa09542976970b1">pism::array::Array::Impl::state_counter</a></div><div class="ttdeci">int state_counter</div><div class="ttdoc">Internal array::Array "revision number".</div><div class="ttdef"><b>Definition:</b> <a href="Array__impl_8hh_source.html#l00102">Array_impl.hh:102</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_a49532a89d31d97a9bf2eb775a23bac0a_html_a49532a89d31d97a9bf2eb775a23bac0a"><div class="ttname"><a href="structpism_1_1array_1_1Array_1_1Impl_a49532a89d31d97a9bf2eb775a23bac0a.html#a49532a89d31d97a9bf2eb775a23bac0a">pism::array::Array::Impl::Impl</a></div><div class="ttdeci">Impl()</div><div class="ttdef"><b>Definition:</b> <a href="Array__impl_8hh_source.html#l00039">Array_impl.hh:39</a></div></div>
<div class="ttc" id="astructpism_1_1array_1_1Array_1_1Impl_a69eee55ddbbbc6b3d66aa69a7e532e37_html_a69eee55ddbbbc6b3d66aa69a7e532e37"><div class="ttname"><a href="structpism_1_1array_1_1Array_1_1Impl_a69eee55ddbbbc6b3d66aa69a7e532e37.html#a69eee55ddbbbc6b3d66aa69a7e532e37">pism::array::Array::Impl::map_viewers</a></div><div class="ttdeci">std::map< std::string, std::shared_ptr< petsc::Viewer > > map_viewers</div><div class="ttdef"><b>Definition:</b> <a href="Array__impl_8hh_source.html#l00096">Array_impl.hh:96</a></div></div>
<div class="ttc" id="astructpism_1_1array_1_1Array_1_1Impl_a71a1ccaa803f38c6edd4c027c031339a_html_a71a1ccaa803f38c6edd4c027c031339a"><div class="ttname"><a href="structpism_1_1array_1_1Array_1_1Impl_a71a1ccaa803f38c6edd4c027c031339a.html#a71a1ccaa803f38c6edd4c027c031339a">pism::array::Array::Impl::report_range</a></div><div class="ttdeci">bool report_range</div><div class="ttdoc">If true, report range when regridding.</div><div class="ttdef"><b>Definition:</b> <a href="Array__impl_8hh_source.html#l00062">Array_impl.hh:62</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_a961bf463efac459983019621ea7594d1_html_a961bf463efac459983019621ea7594d1"><div class="ttname"><a href="structpism_1_1array_1_1Array_1_1Impl_a961bf463efac459983019621ea7594d1.html#a961bf463efac459983019621ea7594d1">pism::array::Array::Impl::da_stencil_width</a></div><div class="ttdeci">unsigned int da_stencil_width</div><div class="ttdoc">stencil width supported by the DA</div><div class="ttdef"><b>Definition:</b> <a href="Array__impl_8hh_source.html#l00083">Array_impl.hh:83</a></div></div>
<div class="ttc" id="astructpism_1_1array_1_1Array_1_1Impl_aa4a72e5a1f1c7602b0a3abfaa970ab59_html_aa4a72e5a1f1c7602b0a3abfaa970ab59"><div class="ttname"><a href="structpism_1_1array_1_1Array_1_1Impl_aa4a72e5a1f1c7602b0a3abfaa970ab59.html#aa4a72e5a1f1c7602b0a3abfaa970ab59">pism::array::Array::Impl::metadata</a></div><div class="ttdeci">std::vector< SpatialVariableMetadata > metadata</div><div class="ttdoc">Metadata (NetCDF variable attributes)</div><div class="ttdef"><b>Definition:</b> <a href="Array__impl_8hh_source.html#l00074">Array_impl.hh:74</a></div></div>
<div class="ttc" id="astructpism_1_1array_1_1Array_1_1Impl_ab55199ee152175b7c5cd213f47f7b82d_html_ab55199ee152175b7c5cd213f47f7b82d"><div class="ttname"><a href="structpism_1_1array_1_1Array_1_1Impl_ab55199ee152175b7c5cd213f47f7b82d.html#ab55199ee152175b7c5cd213f47f7b82d">pism::array::Array::Impl::access_counter</a></div><div class="ttdeci">int access_counter</div><div class="ttdef"><b>Definition:</b> <a href="Array__impl_8hh_source.html#l00099">Array_impl.hh:99</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_ae6675398609d961132a8e6948b3d2777_html_ae6675398609d961132a8e6948b3d2777"><div class="ttname"><a href="structpism_1_1array_1_1Array_1_1Impl_ae6675398609d961132a8e6948b3d2777.html#ae6675398609d961132a8e6948b3d2777">pism::array::Array::Impl::v</a></div><div class="ttdeci">petsc::Vec v</div><div class="ttdef"><b>Definition:</b> <a href="Array__impl_8hh_source.html#l00067">Array_impl.hh:67</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 class="ttc" id="astructpism_1_1array_1_1Array_1_1Impl_aed733ad520c76599d407b7059831e49a_html_aed733ad520c76599d407b7059831e49a"><div class="ttname"><a href="structpism_1_1array_1_1Array_1_1Impl_aed733ad520c76599d407b7059831e49a.html#aed733ad520c76599d407b7059831e49a">pism::array::Array::Impl::da</a></div><div class="ttdeci">std::shared_ptr< petsc::DM > da</div><div class="ttdoc">distributed mesh manager (DM)</div><div class="ttdef"><b>Definition:</b> <a href="Array__impl_8hh_source.html#l00089">Array_impl.hh:89</a></div></div>
<div class="ttc" id="astructpism_1_1array_1_1Array_1_1Impl_afed8669b7b65408241944b89f5d5eaf8_html_afed8669b7b65408241944b89f5d5eaf8"><div class="ttname"><a href="structpism_1_1array_1_1Array_1_1Impl_afed8669b7b65408241944b89f5d5eaf8.html#afed8669b7b65408241944b89f5d5eaf8">pism::array::Array::Impl::dof</a></div><div class="ttdeci">unsigned int dof</div><div class="ttdoc">number of "degrees of freedom" per grid point</div><div class="ttdef"><b>Definition:</b> <a href="Array__impl_8hh_source.html#l00080">Array_impl.hh:80</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><!-- 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>