-
Notifications
You must be signed in to change notification settings - Fork 0
/
BedDef_8cc_source.html
353 lines (351 loc) · 75.9 KB
/
BedDef_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
<!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/earth/BedDef.cc Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
extensions: ["tex2jax.js"],
jax: ["input/TeX","output/HTML-CSS"],
});
</script>
<script type="text/javascript" async="async" src="https://cdn.jsdelivr.net/npm/mathjax@2/MathJax.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="browser.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">PISM, A Parallel Ice Sheet Model
 <span id="projectnumber">stable v2.1.1 committed by Constantine Khrulev on 2024-12-04 13:36:58 -0900</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_bd6cf25b8a2a2d51ccf43c15340b9536.html">earth</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">BedDef.cc</div> </div>
</div><!--header-->
<div class="contents">
<a href="BedDef_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) 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2022, 2023 Constantine Khroulev</span></div>
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">//</span></div>
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment">// This file is part of PISM.</span></div>
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment">//</span></div>
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment">// PISM is free software; you can redistribute it and/or modify it under the</span></div>
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment">// terms of the GNU General Public License as published by the Free Software</span></div>
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment">// Foundation; either version 3 of the License, or (at your option) any later</span></div>
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment">// version.</span></div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment">//</span></div>
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment">// PISM is distributed in the hope that it will be useful, but WITHOUT ANY</span></div>
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment">// WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS</span></div>
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment">// FOR A PARTICULAR PURPOSE. See the GNU General Public License for more</span></div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment">// details.</span></div>
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment">//</span></div>
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment">// You should have received a copy of the GNU General Public License</span></div>
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment">// along with PISM; if not, write to the Free Software</span></div>
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment">// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA</span></div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>  </div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="preprocessor">#include "pism/earth/BedDef.hh"</span></div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="preprocessor">#include "pism/util/Grid.hh"</span></div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#include "pism/util/ConfigInterface.hh"</span></div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor">#include "pism/util/Context.hh"</span></div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>  </div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="keyword">namespace </span><a class="code" href="namespacepism.html">pism</a> {</div>
<div class="line"><a name="l00025"></a><span class="lineno"><a class="line" href="namespacepism_1_1bed.html"> 25</a></span> <span class="keyword">namespace </span>bed {</div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>  </div>
<div class="line"><a name="l00027"></a><span class="lineno"><a class="line" href="classpism_1_1bed_1_1BedDef_a8ed0cb71c8e8b31e37f129ab3f9a37b3.html#a8ed0cb71c8e8b31e37f129ab3f9a37b3"> 27</a></span> <a class="code" href="classpism_1_1bed_1_1BedDef_a8ed0cb71c8e8b31e37f129ab3f9a37b3.html#a8ed0cb71c8e8b31e37f129ab3f9a37b3">BedDef::BedDef</a>(std::shared_ptr<const Grid> grid)</div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  : <a class="code" href="classpism_1_1Component.html">Component</a>(grid),</div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  m_wide_stencil(m_config->get_number(<span class="stringliteral">"grid.max_stencil_width"</span>)),</div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  m_topg(m_grid, <span class="stringliteral">"topg"</span>),</div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  m_topg_last(m_grid, <span class="stringliteral">"topg"</span>),</div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  m_uplift(m_grid, <span class="stringliteral">"dbdt"</span>)</div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span> {</div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  </div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  <a class="code" href="classpism_1_1bed_1_1BedDef_a81f07e00ef5de3b7deec999b4febabcc.html#a81f07e00ef5de3b7deec999b4febabcc">m_topg</a>.<a class="code" href="classpism_1_1array_1_1Array_af9eece42153cd03bfc8ba237ae5310c4.html#af9eece42153cd03bfc8ba237ae5310c4">metadata</a>(0)</div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  .<a class="code" href="classpism_1_1VariableMetadata_a5e378cf7077ab00a808ef446a79dc34d.html#a5e378cf7077ab00a808ef446a79dc34d">long_name</a>(<span class="stringliteral">"bedrock surface elevation"</span>)</div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  .<a class="code" href="classpism_1_1VariableMetadata_ae73185be0693a8607b8e0f74558e11e4.html#ae73185be0693a8607b8e0f74558e11e4">units</a>(<span class="stringliteral">"m"</span>)</div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  .<a class="code" href="classpism_1_1VariableMetadata_a2b7791d4794fd3deb3838e75b495ce33.html#a2b7791d4794fd3deb3838e75b495ce33">standard_name</a>(<span class="stringliteral">"bedrock_altitude"</span>);</div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  </div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  <a class="code" href="classpism_1_1bed_1_1BedDef_a67a44c4008ee6989c1c0ac3ef8276fa4.html#a67a44c4008ee6989c1c0ac3ef8276fa4">m_topg_last</a>.<a class="code" href="classpism_1_1array_1_1Array_af9eece42153cd03bfc8ba237ae5310c4.html#af9eece42153cd03bfc8ba237ae5310c4">metadata</a>(0)</div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  .<a class="code" href="classpism_1_1VariableMetadata_a5e378cf7077ab00a808ef446a79dc34d.html#a5e378cf7077ab00a808ef446a79dc34d">long_name</a>(<span class="stringliteral">"bedrock surface elevation"</span>)</div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  .<a class="code" href="classpism_1_1VariableMetadata_ae73185be0693a8607b8e0f74558e11e4.html#ae73185be0693a8607b8e0f74558e11e4">units</a>(<span class="stringliteral">"m"</span>)</div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  .<a class="code" href="classpism_1_1VariableMetadata_a2b7791d4794fd3deb3838e75b495ce33.html#a2b7791d4794fd3deb3838e75b495ce33">standard_name</a>(<span class="stringliteral">"bedrock_altitude"</span>);</div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  </div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  <a class="code" href="classpism_1_1bed_1_1BedDef_aae163c699051ee20349b893a343d1a2a.html#aae163c699051ee20349b893a343d1a2a">m_uplift</a>.<a class="code" href="classpism_1_1array_1_1Array_af9eece42153cd03bfc8ba237ae5310c4.html#af9eece42153cd03bfc8ba237ae5310c4">metadata</a>(0)</div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  .<a class="code" href="classpism_1_1VariableMetadata_a5e378cf7077ab00a808ef446a79dc34d.html#a5e378cf7077ab00a808ef446a79dc34d">long_name</a>(<span class="stringliteral">"bedrock uplift rate"</span>)</div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  .<a class="code" href="classpism_1_1VariableMetadata_ae73185be0693a8607b8e0f74558e11e4.html#ae73185be0693a8607b8e0f74558e11e4">units</a>(<span class="stringliteral">"m s-1"</span>)</div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  .<a class="code" href="classpism_1_1VariableMetadata_a2b7791d4794fd3deb3838e75b495ce33.html#a2b7791d4794fd3deb3838e75b495ce33">standard_name</a>(<span class="stringliteral">"tendency_of_bedrock_altitude"</span>);</div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span> }</div>
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  </div>
<div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="classpism_1_1bed_1_1BedDef_ac6be925d2b8a3a4994d10636df4954b9.html#ac6be925d2b8a3a4994d10636df4954b9"> 51</a></span> <span class="keyword">const</span> <a class="code" href="classpism_1_1array_1_1Scalar.html">array::Scalar</a> &<a class="code" href="classpism_1_1bed_1_1BedDef_ac6be925d2b8a3a4994d10636df4954b9.html#ac6be925d2b8a3a4994d10636df4954b9">BedDef::bed_elevation</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  <span class="keywordflow">return</span> <a class="code" href="classpism_1_1bed_1_1BedDef_a81f07e00ef5de3b7deec999b4febabcc.html#a81f07e00ef5de3b7deec999b4febabcc">m_topg</a>;</div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span> }</div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  </div>
<div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="classpism_1_1bed_1_1BedDef_ab864f5da11db7bcae52e2bfe6fe7a8af.html#ab864f5da11db7bcae52e2bfe6fe7a8af"> 55</a></span> <span class="keyword">const</span> <a class="code" href="classpism_1_1array_1_1Scalar.html">array::Scalar</a> &<a class="code" href="classpism_1_1bed_1_1BedDef_ab864f5da11db7bcae52e2bfe6fe7a8af.html#ab864f5da11db7bcae52e2bfe6fe7a8af">BedDef::uplift</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  <span class="keywordflow">return</span> <a class="code" href="classpism_1_1bed_1_1BedDef_aae163c699051ee20349b893a343d1a2a.html#aae163c699051ee20349b893a343d1a2a">m_uplift</a>;</div>
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span> }</div>
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  </div>
<div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="classpism_1_1bed_1_1BedDef_a432572d80406df7620308bfc1e6506de.html#a432572d80406df7620308bfc1e6506de"> 59</a></span> <span class="keywordtype">void</span> <a class="code" href="classpism_1_1bed_1_1BedDef_a432572d80406df7620308bfc1e6506de.html#a432572d80406df7620308bfc1e6506de">BedDef::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="l00060"></a><span class="lineno"> 60</span>  <a class="code" href="classpism_1_1bed_1_1BedDef_aae163c699051ee20349b893a343d1a2a.html#aae163c699051ee20349b893a343d1a2a">m_uplift</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="l00061"></a><span class="lineno"> 61</span>  <a class="code" href="classpism_1_1bed_1_1BedDef_a81f07e00ef5de3b7deec999b4febabcc.html#a81f07e00ef5de3b7deec999b4febabcc">m_topg</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="l00062"></a><span class="lineno"> 62</span> }</div>
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  </div>
<div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="classpism_1_1bed_1_1BedDef_a18e5652bb7916fa9c4cdb5cfdaa5b906.html#a18e5652bb7916fa9c4cdb5cfdaa5b906"> 64</a></span> <span class="keywordtype">void</span> <a class="code" href="classpism_1_1bed_1_1BedDef_a18e5652bb7916fa9c4cdb5cfdaa5b906.html#a18e5652bb7916fa9c4cdb5cfdaa5b906">BedDef::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="l00065"></a><span class="lineno"> 65</span>  <a class="code" href="classpism_1_1bed_1_1BedDef_aae163c699051ee20349b893a343d1a2a.html#aae163c699051ee20349b893a343d1a2a">m_uplift</a>.<a class="code" href="classpism_1_1array_1_1Array_a4cdaeb827d166a076668d2ab86416793.html#a4cdaeb827d166a076668d2ab86416793">write</a>(output);</div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  <a class="code" href="classpism_1_1bed_1_1BedDef_a81f07e00ef5de3b7deec999b4febabcc.html#a81f07e00ef5de3b7deec999b4febabcc">m_topg</a>.<a class="code" href="classpism_1_1array_1_1Array_a4cdaeb827d166a076668d2ab86416793.html#a4cdaeb827d166a076668d2ab86416793">write</a>(output);</div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span> }</div>
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  </div>
<div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="classpism_1_1bed_1_1BedDef_a1aa2959595826063e459b756abfb73af.html#a1aa2959595826063e459b756abfb73af"> 69</a></span> <a class="code" href="namespacepism_a6154a990ba873c6ca606d8a320c441ac.html#a6154a990ba873c6ca606d8a320c441ac">DiagnosticList</a> <a class="code" href="classpism_1_1bed_1_1BedDef_a1aa2959595826063e459b756abfb73af.html#a1aa2959595826063e459b756abfb73af">BedDef::diagnostics_impl</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  <a class="code" href="namespacepism_a6154a990ba873c6ca606d8a320c441ac.html#a6154a990ba873c6ca606d8a320c441ac">DiagnosticList</a> result;</div>
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  result = { { <span class="stringliteral">"dbdt"</span>, <a class="code" href="classpism_1_1Diagnostic_a2648c1bc92c5e333ecad30e9a5687ea9.html#a2648c1bc92c5e333ecad30e9a5687ea9">Diagnostic::wrap</a>(<a class="code" href="classpism_1_1bed_1_1BedDef_aae163c699051ee20349b893a343d1a2a.html#aae163c699051ee20349b893a343d1a2a">m_uplift</a>) }, { <span class="stringliteral">"topg"</span>, <a class="code" href="classpism_1_1Diagnostic_a2648c1bc92c5e333ecad30e9a5687ea9.html#a2648c1bc92c5e333ecad30e9a5687ea9">Diagnostic::wrap</a>(<a class="code" href="classpism_1_1bed_1_1BedDef_a81f07e00ef5de3b7deec999b4febabcc.html#a81f07e00ef5de3b7deec999b4febabcc">m_topg</a>) } };</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>  <span class="keywordflow">return</span> result;</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_1bed_1_1BedDef_a66ef0bdfce3ede4f98d5bb1889691879.html#a66ef0bdfce3ede4f98d5bb1889691879"> 76</a></span> <span class="keywordtype">void</span> <a class="code" href="classpism_1_1bed_1_1BedDef_a66ef0bdfce3ede4f98d5bb1889691879.html#a66ef0bdfce3ede4f98d5bb1889691879">BedDef::init</a>(<span class="keyword">const</span> <a class="code" href="structpism_1_1InputOptions.html">InputOptions</a> &opts, <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="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> &sea_level_elevation) {</div>
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  this-><a class="code" href="classpism_1_1bed_1_1BedDef_a86f2efe7f454589ff3337cee6a8a85f1.html#a86f2efe7f454589ff3337cee6a8a85f1">init_impl</a>(opts, ice_thickness, sea_level_elevation);</div>
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span> }</div>
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span> <span class="comment"></span> </div>
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span> <span class="comment">//! Initialize using provided bed elevation and uplift.</span></div>
<div class="line"><a name="l00082"></a><span class="lineno"><a class="line" href="classpism_1_1bed_1_1BedDef_a7c744cc807f2de03773ab25475fea2ad.html#a7c744cc807f2de03773ab25475fea2ad"> 82</a></span> <span class="comment"></span><span class="keywordtype">void</span> <a class="code" href="classpism_1_1bed_1_1BedDef_a7c744cc807f2de03773ab25475fea2ad.html#a7c744cc807f2de03773ab25475fea2ad">BedDef::bootstrap</a>(<span class="keyword">const</span> <a class="code" href="classpism_1_1array_1_1Scalar.html">array::Scalar</a> &bed_elevation, <span class="keyword">const</span> <a class="code" href="classpism_1_1array_1_1Scalar.html">array::Scalar</a> &bed_uplift,</div>
<div class="line"><a name="l00083"></a><span class="lineno"> 83</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="l00084"></a><span class="lineno"> 84</span>  <span class="keyword">const</span> <a class="code" href="classpism_1_1array_1_1Scalar.html">array::Scalar</a> &sea_level_elevation) {</div>
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  this-><a class="code" href="classpism_1_1bed_1_1BedDef_a594a537f262d96b47a7cc527607f092b.html#a594a537f262d96b47a7cc527607f092b">bootstrap_impl</a>(bed_elevation, bed_uplift, ice_thickness, sea_level_elevation);</div>
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span> }</div>
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  </div>
<div class="line"><a name="l00088"></a><span class="lineno"><a class="line" href="classpism_1_1bed_1_1BedDef_a594a537f262d96b47a7cc527607f092b.html#a594a537f262d96b47a7cc527607f092b"> 88</a></span> <span class="keywordtype">void</span> <a class="code" href="classpism_1_1bed_1_1BedDef_a594a537f262d96b47a7cc527607f092b.html#a594a537f262d96b47a7cc527607f092b">BedDef::bootstrap_impl</a>(<span class="keyword">const</span> <a class="code" href="classpism_1_1array_1_1Scalar.html">array::Scalar</a> &bed_elevation, <span class="keyword">const</span> <a class="code" href="classpism_1_1array_1_1Scalar.html">array::Scalar</a> &bed_uplift,</div>
<div class="line"><a name="l00089"></a><span class="lineno"> 89</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="l00090"></a><span class="lineno"> 90</span>  <span class="keyword">const</span> <a class="code" href="classpism_1_1array_1_1Scalar.html">array::Scalar</a> &sea_level_elevation) {</div>
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  <a class="code" href="classpism_1_1bed_1_1BedDef_a81f07e00ef5de3b7deec999b4febabcc.html#a81f07e00ef5de3b7deec999b4febabcc">m_topg</a>.<a class="code" href="classpism_1_1array_1_1Array2D_a7b9a0d8a83d5379f1debdcefce0fffae.html#a7b9a0d8a83d5379f1debdcefce0fffae">copy_from</a>(<a class="code" href="classpism_1_1bed_1_1BedDef_ac6be925d2b8a3a4994d10636df4954b9.html#ac6be925d2b8a3a4994d10636df4954b9">bed_elevation</a>);</div>
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  <a class="code" href="classpism_1_1bed_1_1BedDef_aae163c699051ee20349b893a343d1a2a.html#aae163c699051ee20349b893a343d1a2a">m_uplift</a>.<a class="code" href="classpism_1_1array_1_1Array2D_a7b9a0d8a83d5379f1debdcefce0fffae.html#a7b9a0d8a83d5379f1debdcefce0fffae">copy_from</a>(bed_uplift);</div>
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  </div>
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  <span class="comment">// suppress a compiler warning:</span></div>
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  (void)ice_thickness;</div>
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  (void)sea_level_elevation;</div>
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span> }</div>
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  </div>
<div class="line"><a name="l00099"></a><span class="lineno"><a class="line" href="classpism_1_1bed_1_1BedDef_a753c0498dee5ee7db6b2129a6de6db70.html#a753c0498dee5ee7db6b2129a6de6db70"> 99</a></span> <span class="keywordtype">void</span> <a class="code" href="classpism_1_1bed_1_1BedDef_a753c0498dee5ee7db6b2129a6de6db70.html#a753c0498dee5ee7db6b2129a6de6db70">BedDef::update</a>(<span class="keyword">const</span> <a class="code" href="classpism_1_1array_1_1Scalar.html">array::Scalar</a> &ice_thickness, <span class="keyword">const</span> <a class="code" href="classpism_1_1array_1_1Scalar.html">array::Scalar</a> &sea_level_elevation,</div>
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  <span class="keywordtype">double</span> t, <span class="keywordtype">double</span> dt) {</div>
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  this-><a class="code" href="classpism_1_1bed_1_1BedDef_a5cb44d4b40e7c254751d3fce3f366c4c.html#a5cb44d4b40e7c254751d3fce3f366c4c">update_impl</a>(ice_thickness, sea_level_elevation, t, dt);</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="comment"></span> </div>
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span> <span class="comment">//! Initialize from the context (input file and the "variables" database).</span></div>
<div class="line"><a name="l00105"></a><span class="lineno"><a class="line" href="classpism_1_1bed_1_1BedDef_a86f2efe7f454589ff3337cee6a8a85f1.html#a86f2efe7f454589ff3337cee6a8a85f1"> 105</a></span> <span class="comment"></span><span class="keywordtype">void</span> <a class="code" href="classpism_1_1bed_1_1BedDef_a86f2efe7f454589ff3337cee6a8a85f1.html#a86f2efe7f454589ff3337cee6a8a85f1">BedDef::init_impl</a>(<span class="keyword">const</span> <a class="code" href="structpism_1_1InputOptions.html">InputOptions</a> &opts, <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="l00106"></a><span class="lineno"> 106</span>  <span class="keyword">const</span> <a class="code" href="classpism_1_1array_1_1Scalar.html">array::Scalar</a> &sea_level_elevation) {</div>
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  (void)ice_thickness;</div>
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  (void)sea_level_elevation;</div>
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  </div>
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  <span class="keywordflow">switch</span> (opts.<a class="code" href="structpism_1_1InputOptions_a0fe5db51286e55c31b1575dc9ecc5d70.html#a0fe5db51286e55c31b1575dc9ecc5d70">type</a>) {</div>
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  <span class="keywordflow">case</span> <a class="code" href="namespacepism_a56e80801555b7f36f4dd28941739654a.html#a56e80801555b7f36f4dd28941739654aa6aff4b43552f00d5cc331453ff4029bc">INIT_RESTART</a>:</div>
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  <span class="comment">// read bed elevation and uplift rate from file</span></div>
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  <a class="code" href="classpism_1_1Component_a29575eba605feccf4403d6b4ff0954a4.html#a29575eba605feccf4403d6b4ff0954a4">m_log</a>->message(2, <span class="stringliteral">" reading bed topography and uplift from %s ... \n"</span>,</div>
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  opts.<a class="code" href="structpism_1_1InputOptions_a2dc298f0e83b951fa1df5eab910639e5.html#a2dc298f0e83b951fa1df5eab910639e5">filename</a>.c_str());</div>
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  <span class="comment">// re-starting</span></div>
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  <a class="code" href="classpism_1_1bed_1_1BedDef_a81f07e00ef5de3b7deec999b4febabcc.html#a81f07e00ef5de3b7deec999b4febabcc">m_topg</a>.<a class="code" href="classpism_1_1array_1_1Array_a0326efd779d857755513901da9a54992.html#a0326efd779d857755513901da9a54992">read</a>(opts.<a class="code" href="structpism_1_1InputOptions_a2dc298f0e83b951fa1df5eab910639e5.html#a2dc298f0e83b951fa1df5eab910639e5">filename</a>, opts.<a class="code" href="structpism_1_1InputOptions_ae33c7fb4ca1317444d959bc3e1514ba4.html#ae33c7fb4ca1317444d959bc3e1514ba4">record</a>); <span class="comment">// fails if not found!</span></div>
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  <a class="code" href="classpism_1_1bed_1_1BedDef_aae163c699051ee20349b893a343d1a2a.html#aae163c699051ee20349b893a343d1a2a">m_uplift</a>.<a class="code" href="classpism_1_1array_1_1Array_a0326efd779d857755513901da9a54992.html#a0326efd779d857755513901da9a54992">read</a>(opts.<a class="code" href="structpism_1_1InputOptions_a2dc298f0e83b951fa1df5eab910639e5.html#a2dc298f0e83b951fa1df5eab910639e5">filename</a>, opts.<a class="code" href="structpism_1_1InputOptions_ae33c7fb4ca1317444d959bc3e1514ba4.html#ae33c7fb4ca1317444d959bc3e1514ba4">record</a>); <span class="comment">// fails if not found!</span></div>
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  <span class="keywordflow">case</span> <a class="code" href="namespacepism_a56e80801555b7f36f4dd28941739654a.html#a56e80801555b7f36f4dd28941739654aa260aa6280296d9fffc338c9ecdaba861">INIT_BOOTSTRAP</a>:</div>
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  <span class="comment">// bootstrapping</span></div>
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  <a class="code" href="classpism_1_1bed_1_1BedDef_a81f07e00ef5de3b7deec999b4febabcc.html#a81f07e00ef5de3b7deec999b4febabcc">m_topg</a>.<a class="code" href="classpism_1_1array_1_1Array_aa7de6be7e8f785321df81d9fd6518a16.html#aa7de6be7e8f785321df81d9fd6518a16">regrid</a>(opts.<a class="code" href="structpism_1_1InputOptions_a2dc298f0e83b951fa1df5eab910639e5.html#a2dc298f0e83b951fa1df5eab910639e5">filename</a>, <a class="code" href="classpism_1_1io_1_1Default.html">io::Default</a>(<a class="code" href="classpism_1_1Component_a28f298fc2133baae8cebf9dedf3b4d84.html#a28f298fc2133baae8cebf9dedf3b4d84">m_config</a>->get_number(<span class="stringliteral">"bootstrapping.defaults.bed"</span>)));</div>
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  <a class="code" href="classpism_1_1bed_1_1BedDef_aae163c699051ee20349b893a343d1a2a.html#aae163c699051ee20349b893a343d1a2a">m_uplift</a>.<a class="code" href="classpism_1_1array_1_1Array_aa7de6be7e8f785321df81d9fd6518a16.html#aa7de6be7e8f785321df81d9fd6518a16">regrid</a>(opts.<a class="code" href="structpism_1_1InputOptions_a2dc298f0e83b951fa1df5eab910639e5.html#a2dc298f0e83b951fa1df5eab910639e5">filename</a>,</div>
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  <a class="code" href="classpism_1_1io_1_1Default.html">io::Default</a>(<a class="code" href="classpism_1_1Component_a28f298fc2133baae8cebf9dedf3b4d84.html#a28f298fc2133baae8cebf9dedf3b4d84">m_config</a>->get_number(<span class="stringliteral">"bootstrapping.defaults.uplift"</span>)));</div>
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  <span class="keywordflow">case</span> <a class="code" href="namespacepism_a56e80801555b7f36f4dd28941739654a.html#a56e80801555b7f36f4dd28941739654aa5059a278caac36d24acebb622448a8dd">INIT_OTHER</a>:</div>
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  <span class="keywordflow">default</span>: {</div>
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  <span class="comment">// do nothing</span></div>
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  }</div>
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  }</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="comment">// process -regrid_file and -regrid_vars</span></div>
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  <a class="code" href="classpism_1_1Component_a7737874c03a58a03498a33dc464d2ee9.html#a7737874c03a58a03498a33dc464d2ee9">regrid</a>(<span class="stringliteral">"bed deformation"</span>, <a class="code" href="classpism_1_1bed_1_1BedDef_a81f07e00ef5de3b7deec999b4febabcc.html#a81f07e00ef5de3b7deec999b4febabcc">m_topg</a>);</div>
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  <span class="comment">// uplift is not a part of the model state, but the user may want to take it from a -regrid_file</span></div>
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  <span class="comment">// during bootstrapping</span></div>
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  <a class="code" href="classpism_1_1Component_a7737874c03a58a03498a33dc464d2ee9.html#a7737874c03a58a03498a33dc464d2ee9">regrid</a>(<span class="stringliteral">"bed deformation"</span>, <a class="code" href="classpism_1_1bed_1_1BedDef_aae163c699051ee20349b893a343d1a2a.html#aae163c699051ee20349b893a343d1a2a">m_uplift</a>);</div>
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  </div>
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  std::string uplift_file = <a class="code" href="classpism_1_1Component_a28f298fc2133baae8cebf9dedf3b4d84.html#a28f298fc2133baae8cebf9dedf3b4d84">m_config</a>->get_string(<span class="stringliteral">"bed_deformation.bed_uplift_file"</span>);</div>
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  <span class="keywordflow">if</span> (not uplift_file.empty()) {</div>
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>  <a class="code" href="classpism_1_1Component_a29575eba605feccf4403d6b4ff0954a4.html#a29575eba605feccf4403d6b4ff0954a4">m_log</a>->message(2, <span class="stringliteral">" reading bed uplift from %s ... \n"</span>, uplift_file.c_str());</div>
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  <a class="code" href="classpism_1_1bed_1_1BedDef_aae163c699051ee20349b893a343d1a2a.html#aae163c699051ee20349b893a343d1a2a">m_uplift</a>.<a class="code" href="classpism_1_1array_1_1Array_aa7de6be7e8f785321df81d9fd6518a16.html#aa7de6be7e8f785321df81d9fd6518a16">regrid</a>(uplift_file, <a class="code" href="classpism_1_1io_1_1Default_a81301b55ee990a23a3b8f8acde39f417.html#a81301b55ee990a23a3b8f8acde39f417">io::Default::Nil</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>  </div>
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  std::string correction_file = <a class="code" href="classpism_1_1Component_a28f298fc2133baae8cebf9dedf3b4d84.html#a28f298fc2133baae8cebf9dedf3b4d84">m_config</a>->get_string(<span class="stringliteral">"bed_deformation.bed_topography_delta_file"</span>);</div>
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>  <span class="keywordflow">if</span> (not correction_file.empty()) {</div>
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span>  <a class="code" href="classpism_1_1bed_1_1BedDef_a9fdfd938a24c115b188d1fda6feba751.html#a9fdfd938a24c115b188d1fda6feba751">apply_topg_offset</a>(correction_file);</div>
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  }</div>
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  </div>
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  <span class="comment">// this should be the last thing we do here</span></div>
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>  <a class="code" href="classpism_1_1bed_1_1BedDef_a67a44c4008ee6989c1c0ac3ef8276fa4.html#a67a44c4008ee6989c1c0ac3ef8276fa4">m_topg_last</a>.<a class="code" href="classpism_1_1array_1_1Array2D_a7b9a0d8a83d5379f1debdcefce0fffae.html#a7b9a0d8a83d5379f1debdcefce0fffae">copy_from</a>(<a class="code" href="classpism_1_1bed_1_1BedDef_a81f07e00ef5de3b7deec999b4febabcc.html#a81f07e00ef5de3b7deec999b4febabcc">m_topg</a>);</div>
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span> }</div>
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span> <span class="comment"></span> </div>
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span> <span class="comment">/*!</span></div>
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span> <span class="comment"> * Apply a correction to the bed topography by reading topg_delta from filename.</span></div>
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00155"></a><span class="lineno"><a class="line" href="classpism_1_1bed_1_1BedDef_a9fdfd938a24c115b188d1fda6feba751.html#a9fdfd938a24c115b188d1fda6feba751"> 155</a></span> <span class="keywordtype">void</span> <a class="code" href="classpism_1_1bed_1_1BedDef_a9fdfd938a24c115b188d1fda6feba751.html#a9fdfd938a24c115b188d1fda6feba751">BedDef::apply_topg_offset</a>(<span class="keyword">const</span> std::string &filename) {</div>
<div class="line"><a name="l00156"></a><span class="lineno"> 156</span>  <a class="code" href="classpism_1_1Component_a29575eba605feccf4403d6b4ff0954a4.html#a29575eba605feccf4403d6b4ff0954a4">m_log</a>->message(2, <span class="stringliteral">" Adding a bed topography correction read in from %s...\n"</span>, filename.c_str());</div>
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span>  </div>
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span>  <a class="code" href="classpism_1_1array_1_1Scalar.html">array::Scalar</a> topg_delta(<a class="code" href="classpism_1_1Component_a745aa37bc1b5da6db5bfc280ecb3c811.html#a745aa37bc1b5da6db5bfc280ecb3c811">m_grid</a>, <span class="stringliteral">"topg_delta"</span>);</div>
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span>  topg_delta.<a class="code" href="classpism_1_1array_1_1Array_af9eece42153cd03bfc8ba237ae5310c4.html#af9eece42153cd03bfc8ba237ae5310c4">metadata</a>(0).<a class="code" href="classpism_1_1VariableMetadata_a5e378cf7077ab00a808ef446a79dc34d.html#a5e378cf7077ab00a808ef446a79dc34d">long_name</a>(<span class="stringliteral">"bed topography correction"</span>).<a class="code" href="classpism_1_1VariableMetadata_ae73185be0693a8607b8e0f74558e11e4.html#ae73185be0693a8607b8e0f74558e11e4">units</a>(<span class="stringliteral">"meters"</span>);</div>
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span>  </div>
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  topg_delta.<a class="code" href="classpism_1_1array_1_1Array_aa7de6be7e8f785321df81d9fd6518a16.html#aa7de6be7e8f785321df81d9fd6518a16">regrid</a>(filename, <a class="code" href="classpism_1_1io_1_1Default_a81301b55ee990a23a3b8f8acde39f417.html#a81301b55ee990a23a3b8f8acde39f417">io::Default::Nil</a>());</div>
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span>  </div>
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span>  <a class="code" href="classpism_1_1bed_1_1BedDef_a81f07e00ef5de3b7deec999b4febabcc.html#a81f07e00ef5de3b7deec999b4febabcc">m_topg</a>.<a class="code" href="classpism_1_1array_1_1Array2D_af08ea254dfc85146e15571ca7abcf411.html#af08ea254dfc85146e15571ca7abcf411">add</a>(1.0, topg_delta);</div>
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span> }</div>
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span> <span class="comment"></span> </div>
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span> <span class="comment">//! Compute bed uplift (dt is in seconds).</span></div>
<div class="line"><a name="l00167"></a><span class="lineno"><a class="line" href="classpism_1_1bed_1_1BedDef_af1638a648ee96fa9090d2c828116d2a2.html#af1638a648ee96fa9090d2c828116d2a2"> 167</a></span> <span class="comment"></span><span class="keywordtype">void</span> <a class="code" href="classpism_1_1bed_1_1BedDef_af1638a648ee96fa9090d2c828116d2a2.html#af1638a648ee96fa9090d2c828116d2a2">BedDef::compute_uplift</a>(<span class="keyword">const</span> <a class="code" href="classpism_1_1array_1_1Scalar.html">array::Scalar</a> &bed, <span class="keyword">const</span> <a class="code" href="classpism_1_1array_1_1Scalar.html">array::Scalar</a> &bed_last,</div>
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span>  <span class="keywordtype">double</span> dt, <a class="code" href="classpism_1_1array_1_1Scalar.html">array::Scalar</a> &result) {</div>
<div class="line"><a name="l00169"></a><span class="lineno"> 169</span>  bed.<a class="code" href="classpism_1_1array_1_1Array2D_af08ea254dfc85146e15571ca7abcf411.html#af08ea254dfc85146e15571ca7abcf411">add</a>(-1, bed_last, result);<span class="comment"></span></div>
<div class="line"><a name="l00170"></a><span class="lineno"> 170</span> <span class="comment"> //! uplift = (topg - topg_last) / dt</span></div>
<div class="line"><a name="l00171"></a><span class="lineno"> 171</span> <span class="comment"></span> result.<a class="code" href="classpism_1_1array_1_1Array_a7b700739a7f5845c95fa33375a497901.html#a7b700739a7f5845c95fa33375a497901">scale</a>(1.0 / dt);</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>  </div>
<div class="line"><a name="l00174"></a><span class="lineno"><a class="line" href="namespacepism_1_1bed_af59fee6cf94f3938156841623abbafd4.html#af59fee6cf94f3938156841623abbafd4"> 174</a></span> <span class="keywordtype">double</span> <a class="code" href="namespacepism_1_1bed_af59fee6cf94f3938156841623abbafd4.html#af59fee6cf94f3938156841623abbafd4">compute_load</a>(<span class="keywordtype">double</span> bed, <span class="keywordtype">double</span> ice_thickness, <span class="keywordtype">double</span> sea_level,</div>
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span>  <span class="keywordtype">double</span> ice_density, <span class="keywordtype">double</span> ocean_density) {</div>
<div class="line"><a name="l00176"></a><span class="lineno"> 176</span>  </div>
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span>  <span class="keywordtype">double</span></div>
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span>  ice_load = ice_thickness,</div>
<div class="line"><a name="l00179"></a><span class="lineno"> 179</span>  ocean_depth = <a class="code" href="namespacepism_1_1array_a8957d08741c6f48d1e554ac7ea98530a.html#a8957d08741c6f48d1e554ac7ea98530a">std::max</a>(sea_level - bed, 0.0),</div>
<div class="line"><a name="l00180"></a><span class="lineno"> 180</span>  ocean_load = (ocean_density / ice_density) * ocean_depth;</div>
<div class="line"><a name="l00181"></a><span class="lineno"> 181</span>  </div>
<div class="line"><a name="l00182"></a><span class="lineno"> 182</span>  <span class="comment">// this excludes the load of ice shelves</span></div>
<div class="line"><a name="l00183"></a><span class="lineno"> 183</span>  <span class="keywordflow">return</span> ice_load > ocean_load ? ice_load : 0.0;</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"></span> </div>
<div class="line"><a name="l00186"></a><span class="lineno"> 186</span> <span class="comment">/*! Compute the load on the bedrock in units of ice-equivalent thickness.</span></div>
<div class="line"><a name="l00187"></a><span class="lineno"> 187</span> <span class="comment"> *</span></div>
<div class="line"><a name="l00188"></a><span class="lineno"> 188</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00189"></a><span class="lineno"><a class="line" href="namespacepism_1_1bed_a840c1cbc5c333a373156ac6c78f0ad71.html#a840c1cbc5c333a373156ac6c78f0ad71"> 189</a></span> <span class="keywordtype">void</span> <a class="code" href="namespacepism_1_1bed_af59fee6cf94f3938156841623abbafd4.html#af59fee6cf94f3938156841623abbafd4">compute_load</a>(<span class="keyword">const</span> <a class="code" href="classpism_1_1array_1_1Scalar.html">array::Scalar</a> &bed_elevation,</div>
<div class="line"><a name="l00190"></a><span class="lineno"> 190</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="l00191"></a><span class="lineno"> 191</span>  <span class="keyword">const</span> <a class="code" href="classpism_1_1array_1_1Scalar.html">array::Scalar</a> &sea_level_elevation,</div>
<div class="line"><a name="l00192"></a><span class="lineno"> 192</span>  <a class="code" href="classpism_1_1array_1_1Scalar.html">array::Scalar</a> &result) {</div>
<div class="line"><a name="l00193"></a><span class="lineno"> 193</span>  </div>
<div class="line"><a name="l00194"></a><span class="lineno"> 194</span>  <a class="code" href="classpism_1_1Config_a4dc1634c0eac358eb86303633024f810.html#a4dc1634c0eac358eb86303633024f810">Config::ConstPtr</a> config = result.<a class="code" href="classpism_1_1array_1_1Array_a982fca110a5d7011f681b928b20e3577.html#a982fca110a5d7011f681b928b20e3577">grid</a>()->ctx()->config();</div>
<div class="line"><a name="l00195"></a><span class="lineno"> 195</span>  </div>
<div class="line"><a name="l00196"></a><span class="lineno"> 196</span>  <span class="keyword">const</span> <span class="keywordtype">double</span></div>
<div class="line"><a name="l00197"></a><span class="lineno"> 197</span>  ice_density = config->get_number(<span class="stringliteral">"constants.ice.density"</span>),</div>
<div class="line"><a name="l00198"></a><span class="lineno"> 198</span>  ocean_density = config->get_number(<span class="stringliteral">"constants.sea_water.density"</span>);</div>
<div class="line"><a name="l00199"></a><span class="lineno"> 199</span>  </div>
<div class="line"><a name="l00200"></a><span class="lineno"> 200</span>  <a class="code" href="classpism_1_1array_1_1AccessScope.html">array::AccessScope</a> list{&bed_elevation, &ice_thickness, &sea_level_elevation, &result};</div>
<div class="line"><a name="l00201"></a><span class="lineno"> 201</span>  </div>
<div class="line"><a name="l00202"></a><span class="lineno"> 202</span>  <span class="keywordflow">for</span> (<span class="keyword">auto</span> p = result.<a class="code" href="classpism_1_1array_1_1Array_a982fca110a5d7011f681b928b20e3577.html#a982fca110a5d7011f681b928b20e3577">grid</a>()->points(); p; p.next()) {</div>
<div class="line"><a name="l00203"></a><span class="lineno"> 203</span>  <span class="keyword">const</span> <span class="keywordtype">int</span> i = p.i(), j = p.j();</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>  result(i, j) = <a class="code" href="namespacepism_1_1bed_af59fee6cf94f3938156841623abbafd4.html#af59fee6cf94f3938156841623abbafd4">compute_load</a>(bed_elevation(i, j),</div>
<div class="line"><a name="l00206"></a><span class="lineno"> 206</span>  ice_thickness(i, j),</div>
<div class="line"><a name="l00207"></a><span class="lineno"> 207</span>  sea_level_elevation(i, j),</div>
<div class="line"><a name="l00208"></a><span class="lineno"> 208</span>  ice_density, ocean_density);</div>
<div class="line"><a name="l00209"></a><span class="lineno"> 209</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>  </div>
<div class="line"><a name="l00212"></a><span class="lineno"> 212</span> } <span class="comment">// end of namespace bed</span></div>
<div class="line"><a name="l00213"></a><span class="lineno"> 213</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_1Component_a7737874c03a58a03498a33dc464d2ee9_html_a7737874c03a58a03498a33dc464d2ee9"><div class="ttname"><a href="classpism_1_1Component_a7737874c03a58a03498a33dc464d2ee9.html#a7737874c03a58a03498a33dc464d2ee9">pism::Component::regrid</a></div><div class="ttdeci">void regrid(const std::string &module_name, array::Array &variable, RegriddingFlag flag=NO_REGRID_WITHOUT_REGRID_VARS)</div><div class="ttdef"><b>Definition:</b> <a href="Component_8cc_source.html#l00159">Component.cc:159</a></div></div>
<div class="ttc" id="aclasspism_1_1Component_html"><div class="ttname"><a href="classpism_1_1Component.html">pism::Component</a></div><div class="ttdoc">A class defining a common interface for most PISM sub-models.</div><div class="ttdef"><b>Definition:</b> <a href="Component_8hh_source.html#l00118">Component.hh:118</a></div></div>
<div class="ttc" id="aclasspism_1_1Config_a4dc1634c0eac358eb86303633024f810_html_a4dc1634c0eac358eb86303633024f810"><div class="ttname"><a href="classpism_1_1Config_a4dc1634c0eac358eb86303633024f810.html#a4dc1634c0eac358eb86303633024f810">pism::Config::ConstPtr</a></div><div class="ttdeci">std::shared_ptr< const Config > ConstPtr</div><div class="ttdef"><b>Definition:</b> <a href="ConfigInterface_8hh_source.html#l00056">ConfigInterface.hh:56</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_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_1VariableMetadata_a2b7791d4794fd3deb3838e75b495ce33_html_a2b7791d4794fd3deb3838e75b495ce33"><div class="ttname"><a href="classpism_1_1VariableMetadata_a2b7791d4794fd3deb3838e75b495ce33.html#a2b7791d4794fd3deb3838e75b495ce33">pism::VariableMetadata::standard_name</a></div><div class="ttdeci">VariableMetadata & standard_name(const std::string &input)</div><div class="ttdef"><b>Definition:</b> <a href="VariableMetadata_8hh_source.html#l00119">VariableMetadata.hh:119</a></div></div>
<div class="ttc" id="aclasspism_1_1VariableMetadata_a5e378cf7077ab00a808ef446a79dc34d_html_a5e378cf7077ab00a808ef446a79dc34d"><div class="ttname"><a href="classpism_1_1VariableMetadata_a5e378cf7077ab00a808ef446a79dc34d.html#a5e378cf7077ab00a808ef446a79dc34d">pism::VariableMetadata::long_name</a></div><div class="ttdeci">VariableMetadata & long_name(const std::string &input)</div><div class="ttdef"><b>Definition:</b> <a href="VariableMetadata_8hh_source.html#l00115">VariableMetadata.hh:115</a></div></div>
<div class="ttc" id="aclasspism_1_1VariableMetadata_ae73185be0693a8607b8e0f74558e11e4_html_ae73185be0693a8607b8e0f74558e11e4"><div class="ttname"><a href="classpism_1_1VariableMetadata_ae73185be0693a8607b8e0f74558e11e4.html#ae73185be0693a8607b8e0f74558e11e4">pism::VariableMetadata::units</a></div><div class="ttdeci">VariableMetadata & units(const std::string &input)</div><div class="ttdef"><b>Definition:</b> <a href="VariableMetadata_8hh_source.html#l00123">VariableMetadata.hh:123</a></div></div>
<div class="ttc" id="aclasspism_1_1array_1_1AccessScope_html"><div class="ttname"><a href="classpism_1_1array_1_1AccessScope.html">pism::array::AccessScope</a></div><div class="ttdoc">Makes sure that we call begin_access() and end_access() for all accessed array::Arrays.</div><div class="ttdef"><b>Definition:</b> <a href="Array_8hh_source.html#l00065">Array.hh:65</a></div></div>
<div class="ttc" id="aclasspism_1_1array_1_1Array2D_a7b9a0d8a83d5379f1debdcefce0fffae_html_a7b9a0d8a83d5379f1debdcefce0fffae"><div class="ttname"><a href="classpism_1_1array_1_1Array2D_a7b9a0d8a83d5379f1debdcefce0fffae.html#a7b9a0d8a83d5379f1debdcefce0fffae">pism::array::Array2D::copy_from</a></div><div class="ttdeci">void copy_from(const Array2D< T > &source)</div><div class="ttdef"><b>Definition:</b> <a href="Array2D_8hh_source.html#l00073">Array2D.hh:73</a></div></div>
<div class="ttc" id="aclasspism_1_1array_1_1Array2D_af08ea254dfc85146e15571ca7abcf411_html_af08ea254dfc85146e15571ca7abcf411"><div class="ttname"><a href="classpism_1_1array_1_1Array2D_af08ea254dfc85146e15571ca7abcf411.html#af08ea254dfc85146e15571ca7abcf411">pism::array::Array2D::add</a></div><div class="ttdeci">void add(double alpha, const Array2D< T > &x)</div><div class="ttdef"><b>Definition:</b> <a href="Array2D_8hh_source.html#l00065">Array2D.hh:65</a></div></div>
<div class="ttc" id="aclasspism_1_1array_1_1Array_a0326efd779d857755513901da9a54992_html_a0326efd779d857755513901da9a54992"><div class="ttname"><a href="classpism_1_1array_1_1Array_a0326efd779d857755513901da9a54992.html#a0326efd779d857755513901da9a54992">pism::array::Array::read</a></div><div class="ttdeci">void read(const std::string &filename, unsigned int time)</div><div class="ttdef"><b>Definition:</b> <a href="Array_8cc_source.html#l00809">Array.cc:809</a></div></div>
<div class="ttc" id="aclasspism_1_1array_1_1Array_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_a7b700739a7f5845c95fa33375a497901_html_a7b700739a7f5845c95fa33375a497901"><div class="ttname"><a href="classpism_1_1array_1_1Array_a7b700739a7f5845c95fa33375a497901.html#a7b700739a7f5845c95fa33375a497901">pism::array::Array::scale</a></div><div class="ttdeci">void scale(double alpha)</div><div class="ttdoc">Result: v <- v * alpha. Calls VecScale.</div><div class="ttdef"><b>Definition:</b> <a href="Array_8cc_source.html#l00253">Array.cc:253</a></div></div>
<div class="ttc" id="aclasspism_1_1array_1_1Array_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_aa7de6be7e8f785321df81d9fd6518a16_html_aa7de6be7e8f785321df81d9fd6518a16"><div class="ttname"><a href="classpism_1_1array_1_1Array_aa7de6be7e8f785321df81d9fd6518a16.html#aa7de6be7e8f785321df81d9fd6518a16">pism::array::Array::regrid</a></div><div class="ttdeci">void regrid(const std::string &filename, io::Default default_value)</div><div class="ttdef"><b>Definition:</b> <a href="Array_8cc_source.html#l00814">Array.cc:814</a></div></div>
<div class="ttc" id="aclasspism_1_1array_1_1Array_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_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_1bed_1_1BedDef_a18e5652bb7916fa9c4cdb5cfdaa5b906_html_a18e5652bb7916fa9c4cdb5cfdaa5b906"><div class="ttname"><a href="classpism_1_1bed_1_1BedDef_a18e5652bb7916fa9c4cdb5cfdaa5b906.html#a18e5652bb7916fa9c4cdb5cfdaa5b906">pism::bed::BedDef::write_model_state_impl</a></div><div class="ttdeci">virtual void write_model_state_impl(const File &output) const</div><div class="ttdoc">The default (empty implementation).</div><div class="ttdef"><b>Definition:</b> <a href="BedDef_8cc_source.html#l00064">BedDef.cc:64</a></div></div>
<div class="ttc" id="aclasspism_1_1bed_1_1BedDef_a1aa2959595826063e459b756abfb73af_html_a1aa2959595826063e459b756abfb73af"><div class="ttname"><a href="classpism_1_1bed_1_1BedDef_a1aa2959595826063e459b756abfb73af.html#a1aa2959595826063e459b756abfb73af">pism::bed::BedDef::diagnostics_impl</a></div><div class="ttdeci">virtual DiagnosticList diagnostics_impl() const</div><div class="ttdef"><b>Definition:</b> <a href="BedDef_8cc_source.html#l00069">BedDef.cc:69</a></div></div>
<div class="ttc" id="aclasspism_1_1bed_1_1BedDef_a432572d80406df7620308bfc1e6506de_html_a432572d80406df7620308bfc1e6506de"><div class="ttname"><a href="classpism_1_1bed_1_1BedDef_a432572d80406df7620308bfc1e6506de.html#a432572d80406df7620308bfc1e6506de">pism::bed::BedDef::define_model_state_impl</a></div><div class="ttdeci">virtual void define_model_state_impl(const File &output) const</div><div class="ttdoc">The default (empty implementation).</div><div class="ttdef"><b>Definition:</b> <a href="BedDef_8cc_source.html#l00059">BedDef.cc:59</a></div></div>
<div class="ttc" id="aclasspism_1_1bed_1_1BedDef_a594a537f262d96b47a7cc527607f092b_html_a594a537f262d96b47a7cc527607f092b"><div class="ttname"><a href="classpism_1_1bed_1_1BedDef_a594a537f262d96b47a7cc527607f092b.html#a594a537f262d96b47a7cc527607f092b">pism::bed::BedDef::bootstrap_impl</a></div><div class="ttdeci">virtual void bootstrap_impl(const array::Scalar &bed_elevation, const array::Scalar &bed_uplift, const array::Scalar &ice_thickness, const array::Scalar &sea_level_elevation)</div><div class="ttdef"><b>Definition:</b> <a href="BedDef_8cc_source.html#l00088">BedDef.cc:88</a></div></div>
<div class="ttc" id="aclasspism_1_1bed_1_1BedDef_a5cb44d4b40e7c254751d3fce3f366c4c_html_a5cb44d4b40e7c254751d3fce3f366c4c"><div class="ttname"><a href="classpism_1_1bed_1_1BedDef_a5cb44d4b40e7c254751d3fce3f366c4c.html#a5cb44d4b40e7c254751d3fce3f366c4c">pism::bed::BedDef::update_impl</a></div><div class="ttdeci">virtual void update_impl(const array::Scalar &ice_thickness, const array::Scalar &sea_level_elevation, double t, double dt)=0</div></div>
<div class="ttc" id="aclasspism_1_1bed_1_1BedDef_a66ef0bdfce3ede4f98d5bb1889691879_html_a66ef0bdfce3ede4f98d5bb1889691879"><div class="ttname"><a href="classpism_1_1bed_1_1BedDef_a66ef0bdfce3ede4f98d5bb1889691879.html#a66ef0bdfce3ede4f98d5bb1889691879">pism::bed::BedDef::init</a></div><div class="ttdeci">void init(const InputOptions &opts, const array::Scalar &ice_thickness, const array::Scalar &sea_level_elevation)</div><div class="ttdef"><b>Definition:</b> <a href="BedDef_8cc_source.html#l00076">BedDef.cc:76</a></div></div>
<div class="ttc" id="aclasspism_1_1bed_1_1BedDef_a67a44c4008ee6989c1c0ac3ef8276fa4_html_a67a44c4008ee6989c1c0ac3ef8276fa4"><div class="ttname"><a href="classpism_1_1bed_1_1BedDef_a67a44c4008ee6989c1c0ac3ef8276fa4.html#a67a44c4008ee6989c1c0ac3ef8276fa4">pism::bed::BedDef::m_topg_last</a></div><div class="ttdeci">array::Scalar2 m_topg_last</div><div class="ttdoc">bed elevation at the time of the last update</div><div class="ttdef"><b>Definition:</b> <a href="BedDef_8hh_source.html#l00083">BedDef.hh:83</a></div></div>
<div class="ttc" id="aclasspism_1_1bed_1_1BedDef_a753c0498dee5ee7db6b2129a6de6db70_html_a753c0498dee5ee7db6b2129a6de6db70"><div class="ttname"><a href="classpism_1_1bed_1_1BedDef_a753c0498dee5ee7db6b2129a6de6db70.html#a753c0498dee5ee7db6b2129a6de6db70">pism::bed::BedDef::update</a></div><div class="ttdeci">void update(const array::Scalar &ice_thickness, const array::Scalar &sea_level_elevation, double t, double dt)</div><div class="ttdef"><b>Definition:</b> <a href="BedDef_8cc_source.html#l00099">BedDef.cc:99</a></div></div>
<div class="ttc" id="aclasspism_1_1bed_1_1BedDef_a7c744cc807f2de03773ab25475fea2ad_html_a7c744cc807f2de03773ab25475fea2ad"><div class="ttname"><a href="classpism_1_1bed_1_1BedDef_a7c744cc807f2de03773ab25475fea2ad.html#a7c744cc807f2de03773ab25475fea2ad">pism::bed::BedDef::bootstrap</a></div><div class="ttdeci">void bootstrap(const array::Scalar &bed_elevation, const array::Scalar &bed_uplift, const array::Scalar &ice_thickness, const array::Scalar &sea_level_elevation)</div><div class="ttdoc">Initialize using provided bed elevation and uplift.</div><div class="ttdef"><b>Definition:</b> <a href="BedDef_8cc_source.html#l00082">BedDef.cc:82</a></div></div>
<div class="ttc" id="aclasspism_1_1bed_1_1BedDef_a81f07e00ef5de3b7deec999b4febabcc_html_a81f07e00ef5de3b7deec999b4febabcc"><div class="ttname"><a href="classpism_1_1bed_1_1BedDef_a81f07e00ef5de3b7deec999b4febabcc.html#a81f07e00ef5de3b7deec999b4febabcc">pism::bed::BedDef::m_topg</a></div><div class="ttdeci">array::Scalar2 m_topg</div><div class="ttdoc">current bed elevation</div><div class="ttdef"><b>Definition:</b> <a href="BedDef_8hh_source.html#l00080">BedDef.hh:80</a></div></div>
<div class="ttc" id="aclasspism_1_1bed_1_1BedDef_a86f2efe7f454589ff3337cee6a8a85f1_html_a86f2efe7f454589ff3337cee6a8a85f1"><div class="ttname"><a href="classpism_1_1bed_1_1BedDef_a86f2efe7f454589ff3337cee6a8a85f1.html#a86f2efe7f454589ff3337cee6a8a85f1">pism::bed::BedDef::init_impl</a></div><div class="ttdeci">virtual void init_impl(const InputOptions &opts, const array::Scalar &ice_thickness, const array::Scalar &sea_level_elevation)</div><div class="ttdoc">Initialize from the context (input file and the "variables" database).</div><div class="ttdef"><b>Definition:</b> <a href="BedDef_8cc_source.html#l00105">BedDef.cc:105</a></div></div>
<div class="ttc" id="aclasspism_1_1bed_1_1BedDef_a8ed0cb71c8e8b31e37f129ab3f9a37b3_html_a8ed0cb71c8e8b31e37f129ab3f9a37b3"><div class="ttname"><a href="classpism_1_1bed_1_1BedDef_a8ed0cb71c8e8b31e37f129ab3f9a37b3.html#a8ed0cb71c8e8b31e37f129ab3f9a37b3">pism::bed::BedDef::BedDef</a></div><div class="ttdeci">BedDef(std::shared_ptr< const Grid > g)</div><div class="ttdef"><b>Definition:</b> <a href="BedDef_8cc_source.html#l00027">BedDef.cc:27</a></div></div>
<div class="ttc" id="aclasspism_1_1bed_1_1BedDef_a9fdfd938a24c115b188d1fda6feba751_html_a9fdfd938a24c115b188d1fda6feba751"><div class="ttname"><a href="classpism_1_1bed_1_1BedDef_a9fdfd938a24c115b188d1fda6feba751.html#a9fdfd938a24c115b188d1fda6feba751">pism::bed::BedDef::apply_topg_offset</a></div><div class="ttdeci">virtual void apply_topg_offset(const std::string &filename)</div><div class="ttdef"><b>Definition:</b> <a href="BedDef_8cc_source.html#l00155">BedDef.cc:155</a></div></div>
<div class="ttc" id="aclasspism_1_1bed_1_1BedDef_aae163c699051ee20349b893a343d1a2a_html_aae163c699051ee20349b893a343d1a2a"><div class="ttname"><a href="classpism_1_1bed_1_1BedDef_aae163c699051ee20349b893a343d1a2a.html#aae163c699051ee20349b893a343d1a2a">pism::bed::BedDef::m_uplift</a></div><div class="ttdeci">array::Scalar m_uplift</div><div class="ttdoc">bed uplift rate</div><div class="ttdef"><b>Definition:</b> <a href="BedDef_8hh_source.html#l00086">BedDef.hh:86</a></div></div>
<div class="ttc" id="aclasspism_1_1bed_1_1BedDef_ab864f5da11db7bcae52e2bfe6fe7a8af_html_ab864f5da11db7bcae52e2bfe6fe7a8af"><div class="ttname"><a href="classpism_1_1bed_1_1BedDef_ab864f5da11db7bcae52e2bfe6fe7a8af.html#ab864f5da11db7bcae52e2bfe6fe7a8af">pism::bed::BedDef::uplift</a></div><div class="ttdeci">const array::Scalar & uplift() const</div><div class="ttdef"><b>Definition:</b> <a href="BedDef_8cc_source.html#l00055">BedDef.cc:55</a></div></div>
<div class="ttc" id="aclasspism_1_1bed_1_1BedDef_ac6be925d2b8a3a4994d10636df4954b9_html_ac6be925d2b8a3a4994d10636df4954b9"><div class="ttname"><a href="classpism_1_1bed_1_1BedDef_ac6be925d2b8a3a4994d10636df4954b9.html#ac6be925d2b8a3a4994d10636df4954b9">pism::bed::BedDef::bed_elevation</a></div><div class="ttdeci">const array::Scalar & bed_elevation() const</div><div class="ttdef"><b>Definition:</b> <a href="BedDef_8cc_source.html#l00051">BedDef.cc:51</a></div></div>
<div class="ttc" id="aclasspism_1_1bed_1_1BedDef_af1638a648ee96fa9090d2c828116d2a2_html_af1638a648ee96fa9090d2c828116d2a2"><div class="ttname"><a href="classpism_1_1bed_1_1BedDef_af1638a648ee96fa9090d2c828116d2a2.html#af1638a648ee96fa9090d2c828116d2a2">pism::bed::BedDef::compute_uplift</a></div><div class="ttdeci">void compute_uplift(const array::Scalar &bed, const array::Scalar &bed_last, double dt, array::Scalar &result)</div><div class="ttdoc">Compute bed uplift (dt is in seconds).</div><div class="ttdef"><b>Definition:</b> <a href="BedDef_8cc_source.html#l00167">BedDef.cc:167</a></div></div>
<div class="ttc" id="aclasspism_1_1io_1_1Default_a81301b55ee990a23a3b8f8acde39f417_html_a81301b55ee990a23a3b8f8acde39f417"><div class="ttname"><a href="classpism_1_1io_1_1Default_a81301b55ee990a23a3b8f8acde39f417.html#a81301b55ee990a23a3b8f8acde39f417">pism::io::Default::Nil</a></div><div class="ttdeci">static Default Nil()</div><div class="ttdef"><b>Definition:</b> <a href="IO__Flags_8hh_source.html#l00097">IO_Flags.hh:97</a></div></div>
<div class="ttc" id="aclasspism_1_1io_1_1Default_html"><div class="ttname"><a href="classpism_1_1io_1_1Default.html">pism::io::Default</a></div><div class="ttdef"><b>Definition:</b> <a href="IO__Flags_8hh_source.html#l00091">IO_Flags.hh:91</a></div></div>
<div class="ttc" id="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_1bed_af59fee6cf94f3938156841623abbafd4_html_af59fee6cf94f3938156841623abbafd4"><div class="ttname"><a href="namespacepism_1_1bed_af59fee6cf94f3938156841623abbafd4.html#af59fee6cf94f3938156841623abbafd4">pism::bed::compute_load</a></div><div class="ttdeci">double compute_load(double bed, double ice_thickness, double sea_level, double ice_density, double ocean_density)</div><div class="ttdef"><b>Definition:</b> <a href="BedDef_8cc_source.html#l00174">BedDef.cc:174</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_a56e80801555b7f36f4dd28941739654a_html_a56e80801555b7f36f4dd28941739654aa260aa6280296d9fffc338c9ecdaba861"><div class="ttname"><a href="namespacepism_a56e80801555b7f36f4dd28941739654a.html#a56e80801555b7f36f4dd28941739654aa260aa6280296d9fffc338c9ecdaba861">pism::INIT_BOOTSTRAP</a></div><div class="ttdeci">@ INIT_BOOTSTRAP</div><div class="ttdef"><b>Definition:</b> <a href="Component_8hh_source.html#l00056">Component.hh:56</a></div></div>
<div class="ttc" id="anamespacepism_a56e80801555b7f36f4dd28941739654a_html_a56e80801555b7f36f4dd28941739654aa5059a278caac36d24acebb622448a8dd"><div class="ttname"><a href="namespacepism_a56e80801555b7f36f4dd28941739654a.html#a56e80801555b7f36f4dd28941739654aa5059a278caac36d24acebb622448a8dd">pism::INIT_OTHER</a></div><div class="ttdeci">@ INIT_OTHER</div><div class="ttdef"><b>Definition:</b> <a href="Component_8hh_source.html#l00056">Component.hh:56</a></div></div>
<div class="ttc" id="anamespacepism_a56e80801555b7f36f4dd28941739654a_html_a56e80801555b7f36f4dd28941739654aa6aff4b43552f00d5cc331453ff4029bc"><div class="ttname"><a href="namespacepism_a56e80801555b7f36f4dd28941739654a.html#a56e80801555b7f36f4dd28941739654aa6aff4b43552f00d5cc331453ff4029bc">pism::INIT_RESTART</a></div><div class="ttdeci">@ INIT_RESTART</div><div class="ttdef"><b>Definition:</b> <a href="Component_8hh_source.html#l00056">Component.hh:56</a></div></div>
<div class="ttc" id="anamespacepism_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_html"><div class="ttname"><a href="namespacepism.html">pism</a></div><div class="ttdef"><b>Definition:</b> <a href="AgeColumnSystem_8cc_source.html#l00023">AgeColumnSystem.cc:23</a></div></div>
<div class="ttc" id="astructpism_1_1InputOptions_a0fe5db51286e55c31b1575dc9ecc5d70_html_a0fe5db51286e55c31b1575dc9ecc5d70"><div class="ttname"><a href="structpism_1_1InputOptions_a0fe5db51286e55c31b1575dc9ecc5d70.html#a0fe5db51286e55c31b1575dc9ecc5d70">pism::InputOptions::type</a></div><div class="ttdeci">InitializationType type</div><div class="ttdoc">initialization type</div><div class="ttdef"><b>Definition:</b> <a href="Component_8hh_source.html#l00061">Component.hh:61</a></div></div>
<div class="ttc" id="astructpism_1_1InputOptions_a2dc298f0e83b951fa1df5eab910639e5_html_a2dc298f0e83b951fa1df5eab910639e5"><div class="ttname"><a href="structpism_1_1InputOptions_a2dc298f0e83b951fa1df5eab910639e5.html#a2dc298f0e83b951fa1df5eab910639e5">pism::InputOptions::filename</a></div><div class="ttdeci">std::string filename</div><div class="ttdoc">name of the input file (if applicable)</div><div class="ttdef"><b>Definition:</b> <a href="Component_8hh_source.html#l00063">Component.hh:63</a></div></div>
<div class="ttc" id="astructpism_1_1InputOptions_ae33c7fb4ca1317444d959bc3e1514ba4_html_ae33c7fb4ca1317444d959bc3e1514ba4"><div class="ttname"><a href="structpism_1_1InputOptions_ae33c7fb4ca1317444d959bc3e1514ba4.html#ae33c7fb4ca1317444d959bc3e1514ba4">pism::InputOptions::record</a></div><div class="ttdeci">unsigned int record</div><div class="ttdoc">index of the record to re-start from</div><div class="ttdef"><b>Definition:</b> <a href="Component_8hh_source.html#l00065">Component.hh:65</a></div></div>
<div class="ttc" id="astructpism_1_1InputOptions_html"><div class="ttname"><a href="structpism_1_1InputOptions.html">pism::InputOptions</a></div><div class="ttdef"><b>Definition:</b> <a href="Component_8hh_source.html#l00058">Component.hh:58</a></div></div>
</div><!-- 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>