-
Notifications
You must be signed in to change notification settings - Fork 0
/
BTU__Full_8cc_source.html
424 lines (422 loc) · 89.7 KB
/
BTU__Full_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
<!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/energy/BTU_Full.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 committed by Constantine Khrulev on 2024-12-04 13:36:58 -0900</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_6dbe3a74fddfb865e2d1b322bca63f2b.html">energy</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">BTU_Full.cc</div> </div>
</div><!--header-->
<div class="contents">
<a href="BTU__Full_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) 2016, 2017, 2018, 2019, 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">#include "pism/energy/BTU_Full.hh"</span></div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>  </div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#include "pism/util/io/File.hh"</span></div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor">#include "pism/util/error_handling.hh"</span></div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="preprocessor">#include "pism/util/MaxTimestep.hh"</span></div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#include "pism/util/array/Array3D.hh"</span></div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor">#include "pism/energy/BedrockColumn.hh"</span></div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="preprocessor">#include <memory></span></div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>  </div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="keyword">namespace </span><a class="code" href="namespacepism.html">pism</a> {</div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="keyword">namespace </span>energy {</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>  </div>
<div class="line"><a name="l00032"></a><span class="lineno"><a class="line" href="classpism_1_1energy_1_1BTU__Full_add0b597a39b58ea923b5d7f456988a3c.html#add0b597a39b58ea923b5d7f456988a3c"> 32</a></span> <a class="code" href="classpism_1_1energy_1_1BTU__Full_add0b597a39b58ea923b5d7f456988a3c.html#add0b597a39b58ea923b5d7f456988a3c">BTU_Full::BTU_Full</a>(std::shared_ptr<const Grid> <a class="code" href="namespacepism_a47d754ed3e959d5866b02a1b78b6a5b5.html#a47d754ed3e959d5866b02a1b78b6a5b5">g</a>, <span class="keyword">const</span> <a class="code" href="structpism_1_1energy_1_1BTUGrid.html">BTUGrid</a> &grid)</div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  : <a class="code" href="classpism_1_1energy_1_1BedThermalUnit.html">BedThermalUnit</a>(<a class="code" href="namespacepism_a47d754ed3e959d5866b02a1b78b6a5b5.html#a47d754ed3e959d5866b02a1b78b6a5b5">g</a>),</div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  m_bootstrapping_needed(false) {</div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  </div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  <a class="code" href="classpism_1_1energy_1_1BTU__Full_aff64cb41bb34467c3f3fe180cfb1a7d9.html#aff64cb41bb34467c3f3fe180cfb1a7d9">m_k</a> = <a class="code" href="classpism_1_1Component_a28f298fc2133baae8cebf9dedf3b4d84.html#a28f298fc2133baae8cebf9dedf3b4d84">m_config</a>->get_number(<span class="stringliteral">"energy.bedrock_thermal.conductivity"</span>);</div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  </div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  <span class="keyword">const</span> <span class="keywordtype">double</span></div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  <a class="code" href="exactTestM_8c_af34a2efdcb2b1e7ba33447d305849221.html#af34a2efdcb2b1e7ba33447d305849221">rho</a> = <a class="code" href="classpism_1_1Component_a28f298fc2133baae8cebf9dedf3b4d84.html#a28f298fc2133baae8cebf9dedf3b4d84">m_config</a>->get_number(<span class="stringliteral">"energy.bedrock_thermal.density"</span>),</div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  c = <a class="code" href="classpism_1_1Component_a28f298fc2133baae8cebf9dedf3b4d84.html#a28f298fc2133baae8cebf9dedf3b4d84">m_config</a>->get_number(<span class="stringliteral">"energy.bedrock_thermal.specific_heat_capacity"</span>);</div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  <span class="comment">// build constant diffusivity for heat equation</span></div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  <a class="code" href="classpism_1_1energy_1_1BTU__Full_aeccb73d2035ccae775fca3b19d9ef89c.html#aeccb73d2035ccae775fca3b19d9ef89c">m_D</a> = <a class="code" href="classpism_1_1energy_1_1BTU__Full_aff64cb41bb34467c3f3fe180cfb1a7d9.html#aff64cb41bb34467c3f3fe180cfb1a7d9">m_k</a> / (<a class="code" href="exactTestM_8c_af34a2efdcb2b1e7ba33447d305849221.html#af34a2efdcb2b1e7ba33447d305849221">rho</a> * c);</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>  <span class="comment">// validate Lbz</span></div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  <span class="keywordflow">if</span> (<a class="code" href="classpism_1_1Component_a1d7fa2a58f259a9c5e464f8738db6ef0.html#a1d7fa2a58f259a9c5e464f8738db6ef0">grid</a>.Lbz <= 0.0) {</div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</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>, <span class="stringliteral">"Invalid bedrock thermal layer depth: %f m"</span>,</div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  <a class="code" href="classpism_1_1Component_a1d7fa2a58f259a9c5e464f8738db6ef0.html#a1d7fa2a58f259a9c5e464f8738db6ef0">grid</a>.Lbz);</div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</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>  <span class="comment">// validate Mbz</span></div>
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  <span class="keywordflow">if</span> (<a class="code" href="classpism_1_1Component_a1d7fa2a58f259a9c5e464f8738db6ef0.html#a1d7fa2a58f259a9c5e464f8738db6ef0">grid</a>.Mbz < 2) {</div>
<div class="line"><a name="l00052"></a><span class="lineno"> 52</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>, <span class="stringliteral">"Invalid number of layers of the bedrock thermal layer: %d"</span>,</div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  <a class="code" href="classpism_1_1Component_a1d7fa2a58f259a9c5e464f8738db6ef0.html#a1d7fa2a58f259a9c5e464f8738db6ef0">grid</a>.Mbz);</div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</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>  {</div>
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  <a class="code" href="classpism_1_1energy_1_1BTU__Full_a1dff2088600230d126f26d7254332a44.html#a1dff2088600230d126f26d7254332a44">m_Mbz</a> = <a class="code" href="classpism_1_1Component_a1d7fa2a58f259a9c5e464f8738db6ef0.html#a1d7fa2a58f259a9c5e464f8738db6ef0">grid</a>.Mbz;</div>
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  <a class="code" href="classpism_1_1energy_1_1BTU__Full_a3cc895e82591494e61e5ab0b32c8c5a1.html#a3cc895e82591494e61e5ab0b32c8c5a1">m_Lbz</a> = <a class="code" href="classpism_1_1Component_a1d7fa2a58f259a9c5e464f8738db6ef0.html#a1d7fa2a58f259a9c5e464f8738db6ef0">grid</a>.Lbz;</div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  </div>
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  std::vector<double> z(<a class="code" href="classpism_1_1energy_1_1BTU__Full_a1dff2088600230d126f26d7254332a44.html#a1dff2088600230d126f26d7254332a44">m_Mbz</a>);</div>
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  <span class="keywordtype">double</span> dz = <a class="code" href="classpism_1_1energy_1_1BTU__Full_a3cc895e82591494e61e5ab0b32c8c5a1.html#a3cc895e82591494e61e5ab0b32c8c5a1">m_Lbz</a> / (<a class="code" href="classpism_1_1energy_1_1BTU__Full_a1dff2088600230d126f26d7254332a44.html#a1dff2088600230d126f26d7254332a44">m_Mbz</a> - 1);</div>
<div class="line"><a name="l00062"></a><span class="lineno"> 62</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> < <a class="code" href="classpism_1_1energy_1_1BTU__Full_a1dff2088600230d126f26d7254332a44.html#a1dff2088600230d126f26d7254332a44">m_Mbz</a>; ++<a class="code" href="namespacepism_a7343afff8d353b59dbdec563bd896812.html#a7343afff8d353b59dbdec563bd896812">k</a>) {</div>
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  z[<a class="code" href="namespacepism_a7343afff8d353b59dbdec563bd896812.html#a7343afff8d353b59dbdec563bd896812">k</a>] = -<a class="code" href="classpism_1_1energy_1_1BTU__Full_a3cc895e82591494e61e5ab0b32c8c5a1.html#a3cc895e82591494e61e5ab0b32c8c5a1">m_Lbz</a> + <a class="code" href="namespacepism_a7343afff8d353b59dbdec563bd896812.html#a7343afff8d353b59dbdec563bd896812">k</a> * dz;</div>
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  }</div>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  z.back() = 0.0;</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>  <a class="code" href="classpism_1_1energy_1_1BTU__Full_a2b9e42164f5f27f66dd78d3419b4e87b.html#a2b9e42164f5f27f66dd78d3419b4e87b">m_temp</a> = std::make_shared<array::Array3D>(<a class="code" href="classpism_1_1Component_a745aa37bc1b5da6db5bfc280ecb3c811.html#a745aa37bc1b5da6db5bfc280ecb3c811">m_grid</a>, <span class="stringliteral">"litho_temp"</span>, <a class="code" href="namespacepism_1_1array_ab49b8ee9a79e7f46ec91fc40efdb7ca3.html#ab49b8ee9a79e7f46ec91fc40efdb7ca3af672399d2e1a4112ca5d4a4591c30885">array::WITHOUT_GHOSTS</a>, z);</div>
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  {</div>
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  <span class="keyword">auto</span> &z_dim = <a class="code" href="classpism_1_1energy_1_1BTU__Full_a2b9e42164f5f27f66dd78d3419b4e87b.html#a2b9e42164f5f27f66dd78d3419b4e87b">m_temp</a>->metadata(0).z();</div>
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  </div>
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  z_dim.set_name(<span class="stringliteral">"zb"</span>).long_name(<span class="stringliteral">"Z-coordinate in bedrock"</span>).units(<span class="stringliteral">"m"</span>);</div>
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  z_dim[<span class="stringliteral">"axis"</span>] = <span class="stringliteral">"Z"</span>;</div>
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  z_dim[<span class="stringliteral">"positive"</span>] = <span class="stringliteral">"up"</span>;</div>
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  }</div>
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  </div>
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  <a class="code" href="classpism_1_1energy_1_1BTU__Full_a2b9e42164f5f27f66dd78d3419b4e87b.html#a2b9e42164f5f27f66dd78d3419b4e87b">m_temp</a>->metadata(0)</div>
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  .long_name(<span class="stringliteral">"lithosphere (bedrock) temperature, in BTU_Full"</span>)</div>
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  .units(<span class="stringliteral">"K"</span>);</div>
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  <a class="code" href="classpism_1_1energy_1_1BTU__Full_a2b9e42164f5f27f66dd78d3419b4e87b.html#a2b9e42164f5f27f66dd78d3419b4e87b">m_temp</a>->metadata(0)[<span class="stringliteral">"valid_min"</span>] = {0.0};</div>
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  }</div>
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  </div>
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  <a class="code" href="classpism_1_1energy_1_1BTU__Full_a7a36bb90d613f2df622e1aff5136866f.html#a7a36bb90d613f2df622e1aff5136866f">m_column</a> = std::make_shared<BedrockColumn>(<span class="stringliteral">"bedrock_column"</span>, *<a class="code" href="classpism_1_1Component_a28f298fc2133baae8cebf9dedf3b4d84.html#a28f298fc2133baae8cebf9dedf3b4d84">m_config</a>, <a class="code" href="classpism_1_1energy_1_1BedThermalUnit_ac059f034933c5eb3997114b18f9e3f5b.html#ac059f034933c5eb3997114b18f9e3f5b">vertical_spacing</a>(), <a class="code" href="classpism_1_1energy_1_1BedThermalUnit_af6dda43e1b39561c1243f913ff7492f1.html#af6dda43e1b39561c1243f913ff7492f1">Mz</a>());</div>
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span> }</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="comment"></span> </div>
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span> <span class="comment">//! \brief Initialize the bedrock thermal unit.</span></div>
<div class="line"><a name="l00087"></a><span class="lineno"><a class="line" href="classpism_1_1energy_1_1BTU__Full_af00d293cc51940cd7bb989ea44c6484c.html#af00d293cc51940cd7bb989ea44c6484c"> 87</a></span> <span class="comment"></span><span class="keywordtype">void</span> <a class="code" href="classpism_1_1energy_1_1BTU__Full_af00d293cc51940cd7bb989ea44c6484c.html#af00d293cc51940cd7bb989ea44c6484c">BTU_Full::init_impl</a>(<span class="keyword">const</span> <a class="code" href="structpism_1_1InputOptions.html">InputOptions</a> &opts) {</div>
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  </div>
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  <a class="code" href="classpism_1_1Component_a29575eba605feccf4403d6b4ff0954a4.html#a29575eba605feccf4403d6b4ff0954a4">m_log</a>->message(2, <span class="stringliteral">"* Initializing the bedrock thermal unit...\n"</span>);</div>
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  </div>
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  <span class="comment">// 2D initialization. Takes care of the flux through the bottom surface of the thermal layer.</span></div>
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  <a class="code" href="classpism_1_1energy_1_1BedThermalUnit_a6443c4334e00de7c6e165030a4490d0a.html#a6443c4334e00de7c6e165030a4490d0a">BedThermalUnit::init_impl</a>(opts);</div>
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  </div>
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  <span class="comment">// Initialize the temperature field.</span></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="comment">// store the current "revision number" of the temperature field</span></div>
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  <span class="keyword">const</span> <span class="keywordtype">int</span> temp_revision = <a class="code" href="classpism_1_1energy_1_1BTU__Full_a2b9e42164f5f27f66dd78d3419b4e87b.html#a2b9e42164f5f27f66dd78d3419b4e87b">m_temp</a>->state_counter();</div>
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  </div>
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  <span class="keywordflow">if</span> (opts.<a class="code" href="structpism_1_1InputOptions_a0fe5db51286e55c31b1575dc9ecc5d70.html#a0fe5db51286e55c31b1575dc9ecc5d70">type</a> == <a class="code" href="namespacepism_a56e80801555b7f36f4dd28941739654a.html#a56e80801555b7f36f4dd28941739654aa6aff4b43552f00d5cc331453ff4029bc">INIT_RESTART</a>) {</div>
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  <a class="code" href="classpism_1_1File.html">File</a> input_file(<a class="code" href="classpism_1_1Component_a745aa37bc1b5da6db5bfc280ecb3c811.html#a745aa37bc1b5da6db5bfc280ecb3c811">m_grid</a>->com, opts.<a class="code" href="structpism_1_1InputOptions_a2dc298f0e83b951fa1df5eab910639e5.html#a2dc298f0e83b951fa1df5eab910639e5">filename</a>, <a class="code" href="namespacepism_1_1io_a0caba8881b0d36c8cc1eccfa13c0e81f.html#a0caba8881b0d36c8cc1eccfa13c0e81fa308d77197e903bf4f5505b8cb5e377a2">io::PISM_GUESS</a>, <a class="code" href="namespacepism_1_1io_a12c1fd23e92335e2396baab0354b262f.html#a12c1fd23e92335e2396baab0354b262fabb5d91fa1da1214c24d193a75f11f0a2">io::PISM_READONLY</a>);</div>
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  </div>
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  <span class="keywordflow">if</span> (input_file.<a class="code" href="classpism_1_1File_a4ec169f0ab9d7858d09f07bffc978f2a.html#a4ec169f0ab9d7858d09f07bffc978f2a">find_variable</a>(<span class="stringliteral">"litho_temp"</span>)) {</div>
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  <a class="code" href="classpism_1_1energy_1_1BTU__Full_a2b9e42164f5f27f66dd78d3419b4e87b.html#a2b9e42164f5f27f66dd78d3419b4e87b">m_temp</a>->read(input_file, opts.<a class="code" href="structpism_1_1InputOptions_ae33c7fb4ca1317444d959bc3e1514ba4.html#ae33c7fb4ca1317444d959bc3e1514ba4">record</a>);</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="comment">// otherwise the bedrock temperature is either interpolated from a -regrid_file or filled</span></div>
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  <span class="comment">// using bootstrapping (below)</span></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>  <a class="code" href="classpism_1_1Component_a7737874c03a58a03498a33dc464d2ee9.html#a7737874c03a58a03498a33dc464d2ee9">regrid</a>(<span class="stringliteral">"bedrock thermal layer"</span>, *<a class="code" href="classpism_1_1energy_1_1BTU__Full_a2b9e42164f5f27f66dd78d3419b4e87b.html#a2b9e42164f5f27f66dd78d3419b4e87b">m_temp</a>, <a class="code" href="classpism_1_1Component_a48f8d0b81b7853d4e3fba0de79ec4a7f.html#a48f8d0b81b7853d4e3fba0de79ec4a7fa27f687170795f16d7eb334423b0bc9de">REGRID_WITHOUT_REGRID_VARS</a>);</div>
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  </div>
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  <span class="keywordflow">if</span> (<a class="code" href="classpism_1_1energy_1_1BTU__Full_a2b9e42164f5f27f66dd78d3419b4e87b.html#a2b9e42164f5f27f66dd78d3419b4e87b">m_temp</a>->state_counter() == temp_revision) {</div>
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  <a class="code" href="classpism_1_1energy_1_1BTU__Full_a81d03b90bdc35987d1c9fbb17f3d6503.html#a81d03b90bdc35987d1c9fbb17f3d6503">m_bootstrapping_needed</a> = <span class="keyword">true</span>;</div>
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  <a class="code" href="classpism_1_1energy_1_1BTU__Full_a81d03b90bdc35987d1c9fbb17f3d6503.html#a81d03b90bdc35987d1c9fbb17f3d6503">m_bootstrapping_needed</a> = <span class="keyword">false</span>;</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>  }</div>
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  </div>
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  <a class="code" href="classpism_1_1energy_1_1BTU__Full_a2374e15fd50a204be73943c1811fa703.html#a2374e15fd50a204be73943c1811fa703">update_flux_through_top_surface</a>();</div>
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span> }</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"></span> </div>
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span> <span class="comment">/** Returns the vertical spacing used by the bedrock grid.</span></div>
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00124"></a><span class="lineno"><a class="line" href="classpism_1_1energy_1_1BTU__Full_aaf0477c482f5ffa533b8203a1c3e0fa4.html#aaf0477c482f5ffa533b8203a1c3e0fa4"> 124</a></span> <span class="keywordtype">double</span> <a class="code" href="classpism_1_1energy_1_1BTU__Full_aaf0477c482f5ffa533b8203a1c3e0fa4.html#aaf0477c482f5ffa533b8203a1c3e0fa4">BTU_Full::vertical_spacing_impl</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  <span class="keywordflow">return</span> <a class="code" href="classpism_1_1energy_1_1BTU__Full_a3cc895e82591494e61e5ab0b32c8c5a1.html#a3cc895e82591494e61e5ab0b32c8c5a1">m_Lbz</a> / (<a class="code" href="classpism_1_1energy_1_1BTU__Full_a1dff2088600230d126f26d7254332a44.html#a1dff2088600230d126f26d7254332a44">m_Mbz</a> - 1.0);</div>
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span> }</div>
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  </div>
<div class="line"><a name="l00128"></a><span class="lineno"><a class="line" href="classpism_1_1energy_1_1BTU__Full_a3949a4c65419ca66952346efc8047985.html#a3949a4c65419ca66952346efc8047985"> 128</a></span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classpism_1_1energy_1_1BTU__Full_a3949a4c65419ca66952346efc8047985.html#a3949a4c65419ca66952346efc8047985">BTU_Full::Mz_impl</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  <span class="keywordflow">return</span> <a class="code" href="classpism_1_1energy_1_1BTU__Full_a1dff2088600230d126f26d7254332a44.html#a1dff2088600230d126f26d7254332a44">m_Mbz</a>;</div>
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span> }</div>
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  </div>
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  </div>
<div class="line"><a name="l00133"></a><span class="lineno"><a class="line" href="classpism_1_1energy_1_1BTU__Full_a8bee6aa46d2a6ebcce317bb2d3970c5a.html#a8bee6aa46d2a6ebcce317bb2d3970c5a"> 133</a></span> <span class="keywordtype">double</span> <a class="code" href="classpism_1_1energy_1_1BTU__Full_a8bee6aa46d2a6ebcce317bb2d3970c5a.html#a8bee6aa46d2a6ebcce317bb2d3970c5a">BTU_Full::depth_impl</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  <span class="keywordflow">return</span> <a class="code" href="classpism_1_1energy_1_1BTU__Full_a3cc895e82591494e61e5ab0b32c8c5a1.html#a3cc895e82591494e61e5ab0b32c8c5a1">m_Lbz</a>;</div>
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span> }</div>
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  </div>
<div class="line"><a name="l00137"></a><span class="lineno"><a class="line" href="classpism_1_1energy_1_1BTU__Full_a961a7be0145fc6ad400cb76f6d11a0a7.html#a961a7be0145fc6ad400cb76f6d11a0a7"> 137</a></span> <span class="keywordtype">void</span> <a class="code" href="classpism_1_1energy_1_1BTU__Full_a961a7be0145fc6ad400cb76f6d11a0a7.html#a961a7be0145fc6ad400cb76f6d11a0a7">BTU_Full::define_model_state_impl</a>(<span class="keyword">const</span> <a class="code" href="classpism_1_1File.html">File</a> &output)<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  <a class="code" href="classpism_1_1energy_1_1BedThermalUnit_a5c7563d7cfb2e6d1c0d8f2468a2a4ca8.html#a5c7563d7cfb2e6d1c0d8f2468a2a4ca8">m_bottom_surface_flux</a>.<a class="code" href="classpism_1_1array_1_1Array_a3e1a5859cef073a95e5e0cc5f1cc0fdb.html#a3e1a5859cef073a95e5e0cc5f1cc0fdb">define</a>(output, <a class="code" href="namespacepism_1_1io_a53ffb40793c398e10644fbd2ecda3e77.html#a53ffb40793c398e10644fbd2ecda3e77a6a72c64f82168bec6bf8b648a86648de">io::PISM_DOUBLE</a>);</div>
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>  <a class="code" href="classpism_1_1energy_1_1BTU__Full_a2b9e42164f5f27f66dd78d3419b4e87b.html#a2b9e42164f5f27f66dd78d3419b4e87b">m_temp</a>->define(output, <a class="code" href="namespacepism_1_1io_a53ffb40793c398e10644fbd2ecda3e77.html#a53ffb40793c398e10644fbd2ecda3e77a6a72c64f82168bec6bf8b648a86648de">io::PISM_DOUBLE</a>);</div>
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span> }</div>
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  </div>
<div class="line"><a name="l00142"></a><span class="lineno"><a class="line" href="classpism_1_1energy_1_1BTU__Full_a543cf8918b5a9727c5fdac337b3f97d9.html#a543cf8918b5a9727c5fdac337b3f97d9"> 142</a></span> <span class="keywordtype">void</span> <a class="code" href="classpism_1_1energy_1_1BTU__Full_a543cf8918b5a9727c5fdac337b3f97d9.html#a543cf8918b5a9727c5fdac337b3f97d9">BTU_Full::write_model_state_impl</a>(<span class="keyword">const</span> <a class="code" href="classpism_1_1File.html">File</a> &output)<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  <a class="code" href="classpism_1_1energy_1_1BedThermalUnit_a5c7563d7cfb2e6d1c0d8f2468a2a4ca8.html#a5c7563d7cfb2e6d1c0d8f2468a2a4ca8">m_bottom_surface_flux</a>.<a class="code" href="classpism_1_1array_1_1Array_a4cdaeb827d166a076668d2ab86416793.html#a4cdaeb827d166a076668d2ab86416793">write</a>(output);</div>
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>  <a class="code" href="classpism_1_1energy_1_1BTU__Full_a2b9e42164f5f27f66dd78d3419b4e87b.html#a2b9e42164f5f27f66dd78d3419b4e87b">m_temp</a>->write(output);</div>
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span> }</div>
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  </div>
<div class="line"><a name="l00147"></a><span class="lineno"><a class="line" href="classpism_1_1energy_1_1BTU__Full_a151903c8f98e0829bdd4b36261fd59e9.html#a151903c8f98e0829bdd4b36261fd59e9"> 147</a></span> <a class="code" href="classpism_1_1MaxTimestep.html">MaxTimestep</a> <a class="code" href="classpism_1_1energy_1_1BTU__Full_a151903c8f98e0829bdd4b36261fd59e9.html#a151903c8f98e0829bdd4b36261fd59e9">BTU_Full::max_timestep_impl</a>(<span class="keywordtype">double</span> t)<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  (void) t;</div>
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>  <span class="comment">// No time step restriction: we are using an unconditionally stable method.</span></div>
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  <span class="keywordflow">return</span> <a class="code" href="classpism_1_1MaxTimestep.html">MaxTimestep</a>(<span class="stringliteral">"bedrock thermal layer"</span>);</div>
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span> }</div>
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span>  </div>
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span> <span class="comment"></span> </div>
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span> <span class="comment">/** Perform a step of the bedrock thermal model.</span></div>
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span> <span class="comment">*/</span></div>
<div class="line"><a name="l00156"></a><span class="lineno"><a class="line" href="classpism_1_1energy_1_1BTU__Full_a5e8a39408828edfcecd9d23b707048ac.html#a5e8a39408828edfcecd9d23b707048ac"> 156</a></span> <span class="keywordtype">void</span> <a class="code" href="classpism_1_1energy_1_1BTU__Full_ae1f93a7dbc10618f045c577235b80111.html#ae1f93a7dbc10618f045c577235b80111">BTU_Full::update_impl</a>(<span class="keyword">const</span> <a class="code" href="classpism_1_1array_1_1Scalar.html">array::Scalar</a> &bedrock_top_temperature,</div>
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span>  <span class="keywordtype">double</span> t, <span class="keywordtype">double</span> dt) {</div>
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span>  (void) t;</div>
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span>  </div>
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span>  <span class="keywordflow">if</span> (<a class="code" href="classpism_1_1energy_1_1BTU__Full_a81d03b90bdc35987d1c9fbb17f3d6503.html#a81d03b90bdc35987d1c9fbb17f3d6503">m_bootstrapping_needed</a>) {</div>
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  <a class="code" href="classpism_1_1energy_1_1BTU__Full_ab95d4c0cb1f4a38dfa3a57e822ebc9bb.html#ab95d4c0cb1f4a38dfa3a57e822ebc9bb">bootstrap</a>(bedrock_top_temperature);</div>
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span>  <a class="code" href="classpism_1_1energy_1_1BTU__Full_a81d03b90bdc35987d1c9fbb17f3d6503.html#a81d03b90bdc35987d1c9fbb17f3d6503">m_bootstrapping_needed</a> = <span class="keyword">false</span>;</div>
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span>  }</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>  <span class="keywordflow">if</span> (dt < 0) {</div>
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span>  <span class="keywordflow">throw</span> <a class="code" href="classpism_1_1RuntimeError.html">RuntimeError</a>(<a class="code" href="error__handling_8hh_aa0c260bffe8a4dbd77d48e8feee7c526.html#aa0c260bffe8a4dbd77d48e8feee7c526">PISM_ERROR_LOCATION</a>, <span class="stringliteral">"dt < 0 is not allowed"</span>);</div>
<div class="line"><a name="l00167"></a><span class="lineno"> 167</span>  }</div>
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span>  </div>
<div class="line"><a name="l00169"></a><span class="lineno"> 169</span>  <a class="code" href="classpism_1_1array_1_1AccessScope.html">array::AccessScope</a> list{<a class="code" href="classpism_1_1energy_1_1BTU__Full_a2b9e42164f5f27f66dd78d3419b4e87b.html#a2b9e42164f5f27f66dd78d3419b4e87b">m_temp</a>.get(), &<a class="code" href="classpism_1_1energy_1_1BedThermalUnit_a5c7563d7cfb2e6d1c0d8f2468a2a4ca8.html#a5c7563d7cfb2e6d1c0d8f2468a2a4ca8">m_bottom_surface_flux</a>, &bedrock_top_temperature};</div>
<div class="line"><a name="l00170"></a><span class="lineno"> 170</span>  </div>
<div class="line"><a name="l00171"></a><span class="lineno"> 171</span>  <a class="code" href="classpism_1_1ParallelSection.html">ParallelSection</a> loop(<a class="code" href="classpism_1_1Component_a745aa37bc1b5da6db5bfc280ecb3c811.html#a745aa37bc1b5da6db5bfc280ecb3c811">m_grid</a>->com);</div>
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span>  <span class="keywordflow">try</span> {</div>
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span>  <span class="keywordflow">for</span> (<span class="keyword">auto</span> p = <a class="code" href="classpism_1_1Component_a745aa37bc1b5da6db5bfc280ecb3c811.html#a745aa37bc1b5da6db5bfc280ecb3c811">m_grid</a>->points(); p; p.next()) {</div>
<div class="line"><a name="l00174"></a><span class="lineno"> 174</span>  <span class="keyword">const</span> <span class="keywordtype">int</span> i = p.i(), j = p.j();</div>
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span>  </div>
<div class="line"><a name="l00176"></a><span class="lineno"> 176</span>  <span class="keywordtype">double</span> *T = <a class="code" href="classpism_1_1energy_1_1BTU__Full_a2b9e42164f5f27f66dd78d3419b4e87b.html#a2b9e42164f5f27f66dd78d3419b4e87b">m_temp</a>->get_column(i, j);</div>
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span>  </div>
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span>  <a class="code" href="classpism_1_1energy_1_1BTU__Full_a7a36bb90d613f2df622e1aff5136866f.html#a7a36bb90d613f2df622e1aff5136866f">m_column</a>->solve(dt, <a class="code" href="classpism_1_1energy_1_1BedThermalUnit_a5c7563d7cfb2e6d1c0d8f2468a2a4ca8.html#a5c7563d7cfb2e6d1c0d8f2468a2a4ca8">m_bottom_surface_flux</a>(i, j), bedrock_top_temperature(i, j),</div>
<div class="line"><a name="l00179"></a><span class="lineno"> 179</span>  T, <span class="comment">// input</span></div>
<div class="line"><a name="l00180"></a><span class="lineno"> 180</span>  T); <span class="comment">// output</span></div>
<div class="line"><a name="l00181"></a><span class="lineno"> 181</span>  </div>
<div class="line"><a name="l00182"></a><span class="lineno"> 182</span>  <span class="comment">// Check that T is positive:</span></div>
<div class="line"><a name="l00183"></a><span class="lineno"> 183</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> < <a class="code" href="classpism_1_1energy_1_1BTU__Full_a1dff2088600230d126f26d7254332a44.html#a1dff2088600230d126f26d7254332a44">m_Mbz</a>; ++<a class="code" href="namespacepism_a7343afff8d353b59dbdec563bd896812.html#a7343afff8d353b59dbdec563bd896812">k</a>) {</div>
<div class="line"><a name="l00184"></a><span class="lineno"> 184</span>  <span class="keywordflow">if</span> (T[<a class="code" href="namespacepism_a7343afff8d353b59dbdec563bd896812.html#a7343afff8d353b59dbdec563bd896812">k</a>] <= 0.0) {</div>
<div class="line"><a name="l00185"></a><span class="lineno"> 185</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="l00186"></a><span class="lineno"> 186</span>  <span class="stringliteral">"invalid bedrock temperature: %f Kelvin at %d,%d,%d"</span>,</div>
<div class="line"><a name="l00187"></a><span class="lineno"> 187</span>  T[<a class="code" href="namespacepism_a7343afff8d353b59dbdec563bd896812.html#a7343afff8d353b59dbdec563bd896812">k</a>], i, j, <a class="code" href="namespacepism_a7343afff8d353b59dbdec563bd896812.html#a7343afff8d353b59dbdec563bd896812">k</a>);</div>
<div class="line"><a name="l00188"></a><span class="lineno"> 188</span>  }</div>
<div class="line"><a name="l00189"></a><span class="lineno"> 189</span>  }</div>
<div class="line"><a name="l00190"></a><span class="lineno"> 190</span>  }</div>
<div class="line"><a name="l00191"></a><span class="lineno"> 191</span>  } <span class="keywordflow">catch</span> (...) {</div>
<div class="line"><a name="l00192"></a><span class="lineno"> 192</span>  loop.<a class="code" href="classpism_1_1ParallelSection_a6b0a6e5e64970af7eadabfebe2b20bd2.html#a6b0a6e5e64970af7eadabfebe2b20bd2">failed</a>();</div>
<div class="line"><a name="l00193"></a><span class="lineno"> 193</span>  }</div>
<div class="line"><a name="l00194"></a><span class="lineno"> 194</span>  loop.<a class="code" href="classpism_1_1ParallelSection_ac23296abee1cbcb3c3fd68c7f5ce0835.html#ac23296abee1cbcb3c3fd68c7f5ce0835">check</a>();</div>
<div class="line"><a name="l00195"></a><span class="lineno"> 195</span>  </div>
<div class="line"><a name="l00196"></a><span class="lineno"> 196</span>  <a class="code" href="classpism_1_1energy_1_1BTU__Full_a2374e15fd50a204be73943c1811fa703.html#a2374e15fd50a204be73943c1811fa703">update_flux_through_top_surface</a>();</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="comment"></span> </div>
<div class="line"><a name="l00199"></a><span class="lineno"> 199</span> <span class="comment">/*! Computes the heat flux from the bedrock thermal layer upward into the</span></div>
<div class="line"><a name="l00200"></a><span class="lineno"> 200</span> <span class="comment"> ice/bedrock interface:</span></div>
<div class="line"><a name="l00201"></a><span class="lineno"> 201</span> <span class="comment"> \f[G_0 = -k_b \frac{\partial T_b}{\partial z}\big|_{z=0}.\f]</span></div>
<div class="line"><a name="l00202"></a><span class="lineno"> 202</span> <span class="comment"> Uses the second-order finite difference expression</span></div>
<div class="line"><a name="l00203"></a><span class="lineno"> 203</span> <span class="comment"> \f[\frac{\partial T_b}{\partial z}\big|_{z=0} \approx \frac{3 T_b(0) - 4 T_b(-\Delta z) + T_b(-2\Delta z)}{2 \Delta z}\f]</span></div>
<div class="line"><a name="l00204"></a><span class="lineno"> 204</span> <span class="comment"> where \f$\Delta z\f$ is the equal spacing in the bedrock.</span></div>
<div class="line"><a name="l00205"></a><span class="lineno"> 205</span> <span class="comment"></span> </div>
<div class="line"><a name="l00206"></a><span class="lineno"> 206</span> <span class="comment"> The above expression only makes sense when `Mbz` = `temp.n_levels` >= 3.</span></div>
<div class="line"><a name="l00207"></a><span class="lineno"> 207</span> <span class="comment"> When `Mbz` = 2 we use first-order differencing. When temp was not created,</span></div>
<div class="line"><a name="l00208"></a><span class="lineno"> 208</span> <span class="comment"> the `Mbz` <= 1 cases, we return the stored geothermal flux.</span></div>
<div class="line"><a name="l00209"></a><span class="lineno"> 209</span> <span class="comment">*/</span></div>
<div class="line"><a name="l00210"></a><span class="lineno"><a class="line" href="classpism_1_1energy_1_1BTU__Full_a2374e15fd50a204be73943c1811fa703.html#a2374e15fd50a204be73943c1811fa703"> 210</a></span> <span class="keywordtype">void</span> <a class="code" href="classpism_1_1energy_1_1BTU__Full_a2374e15fd50a204be73943c1811fa703.html#a2374e15fd50a204be73943c1811fa703">BTU_Full::update_flux_through_top_surface</a>() {</div>
<div class="line"><a name="l00211"></a><span class="lineno"> 211</span>  </div>
<div class="line"><a name="l00212"></a><span class="lineno"> 212</span>  <span class="keywordflow">if</span> (<a class="code" href="classpism_1_1energy_1_1BTU__Full_a81d03b90bdc35987d1c9fbb17f3d6503.html#a81d03b90bdc35987d1c9fbb17f3d6503">m_bootstrapping_needed</a>) {</div>
<div class="line"><a name="l00213"></a><span class="lineno"> 213</span>  <a class="code" href="classpism_1_1energy_1_1BedThermalUnit_adfc811194c0ddcce465f80c9f7a5b4ef.html#adfc811194c0ddcce465f80c9f7a5b4ef">m_top_surface_flux</a>.<a class="code" href="classpism_1_1array_1_1Array2D_a7b9a0d8a83d5379f1debdcefce0fffae.html#a7b9a0d8a83d5379f1debdcefce0fffae">copy_from</a>(<a class="code" href="classpism_1_1energy_1_1BedThermalUnit_a5c7563d7cfb2e6d1c0d8f2468a2a4ca8.html#a5c7563d7cfb2e6d1c0d8f2468a2a4ca8">m_bottom_surface_flux</a>);</div>
<div class="line"><a name="l00214"></a><span class="lineno"> 214</span>  <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00215"></a><span class="lineno"> 215</span>  }</div>
<div class="line"><a name="l00216"></a><span class="lineno"> 216</span>  </div>
<div class="line"><a name="l00217"></a><span class="lineno"> 217</span>  <span class="keywordtype">double</span> dz = this-><a class="code" href="classpism_1_1energy_1_1BedThermalUnit_ac059f034933c5eb3997114b18f9e3f5b.html#ac059f034933c5eb3997114b18f9e3f5b">vertical_spacing</a>();</div>
<div class="line"><a name="l00218"></a><span class="lineno"> 218</span>  <span class="keyword">const</span> <span class="keywordtype">int</span> k0 = <a class="code" href="classpism_1_1energy_1_1BTU__Full_a1dff2088600230d126f26d7254332a44.html#a1dff2088600230d126f26d7254332a44">m_Mbz</a> - 1; <span class="comment">// Tb[k0] = ice/bed interface temp, at z=0</span></div>
<div class="line"><a name="l00219"></a><span class="lineno"> 219</span>  </div>
<div class="line"><a name="l00220"></a><span class="lineno"> 220</span>  <a class="code" href="classpism_1_1array_1_1AccessScope.html">array::AccessScope</a> list{<a class="code" href="classpism_1_1energy_1_1BTU__Full_a2b9e42164f5f27f66dd78d3419b4e87b.html#a2b9e42164f5f27f66dd78d3419b4e87b">m_temp</a>.get(), &<a class="code" href="classpism_1_1energy_1_1BedThermalUnit_adfc811194c0ddcce465f80c9f7a5b4ef.html#adfc811194c0ddcce465f80c9f7a5b4ef">m_top_surface_flux</a>};</div>
<div class="line"><a name="l00221"></a><span class="lineno"> 221</span>  </div>
<div class="line"><a name="l00222"></a><span class="lineno"> 222</span>  <span class="keywordflow">if</span> (<a class="code" href="classpism_1_1energy_1_1BTU__Full_a1dff2088600230d126f26d7254332a44.html#a1dff2088600230d126f26d7254332a44">m_Mbz</a> >= 3) {</div>
<div class="line"><a name="l00223"></a><span class="lineno"> 223</span>  </div>
<div class="line"><a name="l00224"></a><span class="lineno"> 224</span>  <span class="keywordflow">for</span> (<span class="keyword">auto</span> p = <a class="code" href="classpism_1_1Component_a745aa37bc1b5da6db5bfc280ecb3c811.html#a745aa37bc1b5da6db5bfc280ecb3c811">m_grid</a>->points(); p; p.next()) {</div>
<div class="line"><a name="l00225"></a><span class="lineno"> 225</span>  <span class="keyword">const</span> <span class="keywordtype">int</span> i = p.i(), j = p.j();</div>
<div class="line"><a name="l00226"></a><span class="lineno"> 226</span>  </div>
<div class="line"><a name="l00227"></a><span class="lineno"> 227</span>  <span class="keyword">const</span> <span class="keywordtype">double</span> *Tb = <a class="code" href="classpism_1_1energy_1_1BTU__Full_a2b9e42164f5f27f66dd78d3419b4e87b.html#a2b9e42164f5f27f66dd78d3419b4e87b">m_temp</a>->get_column(i, j);</div>
<div class="line"><a name="l00228"></a><span class="lineno"> 228</span>  <a class="code" href="classpism_1_1energy_1_1BedThermalUnit_adfc811194c0ddcce465f80c9f7a5b4ef.html#adfc811194c0ddcce465f80c9f7a5b4ef">m_top_surface_flux</a>(i, j) = - <a class="code" href="classpism_1_1energy_1_1BTU__Full_aff64cb41bb34467c3f3fe180cfb1a7d9.html#aff64cb41bb34467c3f3fe180cfb1a7d9">m_k</a> * (3 * Tb[k0] - 4 * Tb[k0-1] + Tb[k0-2]) / (2 * dz);</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>  </div>
<div class="line"><a name="l00231"></a><span class="lineno"> 231</span>  } <span class="keywordflow">else</span> {</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>  <span class="keywordflow">for</span> (<span class="keyword">auto</span> p = <a class="code" href="classpism_1_1Component_a745aa37bc1b5da6db5bfc280ecb3c811.html#a745aa37bc1b5da6db5bfc280ecb3c811">m_grid</a>->points(); p; p.next()) {</div>
<div class="line"><a name="l00234"></a><span class="lineno"> 234</span>  <span class="keyword">const</span> <span class="keywordtype">int</span> i = p.i(), j = p.j();</div>
<div class="line"><a name="l00235"></a><span class="lineno"> 235</span>  </div>
<div class="line"><a name="l00236"></a><span class="lineno"> 236</span>  <span class="keyword">const</span> <span class="keywordtype">double</span> *Tb = <a class="code" href="classpism_1_1energy_1_1BTU__Full_a2b9e42164f5f27f66dd78d3419b4e87b.html#a2b9e42164f5f27f66dd78d3419b4e87b">m_temp</a>->get_column(i, j);</div>
<div class="line"><a name="l00237"></a><span class="lineno"> 237</span>  <a class="code" href="classpism_1_1energy_1_1BedThermalUnit_adfc811194c0ddcce465f80c9f7a5b4ef.html#adfc811194c0ddcce465f80c9f7a5b4ef">m_top_surface_flux</a>(i, j) = - <a class="code" href="classpism_1_1energy_1_1BTU__Full_aff64cb41bb34467c3f3fe180cfb1a7d9.html#aff64cb41bb34467c3f3fe180cfb1a7d9">m_k</a> * (Tb[k0] - Tb[k0-1]) / dz;</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"> 240</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>  </div>
<div class="line"><a name="l00243"></a><span class="lineno"><a class="line" href="classpism_1_1energy_1_1BTU__Full_a1be25b6ce9053f7a9346f7bb3c565985.html#a1be25b6ce9053f7a9346f7bb3c565985"> 243</a></span> <span class="keyword">const</span> <a class="code" href="classpism_1_1array_1_1Array3D.html">array::Array3D</a>& <a class="code" href="classpism_1_1energy_1_1BTU__Full_a1be25b6ce9053f7a9346f7bb3c565985.html#a1be25b6ce9053f7a9346f7bb3c565985">BTU_Full::temperature</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00244"></a><span class="lineno"> 244</span>  <span class="keywordflow">if</span> (<a class="code" href="classpism_1_1energy_1_1BTU__Full_a81d03b90bdc35987d1c9fbb17f3d6503.html#a81d03b90bdc35987d1c9fbb17f3d6503">m_bootstrapping_needed</a>) {</div>
<div class="line"><a name="l00245"></a><span class="lineno"> 245</span>  <span class="keywordflow">throw</span> <a class="code" href="classpism_1_1RuntimeError.html">RuntimeError</a>(<a class="code" href="error__handling_8hh_aa0c260bffe8a4dbd77d48e8feee7c526.html#aa0c260bffe8a4dbd77d48e8feee7c526">PISM_ERROR_LOCATION</a>, <span class="stringliteral">"bedrock temperature is not available (bootstrapping is needed)"</span>);</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>  </div>
<div class="line"><a name="l00248"></a><span class="lineno"> 248</span>  <span class="keywordflow">return</span> *<a class="code" href="classpism_1_1energy_1_1BTU__Full_a2b9e42164f5f27f66dd78d3419b4e87b.html#a2b9e42164f5f27f66dd78d3419b4e87b">m_temp</a>;</div>
<div class="line"><a name="l00249"></a><span class="lineno"> 249</span> }</div>
<div class="line"><a name="l00250"></a><span class="lineno"> 250</span>  </div>
<div class="line"><a name="l00251"></a><span class="lineno"><a class="line" href="classpism_1_1energy_1_1BTU__Full_ab95d4c0cb1f4a38dfa3a57e822ebc9bb.html#ab95d4c0cb1f4a38dfa3a57e822ebc9bb"> 251</a></span> <span class="keywordtype">void</span> <a class="code" href="classpism_1_1energy_1_1BTU__Full_ab95d4c0cb1f4a38dfa3a57e822ebc9bb.html#ab95d4c0cb1f4a38dfa3a57e822ebc9bb">BTU_Full::bootstrap</a>(<span class="keyword">const</span> <a class="code" href="classpism_1_1array_1_1Scalar.html">array::Scalar</a> &bedrock_top_temperature) {</div>
<div class="line"><a name="l00252"></a><span class="lineno"> 252</span>  </div>
<div class="line"><a name="l00253"></a><span class="lineno"> 253</span>  <a class="code" href="classpism_1_1Component_a29575eba605feccf4403d6b4ff0954a4.html#a29575eba605feccf4403d6b4ff0954a4">m_log</a>->message(2,</div>
<div class="line"><a name="l00254"></a><span class="lineno"> 254</span>  <span class="stringliteral">" bootstrapping to fill lithosphere temperatures in the bedrock thermal layer\n"</span></div>
<div class="line"><a name="l00255"></a><span class="lineno"> 255</span>  <span class="stringliteral">" using temperature at the top bedrock surface and geothermal flux\n"</span></div>
<div class="line"><a name="l00256"></a><span class="lineno"> 256</span>  <span class="stringliteral">" (bedrock temperature is linear in depth)...\n"</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>  <span class="keywordtype">double</span> dz = this-><a class="code" href="classpism_1_1energy_1_1BedThermalUnit_ac059f034933c5eb3997114b18f9e3f5b.html#ac059f034933c5eb3997114b18f9e3f5b">vertical_spacing</a>();</div>
<div class="line"><a name="l00259"></a><span class="lineno"> 259</span>  <span class="keyword">const</span> <span class="keywordtype">int</span> k0 = <a class="code" href="classpism_1_1energy_1_1BTU__Full_a1dff2088600230d126f26d7254332a44.html#a1dff2088600230d126f26d7254332a44">m_Mbz</a> - 1; <span class="comment">// Tb[k0] = ice/bedrock interface temp</span></div>
<div class="line"><a name="l00260"></a><span class="lineno"> 260</span>  </div>
<div class="line"><a name="l00261"></a><span class="lineno"> 261</span>  <a class="code" href="classpism_1_1array_1_1AccessScope.html">array::AccessScope</a> list{&bedrock_top_temperature, &<a class="code" href="classpism_1_1energy_1_1BedThermalUnit_a5c7563d7cfb2e6d1c0d8f2468a2a4ca8.html#a5c7563d7cfb2e6d1c0d8f2468a2a4ca8">m_bottom_surface_flux</a>, <a class="code" href="classpism_1_1energy_1_1BTU__Full_a2b9e42164f5f27f66dd78d3419b4e87b.html#a2b9e42164f5f27f66dd78d3419b4e87b">m_temp</a>.get()};</div>
<div class="line"><a name="l00262"></a><span class="lineno"> 262</span>  <span class="keywordflow">for</span> (<span class="keyword">auto</span> p = <a class="code" href="classpism_1_1Component_a745aa37bc1b5da6db5bfc280ecb3c811.html#a745aa37bc1b5da6db5bfc280ecb3c811">m_grid</a>->points(); p; p.next()) {</div>
<div class="line"><a name="l00263"></a><span class="lineno"> 263</span>  <span class="keyword">const</span> <span class="keywordtype">int</span> i = p.i(), j = p.j();</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>  <span class="keywordtype">double</span> *Tb = <a class="code" href="classpism_1_1energy_1_1BTU__Full_a2b9e42164f5f27f66dd78d3419b4e87b.html#a2b9e42164f5f27f66dd78d3419b4e87b">m_temp</a>->get_column(i, j); <span class="comment">// Tb points into temp memory</span></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>  Tb[k0] = bedrock_top_temperature(i, j);</div>
<div class="line"><a name="l00268"></a><span class="lineno"> 268</span>  <span class="keywordflow">for</span> (<span class="keywordtype">int</span> <a class="code" href="namespacepism_a7343afff8d353b59dbdec563bd896812.html#a7343afff8d353b59dbdec563bd896812">k</a> = k0-1; <a class="code" href="namespacepism_a7343afff8d353b59dbdec563bd896812.html#a7343afff8d353b59dbdec563bd896812">k</a> >= 0; <a class="code" href="namespacepism_a7343afff8d353b59dbdec563bd896812.html#a7343afff8d353b59dbdec563bd896812">k</a>--) {</div>
<div class="line"><a name="l00269"></a><span class="lineno"> 269</span>  Tb[<a class="code" href="namespacepism_a7343afff8d353b59dbdec563bd896812.html#a7343afff8d353b59dbdec563bd896812">k</a>] = Tb[<a class="code" href="namespacepism_a7343afff8d353b59dbdec563bd896812.html#a7343afff8d353b59dbdec563bd896812">k</a>+1] + dz * <a class="code" href="classpism_1_1energy_1_1BedThermalUnit_a5c7563d7cfb2e6d1c0d8f2468a2a4ca8.html#a5c7563d7cfb2e6d1c0d8f2468a2a4ca8">m_bottom_surface_flux</a>(i, j) / <a class="code" href="classpism_1_1energy_1_1BTU__Full_aff64cb41bb34467c3f3fe180cfb1a7d9.html#aff64cb41bb34467c3f3fe180cfb1a7d9">m_k</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>  }</div>
<div class="line"><a name="l00272"></a><span class="lineno"> 272</span>  </div>
<div class="line"><a name="l00273"></a><span class="lineno"> 273</span>  <a class="code" href="classpism_1_1energy_1_1BTU__Full_a2b9e42164f5f27f66dd78d3419b4e87b.html#a2b9e42164f5f27f66dd78d3419b4e87b">m_temp</a>->inc_state_counter(); <span class="comment">// mark as modified</span></div>
<div class="line"><a name="l00274"></a><span class="lineno"> 274</span> }</div>
<div class="line"><a name="l00275"></a><span class="lineno"> 275</span>  </div>
<div class="line"><a name="l00276"></a><span class="lineno"> 276</span> } <span class="comment">// end of namespace energy</span></div>
<div class="line"><a name="l00277"></a><span class="lineno"> 277</span> } <span class="comment">// end of namespace pism</span></div>
<div class="ttc" id="aclasspism_1_1Component_a1d7fa2a58f259a9c5e464f8738db6ef0_html_a1d7fa2a58f259a9c5e464f8738db6ef0"><div class="ttname"><a href="classpism_1_1Component_a1d7fa2a58f259a9c5e464f8738db6ef0.html#a1d7fa2a58f259a9c5e464f8738db6ef0">pism::Component::grid</a></div><div class="ttdeci">std::shared_ptr< const Grid > grid() const</div><div class="ttdef"><b>Definition:</b> <a href="Component_8cc_source.html#l00105">Component.cc:105</a></div></div>
<div class="ttc" id="aclasspism_1_1Component_a28f298fc2133baae8cebf9dedf3b4d84_html_a28f298fc2133baae8cebf9dedf3b4d84"><div class="ttname"><a href="classpism_1_1Component_a28f298fc2133baae8cebf9dedf3b4d84.html#a28f298fc2133baae8cebf9dedf3b4d84">pism::Component::m_config</a></div><div class="ttdeci">const Config::ConstPtr m_config</div><div class="ttdoc">configuration database used by this component</div><div class="ttdef"><b>Definition:</b> <a href="Component_8hh_source.html#l00158">Component.hh:158</a></div></div>
<div class="ttc" id="aclasspism_1_1Component_a29575eba605feccf4403d6b4ff0954a4_html_a29575eba605feccf4403d6b4ff0954a4"><div class="ttname"><a href="classpism_1_1Component_a29575eba605feccf4403d6b4ff0954a4.html#a29575eba605feccf4403d6b4ff0954a4">pism::Component::m_log</a></div><div class="ttdeci">const Logger::ConstPtr m_log</div><div class="ttdoc">logger (for easy access)</div><div class="ttdef"><b>Definition:</b> <a href="Component_8hh_source.html#l00162">Component.hh:162</a></div></div>
<div class="ttc" id="aclasspism_1_1Component_a48f8d0b81b7853d4e3fba0de79ec4a7f_html_a48f8d0b81b7853d4e3fba0de79ec4a7fa27f687170795f16d7eb334423b0bc9de"><div class="ttname"><a href="classpism_1_1Component_a48f8d0b81b7853d4e3fba0de79ec4a7f.html#a48f8d0b81b7853d4e3fba0de79ec4a7fa27f687170795f16d7eb334423b0bc9de">pism::Component::REGRID_WITHOUT_REGRID_VARS</a></div><div class="ttdeci">@ REGRID_WITHOUT_REGRID_VARS</div><div class="ttdef"><b>Definition:</b> <a href="Component_8hh_source.html#l00151">Component.hh:151</a></div></div>
<div class="ttc" id="aclasspism_1_1Component_a745aa37bc1b5da6db5bfc280ecb3c811_html_a745aa37bc1b5da6db5bfc280ecb3c811"><div class="ttname"><a href="classpism_1_1Component_a745aa37bc1b5da6db5bfc280ecb3c811.html#a745aa37bc1b5da6db5bfc280ecb3c811">pism::Component::m_grid</a></div><div class="ttdeci">const std::shared_ptr< const Grid > m_grid</div><div class="ttdoc">grid used by this component</div><div class="ttdef"><b>Definition:</b> <a href="Component_8hh_source.html#l00156">Component.hh:156</a></div></div>
<div class="ttc" id="aclasspism_1_1Component_a7737874c03a58a03498a33dc464d2ee9_html_a7737874c03a58a03498a33dc464d2ee9"><div class="ttname"><a href="classpism_1_1Component_a7737874c03a58a03498a33dc464d2ee9.html#a7737874c03a58a03498a33dc464d2ee9">pism::Component::regrid</a></div><div class="ttdeci">void regrid(const std::string &module_name, array::Array &variable, RegriddingFlag flag=NO_REGRID_WITHOUT_REGRID_VARS)</div><div class="ttdef"><b>Definition:</b> <a href="Component_8cc_source.html#l00159">Component.cc:159</a></div></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_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_1MaxTimestep_html"><div class="ttname"><a href="classpism_1_1MaxTimestep.html">pism::MaxTimestep</a></div><div class="ttdoc">Combines the max. time step with the flag indicating if a restriction is active. Makes is possible to...</div><div class="ttdef"><b>Definition:</b> <a href="MaxTimestep_8hh_source.html#l00031">MaxTimestep.hh:31</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_1RuntimeError_html"><div class="ttname"><a href="classpism_1_1RuntimeError.html">pism::RuntimeError</a></div><div class="ttdef"><b>Definition:</b> <a href="error__handling_8hh_source.html#l00046">error_handling.hh:46</a></div></div>
<div class="ttc" id="aclasspism_1_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_1Array2D_a7b9a0d8a83d5379f1debdcefce0fffae_html_a7b9a0d8a83d5379f1debdcefce0fffae"><div class="ttname"><a href="classpism_1_1array_1_1Array2D_a7b9a0d8a83d5379f1debdcefce0fffae.html#a7b9a0d8a83d5379f1debdcefce0fffae">pism::array::Array2D::copy_from</a></div><div class="ttdeci">void copy_from(const Array2D< T > &source)</div><div class="ttdef"><b>Definition:</b> <a href="Array2D_8hh_source.html#l00073">Array2D.hh:73</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_a3e1a5859cef073a95e5e0cc5f1cc0fdb_html_a3e1a5859cef073a95e5e0cc5f1cc0fdb"><div class="ttname"><a href="classpism_1_1array_1_1Array_a3e1a5859cef073a95e5e0cc5f1cc0fdb.html#a3e1a5859cef073a95e5e0cc5f1cc0fdb">pism::array::Array::define</a></div><div class="ttdeci">void define(const File &file, io::Type default_type) const</div><div class="ttdoc">Define variables corresponding to an Array in a file opened using file.</div><div class="ttdef"><b>Definition:</b> <a href="Array_8cc_source.html#l00540">Array.cc:540</a></div></div>
<div class="ttc" id="aclasspism_1_1array_1_1Array_a4cdaeb827d166a076668d2ab86416793_html_a4cdaeb827d166a076668d2ab86416793"><div class="ttname"><a href="classpism_1_1array_1_1Array_a4cdaeb827d166a076668d2ab86416793.html#a4cdaeb827d166a076668d2ab86416793">pism::array::Array::write</a></div><div class="ttdeci">void write(const std::string &filename) const</div><div class="ttdef"><b>Definition:</b> <a href="Array_8cc_source.html#l00800">Array.cc:800</a></div></div>
<div class="ttc" id="aclasspism_1_1array_1_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_1energy_1_1BTU__Full_a151903c8f98e0829bdd4b36261fd59e9_html_a151903c8f98e0829bdd4b36261fd59e9"><div class="ttname"><a href="classpism_1_1energy_1_1BTU__Full_a151903c8f98e0829bdd4b36261fd59e9.html#a151903c8f98e0829bdd4b36261fd59e9">pism::energy::BTU_Full::max_timestep_impl</a></div><div class="ttdeci">virtual MaxTimestep max_timestep_impl(double my_t) const</div><div class="ttdef"><b>Definition:</b> <a href="BTU__Full_8cc_source.html#l00147">BTU_Full.cc:147</a></div></div>
<div class="ttc" id="aclasspism_1_1energy_1_1BTU__Full_a1be25b6ce9053f7a9346f7bb3c565985_html_a1be25b6ce9053f7a9346f7bb3c565985"><div class="ttname"><a href="classpism_1_1energy_1_1BTU__Full_a1be25b6ce9053f7a9346f7bb3c565985.html#a1be25b6ce9053f7a9346f7bb3c565985">pism::energy::BTU_Full::temperature</a></div><div class="ttdeci">const array::Array3D & temperature() const</div><div class="ttdoc">Bedrock thermal layer temperature field.</div><div class="ttdef"><b>Definition:</b> <a href="BTU__Full_8cc_source.html#l00243">BTU_Full.cc:243</a></div></div>
<div class="ttc" id="aclasspism_1_1energy_1_1BTU__Full_a1dff2088600230d126f26d7254332a44_html_a1dff2088600230d126f26d7254332a44"><div class="ttname"><a href="classpism_1_1energy_1_1BTU__Full_a1dff2088600230d126f26d7254332a44.html#a1dff2088600230d126f26d7254332a44">pism::energy::BTU_Full::m_Mbz</a></div><div class="ttdeci">unsigned int m_Mbz</div><div class="ttdoc">number of vertical levels within the bedrock</div><div class="ttdef"><b>Definition:</b> <a href="BTU__Full_8hh_source.html#l00120">BTU_Full.hh:120</a></div></div>
<div class="ttc" id="aclasspism_1_1energy_1_1BTU__Full_a2374e15fd50a204be73943c1811fa703_html_a2374e15fd50a204be73943c1811fa703"><div class="ttname"><a href="classpism_1_1energy_1_1BTU__Full_a2374e15fd50a204be73943c1811fa703.html#a2374e15fd50a204be73943c1811fa703">pism::energy::BTU_Full::update_flux_through_top_surface</a></div><div class="ttdeci">void update_flux_through_top_surface()</div><div class="ttdef"><b>Definition:</b> <a href="BTU__Full_8cc_source.html#l00210">BTU_Full.cc:210</a></div></div>
<div class="ttc" id="aclasspism_1_1energy_1_1BTU__Full_a2b9e42164f5f27f66dd78d3419b4e87b_html_a2b9e42164f5f27f66dd78d3419b4e87b"><div class="ttname"><a href="classpism_1_1energy_1_1BTU__Full_a2b9e42164f5f27f66dd78d3419b4e87b.html#a2b9e42164f5f27f66dd78d3419b4e87b">pism::energy::BTU_Full::m_temp</a></div><div class="ttdeci">std::shared_ptr< array::Array3D > m_temp</div><div class="ttdef"><b>Definition:</b> <a href="BTU__Full_8hh_source.html#l00112">BTU_Full.hh:112</a></div></div>
<div class="ttc" id="aclasspism_1_1energy_1_1BTU__Full_a3949a4c65419ca66952346efc8047985_html_a3949a4c65419ca66952346efc8047985"><div class="ttname"><a href="classpism_1_1energy_1_1BTU__Full_a3949a4c65419ca66952346efc8047985.html#a3949a4c65419ca66952346efc8047985">pism::energy::BTU_Full::Mz_impl</a></div><div class="ttdeci">virtual unsigned int Mz_impl() const</div><div class="ttdef"><b>Definition:</b> <a href="BTU__Full_8cc_source.html#l00128">BTU_Full.cc:128</a></div></div>
<div class="ttc" id="aclasspism_1_1energy_1_1BTU__Full_a3cc895e82591494e61e5ab0b32c8c5a1_html_a3cc895e82591494e61e5ab0b32c8c5a1"><div class="ttname"><a href="classpism_1_1energy_1_1BTU__Full_a3cc895e82591494e61e5ab0b32c8c5a1.html#a3cc895e82591494e61e5ab0b32c8c5a1">pism::energy::BTU_Full::m_Lbz</a></div><div class="ttdeci">double m_Lbz</div><div class="ttdoc">thickness of the bedrock layer, in meters</div><div class="ttdef"><b>Definition:</b> <a href="BTU__Full_8hh_source.html#l00122">BTU_Full.hh:122</a></div></div>
<div class="ttc" id="aclasspism_1_1energy_1_1BTU__Full_a543cf8918b5a9727c5fdac337b3f97d9_html_a543cf8918b5a9727c5fdac337b3f97d9"><div class="ttname"><a href="classpism_1_1energy_1_1BTU__Full_a543cf8918b5a9727c5fdac337b3f97d9.html#a543cf8918b5a9727c5fdac337b3f97d9">pism::energy::BTU_Full::write_model_state_impl</a></div><div class="ttdeci">virtual void write_model_state_impl(const File &output) const</div><div class="ttdoc">The default (empty implementation).</div><div class="ttdef"><b>Definition:</b> <a href="BTU__Full_8cc_source.html#l00142">BTU_Full.cc:142</a></div></div>
<div class="ttc" id="aclasspism_1_1energy_1_1BTU__Full_a7a36bb90d613f2df622e1aff5136866f_html_a7a36bb90d613f2df622e1aff5136866f"><div class="ttname"><a href="classpism_1_1energy_1_1BTU__Full_a7a36bb90d613f2df622e1aff5136866f.html#a7a36bb90d613f2df622e1aff5136866f">pism::energy::BTU_Full::m_column</a></div><div class="ttdeci">std::shared_ptr< BedrockColumn > m_column</div><div class="ttdef"><b>Definition:</b> <a href="BTU__Full_8hh_source.html#l00129">BTU_Full.hh:129</a></div></div>
<div class="ttc" id="aclasspism_1_1energy_1_1BTU__Full_a81d03b90bdc35987d1c9fbb17f3d6503_html_a81d03b90bdc35987d1c9fbb17f3d6503"><div class="ttname"><a href="classpism_1_1energy_1_1BTU__Full_a81d03b90bdc35987d1c9fbb17f3d6503.html#a81d03b90bdc35987d1c9fbb17f3d6503">pism::energy::BTU_Full::m_bootstrapping_needed</a></div><div class="ttdeci">bool m_bootstrapping_needed</div><div class="ttdoc">true if the model needs to "bootstrap" the temperature field during the first time step</div><div class="ttdef"><b>Definition:</b> <a href="BTU__Full_8hh_source.html#l00125">BTU_Full.hh:125</a></div></div>
<div class="ttc" id="aclasspism_1_1energy_1_1BTU__Full_a8bee6aa46d2a6ebcce317bb2d3970c5a_html_a8bee6aa46d2a6ebcce317bb2d3970c5a"><div class="ttname"><a href="classpism_1_1energy_1_1BTU__Full_a8bee6aa46d2a6ebcce317bb2d3970c5a.html#a8bee6aa46d2a6ebcce317bb2d3970c5a">pism::energy::BTU_Full::depth_impl</a></div><div class="ttdeci">virtual double depth_impl() const</div><div class="ttdef"><b>Definition:</b> <a href="BTU__Full_8cc_source.html#l00133">BTU_Full.cc:133</a></div></div>
<div class="ttc" id="aclasspism_1_1energy_1_1BTU__Full_a961a7be0145fc6ad400cb76f6d11a0a7_html_a961a7be0145fc6ad400cb76f6d11a0a7"><div class="ttname"><a href="classpism_1_1energy_1_1BTU__Full_a961a7be0145fc6ad400cb76f6d11a0a7.html#a961a7be0145fc6ad400cb76f6d11a0a7">pism::energy::BTU_Full::define_model_state_impl</a></div><div class="ttdeci">virtual void define_model_state_impl(const File &output) const</div><div class="ttdoc">The default (empty implementation).</div><div class="ttdef"><b>Definition:</b> <a href="BTU__Full_8cc_source.html#l00137">BTU_Full.cc:137</a></div></div>
<div class="ttc" id="aclasspism_1_1energy_1_1BTU__Full_aaf0477c482f5ffa533b8203a1c3e0fa4_html_aaf0477c482f5ffa533b8203a1c3e0fa4"><div class="ttname"><a href="classpism_1_1energy_1_1BTU__Full_aaf0477c482f5ffa533b8203a1c3e0fa4.html#aaf0477c482f5ffa533b8203a1c3e0fa4">pism::energy::BTU_Full::vertical_spacing_impl</a></div><div class="ttdeci">virtual double vertical_spacing_impl() const</div><div class="ttdef"><b>Definition:</b> <a href="BTU__Full_8cc_source.html#l00124">BTU_Full.cc:124</a></div></div>
<div class="ttc" id="aclasspism_1_1energy_1_1BTU__Full_ab95d4c0cb1f4a38dfa3a57e822ebc9bb_html_ab95d4c0cb1f4a38dfa3a57e822ebc9bb"><div class="ttname"><a href="classpism_1_1energy_1_1BTU__Full_ab95d4c0cb1f4a38dfa3a57e822ebc9bb.html#ab95d4c0cb1f4a38dfa3a57e822ebc9bb">pism::energy::BTU_Full::bootstrap</a></div><div class="ttdeci">virtual void bootstrap(const array::Scalar &bedrock_top_temperature)</div><div class="ttdef"><b>Definition:</b> <a href="BTU__Full_8cc_source.html#l00251">BTU_Full.cc:251</a></div></div>
<div class="ttc" id="aclasspism_1_1energy_1_1BTU__Full_add0b597a39b58ea923b5d7f456988a3c_html_add0b597a39b58ea923b5d7f456988a3c"><div class="ttname"><a href="classpism_1_1energy_1_1BTU__Full_add0b597a39b58ea923b5d7f456988a3c.html#add0b597a39b58ea923b5d7f456988a3c">pism::energy::BTU_Full::BTU_Full</a></div><div class="ttdeci">BTU_Full(std::shared_ptr< const Grid > g, const BTUGrid &vertical_grid)</div><div class="ttdef"><b>Definition:</b> <a href="BTU__Full_8cc_source.html#l00032">BTU_Full.cc:32</a></div></div>
<div class="ttc" id="aclasspism_1_1energy_1_1BTU__Full_ae1f93a7dbc10618f045c577235b80111_html_ae1f93a7dbc10618f045c577235b80111"><div class="ttname"><a href="classpism_1_1energy_1_1BTU__Full_ae1f93a7dbc10618f045c577235b80111.html#ae1f93a7dbc10618f045c577235b80111">pism::energy::BTU_Full::update_impl</a></div><div class="ttdeci">virtual void update_impl(const array::Scalar &bedrock_top_temperature, double t, double dt)=0</div></div>
<div class="ttc" id="aclasspism_1_1energy_1_1BTU__Full_aeccb73d2035ccae775fca3b19d9ef89c_html_aeccb73d2035ccae775fca3b19d9ef89c"><div class="ttname"><a href="classpism_1_1energy_1_1BTU__Full_aeccb73d2035ccae775fca3b19d9ef89c.html#aeccb73d2035ccae775fca3b19d9ef89c">pism::energy::BTU_Full::m_D</a></div><div class="ttdeci">double m_D</div><div class="ttdoc">diffusivity of the heat flow within the bedrock layer</div><div class="ttdef"><b>Definition:</b> <a href="BTU__Full_8hh_source.html#l00117">BTU_Full.hh:117</a></div></div>
<div class="ttc" id="aclasspism_1_1energy_1_1BTU__Full_af00d293cc51940cd7bb989ea44c6484c_html_af00d293cc51940cd7bb989ea44c6484c"><div class="ttname"><a href="classpism_1_1energy_1_1BTU__Full_af00d293cc51940cd7bb989ea44c6484c.html#af00d293cc51940cd7bb989ea44c6484c">pism::energy::BTU_Full::init_impl</a></div><div class="ttdeci">virtual void init_impl(const InputOptions &opts)</div><div class="ttdoc">Initialize the bedrock thermal unit.</div><div class="ttdef"><b>Definition:</b> <a href="BTU__Full_8cc_source.html#l00087">BTU_Full.cc:87</a></div></div>
<div class="ttc" id="aclasspism_1_1energy_1_1BTU__Full_aff64cb41bb34467c3f3fe180cfb1a7d9_html_aff64cb41bb34467c3f3fe180cfb1a7d9"><div class="ttname"><a href="classpism_1_1energy_1_1BTU__Full_aff64cb41bb34467c3f3fe180cfb1a7d9.html#aff64cb41bb34467c3f3fe180cfb1a7d9">pism::energy::BTU_Full::m_k</a></div><div class="ttdeci">double m_k</div><div class="ttdoc">bedrock thermal conductivity</div><div class="ttdef"><b>Definition:</b> <a href="BTU__Full_8hh_source.html#l00115">BTU_Full.hh:115</a></div></div>
<div class="ttc" id="aclasspism_1_1energy_1_1BedThermalUnit_a5c7563d7cfb2e6d1c0d8f2468a2a4ca8_html_a5c7563d7cfb2e6d1c0d8f2468a2a4ca8"><div class="ttname"><a href="classpism_1_1energy_1_1BedThermalUnit_a5c7563d7cfb2e6d1c0d8f2468a2a4ca8.html#a5c7563d7cfb2e6d1c0d8f2468a2a4ca8">pism::energy::BedThermalUnit::m_bottom_surface_flux</a></div><div class="ttdeci">array::Scalar m_bottom_surface_flux</div><div class="ttdoc">upward heat flux through the bottom surface of the bed thermal layer</div><div class="ttdef"><b>Definition:</b> <a href="BedThermalUnit_8hh_source.html#l00148">BedThermalUnit.hh:148</a></div></div>
<div class="ttc" id="aclasspism_1_1energy_1_1BedThermalUnit_a6443c4334e00de7c6e165030a4490d0a_html_a6443c4334e00de7c6e165030a4490d0a"><div class="ttname"><a href="classpism_1_1energy_1_1BedThermalUnit_a6443c4334e00de7c6e165030a4490d0a.html#a6443c4334e00de7c6e165030a4490d0a">pism::energy::BedThermalUnit::init_impl</a></div><div class="ttdeci">virtual void init_impl(const InputOptions &opts)</div><div class="ttdoc">Initialize the bedrock thermal unit.</div><div class="ttdef"><b>Definition:</b> <a href="BedThermalUnit_8cc_source.html#l00121">BedThermalUnit.cc:121</a></div></div>
<div class="ttc" id="aclasspism_1_1energy_1_1BedThermalUnit_ac059f034933c5eb3997114b18f9e3f5b_html_ac059f034933c5eb3997114b18f9e3f5b"><div class="ttname"><a href="classpism_1_1energy_1_1BedThermalUnit_ac059f034933c5eb3997114b18f9e3f5b.html#ac059f034933c5eb3997114b18f9e3f5b">pism::energy::BedThermalUnit::vertical_spacing</a></div><div class="ttdeci">double vertical_spacing() const</div><div class="ttdef"><b>Definition:</b> <a href="BedThermalUnit_8cc_source.html#l00164">BedThermalUnit.cc:164</a></div></div>
<div class="ttc" id="aclasspism_1_1energy_1_1BedThermalUnit_adfc811194c0ddcce465f80c9f7a5b4ef_html_adfc811194c0ddcce465f80c9f7a5b4ef"><div class="ttname"><a href="classpism_1_1energy_1_1BedThermalUnit_adfc811194c0ddcce465f80c9f7a5b4ef.html#adfc811194c0ddcce465f80c9f7a5b4ef">pism::energy::BedThermalUnit::m_top_surface_flux</a></div><div class="ttdeci">array::Scalar m_top_surface_flux</div><div class="ttdoc">upward heat flux through the top surface of the bed thermal layer</div><div class="ttdef"><b>Definition:</b> <a href="BedThermalUnit_8hh_source.html#l00151">BedThermalUnit.hh:151</a></div></div>
<div class="ttc" id="aclasspism_1_1energy_1_1BedThermalUnit_af6dda43e1b39561c1243f913ff7492f1_html_af6dda43e1b39561c1243f913ff7492f1"><div class="ttname"><a href="classpism_1_1energy_1_1BedThermalUnit_af6dda43e1b39561c1243f913ff7492f1.html#af6dda43e1b39561c1243f913ff7492f1">pism::energy::BedThermalUnit::Mz</a></div><div class="ttdeci">unsigned int Mz() const</div><div class="ttdef"><b>Definition:</b> <a href="BedThermalUnit_8cc_source.html#l00178">BedThermalUnit.cc:178</a></div></div>
<div class="ttc" id="aclasspism_1_1energy_1_1BedThermalUnit_html"><div class="ttname"><a href="classpism_1_1energy_1_1BedThermalUnit.html">pism::energy::BedThermalUnit</a></div><div class="ttdoc">Given the temperature of the top of the bedrock, for the duration of one time-step,...</div><div class="ttdef"><b>Definition:</b> <a href="BedThermalUnit_8hh_source.html#l00101">BedThermalUnit.hh:101</a></div></div>
<div class="ttc" id="aerror__handling_8hh_aa0c260bffe8a4dbd77d48e8feee7c526_html_aa0c260bffe8a4dbd77d48e8feee7c526"><div class="ttname"><a href="error__handling_8hh_aa0c260bffe8a4dbd77d48e8feee7c526.html#aa0c260bffe8a4dbd77d48e8feee7c526">PISM_ERROR_LOCATION</a></div><div class="ttdeci">#define PISM_ERROR_LOCATION</div><div class="ttdef"><b>Definition:</b> <a href="error__handling_8hh_source.html#l00043">error_handling.hh:43</a></div></div>
<div class="ttc" id="aexactTestM_8c_af34a2efdcb2b1e7ba33447d305849221_html_af34a2efdcb2b1e7ba33447d305849221"><div class="ttname"><a href="exactTestM_8c_af34a2efdcb2b1e7ba33447d305849221.html#af34a2efdcb2b1e7ba33447d305849221">rho</a></div><div class="ttdeci">#define rho</div><div class="ttdef"><b>Definition:</b> <a href="exactTestM_8c_source.html#l00035">exactTestM.c:35</a></div></div>
<div class="ttc" id="anamespacepism_1_1array_ab49b8ee9a79e7f46ec91fc40efdb7ca3_html_ab49b8ee9a79e7f46ec91fc40efdb7ca3af672399d2e1a4112ca5d4a4591c30885"><div class="ttname"><a href="namespacepism_1_1array_ab49b8ee9a79e7f46ec91fc40efdb7ca3.html#ab49b8ee9a79e7f46ec91fc40efdb7ca3af672399d2e1a4112ca5d4a4591c30885">pism::array::WITHOUT_GHOSTS</a></div><div class="ttdeci">@ WITHOUT_GHOSTS</div><div class="ttdef"><b>Definition:</b> <a href="Array_8hh_source.html#l00062">Array.hh:62</a></div></div>
<div class="ttc" id="anamespacepism_1_1io_a0caba8881b0d36c8cc1eccfa13c0e81f_html_a0caba8881b0d36c8cc1eccfa13c0e81fa308d77197e903bf4f5505b8cb5e377a2"><div class="ttname"><a href="namespacepism_1_1io_a0caba8881b0d36c8cc1eccfa13c0e81f.html#a0caba8881b0d36c8cc1eccfa13c0e81fa308d77197e903bf4f5505b8cb5e377a2">pism::io::PISM_GUESS</a></div><div class="ttdeci">@ PISM_GUESS</div><div class="ttdef"><b>Definition:</b> <a href="IO__Flags_8hh_source.html#l00056">IO_Flags.hh:56</a></div></div>
<div class="ttc" id="anamespacepism_1_1io_a12c1fd23e92335e2396baab0354b262f_html_a12c1fd23e92335e2396baab0354b262fabb5d91fa1da1214c24d193a75f11f0a2"><div class="ttname"><a href="namespacepism_1_1io_a12c1fd23e92335e2396baab0354b262f.html#a12c1fd23e92335e2396baab0354b262fabb5d91fa1da1214c24d193a75f11f0a2">pism::io::PISM_READONLY</a></div><div class="ttdeci">@ PISM_READONLY</div><div class="ttdoc">open an existing file for reading only</div><div class="ttdef"><b>Definition:</b> <a href="IO__Flags_8hh_source.html#l00072">IO_Flags.hh:72</a></div></div>
<div class="ttc" id="anamespacepism_1_1io_a53ffb40793c398e10644fbd2ecda3e77_html_a53ffb40793c398e10644fbd2ecda3e77a6a72c64f82168bec6bf8b648a86648de"><div class="ttname"><a href="namespacepism_1_1io_a53ffb40793c398e10644fbd2ecda3e77.html#a53ffb40793c398e10644fbd2ecda3e77a6a72c64f82168bec6bf8b648a86648de">pism::io::PISM_DOUBLE</a></div><div class="ttdeci">@ PISM_DOUBLE</div><div class="ttdef"><b>Definition:</b> <a href="IO__Flags_8hh_source.html#l00053">IO_Flags.hh:52</a></div></div>
<div class="ttc" id="anamespacepism_a47d754ed3e959d5866b02a1b78b6a5b5_html_a47d754ed3e959d5866b02a1b78b6a5b5"><div class="ttname"><a href="namespacepism_a47d754ed3e959d5866b02a1b78b6a5b5.html#a47d754ed3e959d5866b02a1b78b6a5b5">pism::g</a></div><div class="ttdeci">static const double g</div><div class="ttdef"><b>Definition:</b> <a href="exactTestP_8cc_source.html#l00036">exactTestP.cc:36</a></div></div>
<div class="ttc" id="anamespacepism_a56e80801555b7f36f4dd28941739654a_html_a56e80801555b7f36f4dd28941739654aa6aff4b43552f00d5cc331453ff4029bc"><div class="ttname"><a href="namespacepism_a56e80801555b7f36f4dd28941739654a.html#a56e80801555b7f36f4dd28941739654aa6aff4b43552f00d5cc331453ff4029bc">pism::INIT_RESTART</a></div><div class="ttdeci">@ INIT_RESTART</div><div class="ttdef"><b>Definition:</b> <a href="Component_8hh_source.html#l00056">Component.hh:56</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_1InputOptions_a0fe5db51286e55c31b1575dc9ecc5d70_html_a0fe5db51286e55c31b1575dc9ecc5d70"><div class="ttname"><a href="structpism_1_1InputOptions_a0fe5db51286e55c31b1575dc9ecc5d70.html#a0fe5db51286e55c31b1575dc9ecc5d70">pism::InputOptions::type</a></div><div class="ttdeci">InitializationType type</div><div class="ttdoc">initialization type</div><div class="ttdef"><b>Definition:</b> <a href="Component_8hh_source.html#l00061">Component.hh:61</a></div></div>
<div class="ttc" id="astructpism_1_1InputOptions_a2dc298f0e83b951fa1df5eab910639e5_html_a2dc298f0e83b951fa1df5eab910639e5"><div class="ttname"><a href="structpism_1_1InputOptions_a2dc298f0e83b951fa1df5eab910639e5.html#a2dc298f0e83b951fa1df5eab910639e5">pism::InputOptions::filename</a></div><div class="ttdeci">std::string filename</div><div class="ttdoc">name of the input file (if applicable)</div><div class="ttdef"><b>Definition:</b> <a href="Component_8hh_source.html#l00063">Component.hh:63</a></div></div>
<div class="ttc" id="astructpism_1_1InputOptions_ae33c7fb4ca1317444d959bc3e1514ba4_html_ae33c7fb4ca1317444d959bc3e1514ba4"><div class="ttname"><a href="structpism_1_1InputOptions_ae33c7fb4ca1317444d959bc3e1514ba4.html#ae33c7fb4ca1317444d959bc3e1514ba4">pism::InputOptions::record</a></div><div class="ttdeci">unsigned int record</div><div class="ttdoc">index of the record to re-start from</div><div class="ttdef"><b>Definition:</b> <a href="Component_8hh_source.html#l00065">Component.hh:65</a></div></div>
<div class="ttc" id="astructpism_1_1InputOptions_html"><div class="ttname"><a href="structpism_1_1InputOptions.html">pism::InputOptions</a></div><div class="ttdef"><b>Definition:</b> <a href="Component_8hh_source.html#l00058">Component.hh:58</a></div></div>
<div class="ttc" id="astructpism_1_1energy_1_1BTUGrid_html"><div class="ttname"><a href="structpism_1_1energy_1_1BTUGrid.html">pism::energy::BTUGrid</a></div><div class="ttdef"><b>Definition:</b> <a href="BedThermalUnit_8hh_source.html#l00036">BedThermalUnit.hh:36</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>