-
Notifications
You must be signed in to change notification settings - Fork 0
/
CHSystem_8cc_source.html
464 lines (462 loc) · 97.3 KB
/
CHSystem_8cc_source.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
<!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/CHSystem.cc Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
extensions: ["tex2jax.js"],
jax: ["input/TeX","output/HTML-CSS"],
});
</script>
<script type="text/javascript" async="async" src="https://cdn.jsdelivr.net/npm/mathjax@2/MathJax.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="browser.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">PISM, A Parallel Ice Sheet Model
 <span id="projectnumber">stable v2.1-1-g6902d5502 committed by Ed Bueler on 2023-12-20 08:38:27 -0800</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_6dbe3a74fddfb865e2d1b322bca63f2b.html">energy</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">CHSystem.cc</div> </div>
</div><!--header-->
<div class="contents">
<a href="CHSystem_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, 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 <algorithm></span> <span class="comment">// std::max</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/energy/CHSystem.hh"</span></div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor">#include "pism/energy/enthSystem.hh"</span></div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="preprocessor">#include "pism/energy/utilities.hh"</span></div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#include "pism/util/Context.hh"</span></div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor">#include "pism/util/EnthalpyConverter.hh"</span></div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="preprocessor">#include "pism/util/array/CellType.hh"</span></div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor">#include "pism/util/io/File.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="keyword">namespace </span><a class="code" href="namespacepism.html">pism</a> {</div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="keyword">namespace </span>energy {</div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="comment"></span> </div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="comment">/*!</span></div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="comment"> * Model of the energy content in the cryo-hydrologic system.</span></div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span> <span class="comment"> *</span></div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span> <span class="comment"> * This model can be used to include the influence of cryo-hydrologic warming on the</span></div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span> <span class="comment"> * internal energy of the ice.</span></div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span> <span class="comment"> *</span></div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span> <span class="comment"> * This model is based on</span></div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span> <span class="comment"> *</span></div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span> <span class="comment"> * @article{PhillipsRajaramSteffan2010,</span></div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span> <span class="comment"> * author = {Phillips, T. and Rajaram, H. and Steffen, K.},</span></div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span> <span class="comment"> * doi = {10.1029/2010GL044397},</span></div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span> <span class="comment"> * journal = {Geophy. Res. Lett.},</span></div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span> <span class="comment"> * number = {20},</span></div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span> <span class="comment"> * pages = {1--5},</span></div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span> <span class="comment"> * title = {{Cryo-hydrologic warming: A potential mechanism for rapid thermal response of ice sheets}},</span></div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span> <span class="comment"> * volume = {37},</span></div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span> <span class="comment"> * year = {2010}</span></div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span> <span class="comment"> * }</span></div>
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span> <span class="comment"> *</span></div>
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span> <span class="comment"> * We assume that during the melt season the enthalpy in the cryo-hydrologic system is</span></div>
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span> <span class="comment"> * equal to the enthalpy of the ice with a fixed water fraction corresponding to the</span></div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span> <span class="comment"> * amount of water remaining in the system once all of the moving water drains out (0.5%</span></div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span> <span class="comment"> * by default). During the winter the CH system is allowed to cool.</span></div>
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span> <span class="comment">*/</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"><a class="line" href="classpism_1_1energy_1_1CHSystem_a01d43f80d55b71f15bc7bd348494cac6.html#a01d43f80d55b71f15bc7bd348494cac6"> 57</a></span> <a class="code" href="classpism_1_1energy_1_1CHSystem_a01d43f80d55b71f15bc7bd348494cac6.html#a01d43f80d55b71f15bc7bd348494cac6">CHSystem::CHSystem</a>(std::shared_ptr<const Grid> grid,</div>
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  std::shared_ptr<const stressbalance::StressBalance> stress_balance)</div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  : <a class="code" href="classpism_1_1energy_1_1EnergyModel.html">EnergyModel</a>(grid, stress_balance) {</div>
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  </div>
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  <a class="code" href="classpism_1_1energy_1_1EnergyModel_a9f1075247fad4370ff48ec9fc564f3fd.html#a9f1075247fad4370ff48ec9fc564f3fd">m_ice_enthalpy</a>.<a class="code" href="classpism_1_1array_1_1Array_a2ff33ea8873af12a63971854f0a35304.html#a2ff33ea8873af12a63971854f0a35304">set_name</a>(<span class="stringliteral">"ch_enthalpy"</span>);</div>
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  <a class="code" href="classpism_1_1energy_1_1EnergyModel_a9f1075247fad4370ff48ec9fc564f3fd.html#a9f1075247fad4370ff48ec9fc564f3fd">m_ice_enthalpy</a>.<a class="code" href="classpism_1_1array_1_1Array_af9eece42153cd03bfc8ba237ae5310c4.html#af9eece42153cd03bfc8ba237ae5310c4">metadata</a>().<a class="code" href="classpism_1_1VariableMetadata_a515cb6e8b40827a5dec9eedee2a4dc9d.html#a515cb6e8b40827a5dec9eedee2a4dc9d">set_name</a>(<span class="stringliteral">"ch_enthalpy"</span>);</div>
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  <a class="code" href="classpism_1_1energy_1_1EnergyModel_a9f1075247fad4370ff48ec9fc564f3fd.html#a9f1075247fad4370ff48ec9fc564f3fd">m_ice_enthalpy</a>.<a class="code" href="classpism_1_1array_1_1Array_af9eece42153cd03bfc8ba237ae5310c4.html#af9eece42153cd03bfc8ba237ae5310c4">metadata</a>()[<span class="stringliteral">"long_name"</span>] = <span class="stringliteral">"enthalpy of the cryo-hydrologic system"</span>;</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>  </div>
<div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="classpism_1_1energy_1_1CHSystem_a3e5a8b70aec11dc3a9727a7fdc15be54.html#a3e5a8b70aec11dc3a9727a7fdc15be54"> 66</a></span> <span class="keywordtype">void</span> <a class="code" href="classpism_1_1energy_1_1CHSystem_a3e5a8b70aec11dc3a9727a7fdc15be54.html#a3e5a8b70aec11dc3a9727a7fdc15be54">CHSystem::restart_impl</a>(<span class="keyword">const</span> <a class="code" href="classpism_1_1File.html">File</a> &input_file, <span class="keywordtype">int</span> record) {</div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  </div>
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  <a class="code" href="classpism_1_1Component_a29575eba605feccf4403d6b4ff0954a4.html#a29575eba605feccf4403d6b4ff0954a4">m_log</a>->message(2, <span class="stringliteral">"* Restarting the cryo-hydrologic system from %s...\n"</span>,</div>
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  input_file.<a class="code" href="classpism_1_1File_a735a2ac444d55f02c4456736fca22223.html#a735a2ac444d55f02c4456736fca22223">filename</a>().c_str());</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>  <a class="code" href="classpism_1_1energy_1_1EnergyModel_a1a1145bfb42f4d660143663581182d45.html#a1a1145bfb42f4d660143663581182d45">init_enthalpy</a>(input_file, <span class="keyword">false</span>, record);</div>
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  </div>
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  <a class="code" href="classpism_1_1energy_1_1EnergyModel_af5adb3fda3efaa70250f0ddb2594e650.html#af5adb3fda3efaa70250f0ddb2594e650">regrid_enthalpy</a>();</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"><a class="line" href="classpism_1_1energy_1_1CHSystem_aca86f1413cffd528e33f7d955d6d88e8.html#aca86f1413cffd528e33f7d955d6d88e8"> 76</a></span> <span class="keywordtype">void</span> <a class="code" href="classpism_1_1energy_1_1CHSystem_aca86f1413cffd528e33f7d955d6d88e8.html#aca86f1413cffd528e33f7d955d6d88e8">CHSystem::bootstrap_impl</a>(<span class="keyword">const</span> <a class="code" href="classpism_1_1File.html">File</a> &input_file,</div>
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  <span class="keyword">const</span> <a class="code" href="classpism_1_1array_1_1Scalar.html">array::Scalar</a> &ice_thickness,</div>
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  <span class="keyword">const</span> <a class="code" href="classpism_1_1array_1_1Scalar.html">array::Scalar</a> &surface_temperature,</div>
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  <span class="keyword">const</span> <a class="code" href="classpism_1_1array_1_1Scalar.html">array::Scalar</a> &climatic_mass_balance,</div>
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  <span class="keyword">const</span> <a class="code" href="classpism_1_1array_1_1Scalar.html">array::Scalar</a> &basal_heat_flux) {</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_1Component_a29575eba605feccf4403d6b4ff0954a4.html#a29575eba605feccf4403d6b4ff0954a4">m_log</a>->message(2, <span class="stringliteral">"* Bootstrapping the cryo-hydrologic warming model from %s...\n"</span>,</div>
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  input_file.<a class="code" href="classpism_1_1File_a735a2ac444d55f02c4456736fca22223.html#a735a2ac444d55f02c4456736fca22223">filename</a>().c_str());</div>
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  </div>
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  <span class="keywordtype">int</span> enthalpy_revision = <a class="code" href="classpism_1_1energy_1_1EnergyModel_a9f1075247fad4370ff48ec9fc564f3fd.html#a9f1075247fad4370ff48ec9fc564f3fd">m_ice_enthalpy</a>.<a class="code" href="classpism_1_1array_1_1Array_a8944ba25bc076e69faafe183268ec390.html#a8944ba25bc076e69faafe183268ec390">state_counter</a>();</div>
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  <a class="code" href="classpism_1_1energy_1_1EnergyModel_af5adb3fda3efaa70250f0ddb2594e650.html#af5adb3fda3efaa70250f0ddb2594e650">regrid_enthalpy</a>();</div>
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  </div>
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  <span class="keywordflow">if</span> (enthalpy_revision == <a class="code" href="classpism_1_1energy_1_1EnergyModel_a9f1075247fad4370ff48ec9fc564f3fd.html#a9f1075247fad4370ff48ec9fc564f3fd">m_ice_enthalpy</a>.<a class="code" href="classpism_1_1array_1_1Array_a8944ba25bc076e69faafe183268ec390.html#a8944ba25bc076e69faafe183268ec390">state_counter</a>()) {</div>
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  <a class="code" href="namespacepism_1_1energy_a90e99e8a1c1c6fcd1822a194ca7830c4.html#a90e99e8a1c1c6fcd1822a194ca7830c4">bootstrap_ice_enthalpy</a>(ice_thickness, surface_temperature, climatic_mass_balance,</div>
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  basal_heat_flux, <a class="code" href="classpism_1_1energy_1_1EnergyModel_a9f1075247fad4370ff48ec9fc564f3fd.html#a9f1075247fad4370ff48ec9fc564f3fd">m_ice_enthalpy</a>);</div>
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  }</div>
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span> }</div>
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  </div>
<div class="line"><a name="l00094"></a><span class="lineno"><a class="line" href="classpism_1_1energy_1_1CHSystem_a65cbf80884be8500ffa5e54b90fcdbbc.html#a65cbf80884be8500ffa5e54b90fcdbbc"> 94</a></span> <span class="keywordtype">void</span> <a class="code" href="classpism_1_1energy_1_1CHSystem_a65cbf80884be8500ffa5e54b90fcdbbc.html#a65cbf80884be8500ffa5e54b90fcdbbc">CHSystem::initialize_impl</a>(<span class="keyword">const</span> <a class="code" href="classpism_1_1array_1_1Scalar.html">array::Scalar</a> &basal_melt_rate,</div>
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  <span class="keyword">const</span> <a class="code" href="classpism_1_1array_1_1Scalar.html">array::Scalar</a> &ice_thickness,</div>
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  <span class="keyword">const</span> <a class="code" href="classpism_1_1array_1_1Scalar.html">array::Scalar</a> &surface_temperature,</div>
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  <span class="keyword">const</span> <a class="code" href="classpism_1_1array_1_1Scalar.html">array::Scalar</a> &climatic_mass_balance,</div>
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  <span class="keyword">const</span> <a class="code" href="classpism_1_1array_1_1Scalar.html">array::Scalar</a> &basal_heat_flux) {</div>
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  (void) <a class="code" href="classpism_1_1energy_1_1EnergyModel_a9b3b6c10451a007b5e24fe5c1bc04978.html#a9b3b6c10451a007b5e24fe5c1bc04978">basal_melt_rate</a>;</div>
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  </div>
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  <a class="code" href="classpism_1_1Component_a29575eba605feccf4403d6b4ff0954a4.html#a29575eba605feccf4403d6b4ff0954a4">m_log</a>->message(2, <span class="stringliteral">"* Bootstrapping the cryo-hydrologic warming model...\n"</span>);</div>
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  </div>
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  <span class="keywordtype">int</span> enthalpy_revision = <a class="code" href="classpism_1_1energy_1_1EnergyModel_a9f1075247fad4370ff48ec9fc564f3fd.html#a9f1075247fad4370ff48ec9fc564f3fd">m_ice_enthalpy</a>.<a class="code" href="classpism_1_1array_1_1Array_a8944ba25bc076e69faafe183268ec390.html#a8944ba25bc076e69faafe183268ec390">state_counter</a>();</div>
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  <a class="code" href="classpism_1_1energy_1_1EnergyModel_af5adb3fda3efaa70250f0ddb2594e650.html#af5adb3fda3efaa70250f0ddb2594e650">regrid_enthalpy</a>();</div>
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  </div>
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  <span class="keywordflow">if</span> (enthalpy_revision == <a class="code" href="classpism_1_1energy_1_1EnergyModel_a9f1075247fad4370ff48ec9fc564f3fd.html#a9f1075247fad4370ff48ec9fc564f3fd">m_ice_enthalpy</a>.<a class="code" href="classpism_1_1array_1_1Array_a8944ba25bc076e69faafe183268ec390.html#a8944ba25bc076e69faafe183268ec390">state_counter</a>()) {</div>
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  <a class="code" href="namespacepism_1_1energy_a90e99e8a1c1c6fcd1822a194ca7830c4.html#a90e99e8a1c1c6fcd1822a194ca7830c4">bootstrap_ice_enthalpy</a>(ice_thickness, surface_temperature, climatic_mass_balance,</div>
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  basal_heat_flux, <a class="code" href="classpism_1_1energy_1_1EnergyModel_a9f1075247fad4370ff48ec9fc564f3fd.html#a9f1075247fad4370ff48ec9fc564f3fd">m_ice_enthalpy</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> }</div>
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span> <span class="comment"></span> </div>
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span> <span class="comment">//! Update the enthalpy of the cryo-hydrologic system.</span></div>
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span> <span class="comment"></span><span class="comment">/*!</span></div>
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span> <span class="comment"> This method updates array::Array3D m_work. No communication of ghosts is done.</span></div>
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span> <span class="comment">*/</span></div>
<div class="line"><a name="l00116"></a><span class="lineno"><a class="line" href="classpism_1_1energy_1_1CHSystem_a4ae94bf5d8c445892d61ae3fddd7adc2.html#a4ae94bf5d8c445892d61ae3fddd7adc2"> 116</a></span> <span class="keywordtype">void</span> <a class="code" href="classpism_1_1energy_1_1CHSystem_a4ae94bf5d8c445892d61ae3fddd7adc2.html#a4ae94bf5d8c445892d61ae3fddd7adc2">CHSystem::update_impl</a>(<span class="keywordtype">double</span> t, <span class="keywordtype">double</span> dt, <span class="keyword">const</span> <a class="code" href="classpism_1_1energy_1_1Inputs.html">Inputs</a> &inputs) {</div>
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  <span class="comment">// current time does not matter here</span></div>
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  (void) t;</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>  <a class="code" href="classpism_1_1EnthalpyConverter_a359de77bfa0496c82308037e08d93210.html#a359de77bfa0496c82308037e08d93210">EnthalpyConverter::Ptr</a> EC = <a class="code" href="classpism_1_1Component_a745aa37bc1b5da6db5bfc280ecb3c811.html#a745aa37bc1b5da6db5bfc280ecb3c811">m_grid</a>->ctx()->enthalpy_converter();</div>
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  </div>
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  inputs.<a class="code" href="classpism_1_1energy_1_1Inputs_a51f1575d347afa08699481450d30c99d.html#a51f1575d347afa08699481450d30c99d">check</a>();</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="comment">// give them names that are a bit shorter...</span></div>
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  <span class="keyword">const</span> <a class="code" href="classpism_1_1array_1_1Array3D.html">array::Array3D</a></div>
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  &volumetric_heat = *inputs.<a class="code" href="classpism_1_1energy_1_1Inputs_ae72c72650b039813ad10d610740c4a3a.html#ae72c72650b039813ad10d610740c4a3a">volumetric_heating_rate</a>,</div>
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  &u3 = *inputs.<a class="code" href="classpism_1_1energy_1_1Inputs_acd819e7d3e46c4a17564b108b0eaef3f.html#acd819e7d3e46c4a17564b108b0eaef3f">u3</a>,</div>
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  &v3 = *inputs.<a class="code" href="classpism_1_1energy_1_1Inputs_a76e3ab920c19e444c743fe867c37ec07.html#a76e3ab920c19e444c743fe867c37ec07">v3</a>,</div>
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  &w3 = *inputs.<a class="code" href="classpism_1_1energy_1_1Inputs_a4eb1e47db7b0b4ae22ac4d39383f4357.html#a4eb1e47db7b0b4ae22ac4d39383f4357">w3</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>  <span class="keyword">const</span> <span class="keyword">auto</span> &cell_type = *inputs.<a class="code" href="classpism_1_1energy_1_1Inputs_adc663f9922b44644439e5b349fce0013.html#adc663f9922b44644439e5b349fce0013">cell_type</a>;</div>
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  </div>
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  <span class="keyword">const</span> <a class="code" href="classpism_1_1array_1_1Scalar.html">array::Scalar</a></div>
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  &basal_frictional_heating = *inputs.<a class="code" href="classpism_1_1energy_1_1Inputs_ab55c68038b847f0f37858451796a6d30.html#ab55c68038b847f0f37858451796a6d30">basal_frictional_heating</a>,</div>
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  &basal_heat_flux = *inputs.<a class="code" href="classpism_1_1energy_1_1Inputs_a8439627000d4b2d2c054bbd54d9b3a6a.html#a8439627000d4b2d2c054bbd54d9b3a6a">basal_heat_flux</a>,</div>
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  &surface_liquid_fraction = *inputs.<a class="code" href="classpism_1_1energy_1_1Inputs_a13c9f895ec7bb5ae290d6d09c68e2419.html#a13c9f895ec7bb5ae290d6d09c68e2419">surface_liquid_fraction</a>,</div>
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  &shelf_base_temp = *inputs.<a class="code" href="classpism_1_1energy_1_1Inputs_a7fffde85dffc8f6cd0e7e80ec600ec04.html#a7fffde85dffc8f6cd0e7e80ec600ec04">shelf_base_temp</a>,</div>
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  &ice_surface_temp = *inputs.<a class="code" href="classpism_1_1energy_1_1Inputs_ad503e84d24876426dd871a409a8d9ecd.html#ad503e84d24876426dd871a409a8d9ecd">surface_temp</a>;</div>
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>  </div>
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  <span class="keyword">const</span> <a class="code" href="classpism_1_1array_1_1Scalar1.html">array::Scalar1</a> &ice_thickness = *inputs.<a class="code" href="classpism_1_1energy_1_1Inputs_a40f4bc36fbbe87bb660bbe5a4d821162.html#a40f4bc36fbbe87bb660bbe5a4d821162">ice_thickness</a>;</div>
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  </div>
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span>  <a class="code" href="classpism_1_1energy_1_1enthSystemCtx.html">energy::enthSystemCtx</a> system(<a class="code" href="classpism_1_1Component_a745aa37bc1b5da6db5bfc280ecb3c811.html#a745aa37bc1b5da6db5bfc280ecb3c811">m_grid</a>->z(), <span class="stringliteral">"energy.ch_warming"</span>, <a class="code" href="classpism_1_1Component_a745aa37bc1b5da6db5bfc280ecb3c811.html#a745aa37bc1b5da6db5bfc280ecb3c811">m_grid</a>->dx(), <a class="code" href="classpism_1_1Component_a745aa37bc1b5da6db5bfc280ecb3c811.html#a745aa37bc1b5da6db5bfc280ecb3c811">m_grid</a>->dy(), dt,</div>
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  *<a class="code" href="classpism_1_1Component_a28f298fc2133baae8cebf9dedf3b4d84.html#a28f298fc2133baae8cebf9dedf3b4d84">m_config</a>, <a class="code" href="classpism_1_1energy_1_1EnergyModel_a9f1075247fad4370ff48ec9fc564f3fd.html#a9f1075247fad4370ff48ec9fc564f3fd">m_ice_enthalpy</a>, u3, v3, w3, volumetric_heat, EC);</div>
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>  </div>
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span>  <span class="keyword">const</span> <span class="keywordtype">size_t</span> Mz_fine = system.<a class="code" href="classpism_1_1columnSystemCtx_a28bb508eccee6af0473307b128f5608a.html#a28bb508eccee6af0473307b128f5608a">z</a>().size();</div>
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  <span class="keyword">const</span> <span class="keywordtype">double</span> dz = system.<a class="code" href="classpism_1_1columnSystemCtx_a7173eecf2f9eceb59d01108855b8654d.html#a7173eecf2f9eceb59d01108855b8654d">dz</a>();</div>
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  std::vector<double> Enthnew(Mz_fine); <span class="comment">// new enthalpy in column</span></div>
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  </div>
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>  <a class="code" href="classpism_1_1array_1_1AccessScope.html">array::AccessScope</a> list{&ice_surface_temp, &shelf_base_temp, &surface_liquid_fraction,</div>
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  &ice_thickness, &basal_frictional_heating, &basal_heat_flux,</div>
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span>  &cell_type, &u3, &v3, &w3, &volumetric_heat, &<a class="code" href="classpism_1_1energy_1_1EnergyModel_a9f1075247fad4370ff48ec9fc564f3fd.html#a9f1075247fad4370ff48ec9fc564f3fd">m_ice_enthalpy</a>,</div>
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span>  &<a class="code" href="classpism_1_1energy_1_1EnergyModel_a9f3c7462ebc46185a0bc6ac22ef50084.html#a9f3c7462ebc46185a0bc6ac22ef50084">m_work</a>};</div>
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span>  </div>
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span>  <span class="keywordtype">double</span></div>
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span>  margin_threshold = <a class="code" href="classpism_1_1Component_a28f298fc2133baae8cebf9dedf3b4d84.html#a28f298fc2133baae8cebf9dedf3b4d84">m_config</a>->get_number(<span class="stringliteral">"energy.margin_ice_thickness_limit"</span>),</div>
<div class="line"><a name="l00156"></a><span class="lineno"> 156</span>  T_pm = <a class="code" href="classpism_1_1Component_a28f298fc2133baae8cebf9dedf3b4d84.html#a28f298fc2133baae8cebf9dedf3b4d84">m_config</a>->get_number(<span class="stringliteral">"constants.fresh_water.melting_point_temperature"</span>),</div>
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span>  residual_water_fraction = <a class="code" href="classpism_1_1Component_a28f298fc2133baae8cebf9dedf3b4d84.html#a28f298fc2133baae8cebf9dedf3b4d84">m_config</a>->get_number(<span class="stringliteral">"energy.ch_warming.residual_water_fraction"</span>);</div>
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span>  </div>
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span>  <span class="keyword">const</span> std::vector<double> &z = <a class="code" href="classpism_1_1Component_a745aa37bc1b5da6db5bfc280ecb3c811.html#a745aa37bc1b5da6db5bfc280ecb3c811">m_grid</a>->z();</div>
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> Mz = <a class="code" href="classpism_1_1Component_a745aa37bc1b5da6db5bfc280ecb3c811.html#a745aa37bc1b5da6db5bfc280ecb3c811">m_grid</a>->Mz();</div>
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  </div>
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span>  <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="l00163"></a><span class="lineno"> 163</span>  <span class="keywordflow">try</span> {</div>
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span>  <span class="keywordflow">for</span> (<span class="keyword">auto</span> pt = <a class="code" href="classpism_1_1Component_a745aa37bc1b5da6db5bfc280ecb3c811.html#a745aa37bc1b5da6db5bfc280ecb3c811">m_grid</a>->points(); pt; pt.next()) {</div>
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span>  <span class="keyword">const</span> <span class="keywordtype">int</span> i = pt.i(), j = pt.j();</div>
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span>  </div>
<div class="line"><a name="l00167"></a><span class="lineno"> 167</span>  <span class="keyword">const</span> <span class="keywordtype">double</span> H = ice_thickness(i, j);</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>  <span class="keywordflow">if</span> (ice_surface_temp(i, j) >= T_pm) {</div>
<div class="line"><a name="l00170"></a><span class="lineno"> 170</span>  <span class="comment">// We use surface temperature to determine if we're in a melt season or not. It</span></div>
<div class="line"><a name="l00171"></a><span class="lineno"> 171</span>  <span class="comment">// probably makes sense to use the surface mass balance instead.</span></div>
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span>  </div>
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span>  <span class="keywordtype">double</span> *<a class="code" href="namespacepism_1_1fem_ae2f57ac21774f132ef388b3de9cde364.html#ae2f57ac21774f132ef388b3de9cde364">column</a> = <a class="code" href="classpism_1_1energy_1_1EnergyModel_a9f3c7462ebc46185a0bc6ac22ef50084.html#a9f3c7462ebc46185a0bc6ac22ef50084">m_work</a>.<a class="code" href="classpism_1_1array_1_1Array3D_ac74ddc5a845ca13d159983b9e7b20791.html#ac74ddc5a845ca13d159983b9e7b20791">get_column</a>(i, j);</div>
<div class="line"><a name="l00174"></a><span class="lineno"> 174</span>  <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="namespacepism_a7343afff8d353b59dbdec563bd896812.html#a7343afff8d353b59dbdec563bd896812">k</a> = 0; <a class="code" href="namespacepism_a7343afff8d353b59dbdec563bd896812.html#a7343afff8d353b59dbdec563bd896812">k</a> < Mz; ++<a class="code" href="namespacepism_a7343afff8d353b59dbdec563bd896812.html#a7343afff8d353b59dbdec563bd896812">k</a>) {</div>
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span>  <span class="keywordtype">double</span></div>
<div class="line"><a name="l00176"></a><span class="lineno"> 176</span>  depth = <a class="code" href="namespacepism_1_1array_a8957d08741c6f48d1e554ac7ea98530a.html#a8957d08741c6f48d1e554ac7ea98530a">std::max</a>(H - z[<a class="code" href="namespacepism_a7343afff8d353b59dbdec563bd896812.html#a7343afff8d353b59dbdec563bd896812">k</a>], 0.0),</div>
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span>  P = EC->pressure(depth);</div>
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span>  <a class="code" href="namespacepism_1_1fem_ae2f57ac21774f132ef388b3de9cde364.html#ae2f57ac21774f132ef388b3de9cde364">column</a>[<a class="code" href="namespacepism_a7343afff8d353b59dbdec563bd896812.html#a7343afff8d353b59dbdec563bd896812">k</a>] = EC->enthalpy(EC->melting_temperature(P),</div>
<div class="line"><a name="l00179"></a><span class="lineno"> 179</span>  residual_water_fraction,</div>
<div class="line"><a name="l00180"></a><span class="lineno"> 180</span>  P);</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="keywordflow">continue</span>;</div>
<div class="line"><a name="l00183"></a><span class="lineno"> 183</span>  }</div>
<div class="line"><a name="l00184"></a><span class="lineno"> 184</span>  </div>
<div class="line"><a name="l00185"></a><span class="lineno"> 185</span>  <span class="comment">// enthalpy and pressures at top of ice</span></div>
<div class="line"><a name="l00186"></a><span class="lineno"> 186</span>  <span class="keyword">const</span> <span class="keywordtype">double</span></div>
<div class="line"><a name="l00187"></a><span class="lineno"> 187</span>  depth_ks = H - system.<a class="code" href="classpism_1_1columnSystemCtx_accb83857d9990f5b716bd8868cc37523.html#accb83857d9990f5b716bd8868cc37523">ks</a>() * dz,</div>
<div class="line"><a name="l00188"></a><span class="lineno"> 188</span>  p_ks = EC->pressure(depth_ks); <span class="comment">// FIXME issue #15</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>  <span class="keyword">const</span> <span class="keywordtype">double</span> Enth_ks = EC->enthalpy_permissive(ice_surface_temp(i, j),</div>
<div class="line"><a name="l00191"></a><span class="lineno"> 191</span>  surface_liquid_fraction(i, j), p_ks);</div>
<div class="line"><a name="l00192"></a><span class="lineno"> 192</span>  </div>
<div class="line"><a name="l00193"></a><span class="lineno"> 193</span>  system.<a class="code" href="classpism_1_1energy_1_1enthSystemCtx_a8966a7a4c21bd1e7a4f3d1b8423ea918.html#a8966a7a4c21bd1e7a4f3d1b8423ea918">init</a>(i, j,</div>
<div class="line"><a name="l00194"></a><span class="lineno"> 194</span>  <a class="code" href="namespacepism_1_1energy_a5947863588636523462b5766409acf47.html#a5947863588636523462b5766409acf47">marginal</a>(ice_thickness, i, j, margin_threshold),</div>
<div class="line"><a name="l00195"></a><span class="lineno"> 195</span>  H);</div>
<div class="line"><a name="l00196"></a><span class="lineno"> 196</span>  </div>
<div class="line"><a name="l00197"></a><span class="lineno"> 197</span>  <span class="keyword">const</span> <span class="keywordtype">bool</span> ice_free_column = (system.<a class="code" href="classpism_1_1columnSystemCtx_accb83857d9990f5b716bd8868cc37523.html#accb83857d9990f5b716bd8868cc37523">ks</a>() == 0);</div>
<div class="line"><a name="l00198"></a><span class="lineno"> 198</span>  </div>
<div class="line"><a name="l00199"></a><span class="lineno"> 199</span>  <span class="comment">// deal completely with columns with no ice</span></div>
<div class="line"><a name="l00200"></a><span class="lineno"> 200</span>  <span class="keywordflow">if</span> (ice_free_column) {</div>
<div class="line"><a name="l00201"></a><span class="lineno"> 201</span>  <a class="code" href="classpism_1_1energy_1_1EnergyModel_a9f3c7462ebc46185a0bc6ac22ef50084.html#a9f3c7462ebc46185a0bc6ac22ef50084">m_work</a>.<a class="code" href="classpism_1_1array_1_1Array3D_a57f6842686575847d4662ebe9a69bca6.html#a57f6842686575847d4662ebe9a69bca6">set_column</a>(i, j, Enth_ks);</div>
<div class="line"><a name="l00202"></a><span class="lineno"> 202</span>  <span class="keywordflow">continue</span>;</div>
<div class="line"><a name="l00203"></a><span class="lineno"> 203</span>  } <span class="comment">// end of if (ice_free_column)</span></div>
<div class="line"><a name="l00204"></a><span class="lineno"> 204</span>  </div>
<div class="line"><a name="l00205"></a><span class="lineno"> 205</span>  <span class="keywordflow">if</span> (system.<a class="code" href="classpism_1_1energy_1_1enthSystemCtx_a21a54e9cda5138ffb0435cbd452afca3.html#a21a54e9cda5138ffb0435cbd452afca3">lambda</a>() < 1.0) {</div>
<div class="line"><a name="l00206"></a><span class="lineno"> 206</span>  <a class="code" href="classpism_1_1energy_1_1EnergyModel_a36dc8edd470dc26f62f18fb8344b4a4b.html#a36dc8edd470dc26f62f18fb8344b4a4b">m_stats</a>.<a class="code" href="classpism_1_1energy_1_1EnergyModelStats_a2e8394e3ba7bd4d959c6303a12905fdf.html#a2e8394e3ba7bd4d959c6303a12905fdf">reduced_accuracy_counter</a> += 1; <span class="comment">// count columns with lambda < 1</span></div>
<div class="line"><a name="l00207"></a><span class="lineno"> 207</span>  }</div>
<div class="line"><a name="l00208"></a><span class="lineno"> 208</span>  </div>
<div class="line"><a name="l00209"></a><span class="lineno"> 209</span>  <span class="comment">// set boundary conditions and update enthalpy</span></div>
<div class="line"><a name="l00210"></a><span class="lineno"> 210</span>  {</div>
<div class="line"><a name="l00211"></a><span class="lineno"> 211</span>  system.<a class="code" href="classpism_1_1energy_1_1enthSystemCtx_afd04a1a2732c19cdbdbccba8582bac9f.html#afd04a1a2732c19cdbdbccba8582bac9f">set_surface_dirichlet_bc</a>(Enth_ks);</div>
<div class="line"><a name="l00212"></a><span class="lineno"> 212</span>  </div>
<div class="line"><a name="l00213"></a><span class="lineno"> 213</span>  <span class="keywordflow">if</span> (cell_type.ocean(i, j)) {</div>
<div class="line"><a name="l00214"></a><span class="lineno"> 214</span>  <span class="comment">// floating base: Dirichlet application of known temperature from ocean coupler;</span></div>
<div class="line"><a name="l00215"></a><span class="lineno"> 215</span>  <span class="comment">// assumes base of ice shelf has zero liquid fraction</span></div>
<div class="line"><a name="l00216"></a><span class="lineno"> 216</span>  <span class="keywordtype">double</span> Enth0 = EC->enthalpy_permissive(shelf_base_temp(i, j), 0.0, EC->pressure(H));</div>
<div class="line"><a name="l00217"></a><span class="lineno"> 217</span>  </div>
<div class="line"><a name="l00218"></a><span class="lineno"> 218</span>  system.<a class="code" href="classpism_1_1energy_1_1enthSystemCtx_af2cc0c06e54ae20221403377ba9295f4.html#af2cc0c06e54ae20221403377ba9295f4">set_basal_dirichlet_bc</a>(Enth0);</div>
<div class="line"><a name="l00219"></a><span class="lineno"> 219</span>  } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00220"></a><span class="lineno"> 220</span>  <span class="comment">// grounded</span></div>
<div class="line"><a name="l00221"></a><span class="lineno"> 221</span>  system.<a class="code" href="classpism_1_1energy_1_1enthSystemCtx_acaed602a22379551741299ca0fcd117d.html#acaed602a22379551741299ca0fcd117d">set_basal_heat_flux</a>(basal_heat_flux(i, j) + basal_frictional_heating(i, j));</div>
<div class="line"><a name="l00222"></a><span class="lineno"> 222</span>  }</div>
<div class="line"><a name="l00223"></a><span class="lineno"> 223</span>  <span class="comment">// solve the system</span></div>
<div class="line"><a name="l00224"></a><span class="lineno"> 224</span>  system.<a class="code" href="classpism_1_1energy_1_1enthSystemCtx_ae82adc4a313cfc9eb95d8d3bfe408f35.html#ae82adc4a313cfc9eb95d8d3bfe408f35">solve</a>(Enthnew);</div>
<div class="line"><a name="l00225"></a><span class="lineno"> 225</span>  }</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>  system.<a class="code" href="classpism_1_1columnSystemCtx_aeca38a103cb8519056d700c0e94b8aa5.html#aeca38a103cb8519056d700c0e94b8aa5">fine_to_coarse</a>(Enthnew, i, j, <a class="code" href="classpism_1_1energy_1_1EnergyModel_a9f3c7462ebc46185a0bc6ac22ef50084.html#a9f3c7462ebc46185a0bc6ac22ef50084">m_work</a>);</div>
<div class="line"><a name="l00228"></a><span class="lineno"> 228</span>  }</div>
<div class="line"><a name="l00229"></a><span class="lineno"> 229</span>  } <span class="keywordflow">catch</span> (...) {</div>
<div class="line"><a name="l00230"></a><span class="lineno"> 230</span>  loop.<a class="code" href="classpism_1_1ParallelSection_a6b0a6e5e64970af7eadabfebe2b20bd2.html#a6b0a6e5e64970af7eadabfebe2b20bd2">failed</a>();</div>
<div class="line"><a name="l00231"></a><span class="lineno"> 231</span>  }</div>
<div class="line"><a name="l00232"></a><span class="lineno"> 232</span>  loop.<a class="code" href="classpism_1_1ParallelSection_ac23296abee1cbcb3c3fd68c7f5ce0835.html#ac23296abee1cbcb3c3fd68c7f5ce0835">check</a>();</div>
<div class="line"><a name="l00233"></a><span class="lineno"> 233</span> }</div>
<div class="line"><a name="l00234"></a><span class="lineno"> 234</span>  </div>
<div class="line"><a name="l00235"></a><span class="lineno"><a class="line" href="classpism_1_1energy_1_1CHSystem_a6da0693b8c92d9a2e9db40197371d4ff.html#a6da0693b8c92d9a2e9db40197371d4ff"> 235</a></span> <span class="keywordtype">void</span> <a class="code" href="classpism_1_1energy_1_1CHSystem_a6da0693b8c92d9a2e9db40197371d4ff.html#a6da0693b8c92d9a2e9db40197371d4ff">CHSystem::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="l00236"></a><span class="lineno"> 236</span>  <a class="code" href="classpism_1_1energy_1_1EnergyModel_a9f1075247fad4370ff48ec9fc564f3fd.html#a9f1075247fad4370ff48ec9fc564f3fd">m_ice_enthalpy</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="l00237"></a><span class="lineno"> 237</span> }</div>
<div class="line"><a name="l00238"></a><span class="lineno"> 238</span>  </div>
<div class="line"><a name="l00239"></a><span class="lineno"><a class="line" href="classpism_1_1energy_1_1CHSystem_ae767831c14d969be92746890855fe520.html#ae767831c14d969be92746890855fe520"> 239</a></span> <span class="keywordtype">void</span> <a class="code" href="classpism_1_1energy_1_1CHSystem_ae767831c14d969be92746890855fe520.html#ae767831c14d969be92746890855fe520">CHSystem::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="l00240"></a><span class="lineno"> 240</span>  <a class="code" href="classpism_1_1energy_1_1EnergyModel_a9f1075247fad4370ff48ec9fc564f3fd.html#a9f1075247fad4370ff48ec9fc564f3fd">m_ice_enthalpy</a>.<a class="code" href="classpism_1_1array_1_1Array_a4cdaeb827d166a076668d2ab86416793.html#a4cdaeb827d166a076668d2ab86416793">write</a>(output);</div>
<div class="line"><a name="l00241"></a><span class="lineno"> 241</span> }</div>
<div class="line"><a name="l00242"></a><span class="lineno"> 242</span> <span class="comment"></span> </div>
<div class="line"><a name="l00243"></a><span class="lineno"> 243</span> <span class="comment">/*!</span></div>
<div class="line"><a name="l00244"></a><span class="lineno"> 244</span> <span class="comment"> * Compute the heat flux corresponding to the cryo-hydrologic warming.</span></div>
<div class="line"><a name="l00245"></a><span class="lineno"> 245</span> <span class="comment"> *</span></div>
<div class="line"><a name="l00246"></a><span class="lineno"> 246</span> <span class="comment"> * `Q = (k / R**2) * (T_ch - T_ice),`</span></div>
<div class="line"><a name="l00247"></a><span class="lineno"> 247</span> <span class="comment"> *</span></div>
<div class="line"><a name="l00248"></a><span class="lineno"> 248</span> <span class="comment"> * where `k` is the thermal conductivity of ice and `R` us the average spacing of</span></div>
<div class="line"><a name="l00249"></a><span class="lineno"> 249</span> <span class="comment"> * channels in the cryo-hydrologic system.</span></div>
<div class="line"><a name="l00250"></a><span class="lineno"> 250</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00251"></a><span class="lineno"><a class="line" href="namespacepism_1_1energy_a254332ce85be26e97493d8d2814d8989.html#a254332ce85be26e97493d8d2814d8989"> 251</a></span> <span class="keywordtype">void</span> <a class="code" href="namespacepism_1_1energy_a254332ce85be26e97493d8d2814d8989.html#a254332ce85be26e97493d8d2814d8989">cryo_hydrologic_warming_flux</a>(<span class="keywordtype">double</span> <a class="code" href="namespacepism_a7343afff8d353b59dbdec563bd896812.html#a7343afff8d353b59dbdec563bd896812">k</a>,</div>
<div class="line"><a name="l00252"></a><span class="lineno"> 252</span>  <span class="keywordtype">double</span> R,</div>
<div class="line"><a name="l00253"></a><span class="lineno"> 253</span>  <span class="keyword">const</span> <a class="code" href="classpism_1_1array_1_1Scalar.html">array::Scalar</a> &ice_thickness,</div>
<div class="line"><a name="l00254"></a><span class="lineno"> 254</span>  <span class="keyword">const</span> <a class="code" href="classpism_1_1array_1_1Array3D.html">array::Array3D</a> &ice_enthalpy,</div>
<div class="line"><a name="l00255"></a><span class="lineno"> 255</span>  <span class="keyword">const</span> <a class="code" href="classpism_1_1array_1_1Array3D.html">array::Array3D</a> &ch_enthalpy,</div>
<div class="line"><a name="l00256"></a><span class="lineno"> 256</span>  <a class="code" href="classpism_1_1array_1_1Array3D.html">array::Array3D</a> &result) {</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="keyword">auto</span> grid = result.<a class="code" href="classpism_1_1array_1_1Array_a982fca110a5d7011f681b928b20e3577.html#a982fca110a5d7011f681b928b20e3577">grid</a>();</div>
<div class="line"><a name="l00259"></a><span class="lineno"> 259</span>  </div>
<div class="line"><a name="l00260"></a><span class="lineno"> 260</span>  <span class="keyword">const</span> <span class="keyword">auto</span> &z = grid->z();</div>
<div class="line"><a name="l00261"></a><span class="lineno"> 261</span>  <span class="keyword">auto</span> Mz = grid->Mz();</div>
<div class="line"><a name="l00262"></a><span class="lineno"> 262</span>  </div>
<div class="line"><a name="l00263"></a><span class="lineno"> 263</span>  <span class="keyword">auto</span> EC = grid->ctx()->enthalpy_converter();</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>  <a class="code" href="classpism_1_1array_1_1AccessScope.html">array::AccessScope</a> access{&ice_thickness, &ice_enthalpy, &ch_enthalpy, &result};</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>  <span class="keywordtype">double</span> <a class="code" href="ssafd__code_8cc_ab9fa28b42de51e2c90f27a6cce207b85.html#ab9fa28b42de51e2c90f27a6cce207b85">C</a> = <a class="code" href="namespacepism_a7343afff8d353b59dbdec563bd896812.html#a7343afff8d353b59dbdec563bd896812">k</a> / (R * R);</div>
<div class="line"><a name="l00268"></a><span class="lineno"> 268</span>  </div>
<div class="line"><a name="l00269"></a><span class="lineno"> 269</span>  <a class="code" href="classpism_1_1ParallelSection.html">ParallelSection</a> loop(grid->com);</div>
<div class="line"><a name="l00270"></a><span class="lineno"> 270</span>  <span class="keywordflow">try</span> {</div>
<div class="line"><a name="l00271"></a><span class="lineno"> 271</span>  <span class="keywordflow">for</span> (<span class="keyword">auto</span> p = grid->points(); p; p.next()) {</div>
<div class="line"><a name="l00272"></a><span class="lineno"> 272</span>  <span class="keyword">const</span> <span class="keywordtype">int</span> i = p.i(), j = p.j();</div>
<div class="line"><a name="l00273"></a><span class="lineno"> 273</span>  </div>
<div class="line"><a name="l00274"></a><span class="lineno"> 274</span>  <span class="keyword">const</span> <span class="keywordtype">double</span></div>
<div class="line"><a name="l00275"></a><span class="lineno"> 275</span>  *E_ch = ch_enthalpy.<a class="code" href="classpism_1_1array_1_1Array3D_ac74ddc5a845ca13d159983b9e7b20791.html#ac74ddc5a845ca13d159983b9e7b20791">get_column</a>(i, j),</div>
<div class="line"><a name="l00276"></a><span class="lineno"> 276</span>  *E_ice = ice_enthalpy.<a class="code" href="classpism_1_1array_1_1Array3D_ac74ddc5a845ca13d159983b9e7b20791.html#ac74ddc5a845ca13d159983b9e7b20791">get_column</a>(i, j);</div>
<div class="line"><a name="l00277"></a><span class="lineno"> 277</span>  <span class="keywordtype">double</span> *Q = result.<a class="code" href="classpism_1_1array_1_1Array3D_ac74ddc5a845ca13d159983b9e7b20791.html#ac74ddc5a845ca13d159983b9e7b20791">get_column</a>(i, j);</div>
<div class="line"><a name="l00278"></a><span class="lineno"> 278</span>  </div>
<div class="line"><a name="l00279"></a><span class="lineno"> 279</span>  <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> m = 0; m < Mz; ++m) {</div>
<div class="line"><a name="l00280"></a><span class="lineno"> 280</span>  <span class="keywordtype">double</span></div>
<div class="line"><a name="l00281"></a><span class="lineno"> 281</span>  depth = ice_thickness(i, j) - z[m];</div>
<div class="line"><a name="l00282"></a><span class="lineno"> 282</span>  </div>
<div class="line"><a name="l00283"></a><span class="lineno"> 283</span>  <span class="keywordflow">if</span> (depth > 0.0) {</div>
<div class="line"><a name="l00284"></a><span class="lineno"> 284</span>  <span class="keywordtype">double</span> P = EC->pressure(depth);</div>
<div class="line"><a name="l00285"></a><span class="lineno"> 285</span>  Q[m] = <a class="code" href="namespacepism_1_1array_a8957d08741c6f48d1e554ac7ea98530a.html#a8957d08741c6f48d1e554ac7ea98530a">std::max</a>(<a class="code" href="ssafd__code_8cc_ab9fa28b42de51e2c90f27a6cce207b85.html#ab9fa28b42de51e2c90f27a6cce207b85">C</a> * (EC->temperature(E_ch[m], P) - EC->temperature(E_ice[m], P)),</div>
<div class="line"><a name="l00286"></a><span class="lineno"> 286</span>  0.0);</div>
<div class="line"><a name="l00287"></a><span class="lineno"> 287</span>  } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00288"></a><span class="lineno"> 288</span>  Q[m] = 0.0;</div>
<div class="line"><a name="l00289"></a><span class="lineno"> 289</span>  }</div>
<div class="line"><a name="l00290"></a><span class="lineno"> 290</span>  }</div>
<div class="line"><a name="l00291"></a><span class="lineno"> 291</span>  }</div>
<div class="line"><a name="l00292"></a><span class="lineno"> 292</span>  } <span class="keywordflow">catch</span> (...) {</div>
<div class="line"><a name="l00293"></a><span class="lineno"> 293</span>  loop.<a class="code" href="classpism_1_1ParallelSection_a6b0a6e5e64970af7eadabfebe2b20bd2.html#a6b0a6e5e64970af7eadabfebe2b20bd2">failed</a>();</div>
<div class="line"><a name="l00294"></a><span class="lineno"> 294</span>  }</div>
<div class="line"><a name="l00295"></a><span class="lineno"> 295</span>  loop.<a class="code" href="classpism_1_1ParallelSection_ac23296abee1cbcb3c3fd68c7f5ce0835.html#ac23296abee1cbcb3c3fd68c7f5ce0835">check</a>();</div>
<div class="line"><a name="l00296"></a><span class="lineno"> 296</span> }</div>
<div class="line"><a name="l00297"></a><span class="lineno"> 297</span>  </div>
<div class="line"><a name="l00298"></a><span class="lineno"><a class="line" href="classpism_1_1energy_1_1CHSystem_a4d0086b481e4120c1e903db6ea309623.html#a4d0086b481e4120c1e903db6ea309623"> 298</a></span> <a class="code" href="namespacepism_a6154a990ba873c6ca606d8a320c441ac.html#a6154a990ba873c6ca606d8a320c441ac">DiagnosticList</a> <a class="code" href="classpism_1_1energy_1_1CHSystem_a4d0086b481e4120c1e903db6ea309623.html#a4d0086b481e4120c1e903db6ea309623">CHSystem::diagnostics_impl</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00299"></a><span class="lineno"> 299</span>  <span class="keywordflow">return</span> {{<span class="stringliteral">"ch_enthalpy"</span>, <a class="code" href="classpism_1_1Diagnostic_a2648c1bc92c5e333ecad30e9a5687ea9.html#a2648c1bc92c5e333ecad30e9a5687ea9">Diagnostic::wrap</a>(<a class="code" href="classpism_1_1energy_1_1EnergyModel_a9f1075247fad4370ff48ec9fc564f3fd.html#a9f1075247fad4370ff48ec9fc564f3fd">m_ice_enthalpy</a>)}};</div>
<div class="line"><a name="l00300"></a><span class="lineno"> 300</span> }</div>
<div class="line"><a name="l00301"></a><span class="lineno"> 301</span>  </div>
<div class="line"><a name="l00302"></a><span class="lineno"> 302</span>  </div>
<div class="line"><a name="l00303"></a><span class="lineno"> 303</span> } <span class="comment">// end of namespace energy</span></div>
<div class="line"><a name="l00304"></a><span class="lineno"> 304</span> } <span class="comment">// end of namespace pism</span></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_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_1Diagnostic_a2648c1bc92c5e333ecad30e9a5687ea9_html_a2648c1bc92c5e333ecad30e9a5687ea9"><div class="ttname"><a href="classpism_1_1Diagnostic_a2648c1bc92c5e333ecad30e9a5687ea9.html#a2648c1bc92c5e333ecad30e9a5687ea9">pism::Diagnostic::wrap</a></div><div class="ttdeci">static Ptr wrap(const T &input)</div><div class="ttdef"><b>Definition:</b> <a href="Diagnostic_8hh_source.html#l00160">Diagnostic.hh:160</a></div></div>
<div class="ttc" id="aclasspism_1_1EnthalpyConverter_a359de77bfa0496c82308037e08d93210_html_a359de77bfa0496c82308037e08d93210"><div class="ttname"><a href="classpism_1_1EnthalpyConverter_a359de77bfa0496c82308037e08d93210.html#a359de77bfa0496c82308037e08d93210">pism::EnthalpyConverter::Ptr</a></div><div class="ttdeci">std::shared_ptr< EnthalpyConverter > Ptr</div><div class="ttdef"><b>Definition:</b> <a href="EnthalpyConverter_8hh_source.html#l00056">EnthalpyConverter.hh:56</a></div></div>
<div class="ttc" id="aclasspism_1_1File_a735a2ac444d55f02c4456736fca22223_html_a735a2ac444d55f02c4456736fca22223"><div class="ttname"><a href="classpism_1_1File_a735a2ac444d55f02c4456736fca22223.html#a735a2ac444d55f02c4456736fca22223">pism::File::filename</a></div><div class="ttdeci">std::string filename() const</div><div class="ttdef"><b>Definition:</b> <a href="File_8cc_source.html#l00307">File.cc:307</a></div></div>
<div class="ttc" id="aclasspism_1_1File_html"><div class="ttname"><a href="classpism_1_1File.html">pism::File</a></div><div class="ttdoc">High-level PISM I/O class.</div><div class="ttdef"><b>Definition:</b> <a href="File_8hh_source.html#l00055">File.hh:56</a></div></div>
<div class="ttc" id="aclasspism_1_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_1VariableMetadata_a515cb6e8b40827a5dec9eedee2a4dc9d_html_a515cb6e8b40827a5dec9eedee2a4dc9d"><div class="ttname"><a href="classpism_1_1VariableMetadata_a515cb6e8b40827a5dec9eedee2a4dc9d.html#a515cb6e8b40827a5dec9eedee2a4dc9d">pism::VariableMetadata::set_name</a></div><div class="ttdeci">VariableMetadata & set_name(const std::string &name)</div><div class="ttdef"><b>Definition:</b> <a href="VariableMetadata_8cc_source.html#l00242">VariableMetadata.cc:242</a></div></div>
<div class="ttc" id="aclasspism_1_1array_1_1AccessScope_html"><div class="ttname"><a href="classpism_1_1array_1_1AccessScope.html">pism::array::AccessScope</a></div><div class="ttdoc">Makes sure that we call begin_access() and end_access() for all accessed array::Arrays.</div><div class="ttdef"><b>Definition:</b> <a href="Array_8hh_source.html#l00065">Array.hh:65</a></div></div>
<div class="ttc" id="aclasspism_1_1array_1_1Array3D_a57f6842686575847d4662ebe9a69bca6_html_a57f6842686575847d4662ebe9a69bca6"><div class="ttname"><a href="classpism_1_1array_1_1Array3D_a57f6842686575847d4662ebe9a69bca6.html#a57f6842686575847d4662ebe9a69bca6">pism::array::Array3D::set_column</a></div><div class="ttdeci">void set_column(int i, int j, double c)</div><div class="ttdoc">Set all values of scalar quantity to given a single value in a particular column.</div><div class="ttdef"><b>Definition:</b> <a href="Array3D_8cc_source.html#l00049">Array3D.cc:49</a></div></div>
<div class="ttc" id="aclasspism_1_1array_1_1Array3D_ac74ddc5a845ca13d159983b9e7b20791_html_ac74ddc5a845ca13d159983b9e7b20791"><div class="ttname"><a href="classpism_1_1array_1_1Array3D_ac74ddc5a845ca13d159983b9e7b20791.html#ac74ddc5a845ca13d159983b9e7b20791">pism::array::Array3D::get_column</a></div><div class="ttdeci">double * get_column(int i, int j)</div><div class="ttdef"><b>Definition:</b> <a href="Array3D_8cc_source.html#l00120">Array3D.cc:120</a></div></div>
<div class="ttc" id="aclasspism_1_1array_1_1Array3D_html"><div class="ttname"><a href="classpism_1_1array_1_1Array3D.html">pism::array::Array3D</a></div><div class="ttdoc">A virtual class collecting methods common to ice and bedrock 3D fields.</div><div class="ttdef"><b>Definition:</b> <a href="Array3D_8hh_source.html#l00033">Array3D.hh:33</a></div></div>
<div class="ttc" id="aclasspism_1_1array_1_1Array_a2ff33ea8873af12a63971854f0a35304_html_a2ff33ea8873af12a63971854f0a35304"><div class="ttname"><a href="classpism_1_1array_1_1Array_a2ff33ea8873af12a63971854f0a35304.html#a2ff33ea8873af12a63971854f0a35304">pism::array::Array::set_name</a></div><div class="ttdeci">void set_name(const std::string &name)</div><div class="ttdoc">Sets the variable name to name.</div><div class="ttdef"><b>Definition:</b> <a href="Array_8cc_source.html#l00371">Array.cc:371</a></div></div>
<div class="ttc" id="aclasspism_1_1array_1_1Array_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_1Array_a8944ba25bc076e69faafe183268ec390_html_a8944ba25bc076e69faafe183268ec390"><div class="ttname"><a href="classpism_1_1array_1_1Array_a8944ba25bc076e69faafe183268ec390.html#a8944ba25bc076e69faafe183268ec390">pism::array::Array::state_counter</a></div><div class="ttdeci">int state_counter() const</div><div class="ttdoc">Get the object state counter.</div><div class="ttdef"><b>Definition:</b> <a href="Array_8cc_source.html#l00128">Array.cc:128</a></div></div>
<div class="ttc" id="aclasspism_1_1array_1_1Array_a982fca110a5d7011f681b928b20e3577_html_a982fca110a5d7011f681b928b20e3577"><div class="ttname"><a href="classpism_1_1array_1_1Array_a982fca110a5d7011f681b928b20e3577.html#a982fca110a5d7011f681b928b20e3577">pism::array::Array::grid</a></div><div class="ttdeci">std::shared_ptr< const Grid > grid() const</div><div class="ttdef"><b>Definition:</b> <a href="Array_8cc_source.html#l00132">Array.cc:132</a></div></div>
<div class="ttc" id="aclasspism_1_1array_1_1Array_af9eece42153cd03bfc8ba237ae5310c4_html_af9eece42153cd03bfc8ba237ae5310c4"><div class="ttname"><a href="classpism_1_1array_1_1Array_af9eece42153cd03bfc8ba237ae5310c4.html#af9eece42153cd03bfc8ba237ae5310c4">pism::array::Array::metadata</a></div><div class="ttdeci">SpatialVariableMetadata & metadata(unsigned int N=0)</div><div class="ttdoc">Returns a reference to the SpatialVariableMetadata object containing metadata for the compoment N.</div><div class="ttdef"><b>Definition:</b> <a href="Array_8cc_source.html#l00553">Array.cc:553</a></div></div>
<div class="ttc" id="aclasspism_1_1array_1_1Scalar1_html"><div class="ttname"><a href="classpism_1_1array_1_1Scalar1.html">pism::array::Scalar1</a></div><div class="ttdef"><b>Definition:</b> <a href="Scalar_8hh_source.html#l00053">Scalar.hh:53</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_1columnSystemCtx_a28bb508eccee6af0473307b128f5608a_html_a28bb508eccee6af0473307b128f5608a"><div class="ttname"><a href="classpism_1_1columnSystemCtx_a28bb508eccee6af0473307b128f5608a.html#a28bb508eccee6af0473307b128f5608a">pism::columnSystemCtx::z</a></div><div class="ttdeci">const std::vector< double > & z() const</div><div class="ttdef"><b>Definition:</b> <a href="ColumnSystem_8cc_source.html#l00283">ColumnSystem.cc:283</a></div></div>
<div class="ttc" id="aclasspism_1_1columnSystemCtx_a7173eecf2f9eceb59d01108855b8654d_html_a7173eecf2f9eceb59d01108855b8654d"><div class="ttname"><a href="classpism_1_1columnSystemCtx_a7173eecf2f9eceb59d01108855b8654d.html#a7173eecf2f9eceb59d01108855b8654d">pism::columnSystemCtx::dz</a></div><div class="ttdeci">double dz() const</div><div class="ttdef"><b>Definition:</b> <a href="ColumnSystem_8cc_source.html#l00279">ColumnSystem.cc:279</a></div></div>
<div class="ttc" id="aclasspism_1_1columnSystemCtx_accb83857d9990f5b716bd8868cc37523_html_accb83857d9990f5b716bd8868cc37523"><div class="ttname"><a href="classpism_1_1columnSystemCtx_accb83857d9990f5b716bd8868cc37523.html#accb83857d9990f5b716bd8868cc37523">pism::columnSystemCtx::ks</a></div><div class="ttdeci">unsigned int ks() const</div><div class="ttdef"><b>Definition:</b> <a href="ColumnSystem_8cc_source.html#l00275">ColumnSystem.cc:275</a></div></div>
<div class="ttc" id="aclasspism_1_1columnSystemCtx_aeca38a103cb8519056d700c0e94b8aa5_html_aeca38a103cb8519056d700c0e94b8aa5"><div class="ttname"><a href="classpism_1_1columnSystemCtx_aeca38a103cb8519056d700c0e94b8aa5.html#aeca38a103cb8519056d700c0e94b8aa5">pism::columnSystemCtx::fine_to_coarse</a></div><div class="ttdeci">void fine_to_coarse(const std::vector< double > &fine, int i, int j, array::Array3D &coarse) const</div><div class="ttdef"><b>Definition:</b> <a href="ColumnSystem_8cc_source.html#l00287">ColumnSystem.cc:287</a></div></div>
<div class="ttc" id="aclasspism_1_1energy_1_1CHSystem_a01d43f80d55b71f15bc7bd348494cac6_html_a01d43f80d55b71f15bc7bd348494cac6"><div class="ttname"><a href="classpism_1_1energy_1_1CHSystem_a01d43f80d55b71f15bc7bd348494cac6.html#a01d43f80d55b71f15bc7bd348494cac6">pism::energy::CHSystem::CHSystem</a></div><div class="ttdeci">CHSystem(std::shared_ptr< const Grid > grid, std::shared_ptr< const stressbalance::StressBalance > stress_balance)</div><div class="ttdef"><b>Definition:</b> <a href="CHSystem_8cc_source.html#l00057">CHSystem.cc:57</a></div></div>
<div class="ttc" id="aclasspism_1_1energy_1_1CHSystem_a3e5a8b70aec11dc3a9727a7fdc15be54_html_a3e5a8b70aec11dc3a9727a7fdc15be54"><div class="ttname"><a href="classpism_1_1energy_1_1CHSystem_a3e5a8b70aec11dc3a9727a7fdc15be54.html#a3e5a8b70aec11dc3a9727a7fdc15be54">pism::energy::CHSystem::restart_impl</a></div><div class="ttdeci">void restart_impl(const File &input_file, int record)</div><div class="ttdef"><b>Definition:</b> <a href="CHSystem_8cc_source.html#l00066">CHSystem.cc:66</a></div></div>
<div class="ttc" id="aclasspism_1_1energy_1_1CHSystem_a4ae94bf5d8c445892d61ae3fddd7adc2_html_a4ae94bf5d8c445892d61ae3fddd7adc2"><div class="ttname"><a href="classpism_1_1energy_1_1CHSystem_a4ae94bf5d8c445892d61ae3fddd7adc2.html#a4ae94bf5d8c445892d61ae3fddd7adc2">pism::energy::CHSystem::update_impl</a></div><div class="ttdeci">void update_impl(double t, double dt, const Inputs &inputs)</div><div class="ttdoc">Update the enthalpy of the cryo-hydrologic system.</div><div class="ttdef"><b>Definition:</b> <a href="CHSystem_8cc_source.html#l00116">CHSystem.cc:116</a></div></div>
<div class="ttc" id="aclasspism_1_1energy_1_1CHSystem_a4d0086b481e4120c1e903db6ea309623_html_a4d0086b481e4120c1e903db6ea309623"><div class="ttname"><a href="classpism_1_1energy_1_1CHSystem_a4d0086b481e4120c1e903db6ea309623.html#a4d0086b481e4120c1e903db6ea309623">pism::energy::CHSystem::diagnostics_impl</a></div><div class="ttdeci">DiagnosticList diagnostics_impl() const</div><div class="ttdef"><b>Definition:</b> <a href="CHSystem_8cc_source.html#l00298">CHSystem.cc:298</a></div></div>
<div class="ttc" id="aclasspism_1_1energy_1_1CHSystem_a65cbf80884be8500ffa5e54b90fcdbbc_html_a65cbf80884be8500ffa5e54b90fcdbbc"><div class="ttname"><a href="classpism_1_1energy_1_1CHSystem_a65cbf80884be8500ffa5e54b90fcdbbc.html#a65cbf80884be8500ffa5e54b90fcdbbc">pism::energy::CHSystem::initialize_impl</a></div><div class="ttdeci">void initialize_impl(const array::Scalar &basal_melt_rate, const array::Scalar &ice_thickness, const array::Scalar &surface_temperature, const array::Scalar &climatic_mass_balance, const array::Scalar &basal_heat_flux)</div><div class="ttdef"><b>Definition:</b> <a href="CHSystem_8cc_source.html#l00094">CHSystem.cc:94</a></div></div>
<div class="ttc" id="aclasspism_1_1energy_1_1CHSystem_a6da0693b8c92d9a2e9db40197371d4ff_html_a6da0693b8c92d9a2e9db40197371d4ff"><div class="ttname"><a href="classpism_1_1energy_1_1CHSystem_a6da0693b8c92d9a2e9db40197371d4ff.html#a6da0693b8c92d9a2e9db40197371d4ff">pism::energy::CHSystem::define_model_state_impl</a></div><div class="ttdeci">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="CHSystem_8cc_source.html#l00235">CHSystem.cc:235</a></div></div>
<div class="ttc" id="aclasspism_1_1energy_1_1CHSystem_aca86f1413cffd528e33f7d955d6d88e8_html_aca86f1413cffd528e33f7d955d6d88e8"><div class="ttname"><a href="classpism_1_1energy_1_1CHSystem_aca86f1413cffd528e33f7d955d6d88e8.html#aca86f1413cffd528e33f7d955d6d88e8">pism::energy::CHSystem::bootstrap_impl</a></div><div class="ttdeci">void bootstrap_impl(const File &input_file, const array::Scalar &ice_thickness, const array::Scalar &surface_temperature, const array::Scalar &climatic_mass_balance, const array::Scalar &basal_heat_flux)</div><div class="ttdef"><b>Definition:</b> <a href="CHSystem_8cc_source.html#l00076">CHSystem.cc:76</a></div></div>
<div class="ttc" id="aclasspism_1_1energy_1_1CHSystem_ae767831c14d969be92746890855fe520_html_ae767831c14d969be92746890855fe520"><div class="ttname"><a href="classpism_1_1energy_1_1CHSystem_ae767831c14d969be92746890855fe520.html#ae767831c14d969be92746890855fe520">pism::energy::CHSystem::write_model_state_impl</a></div><div class="ttdeci">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="CHSystem_8cc_source.html#l00239">CHSystem.cc:239</a></div></div>
<div class="ttc" id="aclasspism_1_1energy_1_1EnergyModelStats_a2e8394e3ba7bd4d959c6303a12905fdf_html_a2e8394e3ba7bd4d959c6303a12905fdf"><div class="ttname"><a href="classpism_1_1energy_1_1EnergyModelStats_a2e8394e3ba7bd4d959c6303a12905fdf.html#a2e8394e3ba7bd4d959c6303a12905fdf">pism::energy::EnergyModelStats::reduced_accuracy_counter</a></div><div class="ttdeci">unsigned int reduced_accuracy_counter</div><div class="ttdef"><b>Definition:</b> <a href="EnergyModel_8hh_source.html#l00070">EnergyModel.hh:70</a></div></div>
<div class="ttc" id="aclasspism_1_1energy_1_1EnergyModel_a1a1145bfb42f4d660143663581182d45_html_a1a1145bfb42f4d660143663581182d45"><div class="ttname"><a href="classpism_1_1energy_1_1EnergyModel_a1a1145bfb42f4d660143663581182d45.html#a1a1145bfb42f4d660143663581182d45">pism::energy::EnergyModel::init_enthalpy</a></div><div class="ttdeci">void init_enthalpy(const File &input_file, bool regrid, int record)</div><div class="ttdoc">Initialize enthalpy by reading it from a file, or by reading temperature and liquid water fraction,...</div><div class="ttdef"><b>Definition:</b> <a href="EnergyModel_8cc_source.html#l00135">EnergyModel.cc:135</a></div></div>
<div class="ttc" id="aclasspism_1_1energy_1_1EnergyModel_a36dc8edd470dc26f62f18fb8344b4a4b_html_a36dc8edd470dc26f62f18fb8344b4a4b"><div class="ttname"><a href="classpism_1_1energy_1_1EnergyModel_a36dc8edd470dc26f62f18fb8344b4a4b.html#a36dc8edd470dc26f62f18fb8344b4a4b">pism::energy::EnergyModel::m_stats</a></div><div class="ttdeci">EnergyModelStats m_stats</div><div class="ttdef"><b>Definition:</b> <a href="EnergyModel_8hh_source.html#l00145">EnergyModel.hh:145</a></div></div>
<div class="ttc" id="aclasspism_1_1energy_1_1EnergyModel_a9b3b6c10451a007b5e24fe5c1bc04978_html_a9b3b6c10451a007b5e24fe5c1bc04978"><div class="ttname"><a href="classpism_1_1energy_1_1EnergyModel_a9b3b6c10451a007b5e24fe5c1bc04978.html#a9b3b6c10451a007b5e24fe5c1bc04978">pism::energy::EnergyModel::basal_melt_rate</a></div><div class="ttdeci">const array::Scalar & basal_melt_rate() const</div><div class="ttdoc">Basal melt rate in grounded areas. (It is set to zero elsewhere.)</div><div class="ttdef"><b>Definition:</b> <a href="EnergyModel_8cc_source.html#l00307">EnergyModel.cc:307</a></div></div>
<div class="ttc" id="aclasspism_1_1energy_1_1EnergyModel_a9f1075247fad4370ff48ec9fc564f3fd_html_a9f1075247fad4370ff48ec9fc564f3fd"><div class="ttname"><a href="classpism_1_1energy_1_1EnergyModel_a9f1075247fad4370ff48ec9fc564f3fd.html#a9f1075247fad4370ff48ec9fc564f3fd">pism::energy::EnergyModel::m_ice_enthalpy</a></div><div class="ttdeci">array::Array3D m_ice_enthalpy</div><div class="ttdef"><b>Definition:</b> <a href="EnergyModel_8hh_source.html#l00141">EnergyModel.hh:141</a></div></div>
<div class="ttc" id="aclasspism_1_1energy_1_1EnergyModel_a9f3c7462ebc46185a0bc6ac22ef50084_html_a9f3c7462ebc46185a0bc6ac22ef50084"><div class="ttname"><a href="classpism_1_1energy_1_1EnergyModel_a9f3c7462ebc46185a0bc6ac22ef50084.html#a9f3c7462ebc46185a0bc6ac22ef50084">pism::energy::EnergyModel::m_work</a></div><div class="ttdeci">array::Array3D m_work</div><div class="ttdef"><b>Definition:</b> <a href="EnergyModel_8hh_source.html#l00142">EnergyModel.hh:142</a></div></div>
<div class="ttc" id="aclasspism_1_1energy_1_1EnergyModel_af5adb3fda3efaa70250f0ddb2594e650_html_af5adb3fda3efaa70250f0ddb2594e650"><div class="ttname"><a href="classpism_1_1energy_1_1EnergyModel_af5adb3fda3efaa70250f0ddb2594e650.html#af5adb3fda3efaa70250f0ddb2594e650">pism::energy::EnergyModel::regrid_enthalpy</a></div><div class="ttdeci">void regrid_enthalpy()</div><div class="ttdoc">Regrid enthalpy from the -regrid_file.</div><div class="ttdef"><b>Definition:</b> <a href="EnergyModel_8cc_source.html#l00200">EnergyModel.cc:200</a></div></div>
<div class="ttc" id="aclasspism_1_1energy_1_1EnergyModel_html"><div class="ttname"><a href="classpism_1_1energy_1_1EnergyModel.html">pism::energy::EnergyModel</a></div><div class="ttdef"><b>Definition:</b> <a href="EnergyModel_8hh_source.html#l00075">EnergyModel.hh:75</a></div></div>
<div class="ttc" id="aclasspism_1_1energy_1_1Inputs_a13c9f895ec7bb5ae290d6d09c68e2419_html_a13c9f895ec7bb5ae290d6d09c68e2419"><div class="ttname"><a href="classpism_1_1energy_1_1Inputs_a13c9f895ec7bb5ae290d6d09c68e2419.html#a13c9f895ec7bb5ae290d6d09c68e2419">pism::energy::Inputs::surface_liquid_fraction</a></div><div class="ttdeci">const array::Scalar * surface_liquid_fraction</div><div class="ttdef"><b>Definition:</b> <a href="EnergyModel_8hh_source.html#l00047">EnergyModel.hh:47</a></div></div>
<div class="ttc" id="aclasspism_1_1energy_1_1Inputs_a40f4bc36fbbe87bb660bbe5a4d821162_html_a40f4bc36fbbe87bb660bbe5a4d821162"><div class="ttname"><a href="classpism_1_1energy_1_1Inputs_a40f4bc36fbbe87bb660bbe5a4d821162.html#a40f4bc36fbbe87bb660bbe5a4d821162">pism::energy::Inputs::ice_thickness</a></div><div class="ttdeci">const array::Scalar1 * ice_thickness</div><div class="ttdef"><b>Definition:</b> <a href="EnergyModel_8hh_source.html#l00046">EnergyModel.hh:46</a></div></div>
<div class="ttc" id="aclasspism_1_1energy_1_1Inputs_a4eb1e47db7b0b4ae22ac4d39383f4357_html_a4eb1e47db7b0b4ae22ac4d39383f4357"><div class="ttname"><a href="classpism_1_1energy_1_1Inputs_a4eb1e47db7b0b4ae22ac4d39383f4357.html#a4eb1e47db7b0b4ae22ac4d39383f4357">pism::energy::Inputs::w3</a></div><div class="ttdeci">const array::Array3D * w3</div><div class="ttdef"><b>Definition:</b> <a href="EnergyModel_8hh_source.html#l00055">EnergyModel.hh:55</a></div></div>
<div class="ttc" id="aclasspism_1_1energy_1_1Inputs_a51f1575d347afa08699481450d30c99d_html_a51f1575d347afa08699481450d30c99d"><div class="ttname"><a href="classpism_1_1energy_1_1Inputs_a51f1575d347afa08699481450d30c99d.html#a51f1575d347afa08699481450d30c99d">pism::energy::Inputs::check</a></div><div class="ttdeci">void check() const</div><div class="ttdef"><b>Definition:</b> <a href="EnergyModel_8cc_source.html#l00058">EnergyModel.cc:58</a></div></div>
<div class="ttc" id="aclasspism_1_1energy_1_1Inputs_a76e3ab920c19e444c743fe867c37ec07_html_a76e3ab920c19e444c743fe867c37ec07"><div class="ttname"><a href="classpism_1_1energy_1_1Inputs_a76e3ab920c19e444c743fe867c37ec07.html#a76e3ab920c19e444c743fe867c37ec07">pism::energy::Inputs::v3</a></div><div class="ttdeci">const array::Array3D * v3</div><div class="ttdef"><b>Definition:</b> <a href="EnergyModel_8hh_source.html#l00054">EnergyModel.hh:54</a></div></div>
<div class="ttc" id="aclasspism_1_1energy_1_1Inputs_a7fffde85dffc8f6cd0e7e80ec600ec04_html_a7fffde85dffc8f6cd0e7e80ec600ec04"><div class="ttname"><a href="classpism_1_1energy_1_1Inputs_a7fffde85dffc8f6cd0e7e80ec600ec04.html#a7fffde85dffc8f6cd0e7e80ec600ec04">pism::energy::Inputs::shelf_base_temp</a></div><div class="ttdeci">const array::Scalar * shelf_base_temp</div><div class="ttdef"><b>Definition:</b> <a href="EnergyModel_8hh_source.html#l00048">EnergyModel.hh:48</a></div></div>
<div class="ttc" id="aclasspism_1_1energy_1_1Inputs_a8439627000d4b2d2c054bbd54d9b3a6a_html_a8439627000d4b2d2c054bbd54d9b3a6a"><div class="ttname"><a href="classpism_1_1energy_1_1Inputs_a8439627000d4b2d2c054bbd54d9b3a6a.html#a8439627000d4b2d2c054bbd54d9b3a6a">pism::energy::Inputs::basal_heat_flux</a></div><div class="ttdeci">const array::Scalar * basal_heat_flux</div><div class="ttdef"><b>Definition:</b> <a href="EnergyModel_8hh_source.html#l00045">EnergyModel.hh:45</a></div></div>
<div class="ttc" id="aclasspism_1_1energy_1_1Inputs_ab55c68038b847f0f37858451796a6d30_html_ab55c68038b847f0f37858451796a6d30"><div class="ttname"><a href="classpism_1_1energy_1_1Inputs_ab55c68038b847f0f37858451796a6d30.html#ab55c68038b847f0f37858451796a6d30">pism::energy::Inputs::basal_frictional_heating</a></div><div class="ttdeci">const array::Scalar * basal_frictional_heating</div><div class="ttdef"><b>Definition:</b> <a href="EnergyModel_8hh_source.html#l00044">EnergyModel.hh:44</a></div></div>
<div class="ttc" id="aclasspism_1_1energy_1_1Inputs_acd819e7d3e46c4a17564b108b0eaef3f_html_acd819e7d3e46c4a17564b108b0eaef3f"><div class="ttname"><a href="classpism_1_1energy_1_1Inputs_acd819e7d3e46c4a17564b108b0eaef3f.html#acd819e7d3e46c4a17564b108b0eaef3f">pism::energy::Inputs::u3</a></div><div class="ttdeci">const array::Array3D * u3</div><div class="ttdef"><b>Definition:</b> <a href="EnergyModel_8hh_source.html#l00053">EnergyModel.hh:53</a></div></div>
<div class="ttc" id="aclasspism_1_1energy_1_1Inputs_ad503e84d24876426dd871a409a8d9ecd_html_ad503e84d24876426dd871a409a8d9ecd"><div class="ttname"><a href="classpism_1_1energy_1_1Inputs_ad503e84d24876426dd871a409a8d9ecd.html#ad503e84d24876426dd871a409a8d9ecd">pism::energy::Inputs::surface_temp</a></div><div class="ttdeci">const array::Scalar * surface_temp</div><div class="ttdef"><b>Definition:</b> <a href="EnergyModel_8hh_source.html#l00049">EnergyModel.hh:49</a></div></div>
<div class="ttc" id="aclasspism_1_1energy_1_1Inputs_adc663f9922b44644439e5b349fce0013_html_adc663f9922b44644439e5b349fce0013"><div class="ttname"><a href="classpism_1_1energy_1_1Inputs_adc663f9922b44644439e5b349fce0013.html#adc663f9922b44644439e5b349fce0013">pism::energy::Inputs::cell_type</a></div><div class="ttdeci">const array::CellType * cell_type</div><div class="ttdef"><b>Definition:</b> <a href="EnergyModel_8hh_source.html#l00043">EnergyModel.hh:43</a></div></div>
<div class="ttc" id="aclasspism_1_1energy_1_1Inputs_ae72c72650b039813ad10d610740c4a3a_html_ae72c72650b039813ad10d610740c4a3a"><div class="ttname"><a href="classpism_1_1energy_1_1Inputs_ae72c72650b039813ad10d610740c4a3a.html#ae72c72650b039813ad10d610740c4a3a">pism::energy::Inputs::volumetric_heating_rate</a></div><div class="ttdeci">const array::Array3D * volumetric_heating_rate</div><div class="ttdef"><b>Definition:</b> <a href="EnergyModel_8hh_source.html#l00052">EnergyModel.hh:52</a></div></div>
<div class="ttc" id="aclasspism_1_1energy_1_1Inputs_html"><div class="ttname"><a href="classpism_1_1energy_1_1Inputs.html">pism::energy::Inputs</a></div><div class="ttdef"><b>Definition:</b> <a href="EnergyModel_8hh_source.html#l00038">EnergyModel.hh:38</a></div></div>
<div class="ttc" id="aclasspism_1_1energy_1_1enthSystemCtx_a21a54e9cda5138ffb0435cbd452afca3_html_a21a54e9cda5138ffb0435cbd452afca3"><div class="ttname"><a href="classpism_1_1energy_1_1enthSystemCtx_a21a54e9cda5138ffb0435cbd452afca3.html#a21a54e9cda5138ffb0435cbd452afca3">pism::energy::enthSystemCtx::lambda</a></div><div class="ttdeci">double lambda() const</div><div class="ttdef"><b>Definition:</b> <a href="enthSystem_8hh_source.html#l00069">enthSystem.hh:69</a></div></div>
<div class="ttc" id="aclasspism_1_1energy_1_1enthSystemCtx_a8966a7a4c21bd1e7a4f3d1b8423ea918_html_a8966a7a4c21bd1e7a4f3d1b8423ea918"><div class="ttname"><a href="classpism_1_1energy_1_1enthSystemCtx_a8966a7a4c21bd1e7a4f3d1b8423ea918.html#a8966a7a4c21bd1e7a4f3d1b8423ea918">pism::energy::enthSystemCtx::init</a></div><div class="ttdeci">void init(int i, int j, bool ismarginal, double ice_thickness)</div><div class="ttdef"><b>Definition:</b> <a href="enthSystem_8cc_source.html#l00110">enthSystem.cc:110</a></div></div>
<div class="ttc" id="aclasspism_1_1energy_1_1enthSystemCtx_acaed602a22379551741299ca0fcd117d_html_acaed602a22379551741299ca0fcd117d"><div class="ttname"><a href="classpism_1_1energy_1_1enthSystemCtx_acaed602a22379551741299ca0fcd117d.html#acaed602a22379551741299ca0fcd117d">pism::energy::enthSystemCtx::set_basal_heat_flux</a></div><div class="ttdeci">void set_basal_heat_flux(double heat_flux)</div><div class="ttdoc">Set coefficients in discrete equation for Neumann condition at base of ice.</div><div class="ttdef"><b>Definition:</b> <a href="enthSystem_8cc_source.html#l00328">enthSystem.cc:328</a></div></div>
<div class="ttc" id="aclasspism_1_1energy_1_1enthSystemCtx_ae82adc4a313cfc9eb95d8d3bfe408f35_html_ae82adc4a313cfc9eb95d8d3bfe408f35"><div class="ttname"><a href="classpism_1_1energy_1_1enthSystemCtx_ae82adc4a313cfc9eb95d8d3bfe408f35.html#ae82adc4a313cfc9eb95d8d3bfe408f35">pism::energy::enthSystemCtx::solve</a></div><div class="ttdeci">void solve(std::vector< double > &result)</div><div class="ttdoc">Solve the tridiagonal system, in a single column, which determines the new values of the ice enthalpy...</div><div class="ttdef"><b>Definition:</b> <a href="enthSystem_8cc_source.html#l00480">enthSystem.cc:480</a></div></div>
<div class="ttc" id="aclasspism_1_1energy_1_1enthSystemCtx_af2cc0c06e54ae20221403377ba9295f4_html_af2cc0c06e54ae20221403377ba9295f4"><div class="ttname"><a href="classpism_1_1energy_1_1enthSystemCtx_af2cc0c06e54ae20221403377ba9295f4.html#af2cc0c06e54ae20221403377ba9295f4">pism::energy::enthSystemCtx::set_basal_dirichlet_bc</a></div><div class="ttdeci">void set_basal_dirichlet_bc(double E_basal)</div><div class="ttdoc">Set coefficients in discrete equation for at base of ice.</div><div class="ttdef"><b>Definition:</b> <a href="enthSystem_8cc_source.html#l00278">enthSystem.cc:278</a></div></div>
<div class="ttc" id="aclasspism_1_1energy_1_1enthSystemCtx_afd04a1a2732c19cdbdbccba8582bac9f_html_afd04a1a2732c19cdbdbccba8582bac9f"><div class="ttname"><a href="classpism_1_1energy_1_1enthSystemCtx_afd04a1a2732c19cdbdbccba8582bac9f.html#afd04a1a2732c19cdbdbccba8582bac9f">pism::energy::enthSystemCtx::set_surface_dirichlet_bc</a></div><div class="ttdeci">void set_surface_dirichlet_bc(double E_surface)</div><div class="ttdef"><b>Definition:</b> <a href="enthSystem_8cc_source.html#l00186">enthSystem.cc:186</a></div></div>
<div class="ttc" id="aclasspism_1_1energy_1_1enthSystemCtx_html"><div class="ttname"><a href="classpism_1_1energy_1_1enthSystemCtx.html">pism::energy::enthSystemCtx</a></div><div class="ttdoc">Tridiagonal linear system for conservation of energy in vertical column of ice enthalpy.</div><div class="ttdef"><b>Definition:</b> <a href="enthSystem_8hh_source.html#l00038">enthSystem.hh:38</a></div></div>
<div class="ttc" id="anamespacepism_1_1array_a8957d08741c6f48d1e554ac7ea98530a_html_a8957d08741c6f48d1e554ac7ea98530a"><div class="ttname"><a href="namespacepism_1_1array_a8957d08741c6f48d1e554ac7ea98530a.html#a8957d08741c6f48d1e554ac7ea98530a">pism::array::max</a></div><div class="ttdeci">double max(const array::Scalar &input)</div><div class="ttdoc">Finds maximum over all the values in an array::Scalar object. Ignores ghosts.</div><div class="ttdef"><b>Definition:</b> <a href="Scalar_8cc_source.html#l00165">Scalar.cc:165</a></div></div>
<div class="ttc" id="anamespacepism_1_1energy_a254332ce85be26e97493d8d2814d8989_html_a254332ce85be26e97493d8d2814d8989"><div class="ttname"><a href="namespacepism_1_1energy_a254332ce85be26e97493d8d2814d8989.html#a254332ce85be26e97493d8d2814d8989">pism::energy::cryo_hydrologic_warming_flux</a></div><div class="ttdeci">void cryo_hydrologic_warming_flux(double k, double R, const array::Scalar &ice_thickness, const array::Array3D &ice_enthalpy, const array::Array3D &ch_enthalpy, array::Array3D &result)</div><div class="ttdef"><b>Definition:</b> <a href="CHSystem_8cc_source.html#l00251">CHSystem.cc:251</a></div></div>
<div class="ttc" id="anamespacepism_1_1energy_a5947863588636523462b5766409acf47_html_a5947863588636523462b5766409acf47"><div class="ttname"><a href="namespacepism_1_1energy_a5947863588636523462b5766409acf47.html#a5947863588636523462b5766409acf47">pism::energy::marginal</a></div><div class="ttdeci">bool marginal(const array::Scalar1 &thickness, int i, int j, double threshold)</div><div class="ttdef"><b>Definition:</b> <a href="EnergyModel_8cc_source.html#l00090">EnergyModel.cc:90</a></div></div>
<div class="ttc" id="anamespacepism_1_1energy_a90e99e8a1c1c6fcd1822a194ca7830c4_html_a90e99e8a1c1c6fcd1822a194ca7830c4"><div class="ttname"><a href="namespacepism_1_1energy_a90e99e8a1c1c6fcd1822a194ca7830c4.html#a90e99e8a1c1c6fcd1822a194ca7830c4">pism::energy::bootstrap_ice_enthalpy</a></div><div class="ttdeci">void bootstrap_ice_enthalpy(const array::Scalar &ice_thickness, const array::Scalar &ice_surface_temp, const array::Scalar &surface_mass_balance, const array::Scalar &basal_heat_flux, array::Array3D &result)</div><div class="ttdef"><b>Definition:</b> <a href="energy_2utilities_8cc_source.html#l00439">utilities.cc:439</a></div></div>
<div class="ttc" id="anamespacepism_1_1fem_ae2f57ac21774f132ef388b3de9cde364_html_ae2f57ac21774f132ef388b3de9cde364"><div class="ttname"><a href="namespacepism_1_1fem_ae2f57ac21774f132ef388b3de9cde364.html#ae2f57ac21774f132ef388b3de9cde364">pism::fem::column</a></div><div class="ttdeci">static Vector3 column(const double A[3][3], size_t k)</div><div class="ttdef"><b>Definition:</b> <a href="Element_8cc_source.html#l00051">Element.cc:51</a></div></div>
<div class="ttc" id="anamespacepism_1_1io_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_a6154a990ba873c6ca606d8a320c441ac_html_a6154a990ba873c6ca606d8a320c441ac"><div class="ttname"><a href="namespacepism_a6154a990ba873c6ca606d8a320c441ac.html#a6154a990ba873c6ca606d8a320c441ac">pism::DiagnosticList</a></div><div class="ttdeci">std::map< std::string, Diagnostic::Ptr > DiagnosticList</div><div class="ttdef"><b>Definition:</b> <a href="Diagnostic_8hh_source.html#l00125">Diagnostic.hh:125</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="assafd__code_8cc_ab9fa28b42de51e2c90f27a6cce207b85_html_ab9fa28b42de51e2c90f27a6cce207b85"><div class="ttname"><a href="ssafd__code_8cc_ab9fa28b42de51e2c90f27a6cce207b85.html#ab9fa28b42de51e2c90f27a6cce207b85">C</a></div><div class="ttdeci">const int C[]</div><div class="ttdef"><b>Definition:</b> <a href="ssafd__code_8cc_source.html#l00044">ssafd_code.cc:44</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>