-
Notifications
You must be signed in to change notification settings - Fork 0
/
AtmosphereModel_8cc_source.html
442 lines (440 loc) · 96.2 KB
/
AtmosphereModel_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
<!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/coupler/atmosphere/AtmosphereModel.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_0171d4959defe1f65341fde2c6309901.html">coupler</a></li><li class="navelem"><a class="el" href="dir_8ac765a319ce0534d43bb959e6f94751.html">atmosphere</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">AtmosphereModel.cc</div> </div>
</div><!--header-->
<div class="contents">
<a href="AtmosphereModel_8cc.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">/* Copyright (C) 2016, 2017, 2018, 2019, 2020, 2022, 2023 PISM Authors</span></div>
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment"> *</span></div>
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> * This file is part of PISM.</span></div>
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> *</span></div>
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> * PISM is free software; you can redistribute it and/or modify it under the</span></div>
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> * terms of the GNU General Public License as published by the Free Software</span></div>
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> * Foundation; either version 3 of the License, or (at your option) any later</span></div>
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"> * version.</span></div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"> *</span></div>
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"> * PISM is distributed in the hope that it will be useful, but WITHOUT ANY</span></div>
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS</span></div>
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"> * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more</span></div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment"> * details.</span></div>
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment"> *</span></div>
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment"> * along with PISM; if not, write to the Free Software</span></div>
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment"> * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA</span></div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment">*/</span></div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>  </div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="preprocessor">#include <gsl/gsl_math.h></span> <span class="comment">// GSL_NAN</span></div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#include <memory></span></div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>  </div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="preprocessor">#include "pism/coupler/AtmosphereModel.hh"</span></div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#include "pism/util/Time.hh"</span></div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor">#include "pism/util/error_handling.hh"</span></div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="preprocessor">#include "pism/util/MaxTimestep.hh"</span></div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor">#include "pism/util/Context.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>atmosphere {</div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  </div>
<div class="line"><a name="l00032"></a><span class="lineno"><a class="line" href="classpism_1_1atmosphere_1_1AtmosphereModel_a5a14643349acaec2a6219207e38b946c.html#a5a14643349acaec2a6219207e38b946c"> 32</a></span> std::shared_ptr<array::Scalar> <a class="code" href="classpism_1_1atmosphere_1_1AtmosphereModel_a5a14643349acaec2a6219207e38b946c.html#a5a14643349acaec2a6219207e38b946c">AtmosphereModel::allocate_temperature</a>(std::shared_ptr<const Grid> grid) {</div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  <span class="keyword">auto</span> result = std::make_shared<array::Scalar>(<a class="code" href="classpism_1_1Component_a1d7fa2a58f259a9c5e464f8738db6ef0.html#a1d7fa2a58f259a9c5e464f8738db6ef0">grid</a>, <span class="stringliteral">"air_temp"</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>  result->metadata(0)</div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  .long_name(<span class="stringliteral">"mean annual near-surface air temperature"</span>)</div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  .units(<span class="stringliteral">"Kelvin"</span>);</div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  </div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  <span class="keywordflow">return</span> result;</div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span> }</div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  </div>
<div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="classpism_1_1atmosphere_1_1AtmosphereModel_ae84e2ccd1ff561401b66b1ce3ce9c656.html#ae84e2ccd1ff561401b66b1ce3ce9c656"> 42</a></span> std::shared_ptr<array::Scalar> <a class="code" href="classpism_1_1atmosphere_1_1AtmosphereModel_ae84e2ccd1ff561401b66b1ce3ce9c656.html#ae84e2ccd1ff561401b66b1ce3ce9c656">AtmosphereModel::allocate_precipitation</a>(std::shared_ptr<const Grid> grid) {</div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  <span class="keyword">auto</span> result = std::make_shared<array::Scalar>(<a class="code" href="classpism_1_1Component_a1d7fa2a58f259a9c5e464f8738db6ef0.html#a1d7fa2a58f259a9c5e464f8738db6ef0">grid</a>, <span class="stringliteral">"precipitation"</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>  result->metadata(0)</div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  .long_name(<span class="stringliteral">"precipitation rate"</span>)</div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  .units(<span class="stringliteral">"kg m-2 second-1"</span>)</div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  .output_units(<span class="stringliteral">"kg m-2 year-1"</span>)</div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  .standard_name(<span class="stringliteral">"precipitation_flux"</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"> 51</span>  <span class="keywordflow">return</span> result;</div>
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span> }</div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  </div>
<div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="classpism_1_1atmosphere_1_1AtmosphereModel_ace2b9c807ca5dc27e57103e2cc4acdaa.html#ace2b9c807ca5dc27e57103e2cc4acdaa"> 54</a></span> <a class="code" href="classpism_1_1atmosphere_1_1AtmosphereModel_ace2b9c807ca5dc27e57103e2cc4acdaa.html#ace2b9c807ca5dc27e57103e2cc4acdaa">AtmosphereModel::AtmosphereModel</a>(std::shared_ptr<const Grid> <a class="code" href="namespacepism_a47d754ed3e959d5866b02a1b78b6a5b5.html#a47d754ed3e959d5866b02a1b78b6a5b5">g</a>)</div>
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  : <a class="code" href="classpism_1_1Component.html">Component</a>(<a class="code" href="namespacepism_a47d754ed3e959d5866b02a1b78b6a5b5.html#a47d754ed3e959d5866b02a1b78b6a5b5">g</a>) {</div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  <span class="comment">// empty</span></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_1atmosphere_1_1AtmosphereModel_a264435b0535c17282f6c8191b4745459.html#a264435b0535c17282f6c8191b4745459"> 59</a></span> <a class="code" href="classpism_1_1atmosphere_1_1AtmosphereModel_ace2b9c807ca5dc27e57103e2cc4acdaa.html#ace2b9c807ca5dc27e57103e2cc4acdaa">AtmosphereModel::AtmosphereModel</a>(std::shared_ptr<const Grid> <a class="code" href="namespacepism_a47d754ed3e959d5866b02a1b78b6a5b5.html#a47d754ed3e959d5866b02a1b78b6a5b5">g</a>,</div>
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  std::shared_ptr<AtmosphereModel> input)</div>
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  :<a class="code" href="classpism_1_1Component.html">Component</a>(<a class="code" href="namespacepism_a47d754ed3e959d5866b02a1b78b6a5b5.html#a47d754ed3e959d5866b02a1b78b6a5b5">g</a>), m_input_model(input) {</div>
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  <span class="comment">// empty</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"> 64</span>  </div>
<div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="classpism_1_1atmosphere_1_1AtmosphereModel_a8a09b8074d11202b68e135cf2a08667c.html#a8a09b8074d11202b68e135cf2a08667c"> 65</a></span> <span class="keywordtype">void</span> <a class="code" href="classpism_1_1atmosphere_1_1AtmosphereModel_a8a09b8074d11202b68e135cf2a08667c.html#a8a09b8074d11202b68e135cf2a08667c">AtmosphereModel::init</a>(<span class="keyword">const</span> <a class="code" href="classpism_1_1Geometry.html">Geometry</a> &geometry) {</div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  this-><a class="code" href="classpism_1_1atmosphere_1_1AtmosphereModel_a79de0a9be5f11c2722a2593fe82a7df9.html#a79de0a9be5f11c2722a2593fe82a7df9">init_impl</a>(geometry);</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_1atmosphere_1_1AtmosphereModel_a0597f334c365ed8efe6531c00879efc8.html#a0597f334c365ed8efe6531c00879efc8"> 69</a></span> <span class="keywordtype">void</span> <a class="code" href="classpism_1_1atmosphere_1_1AtmosphereModel_a0597f334c365ed8efe6531c00879efc8.html#a0597f334c365ed8efe6531c00879efc8">AtmosphereModel::update</a>(<span class="keyword">const</span> <a class="code" href="classpism_1_1Geometry.html">Geometry</a> &geometry, <span class="keywordtype">double</span> t, <span class="keywordtype">double</span> dt) {</div>
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  this-><a class="code" href="classpism_1_1atmosphere_1_1AtmosphereModel_a181f3b84b599c984cd338b736be767af.html#a181f3b84b599c984cd338b736be767af">update_impl</a>(geometry, t, dt);</div>
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span> }</div>
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  </div>
<div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="classpism_1_1atmosphere_1_1AtmosphereModel_a763eb2f75faf4a588b5b9ddcdb359afa.html#a763eb2f75faf4a588b5b9ddcdb359afa"> 73</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_1atmosphere_1_1AtmosphereModel_a763eb2f75faf4a588b5b9ddcdb359afa.html#a763eb2f75faf4a588b5b9ddcdb359afa">AtmosphereModel::precipitation</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  <span class="keywordflow">return</span> this-><a class="code" href="classpism_1_1atmosphere_1_1AtmosphereModel_a8016937fa65243f8a014f1c1321c4eda.html#a8016937fa65243f8a014f1c1321c4eda">precipitation_impl</a>();</div>
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span> }</div>
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  </div>
<div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="classpism_1_1atmosphere_1_1AtmosphereModel_a4fef7739eee952869bfbbae06cd8e516.html#a4fef7739eee952869bfbbae06cd8e516"> 77</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_1atmosphere_1_1AtmosphereModel_a4fef7739eee952869bfbbae06cd8e516.html#a4fef7739eee952869bfbbae06cd8e516">AtmosphereModel::air_temperature</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  <span class="keywordflow">return</span> this-><a class="code" href="classpism_1_1atmosphere_1_1AtmosphereModel_aaf9b191d5db426e0031ef0fdf4b18516.html#aaf9b191d5db426e0031ef0fdf4b18516">air_temperature_impl</a>();</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>  </div>
<div class="line"><a name="l00081"></a><span class="lineno"><a class="line" href="classpism_1_1atmosphere_1_1AtmosphereModel_a86d445eb97f75356969988102c7b9b5d.html#a86d445eb97f75356969988102c7b9b5d"> 81</a></span> <span class="keywordtype">void</span> <a class="code" href="classpism_1_1atmosphere_1_1AtmosphereModel_a86d445eb97f75356969988102c7b9b5d.html#a86d445eb97f75356969988102c7b9b5d">AtmosphereModel::begin_pointwise_access</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  this-><a class="code" href="classpism_1_1atmosphere_1_1AtmosphereModel_a8e216b235bdd8c7de7278aa717dee99d.html#a8e216b235bdd8c7de7278aa717dee99d">begin_pointwise_access_impl</a>();</div>
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span> }</div>
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  </div>
<div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="classpism_1_1atmosphere_1_1AtmosphereModel_a9c0624a3aaf9eb90a522f81c26cd4128.html#a9c0624a3aaf9eb90a522f81c26cd4128"> 85</a></span> <span class="keywordtype">void</span> <a class="code" href="classpism_1_1atmosphere_1_1AtmosphereModel_a9c0624a3aaf9eb90a522f81c26cd4128.html#a9c0624a3aaf9eb90a522f81c26cd4128">AtmosphereModel::end_pointwise_access</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  this-><a class="code" href="classpism_1_1atmosphere_1_1AtmosphereModel_ac5a2a7473812e8573a2616cc019465fd.html#ac5a2a7473812e8573a2616cc019465fd">end_pointwise_access_impl</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>  </div>
<div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="classpism_1_1atmosphere_1_1AtmosphereModel_a727841da122070489ab647f68404e056.html#a727841da122070489ab647f68404e056"> 89</a></span> <span class="keywordtype">void</span> <a class="code" href="classpism_1_1atmosphere_1_1AtmosphereModel_a727841da122070489ab647f68404e056.html#a727841da122070489ab647f68404e056">AtmosphereModel::init_timeseries</a>(<span class="keyword">const</span> std::vector<double> &ts)<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  this-><a class="code" href="classpism_1_1atmosphere_1_1AtmosphereModel_a46b8c5748272b9a9c6cef9ff1cca3cd5.html#a46b8c5748272b9a9c6cef9ff1cca3cd5">init_timeseries_impl</a>(ts);</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"><a class="line" href="classpism_1_1atmosphere_1_1AtmosphereModel_af54fece2e87b9fa95f6380bd74d1d320.html#af54fece2e87b9fa95f6380bd74d1d320"> 93</a></span> <span class="keywordtype">void</span> <a class="code" href="classpism_1_1atmosphere_1_1AtmosphereModel_af54fece2e87b9fa95f6380bd74d1d320.html#af54fece2e87b9fa95f6380bd74d1d320">AtmosphereModel::precip_time_series</a>(<span class="keywordtype">int</span> i, <span class="keywordtype">int</span> j, std::vector<double> &result)<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  result.resize(<a class="code" href="classpism_1_1atmosphere_1_1AtmosphereModel_ae99337d3938cc0213d8f16a43805ba84.html#ae99337d3938cc0213d8f16a43805ba84">m_ts_times</a>.size());</div>
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  this-><a class="code" href="classpism_1_1atmosphere_1_1AtmosphereModel_a8aaf6b2919d9f32150baf869aa736653.html#a8aaf6b2919d9f32150baf869aa736653">precip_time_series_impl</a>(i, j, result);</div>
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span> }</div>
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  </div>
<div class="line"><a name="l00098"></a><span class="lineno"><a class="line" href="classpism_1_1atmosphere_1_1AtmosphereModel_aa6b81f641cae02338a3ba7dd0197447a.html#aa6b81f641cae02338a3ba7dd0197447a"> 98</a></span> <span class="keywordtype">void</span> <a class="code" href="classpism_1_1atmosphere_1_1AtmosphereModel_aa6b81f641cae02338a3ba7dd0197447a.html#aa6b81f641cae02338a3ba7dd0197447a">AtmosphereModel::temp_time_series</a>(<span class="keywordtype">int</span> i, <span class="keywordtype">int</span> j, std::vector<double> &result)<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  result.resize(<a class="code" href="classpism_1_1atmosphere_1_1AtmosphereModel_ae99337d3938cc0213d8f16a43805ba84.html#ae99337d3938cc0213d8f16a43805ba84">m_ts_times</a>.size());</div>
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  this-><a class="code" href="classpism_1_1atmosphere_1_1AtmosphereModel_ae6e26fa80a9eb2cd212388839bd63d00.html#ae6e26fa80a9eb2cd212388839bd63d00">temp_time_series_impl</a>(i, j, result);</div>
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span> }</div>
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  </div>
<div class="line"><a name="l00103"></a><span class="lineno"><a class="line" href="namespacepism_1_1atmosphere_1_1diagnostics.html"> 103</a></span> <span class="keyword">namespace </span>diagnostics {</div>
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span> <span class="comment"></span> </div>
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span> <span class="comment">/*! @brief Instantaneous near-surface air temperature. */</span></div>
<div class="line"><a name="l00106"></a><span class="lineno"><a class="line" href="classpism_1_1atmosphere_1_1diagnostics_1_1AirTemperatureSnapshot.html"> 106</a></span> <span class="keyword">class </span><a class="code" href="classpism_1_1atmosphere_1_1diagnostics_1_1AirTemperatureSnapshot.html">AirTemperatureSnapshot</a> : <span class="keyword">public</span> <a class="code" href="classpism_1_1Diag.html">Diag</a><AtmosphereModel> {</div>
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span> <span class="keyword">public</span>:</div>
<div class="line"><a name="l00108"></a><span class="lineno"><a class="line" href="classpism_1_1atmosphere_1_1diagnostics_1_1AirTemperatureSnapshot_a01c64d1db40d4c52ef5c6d95da00309c.html#a01c64d1db40d4c52ef5c6d95da00309c"> 108</a></span>  <a class="code" href="classpism_1_1atmosphere_1_1diagnostics_1_1AirTemperatureSnapshot_a01c64d1db40d4c52ef5c6d95da00309c.html#a01c64d1db40d4c52ef5c6d95da00309c">AirTemperatureSnapshot</a>(<span class="keyword">const</span> <a class="code" href="classpism_1_1atmosphere_1_1AtmosphereModel.html">AtmosphereModel</a> *m) : <a class="code" href="classpism_1_1Diag.html">Diag</a><<a class="code" href="classpism_1_1atmosphere_1_1AtmosphereModel.html">AtmosphereModel</a>>(m) {</div>
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  <a class="code" href="classpism_1_1Diagnostic_a7590d3d6d714ca1bbc99787baea537e0.html#a7590d3d6d714ca1bbc99787baea537e0">m_vars</a> = { { <a class="code" href="classpism_1_1Diagnostic_a66c35ec2a3236c20757ba9ce5880eb6d.html#a66c35ec2a3236c20757ba9ce5880eb6d">m_sys</a>, <span class="stringliteral">"air_temp_snapshot"</span> } };</div>
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  <a class="code" href="classpism_1_1Diagnostic_a7590d3d6d714ca1bbc99787baea537e0.html#a7590d3d6d714ca1bbc99787baea537e0">m_vars</a>[0].long_name(<span class="stringliteral">"instantaneous value of the near-surface air temperature"</span>).units(<span class="stringliteral">"Kelvin"</span>);</div>
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  }</div>
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  </div>
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span> <span class="keyword">protected</span>:</div>
<div class="line"><a name="l00114"></a><span class="lineno"><a class="line" href="classpism_1_1atmosphere_1_1diagnostics_1_1AirTemperatureSnapshot_a1ecdfc44c73678704d1e8c791f652a22.html#a1ecdfc44c73678704d1e8c791f652a22"> 114</a></span>  std::shared_ptr<array::Array> <a class="code" href="classpism_1_1atmosphere_1_1diagnostics_1_1AirTemperatureSnapshot_a1ecdfc44c73678704d1e8c791f652a22.html#a1ecdfc44c73678704d1e8c791f652a22">compute_impl</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  </div>
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  <span class="keyword">auto</span> result = allocate<array::Scalar>(<span class="stringliteral">"air_temp_snapshot"</span>);</div>
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  </div>
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  std::vector<double> current_time = { <a class="code" href="classpism_1_1Diagnostic_af0eaf7c1c949d96b5c5ac945c7b744ca.html#af0eaf7c1c949d96b5c5ac945c7b744ca">m_grid</a>->ctx()->time()->current() };</div>
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  std::vector<double> temperature = { 0.0 };</div>
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  </div>
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  <a class="code" href="classpism_1_1Diag_aa3e0516ca815c840bfa479256aa1f711.html#aa3e0516ca815c840bfa479256aa1f711">model</a>->init_timeseries(current_time);</div>
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  </div>
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  <a class="code" href="classpism_1_1Diag_aa3e0516ca815c840bfa479256aa1f711.html#aa3e0516ca815c840bfa479256aa1f711">model</a>->begin_pointwise_access();</div>
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  </div>
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  <a class="code" href="classpism_1_1array_1_1AccessScope.html">array::AccessScope</a> list(*result);</div>
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  <a class="code" href="classpism_1_1ParallelSection.html">ParallelSection</a> loop(<a class="code" href="classpism_1_1Diagnostic_af0eaf7c1c949d96b5c5ac945c7b744ca.html#af0eaf7c1c949d96b5c5ac945c7b744ca">m_grid</a>->com);</div>
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  <span class="keywordflow">try</span> {</div>
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  <span class="keywordflow">for</span> (<span class="keyword">auto</span> p = <a class="code" href="classpism_1_1Diagnostic_af0eaf7c1c949d96b5c5ac945c7b744ca.html#af0eaf7c1c949d96b5c5ac945c7b744ca">m_grid</a>->points(); p; p.next()) {</div>
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  <span class="keyword">const</span> <span class="keywordtype">int</span> i = p.i(), j = p.j();</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>  <a class="code" href="classpism_1_1Diag_aa3e0516ca815c840bfa479256aa1f711.html#aa3e0516ca815c840bfa479256aa1f711">model</a>->temp_time_series(i, j, temperature);</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>  (*result)(i, j) = temperature[0];</div>
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  }</div>
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  } <span class="keywordflow">catch</span> (...) {</div>
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  loop.<a class="code" href="classpism_1_1ParallelSection_a6b0a6e5e64970af7eadabfebe2b20bd2.html#a6b0a6e5e64970af7eadabfebe2b20bd2">failed</a>();</div>
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  }</div>
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  loop.<a class="code" href="classpism_1_1ParallelSection_ac23296abee1cbcb3c3fd68c7f5ce0835.html#ac23296abee1cbcb3c3fd68c7f5ce0835">check</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>  <a class="code" href="classpism_1_1Diag_aa3e0516ca815c840bfa479256aa1f711.html#aa3e0516ca815c840bfa479256aa1f711">model</a>->end_pointwise_access();</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>  <span class="keywordflow">return</span> result;</div>
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  }</div>
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span> };</div>
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span> <span class="comment"></span> </div>
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span> <span class="comment">/*! @brief Effective near-surface mean-annual air temperature. */</span></div>
<div class="line"><a name="l00147"></a><span class="lineno"><a class="line" href="classpism_1_1atmosphere_1_1diagnostics_1_1AirTemperature.html"> 147</a></span> <span class="keyword">class </span><a class="code" href="classpism_1_1atmosphere_1_1diagnostics_1_1AirTemperature.html">AirTemperature</a> : <span class="keyword">public</span> <a class="code" href="classpism_1_1Diag.html">Diag</a><AtmosphereModel> {</div>
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span> <span class="keyword">public</span>:</div>
<div class="line"><a name="l00149"></a><span class="lineno"><a class="line" href="classpism_1_1atmosphere_1_1diagnostics_1_1AirTemperature_ae2d9ddc466c70af33655616270940772.html#ae2d9ddc466c70af33655616270940772"> 149</a></span>  <a class="code" href="classpism_1_1atmosphere_1_1diagnostics_1_1AirTemperature_ae2d9ddc466c70af33655616270940772.html#ae2d9ddc466c70af33655616270940772">AirTemperature</a>(<span class="keyword">const</span> <a class="code" href="classpism_1_1atmosphere_1_1AtmosphereModel.html">AtmosphereModel</a> *m) : <a class="code" href="classpism_1_1Diag.html">Diag</a><<a class="code" href="classpism_1_1atmosphere_1_1AtmosphereModel.html">AtmosphereModel</a>>(m) {</div>
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  <a class="code" href="classpism_1_1Diagnostic_a7590d3d6d714ca1bbc99787baea537e0.html#a7590d3d6d714ca1bbc99787baea537e0">m_vars</a> = { { <a class="code" href="classpism_1_1Diagnostic_a66c35ec2a3236c20757ba9ce5880eb6d.html#a66c35ec2a3236c20757ba9ce5880eb6d">m_sys</a>, <span class="stringliteral">"effective_air_temp"</span> } };</div>
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span>  <a class="code" href="classpism_1_1Diagnostic_a7590d3d6d714ca1bbc99787baea537e0.html#a7590d3d6d714ca1bbc99787baea537e0">m_vars</a>[0].long_name(<span class="stringliteral">"effective mean-annual near-surface air temperature"</span>).units(<span class="stringliteral">"Kelvin"</span>);</div>
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span>  }</div>
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span>  </div>
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span> <span class="keyword">protected</span>:</div>
<div class="line"><a name="l00155"></a><span class="lineno"><a class="line" href="classpism_1_1atmosphere_1_1diagnostics_1_1AirTemperature_ad6469aca27724dd90998df8b56df5aff.html#ad6469aca27724dd90998df8b56df5aff"> 155</a></span>  std::shared_ptr<array::Array> <a class="code" href="classpism_1_1atmosphere_1_1diagnostics_1_1AirTemperature_ad6469aca27724dd90998df8b56df5aff.html#ad6469aca27724dd90998df8b56df5aff">compute_impl</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00156"></a><span class="lineno"> 156</span>  <span class="keyword">auto</span> result = allocate<array::Scalar>(<span class="stringliteral">"effective_air_temp"</span>);</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>  result->copy_from(<a class="code" href="classpism_1_1Diag_aa3e0516ca815c840bfa479256aa1f711.html#aa3e0516ca815c840bfa479256aa1f711">model</a>->air_temperature());</div>
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span>  </div>
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span>  <span class="keywordflow">return</span> result;</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> };</div>
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span> <span class="comment"></span> </div>
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span> <span class="comment">/*! @brief Effective precipitation rate (average over time step). */</span></div>
<div class="line"><a name="l00165"></a><span class="lineno"><a class="line" href="classpism_1_1atmosphere_1_1diagnostics_1_1Precipitation.html"> 165</a></span> <span class="keyword">class </span><a class="code" href="classpism_1_1atmosphere_1_1diagnostics_1_1Precipitation.html">Precipitation</a> : <span class="keyword">public</span> <a class="code" href="classpism_1_1Diag.html">Diag</a><AtmosphereModel> {</div>
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span> <span class="keyword">public</span>:</div>
<div class="line"><a name="l00167"></a><span class="lineno"><a class="line" href="classpism_1_1atmosphere_1_1diagnostics_1_1Precipitation_a511becd972f1f6eb3418b10141f60e83.html#a511becd972f1f6eb3418b10141f60e83"> 167</a></span>  <a class="code" href="classpism_1_1atmosphere_1_1diagnostics_1_1Precipitation_a511becd972f1f6eb3418b10141f60e83.html#a511becd972f1f6eb3418b10141f60e83">Precipitation</a>(<span class="keyword">const</span> <a class="code" href="classpism_1_1atmosphere_1_1AtmosphereModel.html">AtmosphereModel</a> *m) : <a class="code" href="classpism_1_1Diag.html">Diag</a><<a class="code" href="classpism_1_1atmosphere_1_1AtmosphereModel.html">AtmosphereModel</a>>(m) {</div>
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span>  <a class="code" href="classpism_1_1Diagnostic_a7590d3d6d714ca1bbc99787baea537e0.html#a7590d3d6d714ca1bbc99787baea537e0">m_vars</a> = { { <a class="code" href="classpism_1_1Diagnostic_a66c35ec2a3236c20757ba9ce5880eb6d.html#a66c35ec2a3236c20757ba9ce5880eb6d">m_sys</a>, <span class="stringliteral">"effective_precipitation"</span> } };</div>
<div class="line"><a name="l00169"></a><span class="lineno"> 169</span>  <a class="code" href="classpism_1_1Diagnostic_a7590d3d6d714ca1bbc99787baea537e0.html#a7590d3d6d714ca1bbc99787baea537e0">m_vars</a>[0]</div>
<div class="line"><a name="l00170"></a><span class="lineno"> 170</span>  .long_name(<span class="stringliteral">"effective precipitation rate"</span>)</div>
<div class="line"><a name="l00171"></a><span class="lineno"> 171</span>  .standard_name(<span class="stringliteral">"precipitation_flux"</span>)</div>
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span>  .units(<span class="stringliteral">"kg m-2 second-1"</span>)</div>
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span>  .output_units(<span class="stringliteral">"kg m-2 year-1"</span>);</div>
<div class="line"><a name="l00174"></a><span class="lineno"> 174</span>  }</div>
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span>  </div>
<div class="line"><a name="l00176"></a><span class="lineno"> 176</span> <span class="keyword">protected</span>:</div>
<div class="line"><a name="l00177"></a><span class="lineno"><a class="line" href="classpism_1_1atmosphere_1_1diagnostics_1_1Precipitation_a732aeb11bd5bad9f0ee3bed94e390990.html#a732aeb11bd5bad9f0ee3bed94e390990"> 177</a></span>  std::shared_ptr<array::Array> <a class="code" href="classpism_1_1atmosphere_1_1diagnostics_1_1Precipitation_a732aeb11bd5bad9f0ee3bed94e390990.html#a732aeb11bd5bad9f0ee3bed94e390990">compute_impl</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span>  <span class="keyword">auto</span> result = allocate<array::Scalar>(<span class="stringliteral">"effective_precipitation"</span>);</div>
<div class="line"><a name="l00179"></a><span class="lineno"> 179</span>  </div>
<div class="line"><a name="l00180"></a><span class="lineno"> 180</span>  result->copy_from(<a class="code" href="classpism_1_1Diag_aa3e0516ca815c840bfa479256aa1f711.html#aa3e0516ca815c840bfa479256aa1f711">model</a>->precipitation());</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">return</span> result;</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>  </div>
<div class="line"><a name="l00186"></a><span class="lineno"> 186</span> } <span class="comment">// end of namespace diagnostics</span></div>
<div class="line"><a name="l00187"></a><span class="lineno"> 187</span>  </div>
<div class="line"><a name="l00188"></a><span class="lineno"><a class="line" href="classpism_1_1atmosphere_1_1AtmosphereModel_a181f3b84b599c984cd338b736be767af.html#a181f3b84b599c984cd338b736be767af"> 188</a></span> <span class="keywordtype">void</span> <a class="code" href="classpism_1_1atmosphere_1_1AtmosphereModel_a181f3b84b599c984cd338b736be767af.html#a181f3b84b599c984cd338b736be767af">AtmosphereModel::update_impl</a>(<span class="keyword">const</span> <a class="code" href="classpism_1_1Geometry.html">Geometry</a> &geometry, <span class="keywordtype">double</span> t, <span class="keywordtype">double</span> dt) {</div>
<div class="line"><a name="l00189"></a><span class="lineno"> 189</span>  <span class="keywordflow">if</span> (<a class="code" href="classpism_1_1atmosphere_1_1AtmosphereModel_a98b5c47717974965035211a2755c4b66.html#a98b5c47717974965035211a2755c4b66">m_input_model</a>) {</div>
<div class="line"><a name="l00190"></a><span class="lineno"> 190</span>  <a class="code" href="classpism_1_1atmosphere_1_1AtmosphereModel_a98b5c47717974965035211a2755c4b66.html#a98b5c47717974965035211a2755c4b66">m_input_model</a>->update_impl(geometry, t, dt);</div>
<div class="line"><a name="l00191"></a><span class="lineno"> 191</span>  }</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>  </div>
<div class="line"><a name="l00194"></a><span class="lineno"><a class="line" href="classpism_1_1atmosphere_1_1AtmosphereModel_ae89d3aa5ed637b3760f557a758ae6e79.html#ae89d3aa5ed637b3760f557a758ae6e79"> 194</a></span> <a class="code" href="classpism_1_1MaxTimestep.html">MaxTimestep</a> <a class="code" href="classpism_1_1atmosphere_1_1AtmosphereModel_ae89d3aa5ed637b3760f557a758ae6e79.html#ae89d3aa5ed637b3760f557a758ae6e79">AtmosphereModel::max_timestep_impl</a>(<span class="keywordtype">double</span> my_t)<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00195"></a><span class="lineno"> 195</span>  <span class="keywordflow">if</span> (<a class="code" href="classpism_1_1atmosphere_1_1AtmosphereModel_a98b5c47717974965035211a2755c4b66.html#a98b5c47717974965035211a2755c4b66">m_input_model</a>) {</div>
<div class="line"><a name="l00196"></a><span class="lineno"> 196</span>  <span class="keywordflow">return</span> <a class="code" href="classpism_1_1atmosphere_1_1AtmosphereModel_a98b5c47717974965035211a2755c4b66.html#a98b5c47717974965035211a2755c4b66">m_input_model</a>->max_timestep(my_t);</div>
<div class="line"><a name="l00197"></a><span class="lineno"> 197</span>  }</div>
<div class="line"><a name="l00198"></a><span class="lineno"> 198</span>  <span class="keywordflow">return</span> <a class="code" href="classpism_1_1MaxTimestep.html">MaxTimestep</a>(<span class="stringliteral">"atmosphere model"</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>  </div>
<div class="line"><a name="l00201"></a><span class="lineno"><a class="line" href="classpism_1_1atmosphere_1_1AtmosphereModel_a021ff2062143cda6e9e230600c3560cc.html#a021ff2062143cda6e9e230600c3560cc"> 201</a></span> <a class="code" href="namespacepism_a6154a990ba873c6ca606d8a320c441ac.html#a6154a990ba873c6ca606d8a320c441ac">DiagnosticList</a> <a class="code" href="classpism_1_1atmosphere_1_1AtmosphereModel_a021ff2062143cda6e9e230600c3560cc.html#a021ff2062143cda6e9e230600c3560cc">AtmosphereModel::diagnostics_impl</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00202"></a><span class="lineno"> 202</span>  <span class="keyword">using namespace </span><a class="code" href="classpism_1_1Component_ac0ff4daf2dc8b23ea64b1d635666bdf0.html#ac0ff4daf2dc8b23ea64b1d635666bdf0">diagnostics</a>;</div>
<div class="line"><a name="l00203"></a><span class="lineno"> 203</span>  </div>
<div class="line"><a name="l00204"></a><span class="lineno"> 204</span>  <a class="code" href="namespacepism_a6154a990ba873c6ca606d8a320c441ac.html#a6154a990ba873c6ca606d8a320c441ac">DiagnosticList</a> result = {</div>
<div class="line"><a name="l00205"></a><span class="lineno"> 205</span>  {<span class="stringliteral">"air_temp_snapshot"</span>, <a class="code" href="classpism_1_1Diagnostic_a94d5717226f2c89299c0c08168f01455.html#a94d5717226f2c89299c0c08168f01455">Diagnostic::Ptr</a>(<span class="keyword">new</span> AirTemperatureSnapshot(<span class="keyword">this</span>))},</div>
<div class="line"><a name="l00206"></a><span class="lineno"> 206</span>  {<span class="stringliteral">"effective_air_temp"</span>, <a class="code" href="classpism_1_1Diagnostic_a94d5717226f2c89299c0c08168f01455.html#a94d5717226f2c89299c0c08168f01455">Diagnostic::Ptr</a>(<span class="keyword">new</span> AirTemperature(<span class="keyword">this</span>))},</div>
<div class="line"><a name="l00207"></a><span class="lineno"> 207</span>  {<span class="stringliteral">"effective_precipitation"</span>, <a class="code" href="classpism_1_1Diagnostic_a94d5717226f2c89299c0c08168f01455.html#a94d5717226f2c89299c0c08168f01455">Diagnostic::Ptr</a>(<span class="keyword">new</span> Precipitation(<span class="keyword">this</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>  </div>
<div class="line"><a name="l00210"></a><span class="lineno"> 210</span>  <span class="keywordflow">if</span> (<a class="code" href="classpism_1_1atmosphere_1_1AtmosphereModel_a98b5c47717974965035211a2755c4b66.html#a98b5c47717974965035211a2755c4b66">m_input_model</a>) {</div>
<div class="line"><a name="l00211"></a><span class="lineno"> 211</span>  result = <a class="code" href="namespacepism_ab50523fe25aadf4a123551726b2a2967.html#ab50523fe25aadf4a123551726b2a2967">combine</a>(result, <a class="code" href="classpism_1_1atmosphere_1_1AtmosphereModel_a98b5c47717974965035211a2755c4b66.html#a98b5c47717974965035211a2755c4b66">m_input_model</a>->diagnostics());</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>  </div>
<div class="line"><a name="l00214"></a><span class="lineno"> 214</span>  <span class="keywordflow">return</span> result;</div>
<div class="line"><a name="l00215"></a><span class="lineno"> 215</span> }</div>
<div class="line"><a name="l00216"></a><span class="lineno"> 216</span>  </div>
<div class="line"><a name="l00217"></a><span class="lineno"><a class="line" href="classpism_1_1atmosphere_1_1AtmosphereModel_a0fc2227b023df7c4530944aa951b1676.html#a0fc2227b023df7c4530944aa951b1676"> 217</a></span> <a class="code" href="namespacepism_a5cca85a16d08e7581dbc0ce9e341956a.html#a5cca85a16d08e7581dbc0ce9e341956a">TSDiagnosticList</a> <a class="code" href="classpism_1_1atmosphere_1_1AtmosphereModel_a0fc2227b023df7c4530944aa951b1676.html#a0fc2227b023df7c4530944aa951b1676">AtmosphereModel::ts_diagnostics_impl</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00218"></a><span class="lineno"> 218</span>  <span class="keywordflow">if</span> (<a class="code" href="classpism_1_1atmosphere_1_1AtmosphereModel_a98b5c47717974965035211a2755c4b66.html#a98b5c47717974965035211a2755c4b66">m_input_model</a>) {</div>
<div class="line"><a name="l00219"></a><span class="lineno"> 219</span>  <span class="keywordflow">return</span> <a class="code" href="classpism_1_1atmosphere_1_1AtmosphereModel_a98b5c47717974965035211a2755c4b66.html#a98b5c47717974965035211a2755c4b66">m_input_model</a>->ts_diagnostics();</div>
<div class="line"><a name="l00220"></a><span class="lineno"> 220</span>  }</div>
<div class="line"><a name="l00221"></a><span class="lineno"> 221</span>  </div>
<div class="line"><a name="l00222"></a><span class="lineno"> 222</span>  <span class="keywordflow">return</span> {};</div>
<div class="line"><a name="l00223"></a><span class="lineno"> 223</span> }</div>
<div class="line"><a name="l00224"></a><span class="lineno"> 224</span>  </div>
<div class="line"><a name="l00225"></a><span class="lineno"><a class="line" href="classpism_1_1atmosphere_1_1AtmosphereModel_a4344ca35265a6f01aa210583dcce6464.html#a4344ca35265a6f01aa210583dcce6464"> 225</a></span> <span class="keywordtype">void</span> <a class="code" href="classpism_1_1atmosphere_1_1AtmosphereModel_a4344ca35265a6f01aa210583dcce6464.html#a4344ca35265a6f01aa210583dcce6464">AtmosphereModel::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="l00226"></a><span class="lineno"> 226</span>  <span class="keywordflow">if</span> (<a class="code" href="classpism_1_1atmosphere_1_1AtmosphereModel_a98b5c47717974965035211a2755c4b66.html#a98b5c47717974965035211a2755c4b66">m_input_model</a>) {</div>
<div class="line"><a name="l00227"></a><span class="lineno"> 227</span>  <a class="code" href="classpism_1_1atmosphere_1_1AtmosphereModel_a98b5c47717974965035211a2755c4b66.html#a98b5c47717974965035211a2755c4b66">m_input_model</a>->define_model_state(output);</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> }</div>
<div class="line"><a name="l00230"></a><span class="lineno"> 230</span>  </div>
<div class="line"><a name="l00231"></a><span class="lineno"><a class="line" href="classpism_1_1atmosphere_1_1AtmosphereModel_a1c52bf1df9cda836d50a33fa74a99cab.html#a1c52bf1df9cda836d50a33fa74a99cab"> 231</a></span> <span class="keywordtype">void</span> <a class="code" href="classpism_1_1atmosphere_1_1AtmosphereModel_a1c52bf1df9cda836d50a33fa74a99cab.html#a1c52bf1df9cda836d50a33fa74a99cab">AtmosphereModel::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="l00232"></a><span class="lineno"> 232</span>  <span class="keywordflow">if</span> (<a class="code" href="classpism_1_1atmosphere_1_1AtmosphereModel_a98b5c47717974965035211a2755c4b66.html#a98b5c47717974965035211a2755c4b66">m_input_model</a>) {</div>
<div class="line"><a name="l00233"></a><span class="lineno"> 233</span>  <a class="code" href="classpism_1_1atmosphere_1_1AtmosphereModel_a98b5c47717974965035211a2755c4b66.html#a98b5c47717974965035211a2755c4b66">m_input_model</a>->write_model_state(output);</div>
<div class="line"><a name="l00234"></a><span class="lineno"> 234</span>  }</div>
<div class="line"><a name="l00235"></a><span class="lineno"> 235</span> }</div>
<div class="line"><a name="l00236"></a><span class="lineno"> 236</span>  </div>
<div class="line"><a name="l00237"></a><span class="lineno"><a class="line" href="classpism_1_1atmosphere_1_1AtmosphereModel_a8016937fa65243f8a014f1c1321c4eda.html#a8016937fa65243f8a014f1c1321c4eda"> 237</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_1atmosphere_1_1AtmosphereModel_a8016937fa65243f8a014f1c1321c4eda.html#a8016937fa65243f8a014f1c1321c4eda">AtmosphereModel::precipitation_impl</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00238"></a><span class="lineno"> 238</span>  <span class="keywordflow">if</span> (<a class="code" href="classpism_1_1atmosphere_1_1AtmosphereModel_a98b5c47717974965035211a2755c4b66.html#a98b5c47717974965035211a2755c4b66">m_input_model</a>) {</div>
<div class="line"><a name="l00239"></a><span class="lineno"> 239</span>  <span class="keywordflow">return</span> <a class="code" href="classpism_1_1atmosphere_1_1AtmosphereModel_a98b5c47717974965035211a2755c4b66.html#a98b5c47717974965035211a2755c4b66">m_input_model</a>->precipitation();</div>
<div class="line"><a name="l00240"></a><span class="lineno"> 240</span>  }</div>
<div class="line"><a name="l00241"></a><span class="lineno"> 241</span>  <span class="keywordflow">throw</span> <a class="code" href="classpism_1_1RuntimeError_ad0ed5f05a9a4e3e403a1d62f8d1e4e7d.html#ad0ed5f05a9a4e3e403a1d62f8d1e4e7d">RuntimeError::formatted</a>(<a class="code" href="error__handling_8hh_aa0c260bffe8a4dbd77d48e8feee7c526.html#aa0c260bffe8a4dbd77d48e8feee7c526">PISM_ERROR_LOCATION</a>, <span class="stringliteral">"no input model"</span>);</div>
<div class="line"><a name="l00242"></a><span class="lineno"> 242</span> }</div>
<div class="line"><a name="l00243"></a><span class="lineno"> 243</span>  </div>
<div class="line"><a name="l00244"></a><span class="lineno"><a class="line" href="classpism_1_1atmosphere_1_1AtmosphereModel_aaf9b191d5db426e0031ef0fdf4b18516.html#aaf9b191d5db426e0031ef0fdf4b18516"> 244</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_1atmosphere_1_1AtmosphereModel_aaf9b191d5db426e0031ef0fdf4b18516.html#aaf9b191d5db426e0031ef0fdf4b18516">AtmosphereModel::air_temperature_impl</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00245"></a><span class="lineno"> 245</span>  <span class="keywordflow">if</span> (<a class="code" href="classpism_1_1atmosphere_1_1AtmosphereModel_a98b5c47717974965035211a2755c4b66.html#a98b5c47717974965035211a2755c4b66">m_input_model</a>) {</div>
<div class="line"><a name="l00246"></a><span class="lineno"> 246</span>  <span class="keywordflow">return</span> <a class="code" href="classpism_1_1atmosphere_1_1AtmosphereModel_a98b5c47717974965035211a2755c4b66.html#a98b5c47717974965035211a2755c4b66">m_input_model</a>->air_temperature();</div>
<div class="line"><a name="l00247"></a><span class="lineno"> 247</span>  }</div>
<div class="line"><a name="l00248"></a><span class="lineno"> 248</span>  <span class="keywordflow">throw</span> <a class="code" href="classpism_1_1RuntimeError_ad0ed5f05a9a4e3e403a1d62f8d1e4e7d.html#ad0ed5f05a9a4e3e403a1d62f8d1e4e7d">RuntimeError::formatted</a>(<a class="code" href="error__handling_8hh_aa0c260bffe8a4dbd77d48e8feee7c526.html#aa0c260bffe8a4dbd77d48e8feee7c526">PISM_ERROR_LOCATION</a>, <span class="stringliteral">"no input model"</span>);</div>
<div class="line"><a name="l00249"></a><span class="lineno"> 249</span> }</div>
<div class="line"><a name="l00250"></a><span class="lineno"> 250</span>  </div>
<div class="line"><a name="l00251"></a><span class="lineno"><a class="line" href="classpism_1_1atmosphere_1_1AtmosphereModel_a8e216b235bdd8c7de7278aa717dee99d.html#a8e216b235bdd8c7de7278aa717dee99d"> 251</a></span> <span class="keywordtype">void</span> <a class="code" href="classpism_1_1atmosphere_1_1AtmosphereModel_a8e216b235bdd8c7de7278aa717dee99d.html#a8e216b235bdd8c7de7278aa717dee99d">AtmosphereModel::begin_pointwise_access_impl</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00252"></a><span class="lineno"> 252</span>  <span class="keywordflow">if</span> (<a class="code" href="classpism_1_1atmosphere_1_1AtmosphereModel_a98b5c47717974965035211a2755c4b66.html#a98b5c47717974965035211a2755c4b66">m_input_model</a>) {</div>
<div class="line"><a name="l00253"></a><span class="lineno"> 253</span>  <a class="code" href="classpism_1_1atmosphere_1_1AtmosphereModel_a98b5c47717974965035211a2755c4b66.html#a98b5c47717974965035211a2755c4b66">m_input_model</a>->begin_pointwise_access();</div>
<div class="line"><a name="l00254"></a><span class="lineno"> 254</span>  } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00255"></a><span class="lineno"> 255</span>  <span class="keywordflow">throw</span> <a class="code" href="classpism_1_1RuntimeError_ad0ed5f05a9a4e3e403a1d62f8d1e4e7d.html#ad0ed5f05a9a4e3e403a1d62f8d1e4e7d">RuntimeError::formatted</a>(<a class="code" href="error__handling_8hh_aa0c260bffe8a4dbd77d48e8feee7c526.html#aa0c260bffe8a4dbd77d48e8feee7c526">PISM_ERROR_LOCATION</a>, <span class="stringliteral">"no input model"</span>);</div>
<div class="line"><a name="l00256"></a><span class="lineno"> 256</span>  }</div>
<div class="line"><a name="l00257"></a><span class="lineno"> 257</span> }</div>
<div class="line"><a name="l00258"></a><span class="lineno"> 258</span>  </div>
<div class="line"><a name="l00259"></a><span class="lineno"><a class="line" href="classpism_1_1atmosphere_1_1AtmosphereModel_ac5a2a7473812e8573a2616cc019465fd.html#ac5a2a7473812e8573a2616cc019465fd"> 259</a></span> <span class="keywordtype">void</span> <a class="code" href="classpism_1_1atmosphere_1_1AtmosphereModel_ac5a2a7473812e8573a2616cc019465fd.html#ac5a2a7473812e8573a2616cc019465fd">AtmosphereModel::end_pointwise_access_impl</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00260"></a><span class="lineno"> 260</span>  <span class="keywordflow">if</span> (<a class="code" href="classpism_1_1atmosphere_1_1AtmosphereModel_a98b5c47717974965035211a2755c4b66.html#a98b5c47717974965035211a2755c4b66">m_input_model</a>) {</div>
<div class="line"><a name="l00261"></a><span class="lineno"> 261</span>  <a class="code" href="classpism_1_1atmosphere_1_1AtmosphereModel_a98b5c47717974965035211a2755c4b66.html#a98b5c47717974965035211a2755c4b66">m_input_model</a>->end_pointwise_access();</div>
<div class="line"><a name="l00262"></a><span class="lineno"> 262</span>  } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00263"></a><span class="lineno"> 263</span>  <span class="keywordflow">throw</span> <a class="code" href="classpism_1_1RuntimeError_ad0ed5f05a9a4e3e403a1d62f8d1e4e7d.html#ad0ed5f05a9a4e3e403a1d62f8d1e4e7d">RuntimeError::formatted</a>(<a class="code" href="error__handling_8hh_aa0c260bffe8a4dbd77d48e8feee7c526.html#aa0c260bffe8a4dbd77d48e8feee7c526">PISM_ERROR_LOCATION</a>, <span class="stringliteral">"no input model"</span>);</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> }</div>
<div class="line"><a name="l00266"></a><span class="lineno"> 266</span>  </div>
<div class="line"><a name="l00267"></a><span class="lineno"><a class="line" href="classpism_1_1atmosphere_1_1AtmosphereModel_ae6e26fa80a9eb2cd212388839bd63d00.html#ae6e26fa80a9eb2cd212388839bd63d00"> 267</a></span> <span class="keywordtype">void</span> <a class="code" href="classpism_1_1atmosphere_1_1AtmosphereModel_ae6e26fa80a9eb2cd212388839bd63d00.html#ae6e26fa80a9eb2cd212388839bd63d00">AtmosphereModel::temp_time_series_impl</a>(<span class="keywordtype">int</span> i, <span class="keywordtype">int</span> j, std::vector<double> &result)<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00268"></a><span class="lineno"> 268</span>  <span class="keywordflow">if</span> (<a class="code" href="classpism_1_1atmosphere_1_1AtmosphereModel_a98b5c47717974965035211a2755c4b66.html#a98b5c47717974965035211a2755c4b66">m_input_model</a>) {</div>
<div class="line"><a name="l00269"></a><span class="lineno"> 269</span>  <a class="code" href="classpism_1_1atmosphere_1_1AtmosphereModel_a98b5c47717974965035211a2755c4b66.html#a98b5c47717974965035211a2755c4b66">m_input_model</a>->temp_time_series(i, j, result);</div>
<div class="line"><a name="l00270"></a><span class="lineno"> 270</span>  } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00271"></a><span class="lineno"> 271</span>  <span class="keywordflow">throw</span> <a class="code" href="classpism_1_1RuntimeError_ad0ed5f05a9a4e3e403a1d62f8d1e4e7d.html#ad0ed5f05a9a4e3e403a1d62f8d1e4e7d">RuntimeError::formatted</a>(<a class="code" href="error__handling_8hh_aa0c260bffe8a4dbd77d48e8feee7c526.html#aa0c260bffe8a4dbd77d48e8feee7c526">PISM_ERROR_LOCATION</a>, <span class="stringliteral">"no input model"</span>);</div>
<div class="line"><a name="l00272"></a><span class="lineno"> 272</span>  }</div>
<div class="line"><a name="l00273"></a><span class="lineno"> 273</span> }</div>
<div class="line"><a name="l00274"></a><span class="lineno"> 274</span>  </div>
<div class="line"><a name="l00275"></a><span class="lineno"><a class="line" href="classpism_1_1atmosphere_1_1AtmosphereModel_a8aaf6b2919d9f32150baf869aa736653.html#a8aaf6b2919d9f32150baf869aa736653"> 275</a></span> <span class="keywordtype">void</span> <a class="code" href="classpism_1_1atmosphere_1_1AtmosphereModel_a8aaf6b2919d9f32150baf869aa736653.html#a8aaf6b2919d9f32150baf869aa736653">AtmosphereModel::precip_time_series_impl</a>(<span class="keywordtype">int</span> i, <span class="keywordtype">int</span> j, std::vector<double> &result)<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00276"></a><span class="lineno"> 276</span>  <span class="keywordflow">if</span> (<a class="code" href="classpism_1_1atmosphere_1_1AtmosphereModel_a98b5c47717974965035211a2755c4b66.html#a98b5c47717974965035211a2755c4b66">m_input_model</a>) {</div>
<div class="line"><a name="l00277"></a><span class="lineno"> 277</span>  <a class="code" href="classpism_1_1atmosphere_1_1AtmosphereModel_a98b5c47717974965035211a2755c4b66.html#a98b5c47717974965035211a2755c4b66">m_input_model</a>->precip_time_series(i, j, result);</div>
<div class="line"><a name="l00278"></a><span class="lineno"> 278</span>  } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00279"></a><span class="lineno"> 279</span>  <span class="keywordflow">throw</span> <a class="code" href="classpism_1_1RuntimeError_ad0ed5f05a9a4e3e403a1d62f8d1e4e7d.html#ad0ed5f05a9a4e3e403a1d62f8d1e4e7d">RuntimeError::formatted</a>(<a class="code" href="error__handling_8hh_aa0c260bffe8a4dbd77d48e8feee7c526.html#aa0c260bffe8a4dbd77d48e8feee7c526">PISM_ERROR_LOCATION</a>, <span class="stringliteral">"no input model"</span>);</div>
<div class="line"><a name="l00280"></a><span class="lineno"> 280</span>  }</div>
<div class="line"><a name="l00281"></a><span class="lineno"> 281</span> }</div>
<div class="line"><a name="l00282"></a><span class="lineno"> 282</span>  </div>
<div class="line"><a name="l00283"></a><span class="lineno"><a class="line" href="classpism_1_1atmosphere_1_1AtmosphereModel_a46b8c5748272b9a9c6cef9ff1cca3cd5.html#a46b8c5748272b9a9c6cef9ff1cca3cd5"> 283</a></span> <span class="keywordtype">void</span> <a class="code" href="classpism_1_1atmosphere_1_1AtmosphereModel_a46b8c5748272b9a9c6cef9ff1cca3cd5.html#a46b8c5748272b9a9c6cef9ff1cca3cd5">AtmosphereModel::init_timeseries_impl</a>(<span class="keyword">const</span> std::vector<double> &ts)<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00284"></a><span class="lineno"> 284</span>  <span class="keywordflow">if</span> (<a class="code" href="classpism_1_1atmosphere_1_1AtmosphereModel_a98b5c47717974965035211a2755c4b66.html#a98b5c47717974965035211a2755c4b66">m_input_model</a>) {</div>
<div class="line"><a name="l00285"></a><span class="lineno"> 285</span>  <a class="code" href="classpism_1_1atmosphere_1_1AtmosphereModel_a98b5c47717974965035211a2755c4b66.html#a98b5c47717974965035211a2755c4b66">m_input_model</a>->init_timeseries(ts);</div>
<div class="line"><a name="l00286"></a><span class="lineno"> 286</span>  <a class="code" href="classpism_1_1atmosphere_1_1AtmosphereModel_ae99337d3938cc0213d8f16a43805ba84.html#ae99337d3938cc0213d8f16a43805ba84">m_ts_times</a> = ts;</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>  <span class="keywordflow">throw</span> <a class="code" href="classpism_1_1RuntimeError_ad0ed5f05a9a4e3e403a1d62f8d1e4e7d.html#ad0ed5f05a9a4e3e403a1d62f8d1e4e7d">RuntimeError::formatted</a>(<a class="code" href="error__handling_8hh_aa0c260bffe8a4dbd77d48e8feee7c526.html#aa0c260bffe8a4dbd77d48e8feee7c526">PISM_ERROR_LOCATION</a>, <span class="stringliteral">"no input model"</span>);</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="comment">// end of namespace atmosphere</span></div>
<div class="line"><a name="l00293"></a><span class="lineno"> 293</span> } <span class="comment">// end of namespace pism</span></div>
<div class="ttc" id="aclasspism_1_1Component_a1d7fa2a58f259a9c5e464f8738db6ef0_html_a1d7fa2a58f259a9c5e464f8738db6ef0"><div class="ttname"><a href="classpism_1_1Component_a1d7fa2a58f259a9c5e464f8738db6ef0.html#a1d7fa2a58f259a9c5e464f8738db6ef0">pism::Component::grid</a></div><div class="ttdeci">std::shared_ptr< const Grid > grid() const</div><div class="ttdef"><b>Definition:</b> <a href="Component_8cc_source.html#l00105">Component.cc:105</a></div></div>
<div class="ttc" id="aclasspism_1_1Component_ac0ff4daf2dc8b23ea64b1d635666bdf0_html_ac0ff4daf2dc8b23ea64b1d635666bdf0"><div class="ttname"><a href="classpism_1_1Component_ac0ff4daf2dc8b23ea64b1d635666bdf0.html#ac0ff4daf2dc8b23ea64b1d635666bdf0">pism::Component::diagnostics</a></div><div class="ttdeci">DiagnosticList diagnostics() const</div><div class="ttdef"><b>Definition:</b> <a href="Component_8cc_source.html#l00089">Component.cc:89</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_1Diag_aa3e0516ca815c840bfa479256aa1f711_html_aa3e0516ca815c840bfa479256aa1f711"><div class="ttname"><a href="classpism_1_1Diag_aa3e0516ca815c840bfa479256aa1f711.html#aa3e0516ca815c840bfa479256aa1f711">pism::Diag< AtmosphereModel >::model</a></div><div class="ttdeci">const AtmosphereModel * model</div><div class="ttdef"><b>Definition:</b> <a href="Diagnostic_8hh_source.html#l00172">Diagnostic.hh:172</a></div></div>
<div class="ttc" id="aclasspism_1_1Diag_html"><div class="ttname"><a href="classpism_1_1Diag.html">pism::Diag</a></div><div class="ttdoc">A template derived from Diagnostic, adding a "Model".</div><div class="ttdef"><b>Definition:</b> <a href="Diagnostic_8hh_source.html#l00166">Diagnostic.hh:166</a></div></div>
<div class="ttc" id="aclasspism_1_1Diagnostic_a66c35ec2a3236c20757ba9ce5880eb6d_html_a66c35ec2a3236c20757ba9ce5880eb6d"><div class="ttname"><a href="classpism_1_1Diagnostic_a66c35ec2a3236c20757ba9ce5880eb6d.html#a66c35ec2a3236c20757ba9ce5880eb6d">pism::Diagnostic::m_sys</a></div><div class="ttdeci">const units::System::Ptr m_sys</div><div class="ttdoc">the unit system</div><div class="ttdef"><b>Definition:</b> <a href="Diagnostic_8hh_source.html#l00116">Diagnostic.hh:116</a></div></div>
<div class="ttc" id="aclasspism_1_1Diagnostic_a7590d3d6d714ca1bbc99787baea537e0_html_a7590d3d6d714ca1bbc99787baea537e0"><div class="ttname"><a href="classpism_1_1Diagnostic_a7590d3d6d714ca1bbc99787baea537e0.html#a7590d3d6d714ca1bbc99787baea537e0">pism::Diagnostic::m_vars</a></div><div class="ttdeci">std::vector< SpatialVariableMetadata > m_vars</div><div class="ttdoc">metadata corresponding to NetCDF variables</div><div class="ttdef"><b>Definition:</b> <a href="Diagnostic_8hh_source.html#l00120">Diagnostic.hh:120</a></div></div>
<div class="ttc" id="aclasspism_1_1Diagnostic_a94d5717226f2c89299c0c08168f01455_html_a94d5717226f2c89299c0c08168f01455"><div class="ttname"><a href="classpism_1_1Diagnostic_a94d5717226f2c89299c0c08168f01455.html#a94d5717226f2c89299c0c08168f01455">pism::Diagnostic::Ptr</a></div><div class="ttdeci">std::shared_ptr< Diagnostic > Ptr</div><div class="ttdef"><b>Definition:</b> <a href="Diagnostic_8hh_source.html#l00065">Diagnostic.hh:65</a></div></div>
<div class="ttc" id="aclasspism_1_1Diagnostic_af0eaf7c1c949d96b5c5ac945c7b744ca_html_af0eaf7c1c949d96b5c5ac945c7b744ca"><div class="ttname"><a href="classpism_1_1Diagnostic_af0eaf7c1c949d96b5c5ac945c7b744ca.html#af0eaf7c1c949d96b5c5ac945c7b744ca">pism::Diagnostic::m_grid</a></div><div class="ttdeci">std::shared_ptr< const Grid > m_grid</div><div class="ttdoc">the grid</div><div class="ttdef"><b>Definition:</b> <a href="Diagnostic_8hh_source.html#l00114">Diagnostic.hh:114</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_1Geometry_html"><div class="ttname"><a href="classpism_1_1Geometry.html">pism::Geometry</a></div><div class="ttdef"><b>Definition:</b> <a href="Geometry_8hh_source.html#l00029">Geometry.hh:29</a></div></div>
<div class="ttc" id="aclasspism_1_1MaxTimestep_html"><div class="ttname"><a href="classpism_1_1MaxTimestep.html">pism::MaxTimestep</a></div><div class="ttdoc">Combines the max. time step with the flag indicating if a restriction is active. Makes is possible to...</div><div class="ttdef"><b>Definition:</b> <a href="MaxTimestep_8hh_source.html#l00031">MaxTimestep.hh:31</a></div></div>
<div class="ttc" id="aclasspism_1_1ParallelSection_a6b0a6e5e64970af7eadabfebe2b20bd2_html_a6b0a6e5e64970af7eadabfebe2b20bd2"><div class="ttname"><a href="classpism_1_1ParallelSection_a6b0a6e5e64970af7eadabfebe2b20bd2.html#a6b0a6e5e64970af7eadabfebe2b20bd2">pism::ParallelSection::failed</a></div><div class="ttdeci">void failed()</div><div class="ttdoc">Indicates a failure of a parallel section.</div><div class="ttdef"><b>Definition:</b> <a href="error__handling_8cc_source.html#l00185">error_handling.cc:185</a></div></div>
<div class="ttc" id="aclasspism_1_1ParallelSection_ac23296abee1cbcb3c3fd68c7f5ce0835_html_ac23296abee1cbcb3c3fd68c7f5ce0835"><div class="ttname"><a href="classpism_1_1ParallelSection_ac23296abee1cbcb3c3fd68c7f5ce0835.html#ac23296abee1cbcb3c3fd68c7f5ce0835">pism::ParallelSection::check</a></div><div class="ttdeci">void check()</div><div class="ttdef"><b>Definition:</b> <a href="error__handling_8cc_source.html#l00201">error_handling.cc:201</a></div></div>
<div class="ttc" id="aclasspism_1_1ParallelSection_html"><div class="ttname"><a href="classpism_1_1ParallelSection.html">pism::ParallelSection</a></div><div class="ttdef"><b>Definition:</b> <a href="error__handling_8hh_source.html#l00069">error_handling.hh:69</a></div></div>
<div class="ttc" id="aclasspism_1_1RuntimeError_ad0ed5f05a9a4e3e403a1d62f8d1e4e7d_html_ad0ed5f05a9a4e3e403a1d62f8d1e4e7d"><div class="ttname"><a href="classpism_1_1RuntimeError_ad0ed5f05a9a4e3e403a1d62f8d1e4e7d.html#ad0ed5f05a9a4e3e403a1d62f8d1e4e7d">pism::RuntimeError::formatted</a></div><div class="ttdeci">static RuntimeError formatted(const ErrorLocation &location, const char format[],...) __attribute__((format(printf</div><div class="ttdoc">build a RuntimeError with a formatted message</div><div class="ttdef"><b>Definition:</b> <a href="error__handling_8cc_source.html#l00047">error_handling.cc:47</a></div></div>
<div class="ttc" id="aclasspism_1_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_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_1atmosphere_1_1AtmosphereModel_a021ff2062143cda6e9e230600c3560cc_html_a021ff2062143cda6e9e230600c3560cc"><div class="ttname"><a href="classpism_1_1atmosphere_1_1AtmosphereModel_a021ff2062143cda6e9e230600c3560cc.html#a021ff2062143cda6e9e230600c3560cc">pism::atmosphere::AtmosphereModel::diagnostics_impl</a></div><div class="ttdeci">virtual DiagnosticList diagnostics_impl() const</div><div class="ttdef"><b>Definition:</b> <a href="AtmosphereModel_8cc_source.html#l00201">AtmosphereModel.cc:201</a></div></div>
<div class="ttc" id="aclasspism_1_1atmosphere_1_1AtmosphereModel_a0597f334c365ed8efe6531c00879efc8_html_a0597f334c365ed8efe6531c00879efc8"><div class="ttname"><a href="classpism_1_1atmosphere_1_1AtmosphereModel_a0597f334c365ed8efe6531c00879efc8.html#a0597f334c365ed8efe6531c00879efc8">pism::atmosphere::AtmosphereModel::update</a></div><div class="ttdeci">void update(const Geometry &geometry, double t, double dt)</div><div class="ttdef"><b>Definition:</b> <a href="AtmosphereModel_8cc_source.html#l00069">AtmosphereModel.cc:69</a></div></div>
<div class="ttc" id="aclasspism_1_1atmosphere_1_1AtmosphereModel_a0fc2227b023df7c4530944aa951b1676_html_a0fc2227b023df7c4530944aa951b1676"><div class="ttname"><a href="classpism_1_1atmosphere_1_1AtmosphereModel_a0fc2227b023df7c4530944aa951b1676.html#a0fc2227b023df7c4530944aa951b1676">pism::atmosphere::AtmosphereModel::ts_diagnostics_impl</a></div><div class="ttdeci">virtual TSDiagnosticList ts_diagnostics_impl() const</div><div class="ttdef"><b>Definition:</b> <a href="AtmosphereModel_8cc_source.html#l00217">AtmosphereModel.cc:217</a></div></div>
<div class="ttc" id="aclasspism_1_1atmosphere_1_1AtmosphereModel_a181f3b84b599c984cd338b736be767af_html_a181f3b84b599c984cd338b736be767af"><div class="ttname"><a href="classpism_1_1atmosphere_1_1AtmosphereModel_a181f3b84b599c984cd338b736be767af.html#a181f3b84b599c984cd338b736be767af">pism::atmosphere::AtmosphereModel::update_impl</a></div><div class="ttdeci">virtual void update_impl(const Geometry &geometry, double t, double dt)=0</div><div class="ttdef"><b>Definition:</b> <a href="AtmosphereModel_8cc_source.html#l00188">AtmosphereModel.cc:188</a></div></div>
<div class="ttc" id="aclasspism_1_1atmosphere_1_1AtmosphereModel_a1c52bf1df9cda836d50a33fa74a99cab_html_a1c52bf1df9cda836d50a33fa74a99cab"><div class="ttname"><a href="classpism_1_1atmosphere_1_1AtmosphereModel_a1c52bf1df9cda836d50a33fa74a99cab.html#a1c52bf1df9cda836d50a33fa74a99cab">pism::atmosphere::AtmosphereModel::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="AtmosphereModel_8cc_source.html#l00231">AtmosphereModel.cc:231</a></div></div>
<div class="ttc" id="aclasspism_1_1atmosphere_1_1AtmosphereModel_a4344ca35265a6f01aa210583dcce6464_html_a4344ca35265a6f01aa210583dcce6464"><div class="ttname"><a href="classpism_1_1atmosphere_1_1AtmosphereModel_a4344ca35265a6f01aa210583dcce6464.html#a4344ca35265a6f01aa210583dcce6464">pism::atmosphere::AtmosphereModel::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="AtmosphereModel_8cc_source.html#l00225">AtmosphereModel.cc:225</a></div></div>
<div class="ttc" id="aclasspism_1_1atmosphere_1_1AtmosphereModel_a46b8c5748272b9a9c6cef9ff1cca3cd5_html_a46b8c5748272b9a9c6cef9ff1cca3cd5"><div class="ttname"><a href="classpism_1_1atmosphere_1_1AtmosphereModel_a46b8c5748272b9a9c6cef9ff1cca3cd5.html#a46b8c5748272b9a9c6cef9ff1cca3cd5">pism::atmosphere::AtmosphereModel::init_timeseries_impl</a></div><div class="ttdeci">virtual void init_timeseries_impl(const std::vector< double > &ts) const</div><div class="ttdef"><b>Definition:</b> <a href="AtmosphereModel_8cc_source.html#l00283">AtmosphereModel.cc:283</a></div></div>
<div class="ttc" id="aclasspism_1_1atmosphere_1_1AtmosphereModel_a4fef7739eee952869bfbbae06cd8e516_html_a4fef7739eee952869bfbbae06cd8e516"><div class="ttname"><a href="classpism_1_1atmosphere_1_1AtmosphereModel_a4fef7739eee952869bfbbae06cd8e516.html#a4fef7739eee952869bfbbae06cd8e516">pism::atmosphere::AtmosphereModel::air_temperature</a></div><div class="ttdeci">const array::Scalar & air_temperature() const</div><div class="ttdoc">Sets result to the mean near-surface air temperature, in degrees Kelvin.</div><div class="ttdef"><b>Definition:</b> <a href="AtmosphereModel_8cc_source.html#l00077">AtmosphereModel.cc:77</a></div></div>
<div class="ttc" id="aclasspism_1_1atmosphere_1_1AtmosphereModel_a5a14643349acaec2a6219207e38b946c_html_a5a14643349acaec2a6219207e38b946c"><div class="ttname"><a href="classpism_1_1atmosphere_1_1AtmosphereModel_a5a14643349acaec2a6219207e38b946c.html#a5a14643349acaec2a6219207e38b946c">pism::atmosphere::AtmosphereModel::allocate_temperature</a></div><div class="ttdeci">static std::shared_ptr< array::Scalar > allocate_temperature(std::shared_ptr< const Grid > grid)</div><div class="ttdef"><b>Definition:</b> <a href="AtmosphereModel_8cc_source.html#l00032">AtmosphereModel.cc:32</a></div></div>
<div class="ttc" id="aclasspism_1_1atmosphere_1_1AtmosphereModel_a727841da122070489ab647f68404e056_html_a727841da122070489ab647f68404e056"><div class="ttname"><a href="classpism_1_1atmosphere_1_1AtmosphereModel_a727841da122070489ab647f68404e056.html#a727841da122070489ab647f68404e056">pism::atmosphere::AtmosphereModel::init_timeseries</a></div><div class="ttdeci">void init_timeseries(const std::vector< double > &ts) const</div><div class="ttdef"><b>Definition:</b> <a href="AtmosphereModel_8cc_source.html#l00089">AtmosphereModel.cc:89</a></div></div>
<div class="ttc" id="aclasspism_1_1atmosphere_1_1AtmosphereModel_a763eb2f75faf4a588b5b9ddcdb359afa_html_a763eb2f75faf4a588b5b9ddcdb359afa"><div class="ttname"><a href="classpism_1_1atmosphere_1_1AtmosphereModel_a763eb2f75faf4a588b5b9ddcdb359afa.html#a763eb2f75faf4a588b5b9ddcdb359afa">pism::atmosphere::AtmosphereModel::precipitation</a></div><div class="ttdeci">const array::Scalar & precipitation() const</div><div class="ttdoc">Sets result to the mean precipitation, in "kg m-2 second-1".</div><div class="ttdef"><b>Definition:</b> <a href="AtmosphereModel_8cc_source.html#l00073">AtmosphereModel.cc:73</a></div></div>
<div class="ttc" id="aclasspism_1_1atmosphere_1_1AtmosphereModel_a79de0a9be5f11c2722a2593fe82a7df9_html_a79de0a9be5f11c2722a2593fe82a7df9"><div class="ttname"><a href="classpism_1_1atmosphere_1_1AtmosphereModel_a79de0a9be5f11c2722a2593fe82a7df9.html#a79de0a9be5f11c2722a2593fe82a7df9">pism::atmosphere::AtmosphereModel::init_impl</a></div><div class="ttdeci">virtual void init_impl(const Geometry &geometry)=0</div></div>
<div class="ttc" id="aclasspism_1_1atmosphere_1_1AtmosphereModel_a8016937fa65243f8a014f1c1321c4eda_html_a8016937fa65243f8a014f1c1321c4eda"><div class="ttname"><a href="classpism_1_1atmosphere_1_1AtmosphereModel_a8016937fa65243f8a014f1c1321c4eda.html#a8016937fa65243f8a014f1c1321c4eda">pism::atmosphere::AtmosphereModel::precipitation_impl</a></div><div class="ttdeci">virtual const array::Scalar & precipitation_impl() const</div><div class="ttdef"><b>Definition:</b> <a href="AtmosphereModel_8cc_source.html#l00237">AtmosphereModel.cc:237</a></div></div>
<div class="ttc" id="aclasspism_1_1atmosphere_1_1AtmosphereModel_a86d445eb97f75356969988102c7b9b5d_html_a86d445eb97f75356969988102c7b9b5d"><div class="ttname"><a href="classpism_1_1atmosphere_1_1AtmosphereModel_a86d445eb97f75356969988102c7b9b5d.html#a86d445eb97f75356969988102c7b9b5d">pism::atmosphere::AtmosphereModel::begin_pointwise_access</a></div><div class="ttdeci">void begin_pointwise_access() const</div><div class="ttdef"><b>Definition:</b> <a href="AtmosphereModel_8cc_source.html#l00081">AtmosphereModel.cc:81</a></div></div>
<div class="ttc" id="aclasspism_1_1atmosphere_1_1AtmosphereModel_a8a09b8074d11202b68e135cf2a08667c_html_a8a09b8074d11202b68e135cf2a08667c"><div class="ttname"><a href="classpism_1_1atmosphere_1_1AtmosphereModel_a8a09b8074d11202b68e135cf2a08667c.html#a8a09b8074d11202b68e135cf2a08667c">pism::atmosphere::AtmosphereModel::init</a></div><div class="ttdeci">void init(const Geometry &geometry)</div><div class="ttdef"><b>Definition:</b> <a href="AtmosphereModel_8cc_source.html#l00065">AtmosphereModel.cc:65</a></div></div>
<div class="ttc" id="aclasspism_1_1atmosphere_1_1AtmosphereModel_a8aaf6b2919d9f32150baf869aa736653_html_a8aaf6b2919d9f32150baf869aa736653"><div class="ttname"><a href="classpism_1_1atmosphere_1_1AtmosphereModel_a8aaf6b2919d9f32150baf869aa736653.html#a8aaf6b2919d9f32150baf869aa736653">pism::atmosphere::AtmosphereModel::precip_time_series_impl</a></div><div class="ttdeci">virtual void precip_time_series_impl(int i, int j, std::vector< double > &result) const</div><div class="ttdef"><b>Definition:</b> <a href="AtmosphereModel_8cc_source.html#l00275">AtmosphereModel.cc:275</a></div></div>
<div class="ttc" id="aclasspism_1_1atmosphere_1_1AtmosphereModel_a8e216b235bdd8c7de7278aa717dee99d_html_a8e216b235bdd8c7de7278aa717dee99d"><div class="ttname"><a href="classpism_1_1atmosphere_1_1AtmosphereModel_a8e216b235bdd8c7de7278aa717dee99d.html#a8e216b235bdd8c7de7278aa717dee99d">pism::atmosphere::AtmosphereModel::begin_pointwise_access_impl</a></div><div class="ttdeci">virtual void begin_pointwise_access_impl() const</div><div class="ttdef"><b>Definition:</b> <a href="AtmosphereModel_8cc_source.html#l00251">AtmosphereModel.cc:251</a></div></div>
<div class="ttc" id="aclasspism_1_1atmosphere_1_1AtmosphereModel_a98b5c47717974965035211a2755c4b66_html_a98b5c47717974965035211a2755c4b66"><div class="ttname"><a href="classpism_1_1atmosphere_1_1AtmosphereModel_a98b5c47717974965035211a2755c4b66.html#a98b5c47717974965035211a2755c4b66">pism::atmosphere::AtmosphereModel::m_input_model</a></div><div class="ttdeci">std::shared_ptr< AtmosphereModel > m_input_model</div><div class="ttdef"><b>Definition:</b> <a href="AtmosphereModel_8hh_source.html#l00085">AtmosphereModel.hh:85</a></div></div>
<div class="ttc" id="aclasspism_1_1atmosphere_1_1AtmosphereModel_a9c0624a3aaf9eb90a522f81c26cd4128_html_a9c0624a3aaf9eb90a522f81c26cd4128"><div class="ttname"><a href="classpism_1_1atmosphere_1_1AtmosphereModel_a9c0624a3aaf9eb90a522f81c26cd4128.html#a9c0624a3aaf9eb90a522f81c26cd4128">pism::atmosphere::AtmosphereModel::end_pointwise_access</a></div><div class="ttdeci">void end_pointwise_access() const</div><div class="ttdef"><b>Definition:</b> <a href="AtmosphereModel_8cc_source.html#l00085">AtmosphereModel.cc:85</a></div></div>
<div class="ttc" id="aclasspism_1_1atmosphere_1_1AtmosphereModel_aa6b81f641cae02338a3ba7dd0197447a_html_aa6b81f641cae02338a3ba7dd0197447a"><div class="ttname"><a href="classpism_1_1atmosphere_1_1AtmosphereModel_aa6b81f641cae02338a3ba7dd0197447a.html#aa6b81f641cae02338a3ba7dd0197447a">pism::atmosphere::AtmosphereModel::temp_time_series</a></div><div class="ttdeci">void temp_time_series(int i, int j, std::vector< double > &result) const</div><div class="ttdoc">Sets a pre-allocated N-element array "result" to the time-series of near-surface air temperature (deg...</div><div class="ttdef"><b>Definition:</b> <a href="AtmosphereModel_8cc_source.html#l00098">AtmosphereModel.cc:98</a></div></div>
<div class="ttc" id="aclasspism_1_1atmosphere_1_1AtmosphereModel_aaf9b191d5db426e0031ef0fdf4b18516_html_aaf9b191d5db426e0031ef0fdf4b18516"><div class="ttname"><a href="classpism_1_1atmosphere_1_1AtmosphereModel_aaf9b191d5db426e0031ef0fdf4b18516.html#aaf9b191d5db426e0031ef0fdf4b18516">pism::atmosphere::AtmosphereModel::air_temperature_impl</a></div><div class="ttdeci">virtual const array::Scalar & air_temperature_impl() const</div><div class="ttdef"><b>Definition:</b> <a href="AtmosphereModel_8cc_source.html#l00244">AtmosphereModel.cc:244</a></div></div>
<div class="ttc" id="aclasspism_1_1atmosphere_1_1AtmosphereModel_ac5a2a7473812e8573a2616cc019465fd_html_ac5a2a7473812e8573a2616cc019465fd"><div class="ttname"><a href="classpism_1_1atmosphere_1_1AtmosphereModel_ac5a2a7473812e8573a2616cc019465fd.html#ac5a2a7473812e8573a2616cc019465fd">pism::atmosphere::AtmosphereModel::end_pointwise_access_impl</a></div><div class="ttdeci">virtual void end_pointwise_access_impl() const</div><div class="ttdef"><b>Definition:</b> <a href="AtmosphereModel_8cc_source.html#l00259">AtmosphereModel.cc:259</a></div></div>
<div class="ttc" id="aclasspism_1_1atmosphere_1_1AtmosphereModel_ace2b9c807ca5dc27e57103e2cc4acdaa_html_ace2b9c807ca5dc27e57103e2cc4acdaa"><div class="ttname"><a href="classpism_1_1atmosphere_1_1AtmosphereModel_ace2b9c807ca5dc27e57103e2cc4acdaa.html#ace2b9c807ca5dc27e57103e2cc4acdaa">pism::atmosphere::AtmosphereModel::AtmosphereModel</a></div><div class="ttdeci">AtmosphereModel(std::shared_ptr< const Grid > g)</div><div class="ttdef"><b>Definition:</b> <a href="AtmosphereModel_8cc_source.html#l00054">AtmosphereModel.cc:54</a></div></div>
<div class="ttc" id="aclasspism_1_1atmosphere_1_1AtmosphereModel_ae6e26fa80a9eb2cd212388839bd63d00_html_ae6e26fa80a9eb2cd212388839bd63d00"><div class="ttname"><a href="classpism_1_1atmosphere_1_1AtmosphereModel_ae6e26fa80a9eb2cd212388839bd63d00.html#ae6e26fa80a9eb2cd212388839bd63d00">pism::atmosphere::AtmosphereModel::temp_time_series_impl</a></div><div class="ttdeci">virtual void temp_time_series_impl(int i, int j, std::vector< double > &result) const</div><div class="ttdef"><b>Definition:</b> <a href="AtmosphereModel_8cc_source.html#l00267">AtmosphereModel.cc:267</a></div></div>
<div class="ttc" id="aclasspism_1_1atmosphere_1_1AtmosphereModel_ae84e2ccd1ff561401b66b1ce3ce9c656_html_ae84e2ccd1ff561401b66b1ce3ce9c656"><div class="ttname"><a href="classpism_1_1atmosphere_1_1AtmosphereModel_ae84e2ccd1ff561401b66b1ce3ce9c656.html#ae84e2ccd1ff561401b66b1ce3ce9c656">pism::atmosphere::AtmosphereModel::allocate_precipitation</a></div><div class="ttdeci">static std::shared_ptr< array::Scalar > allocate_precipitation(std::shared_ptr< const Grid > grid)</div><div class="ttdef"><b>Definition:</b> <a href="AtmosphereModel_8cc_source.html#l00042">AtmosphereModel.cc:42</a></div></div>
<div class="ttc" id="aclasspism_1_1atmosphere_1_1AtmosphereModel_ae89d3aa5ed637b3760f557a758ae6e79_html_ae89d3aa5ed637b3760f557a758ae6e79"><div class="ttname"><a href="classpism_1_1atmosphere_1_1AtmosphereModel_ae89d3aa5ed637b3760f557a758ae6e79.html#ae89d3aa5ed637b3760f557a758ae6e79">pism::atmosphere::AtmosphereModel::max_timestep_impl</a></div><div class="ttdeci">virtual MaxTimestep max_timestep_impl(double my_t) const</div><div class="ttdef"><b>Definition:</b> <a href="AtmosphereModel_8cc_source.html#l00194">AtmosphereModel.cc:194</a></div></div>
<div class="ttc" id="aclasspism_1_1atmosphere_1_1AtmosphereModel_ae99337d3938cc0213d8f16a43805ba84_html_ae99337d3938cc0213d8f16a43805ba84"><div class="ttname"><a href="classpism_1_1atmosphere_1_1AtmosphereModel_ae99337d3938cc0213d8f16a43805ba84.html#ae99337d3938cc0213d8f16a43805ba84">pism::atmosphere::AtmosphereModel::m_ts_times</a></div><div class="ttdeci">std::vector< double > m_ts_times</div><div class="ttdef"><b>Definition:</b> <a href="AtmosphereModel_8hh_source.html#l00083">AtmosphereModel.hh:83</a></div></div>
<div class="ttc" id="aclasspism_1_1atmosphere_1_1AtmosphereModel_af54fece2e87b9fa95f6380bd74d1d320_html_af54fece2e87b9fa95f6380bd74d1d320"><div class="ttname"><a href="classpism_1_1atmosphere_1_1AtmosphereModel_af54fece2e87b9fa95f6380bd74d1d320.html#af54fece2e87b9fa95f6380bd74d1d320">pism::atmosphere::AtmosphereModel::precip_time_series</a></div><div class="ttdeci">void precip_time_series(int i, int j, std::vector< double > &result) const</div><div class="ttdoc">Sets a pre-allocated N-element array "result" to the time-series of ice-equivalent precipitation (m/s...</div><div class="ttdef"><b>Definition:</b> <a href="AtmosphereModel_8cc_source.html#l00093">AtmosphereModel.cc:93</a></div></div>
<div class="ttc" id="aclasspism_1_1atmosphere_1_1AtmosphereModel_html"><div class="ttname"><a href="classpism_1_1atmosphere_1_1AtmosphereModel.html">pism::atmosphere::AtmosphereModel</a></div><div class="ttdoc">A purely virtual class defining the interface of a PISM Atmosphere Model.</div><div class="ttdef"><b>Definition:</b> <a href="AtmosphereModel_8hh_source.html#l00033">AtmosphereModel.hh:33</a></div></div>
<div class="ttc" id="aclasspism_1_1atmosphere_1_1diagnostics_1_1AirTemperatureSnapshot_a01c64d1db40d4c52ef5c6d95da00309c_html_a01c64d1db40d4c52ef5c6d95da00309c"><div class="ttname"><a href="classpism_1_1atmosphere_1_1diagnostics_1_1AirTemperatureSnapshot_a01c64d1db40d4c52ef5c6d95da00309c.html#a01c64d1db40d4c52ef5c6d95da00309c">pism::atmosphere::diagnostics::AirTemperatureSnapshot::AirTemperatureSnapshot</a></div><div class="ttdeci">AirTemperatureSnapshot(const AtmosphereModel *m)</div><div class="ttdef"><b>Definition:</b> <a href="AtmosphereModel_8cc_source.html#l00108">AtmosphereModel.cc:108</a></div></div>
<div class="ttc" id="aclasspism_1_1atmosphere_1_1diagnostics_1_1AirTemperatureSnapshot_a1ecdfc44c73678704d1e8c791f652a22_html_a1ecdfc44c73678704d1e8c791f652a22"><div class="ttname"><a href="classpism_1_1atmosphere_1_1diagnostics_1_1AirTemperatureSnapshot_a1ecdfc44c73678704d1e8c791f652a22.html#a1ecdfc44c73678704d1e8c791f652a22">pism::atmosphere::diagnostics::AirTemperatureSnapshot::compute_impl</a></div><div class="ttdeci">std::shared_ptr< array::Array > compute_impl() const</div><div class="ttdef"><b>Definition:</b> <a href="AtmosphereModel_8cc_source.html#l00114">AtmosphereModel.cc:114</a></div></div>
<div class="ttc" id="aclasspism_1_1atmosphere_1_1diagnostics_1_1AirTemperatureSnapshot_html"><div class="ttname"><a href="classpism_1_1atmosphere_1_1diagnostics_1_1AirTemperatureSnapshot.html">pism::atmosphere::diagnostics::AirTemperatureSnapshot</a></div><div class="ttdoc">Instantaneous near-surface air temperature.</div><div class="ttdef"><b>Definition:</b> <a href="AtmosphereModel_8cc_source.html#l00106">AtmosphereModel.cc:106</a></div></div>
<div class="ttc" id="aclasspism_1_1atmosphere_1_1diagnostics_1_1AirTemperature_ad6469aca27724dd90998df8b56df5aff_html_ad6469aca27724dd90998df8b56df5aff"><div class="ttname"><a href="classpism_1_1atmosphere_1_1diagnostics_1_1AirTemperature_ad6469aca27724dd90998df8b56df5aff.html#ad6469aca27724dd90998df8b56df5aff">pism::atmosphere::diagnostics::AirTemperature::compute_impl</a></div><div class="ttdeci">std::shared_ptr< array::Array > compute_impl() const</div><div class="ttdef"><b>Definition:</b> <a href="AtmosphereModel_8cc_source.html#l00155">AtmosphereModel.cc:155</a></div></div>
<div class="ttc" id="aclasspism_1_1atmosphere_1_1diagnostics_1_1AirTemperature_ae2d9ddc466c70af33655616270940772_html_ae2d9ddc466c70af33655616270940772"><div class="ttname"><a href="classpism_1_1atmosphere_1_1diagnostics_1_1AirTemperature_ae2d9ddc466c70af33655616270940772.html#ae2d9ddc466c70af33655616270940772">pism::atmosphere::diagnostics::AirTemperature::AirTemperature</a></div><div class="ttdeci">AirTemperature(const AtmosphereModel *m)</div><div class="ttdef"><b>Definition:</b> <a href="AtmosphereModel_8cc_source.html#l00149">AtmosphereModel.cc:149</a></div></div>
<div class="ttc" id="aclasspism_1_1atmosphere_1_1diagnostics_1_1AirTemperature_html"><div class="ttname"><a href="classpism_1_1atmosphere_1_1diagnostics_1_1AirTemperature.html">pism::atmosphere::diagnostics::AirTemperature</a></div><div class="ttdoc">Effective near-surface mean-annual air temperature.</div><div class="ttdef"><b>Definition:</b> <a href="AtmosphereModel_8cc_source.html#l00147">AtmosphereModel.cc:147</a></div></div>
<div class="ttc" id="aclasspism_1_1atmosphere_1_1diagnostics_1_1Precipitation_a511becd972f1f6eb3418b10141f60e83_html_a511becd972f1f6eb3418b10141f60e83"><div class="ttname"><a href="classpism_1_1atmosphere_1_1diagnostics_1_1Precipitation_a511becd972f1f6eb3418b10141f60e83.html#a511becd972f1f6eb3418b10141f60e83">pism::atmosphere::diagnostics::Precipitation::Precipitation</a></div><div class="ttdeci">Precipitation(const AtmosphereModel *m)</div><div class="ttdef"><b>Definition:</b> <a href="AtmosphereModel_8cc_source.html#l00167">AtmosphereModel.cc:167</a></div></div>
<div class="ttc" id="aclasspism_1_1atmosphere_1_1diagnostics_1_1Precipitation_a732aeb11bd5bad9f0ee3bed94e390990_html_a732aeb11bd5bad9f0ee3bed94e390990"><div class="ttname"><a href="classpism_1_1atmosphere_1_1diagnostics_1_1Precipitation_a732aeb11bd5bad9f0ee3bed94e390990.html#a732aeb11bd5bad9f0ee3bed94e390990">pism::atmosphere::diagnostics::Precipitation::compute_impl</a></div><div class="ttdeci">std::shared_ptr< array::Array > compute_impl() const</div><div class="ttdef"><b>Definition:</b> <a href="AtmosphereModel_8cc_source.html#l00177">AtmosphereModel.cc:177</a></div></div>
<div class="ttc" id="aclasspism_1_1atmosphere_1_1diagnostics_1_1Precipitation_html"><div class="ttname"><a href="classpism_1_1atmosphere_1_1diagnostics_1_1Precipitation.html">pism::atmosphere::diagnostics::Precipitation</a></div><div class="ttdoc">Effective precipitation rate (average over time step).</div><div class="ttdef"><b>Definition:</b> <a href="AtmosphereModel_8cc_source.html#l00165">AtmosphereModel.cc:165</a></div></div>
<div class="ttc" id="aerror__handling_8hh_aa0c260bffe8a4dbd77d48e8feee7c526_html_aa0c260bffe8a4dbd77d48e8feee7c526"><div class="ttname"><a href="error__handling_8hh_aa0c260bffe8a4dbd77d48e8feee7c526.html#aa0c260bffe8a4dbd77d48e8feee7c526">PISM_ERROR_LOCATION</a></div><div class="ttdeci">#define PISM_ERROR_LOCATION</div><div class="ttdef"><b>Definition:</b> <a href="error__handling_8hh_source.html#l00043">error_handling.hh:43</a></div></div>
<div class="ttc" id="anamespacepism_a47d754ed3e959d5866b02a1b78b6a5b5_html_a47d754ed3e959d5866b02a1b78b6a5b5"><div class="ttname"><a href="namespacepism_a47d754ed3e959d5866b02a1b78b6a5b5.html#a47d754ed3e959d5866b02a1b78b6a5b5">pism::g</a></div><div class="ttdeci">static const double g</div><div class="ttdef"><b>Definition:</b> <a href="exactTestP_8cc_source.html#l00036">exactTestP.cc:36</a></div></div>
<div class="ttc" id="anamespacepism_a5cca85a16d08e7581dbc0ce9e341956a_html_a5cca85a16d08e7581dbc0ce9e341956a"><div class="ttname"><a href="namespacepism_a5cca85a16d08e7581dbc0ce9e341956a.html#a5cca85a16d08e7581dbc0ce9e341956a">pism::TSDiagnosticList</a></div><div class="ttdeci">std::map< std::string, TSDiagnostic::Ptr > TSDiagnosticList</div><div class="ttdef"><b>Definition:</b> <a href="Diagnostic_8hh_source.html#l00343">Diagnostic.hh:343</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_ab50523fe25aadf4a123551726b2a2967_html_ab50523fe25aadf4a123551726b2a2967"><div class="ttname"><a href="namespacepism_ab50523fe25aadf4a123551726b2a2967.html#ab50523fe25aadf4a123551726b2a2967">pism::combine</a></div><div class="ttdeci">T combine(const T &a, const T &b)</div><div class="ttdef"><b>Definition:</b> <a href="pism__utilities_8hh_source.html#l00095">pism_utilities.hh:95</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><!-- 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>