-
Notifications
You must be signed in to change notification settings - Fork 0
/
amrvac_8t_source.html
678 lines (676 loc) · 161 KB
/
amrvac_8t_source.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
<!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>MPI-AMRVAC: src/amrvac.t 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", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
jax: ["input/TeX","output/HTML-CSS"],
});
</script>
<script type="text/javascript" async="async" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="my_customdoxygen.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">MPI-AMRVAC
 <span id="projectnumber">3.1</span>
</div>
<div id="projectbrief">The MPI - Adaptive Mesh Refinement - Versatile Advection Code (development version)</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> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">amrvac.t</div> </div>
</div><!--header-->
<div class="contents">
<a href="amrvac_8t.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">!> AMRVAC solves a set of hyperbolic equations</span></div>
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">!> \f$\vec{u}_t + \nabla_x \cdot \vec{f}(\vec{u}) = \vec{s}\f$</span></div>
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment">!> using adaptive mesh refinement.</span></div>
<div class="line"><a name="l00004"></a><span class="lineno"><a class="line" href="amrvac_8t.html#a8d1c183fe6d835d905a98ecc7ac3668b"> 4</a></span> <span class="keyword">program</span> <a class="code" href="amrvac_8t.html#a8d1c183fe6d835d905a98ecc7ac3668b">amrvac</a></div>
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span>  </div>
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span>  <span class="keywordtype">use </span><a class="code" href="namespacemod__global__parameters.html">mod_global_parameters</a></div>
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span>  <span class="keywordtype">use </span><a class="code" href="namespacemod__input__output.html">mod_input_output</a></div>
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span>  <span class="keywordtype">use </span><a class="code" href="namespacemod__usr__methods.html">mod_usr_methods</a></div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span>  <span class="keywordtype">use </span><a class="code" href="namespacemod__ghostcells__update.html">mod_ghostcells_update</a></div>
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span>  <span class="keywordtype">use </span><a class="code" href="namespacemod__usr.html">mod_usr</a></div>
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span>  <span class="keywordtype">use </span><a class="code" href="namespacemod__initialize.html">mod_initialize</a></div>
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span>  <span class="keywordtype">use </span><a class="code" href="namespacemod__initialize__amr.html">mod_initialize_amr</a>, <span class="keywordtype">only</span>: <a class="code" href="namespacemod__initialize__amr.html#aa168da334aaca07260c9bc5449925576">initlevelone</a>, <a class="code" href="namespacemod__initialize__amr.html#ac2c24309d6ecbdc2f734308561d22363">modify_ic</a></div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span>  <span class="keywordtype">use </span><a class="code" href="namespacemod__initialize__amr.html">mod_initialize_amr</a>, <span class="keywordtype">only</span>: <a class="code" href="namespacemod__initialize__amr.html#a0057789c0baf7737ff7d12f1c6a5ff65">improve_initial_condition</a></div>
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span>  <span class="keywordtype">use </span><a class="code" href="namespacemod__selectgrids.html">mod_selectgrids</a>, <span class="keywordtype">only</span>: <a class="code" href="namespacemod__selectgrids.html#aa15f11bf5108fe0eae81eb81aa46f3b1">selectgrids</a></div>
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span>  <span class="keywordtype">use </span><a class="code" href="namespacemod__particles.html">mod_particles</a></div>
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span>  <span class="keywordtype">use </span><a class="code" href="namespacemod__fix__conserve.html">mod_fix_conserve</a></div>
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span>  <span class="keywordtype">use </span><a class="code" href="namespacemod__advance.html">mod_advance</a>, <span class="keywordtype">only</span>: <a class="code" href="namespacemod__advance.html#a4c2beedac0bce5cbce19c516a00b5c98">process</a></div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>  <span class="keywordtype">use </span><a class="code" href="namespacemod__multigrid__coupling.html">mod_multigrid_coupling</a></div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>  <span class="keywordtype">use </span><a class="code" href="namespacemod__convert.html">mod_convert</a>, <span class="keywordtype">only</span>: <a class="code" href="namespacemod__convert.html#aa85241ac32b3b2a84319e2fe0fa01b56">init_convert</a></div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>  <span class="keywordtype">use </span><a class="code" href="namespacemod__physics.html">mod_physics</a></div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>  <span class="keywordtype">use </span><a class="code" href="namespacemod__amr__grid.html">mod_amr_grid</a>, <span class="keywordtype">only</span>: <a class="code" href="namespacemod__amr__grid.html#a1d21768e5b7034d71d93c87a60b14833">resettree</a>, <a class="code" href="namespacemod__amr__grid.html#a81fdb2745e9bcee99e51e222cfb57a42">settree</a>, <a class="code" href="namespacemod__amr__grid.html#a46bb4219ed6144389d25ea1d03354575">resettree_convert</a></div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>  <span class="keywordtype">use </span><a class="code" href="namespacemod__trac.html">mod_trac</a>, <span class="keywordtype">only</span>: <a class="code" href="namespacemod__trac.html#aa52c4fa933c5b1df28693d70a1742d0b">initialize_trac_after_settree</a></div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>  <span class="keywordtype">use </span><a class="code" href="namespacemod__convert__files.html">mod_convert_files</a>, <span class="keywordtype">only</span>: <a class="code" href="namespacemod__convert__files.html#a62a6fb3fa85f5bb311485d3dc140562c">generate_plotfile</a></div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>  <span class="keywordtype">use </span><a class="code" href="namespacemod__comm__lib.html">mod_comm_lib</a>, <span class="keywordtype">only</span>: <a class="code" href="namespacemod__comm__lib.html#a388d2ad420c05555f3bd1744b8e17689">comm_start</a>, <a class="code" href="namespacemod__comm__lib.html#a3bb8f7073e6c5083d584d17c871d8af6">comm_finalize</a>,<a class="code" href="namespacemod__comm__lib.html#a9b6f1a8fd13bc5670e3b426151c34048">mpistop</a></div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>  </div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>  </div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>  <span class="keywordtype">double precision</span> :: time0, time_in</div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  <span class="keywordtype">logical</span>,<span class="keywordtype">save</span> :: part_file_exists=.false.</div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  </div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  </div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  <span class="keyword">call </span><a class="code" href="namespacemod__comm__lib.html#a388d2ad420c05555f3bd1744b8e17689">comm_start</a>()</div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  </div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  time0 = mpi_wtime()</div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  <a class="code" href="namespacemod__global__parameters.html#a9715546f26c07cf6c1c55d0a1d72bcfd">time_advance</a> = .false.</div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  <a class="code" href="namespacemod__global__parameters.html#aaf718579b3a77399dad2b8346370c1b6">time_bc</a> = zero</div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  </div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  <span class="comment">! read command line arguments first</span></div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  <span class="keyword">call </span><a class="code" href="namespacemod__input__output.html#a98a1cccd22f5c9aebc79667b1b469161">read_arguments</a>()</div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  </div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  <span class="comment">! init_convert is called before usr_init as user might associate a convert method</span></div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  <span class="keyword">call </span><a class="code" href="namespacemod__convert.html#aa85241ac32b3b2a84319e2fe0fa01b56">init_convert</a>()</div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  <span class="comment">! the user_init routine should load a physics module</span></div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  <span class="keyword">call </span><a class="code" href="namespacemod__usr.html#ae9af24eaf30f13b1f264cc800272798c">usr_init</a>()</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>  <span class="keyword">call </span><a class="code" href="namespacemod__initialize.html#a57f25bc03fa294f258c33ddd3d4c844b">initialize_amrvac</a>()</div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  </div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  <span class="keywordflow">if</span> (<a class="code" href="namespacemod__global__parameters.html#a99b70d54ff2f08fb179495e2a07d1e44">restart_from_file</a> /= <a class="code" href="namespacemod__global__parameters.html#aba6bd3b8579dde6b7c68f65ab628a049">undefined</a>) <span class="keywordflow">then</span></div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  <span class="comment">! restart from previous file or dat file conversion</span></div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  <span class="comment">! get input data from previous AMRVAC run</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="comment">! read in dat file</span></div>
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  <span class="keyword">call </span><a class="code" href="namespacemod__input__output.html#aa2d00e56c4444b0b4806a9c13ce2eff7">read_snapshot</a>()</div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  </div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  <span class="comment">! rewrite it=0 snapshot when restart from it=0 state </span></div>
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  <span class="keywordflow">if</span>(<a class="code" href="namespacemod__global__parameters.html#a37c8bbe2457c57b29f0bca3f7e1387fa">it</a>==0.and.<a class="code" href="namespacemod__global__parameters.html#a2cc0f16622648beea976f73191955bfc">itsave</a>(1,2)==0) <a class="code" href="namespacemod__global__parameters.html#a7e84e042d8f65bd51a4c3435ebd78e35">snapshotnext</a>=<a class="code" href="namespacemod__global__parameters.html#a7e84e042d8f65bd51a4c3435ebd78e35">snapshotnext</a>-1</div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  </div>
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  <span class="keywordflow">if</span> (<a class="code" href="namespacemod__global__parameters.html#a5c1bf53d9221dda713b7731ca922f3d5">reset_time</a>) <span class="keywordflow">then</span></div>
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  <span class="comment">! reset it and global time to original value</span></div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  <a class="code" href="namespacemod__global__parameters.html#a37c8bbe2457c57b29f0bca3f7e1387fa">it</a> = <a class="code" href="namespacemod__global__parameters.html#a3b867699253875817b4abd3a348b8f53">it_init</a></div>
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  <a class="code" href="namespacemod__global__parameters.html#a2bdc961e7304863887ec17a92ae5ac0a">global_time</a> = <a class="code" href="namespacemod__global__parameters.html#a32b88ccd4a2d2fd290d36b61c28488f1">time_init</a></div>
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  <span class="comment">! reset snapshot number</span></div>
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  <a class="code" href="namespacemod__global__parameters.html#a7e84e042d8f65bd51a4c3435ebd78e35">snapshotnext</a>=0</div>
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span> <span class="keywordflow"> end if</span></div>
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  </div>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  <span class="keywordflow">if</span> (<a class="code" href="namespacemod__global__parameters.html#a1337000bcd79422ab891841e74f3715f">reset_it</a>) <span class="keywordflow">then</span></div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  <span class="comment">! reset it to original value</span></div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  <a class="code" href="namespacemod__global__parameters.html#a37c8bbe2457c57b29f0bca3f7e1387fa">it</a> = <a class="code" href="namespacemod__global__parameters.html#a3b867699253875817b4abd3a348b8f53">it_init</a></div>
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span> <span class="keywordflow"> end if</span></div>
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  </div>
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  <span class="comment">! allow use to read extra data before filling boundary condition</span></div>
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  <span class="keywordflow">if</span> (<span class="keyword">associated</span>(<a class="code" href="namespacemod__usr__methods.html#a1f93558516afa1ff06e6107ddcbc8acc">usr_process_grid</a>) .or. &</div>
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  <span class="keyword">associated</span>(<a class="code" href="namespacemod__usr__methods.html#a9efb0f60a29fdac3cfaac5c8b1844649">usr_process_global</a>)) <span class="keywordflow">then</span></div>
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  <span class="keyword">call </span><a class="code" href="namespacemod__advance.html#a4c2beedac0bce5cbce19c516a00b5c98">process</a>(<a class="code" href="namespacemod__global__parameters.html#a37c8bbe2457c57b29f0bca3f7e1387fa">it</a>,<a class="code" href="namespacemod__global__parameters.html#a2bdc961e7304863887ec17a92ae5ac0a">global_time</a>)</div>
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span> <span class="keywordflow"> end if</span></div>
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  </div>
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  <span class="comment">! modify initial condition</span></div>
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  <span class="keywordflow">if</span> (<a class="code" href="namespacemod__global__parameters.html#a3445cbdbb5912e5da0aafc9b83ec6300">firstprocess</a>) <span class="keywordflow">then</span></div>
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  <span class="comment">! update ghost cells for all need-boundary variables before modification</span></div>
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  <span class="keyword">call </span><a class="code" href="namespacemod__ghostcells__update.html#abc70508ceb326fb28166d751e5de31fc">getbc</a>(<a class="code" href="namespacemod__global__parameters.html#a2bdc961e7304863887ec17a92ae5ac0a">global_time</a>,0.d0,ps,1,nwflux+nwaux)</div>
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  <span class="keyword">call </span>modify_ic</div>
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span> <span class="keywordflow"> end if</span></div>
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  </div>
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  <span class="comment">! select active grids</span></div>
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  <span class="keyword">call </span><a class="code" href="namespacemod__selectgrids.html#aa15f11bf5108fe0eae81eb81aa46f3b1">selectgrids</a></div>
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  </div>
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  <span class="comment">! update ghost cells for all need-boundary variables</span></div>
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  <span class="keyword">call </span><a class="code" href="namespacemod__ghostcells__update.html#abc70508ceb326fb28166d751e5de31fc">getbc</a>(<a class="code" href="namespacemod__global__parameters.html#a2bdc961e7304863887ec17a92ae5ac0a">global_time</a>,0.d0,ps,1,nwflux+nwaux)</div>
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  </div>
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  <span class="comment">! reset AMR grid</span></div>
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  <span class="keywordflow">if</span> (<a class="code" href="namespacemod__global__parameters.html#ac29e1282b63a78a2c3a89d18f05675ff">reset_grid</a>) <span class="keywordflow">then</span></div>
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  <span class="keyword">call </span><a class="code" href="namespacemod__amr__grid.html#a81fdb2745e9bcee99e51e222cfb57a42">settree</a></div>
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  <span class="keywordflow">else</span></div>
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  <span class="comment">! set up boundary flux conservation arrays</span></div>
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  <span class="keywordflow">if</span> (<a class="code" href="namespacemod__global__parameters.html#ac103339f015a822b2021a6f4f3b53edc">levmax</a>><a class="code" href="namespacemod__global__parameters.html#ada8ed41cad56938dba0a13009b2b66a5">levmin</a>) <span class="keyword">call </span><a class="code" href="namespacemod__fix__conserve.html#ad56616828b83c369718a109e26b0e9ff">allocatebflux</a></div>
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span> <span class="keywordflow"> end if</span></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>  <span class="comment">! all blocks refined to the same level for output</span></div>
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  <span class="keywordflow">if</span>(<a class="code" href="namespacemod__global__parameters.html#abeaadf7ca515b0a99e6e1e326d88e4f7">convert</a> .and. <a class="code" href="namespacemod__global__parameters.html#a47213c2deabf33173fab8d80bc64aa79">level_io</a>>0 .or. <a class="code" href="namespacemod__global__parameters.html#a09bdaca578aec7457ae3779ef78cd8eb">level_io_min</a>.ne.1 .or. <a class="code" href="namespacemod__global__parameters.html#acff6d1a4095e8d228d4c288f433ab99a">level_io_max</a>.ne.<a class="code" href="namespacemod__global__parameters.html#a47fcfbf341c2a93f7d90896ad4032692">nlevelshi</a>) &</div>
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  <span class="keyword">call </span><a class="code" href="namespacemod__amr__grid.html#a46bb4219ed6144389d25ea1d03354575">resettree_convert</a></div>
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  </div>
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  {^nooned</div>
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  <span class="comment">! improve initial condition after restart and modification</span></div>
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  <span class="keywordflow">if</span>(<a class="code" href="namespacemod__global__parameters.html#a3445cbdbb5912e5da0aafc9b83ec6300">firstprocess</a>) <span class="keyword">call </span><a class="code" href="namespacemod__initialize__amr.html#a0057789c0baf7737ff7d12f1c6a5ff65">improve_initial_condition</a>()</div>
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  }</div>
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  </div>
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  <span class="keywordflow">if</span> (<a class="code" href="namespacemod__global__parameters.html#ac83affec4bc5aca052a0b30a39dd0ebf">use_multigrid</a>) <span class="keyword">call </span><a class="code" href="namespacemod__multigrid__coupling.html#aec3563c8809267a23e94c236093a2b12">mg_setup_multigrid</a>()</div>
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  </div>
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  <span class="keywordflow">if</span>(<a class="code" href="namespacemod__global__parameters.html#a539b80e7ad5ccd313f1076e15a7cd137">use_particles</a>) <span class="keywordflow">then</span></div>
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  <span class="keyword">call </span>read_particles_snapshot(part_file_exists)</div>
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  <span class="keyword">call </span>init_gridvars()</div>
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  <span class="keywordflow">if</span> (.not. part_file_exists) <span class="keyword">call </span><a class="code" href="namespacemod__particles.html#aecb3aafd9f10d12b4b4ca6466ed6da87">particles_create</a>()</div>
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  <span class="keywordflow">if</span>(<a class="code" href="namespacemod__global__parameters.html#abeaadf7ca515b0a99e6e1e326d88e4f7">convert</a>) <span class="keywordflow">then</span></div>
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  <span class="keyword">call </span>handle_particles()</div>
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  <span class="keyword">call </span>finish_gridvars()</div>
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  <span class="keyword">call </span>time_spent_on_particles()</div>
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  <span class="keyword">call </span><a class="code" href="namespacemod__comm__lib.html#a3bb8f7073e6c5083d584d17c871d8af6">comm_finalize</a></div>
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  stop</div>
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span> <span class="keywordflow"> end if</span></div>
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span> <span class="keywordflow"> end if</span></div>
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  </div>
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  <span class="keywordflow">if</span>(<a class="code" href="namespacemod__global__parameters.html#abeaadf7ca515b0a99e6e1e326d88e4f7">convert</a>) <span class="keywordflow">then</span></div>
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  <span class="keywordflow">if</span> (<a class="code" href="namespacemod__global__parameters.html#a879ff9a3d86e228553c9e44151a31574">npe</a>/=1.and.(.not.(index(<a class="code" href="namespacemod__global__parameters.html#a43c682e6a92ae87edc89730d59af7b46">convert_type</a>,<span class="stringliteral">'mpi'</span>)>=1)) &</div>
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  .and. <a class="code" href="namespacemod__global__parameters.html#a43c682e6a92ae87edc89730d59af7b46">convert_type</a> .ne. <span class="stringliteral">'user'</span>) &</div>
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  <span class="keyword">call </span><a class="code" href="namespacemod__comm__lib.html#a9b6f1a8fd13bc5670e3b426151c34048">mpistop</a>(<span class="stringliteral">"non-mpi conversion only uses 1 cpu"</span>)</div>
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  <span class="keywordflow">if</span>(<a class="code" href="namespacemod__global__parameters.html#a605b2c8e7a386f644c7f8817421b6d67">mype</a>==0.and.<a class="code" href="namespacemod__global__parameters.html#a47213c2deabf33173fab8d80bc64aa79">level_io</a>>0) <span class="keyword">write</span>(<a class="code" href="namespacemod__global__parameters.html#a9214ecd6fb45fa103a8518c45be16072">unitterm</a>,*)<span class="stringliteral">'reset tree to fixed level='</span>,<a class="code" href="namespacemod__global__parameters.html#a47213c2deabf33173fab8d80bc64aa79">level_io</a></div>
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  </div>
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  <span class="comment">!here requires -1 snapshot</span></div>
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  <span class="keywordflow">if</span> (<a class="code" href="namespacemod__global__parameters.html#a701d9f0321c70f8e13a05f6c15f2fb76">autoconvert</a> .or. <a class="code" href="namespacemod__global__parameters.html#a7e84e042d8f65bd51a4c3435ebd78e35">snapshotnext</a>>0) <a class="code" href="namespacemod__global__parameters.html#a7e84e042d8f65bd51a4c3435ebd78e35">snapshotnext</a> = <a class="code" href="namespacemod__global__parameters.html#a7e84e042d8f65bd51a4c3435ebd78e35">snapshotnext</a> - 1</div>
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  </div>
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  <span class="keywordflow">if</span>(<span class="keyword">associated</span>(<a class="code" href="namespacemod__physics.html#afc22cf6c5ef51120a483f6e11549b91c">phys_special_advance</a>)) <span class="keywordflow">then</span></div>
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  <span class="comment">! e.g. calculate MF velocity from magnetic field</span></div>
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  <span class="keyword">call </span><a class="code" href="namespacemod__physics.html#afc22cf6c5ef51120a483f6e11549b91c">phys_special_advance</a>(<a class="code" href="namespacemod__global__parameters.html#a2bdc961e7304863887ec17a92ae5ac0a">global_time</a>,ps)</div>
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span> <span class="keywordflow"> end if</span></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="keyword">call </span><a class="code" href="namespacemod__convert__files.html#a62a6fb3fa85f5bb311485d3dc140562c">generate_plotfile</a></div>
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  <span class="keyword">call </span><a class="code" href="namespacemod__comm__lib.html#a3bb8f7073e6c5083d584d17c871d8af6">comm_finalize</a></div>
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  stop</div>
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span> <span class="keywordflow"> end if</span></div>
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>  </div>
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  <span class="keywordflow">else</span></div>
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  </div>
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span>  <span class="comment">! form and initialize all grids at level one</span></div>
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  <span class="keyword">call </span>initlevelone</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">! set up and initialize finer level grids, if needed</span></div>
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  <span class="keyword">call </span><a class="code" href="namespacemod__amr__grid.html#a81fdb2745e9bcee99e51e222cfb57a42">settree</a></div>
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  </div>
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  <span class="keywordflow">if</span> (<a class="code" href="namespacemod__global__parameters.html#ac83affec4bc5aca052a0b30a39dd0ebf">use_multigrid</a>) <span class="keyword">call </span><a class="code" href="namespacemod__multigrid__coupling.html#aec3563c8809267a23e94c236093a2b12">mg_setup_multigrid</a>()</div>
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>  </div>
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  <span class="comment">! improve initial condition</span></div>
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span>  <span class="keyword">call </span><a class="code" href="namespacemod__initialize__amr.html#a0057789c0baf7737ff7d12f1c6a5ff65">improve_initial_condition</a>()</div>
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span>  </div>
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span>  <span class="comment">! select active grids</span></div>
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span>  <span class="keyword">call </span><a class="code" href="namespacemod__selectgrids.html#aa15f11bf5108fe0eae81eb81aa46f3b1">selectgrids</a></div>
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span>  </div>
<div class="line"><a name="l00156"></a><span class="lineno"> 156</span>  <span class="keywordflow">if</span> (<a class="code" href="namespacemod__global__parameters.html#a539b80e7ad5ccd313f1076e15a7cd137">use_particles</a>) <span class="keywordflow">then</span></div>
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span>  <span class="keyword">call </span>init_gridvars()</div>
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span>  <span class="keyword">call </span><a class="code" href="namespacemod__particles.html#aecb3aafd9f10d12b4b4ca6466ed6da87">particles_create</a>()</div>
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span> <span class="keywordflow"> end if</span></div>
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span>  </div>
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span> <span class="keywordflow"> end if</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">! initialize something base on tree information</span></div>
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span>  <span class="keyword">call </span><a class="code" href="namespacemod__trac.html#aa52c4fa933c5b1df28693d70a1742d0b">initialize_trac_after_settree</a></div>
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span>  </div>
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span>  <span class="keywordflow">if</span> (<a class="code" href="namespacemod__global__parameters.html#a605b2c8e7a386f644c7f8817421b6d67">mype</a>==0) <span class="keywordflow">then</span></div>
<div class="line"><a name="l00167"></a><span class="lineno"> 167</span>  print*,<span class="stringliteral">'-------------------------------------------------------------------------------'</span></div>
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span>  <span class="keyword">write</span>(*,<span class="stringliteral">'(a,f17.3,a)'</span>)<span class="stringliteral">' Startup phase took : '</span>,mpi_wtime()-time0,<span class="stringliteral">' sec'</span></div>
<div class="line"><a name="l00169"></a><span class="lineno"> 169</span>  print*,<span class="stringliteral">'-------------------------------------------------------------------------------'</span></div>
<div class="line"><a name="l00170"></a><span class="lineno"> 170</span> <span class="keywordflow"> end if</span></div>
<div class="line"><a name="l00171"></a><span class="lineno"> 171</span>  </div>
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span>  <span class="comment">! an interface to allow user to do special things before the main loop</span></div>
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span>  <span class="keywordflow">if</span> (<span class="keyword">associated</span>(<a class="code" href="namespacemod__usr__methods.html#a905fdae645546965bba6a9817a90944a">usr_before_main_loop</a>)) &</div>
<div class="line"><a name="l00174"></a><span class="lineno"> 174</span>  <span class="keyword">call </span><a class="code" href="namespacemod__usr__methods.html#a905fdae645546965bba6a9817a90944a">usr_before_main_loop</a>()</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="comment">! do time integration of all grids on all levels</span></div>
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span>  <span class="keyword">call </span><a class="code" href="amrvac_8t.html#ac5af3cab85e31682fedc92879f7e072e">timeintegration</a>()</div>
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span>  </div>
<div class="line"><a name="l00179"></a><span class="lineno"> 179</span>  <span class="keywordflow">if</span> (<a class="code" href="namespacemod__global__parameters.html#a605b2c8e7a386f644c7f8817421b6d67">mype</a>==0) <span class="keywordflow">then</span></div>
<div class="line"><a name="l00180"></a><span class="lineno"> 180</span>  print*,<span class="stringliteral">'-------------------------------------------------------------------------------'</span></div>
<div class="line"><a name="l00181"></a><span class="lineno"> 181</span>  <span class="keyword">write</span>(*,<span class="stringliteral">'(a,f17.3,a)'</span>)<span class="stringliteral">' Finished AMRVAC in : '</span>,mpi_wtime()-time0,<span class="stringliteral">' sec'</span></div>
<div class="line"><a name="l00182"></a><span class="lineno"> 182</span>  print*,<span class="stringliteral">'-------------------------------------------------------------------------------'</span></div>
<div class="line"><a name="l00183"></a><span class="lineno"> 183</span> <span class="keywordflow"> end if</span></div>
<div class="line"><a name="l00184"></a><span class="lineno"> 184</span>  </div>
<div class="line"><a name="l00185"></a><span class="lineno"> 185</span>  <span class="keyword">call </span><a class="code" href="namespacemod__comm__lib.html#a3bb8f7073e6c5083d584d17c871d8af6">comm_finalize</a></div>
<div class="line"><a name="l00186"></a><span class="lineno"> 186</span>  </div>
<div class="line"><a name="l00187"></a><span class="lineno"> 187</span> <span class="keyword">contains</span></div>
<div class="line"><a name="l00188"></a><span class="lineno"> 188</span>  </div>
<div class="line"><a name="l00189"></a><span class="lineno"><a class="line" href="amrvac_8t.html#ac5af3cab85e31682fedc92879f7e072e"> 189</a></span>  <span class="keyword">subroutine </span><a class="code" href="amrvac_8t.html#ac5af3cab85e31682fedc92879f7e072e">timeintegration</a>()</div>
<div class="line"><a name="l00190"></a><span class="lineno"> 190</span>  <span class="keywordtype">use </span><a class="code" href="namespacemod__timing.html">mod_timing</a></div>
<div class="line"><a name="l00191"></a><span class="lineno"> 191</span>  <span class="keywordtype">use </span><a class="code" href="namespacemod__advance.html">mod_advance</a>, <span class="keywordtype">only</span>: <a class="code" href="namespacemod__advance.html#a3abc5d81403e5443dc97a4db696acfd1">advance</a>, <a class="code" href="namespacemod__advance.html#a4c2beedac0bce5cbce19c516a00b5c98">process</a>, <a class="code" href="namespacemod__advance.html#a0dc1d03e0f58c2714522534be50cb915">process_advanced</a></div>
<div class="line"><a name="l00192"></a><span class="lineno"> 192</span>  <span class="keywordtype">use </span><a class="code" href="namespacemod__forest.html">mod_forest</a>, <span class="keywordtype">only</span>: <a class="code" href="namespacemod__forest.html#a2698b7425dadfb438f2d8e2a9e70b497">nleafs_active</a></div>
<div class="line"><a name="l00193"></a><span class="lineno"> 193</span>  <span class="keywordtype">use </span><a class="code" href="namespacemod__global__parameters.html">mod_global_parameters</a></div>
<div class="line"><a name="l00194"></a><span class="lineno"> 194</span>  <span class="keywordtype">use </span><a class="code" href="namespacemod__input__output.html">mod_input_output</a>, <span class="keywordtype">only</span>: <a class="code" href="namespacemod__input__output.html#a061b50e8aaaaf828c94809adf831ccbe">saveamrfile</a></div>
<div class="line"><a name="l00195"></a><span class="lineno"> 195</span>  <span class="keywordtype">use </span><a class="code" href="namespacemod__input__output__helper.html">mod_input_output_helper</a>, <span class="keywordtype">only</span>: <a class="code" href="namespacemod__input__output__helper.html#af211fca4e0891c5e3bd801a985bce973">save_now</a></div>
<div class="line"><a name="l00196"></a><span class="lineno"> 196</span>  <span class="keywordtype">use </span><a class="code" href="namespacemod__ghostcells__update.html">mod_ghostcells_update</a></div>
<div class="line"><a name="l00197"></a><span class="lineno"> 197</span>  <span class="keywordtype">use </span><a class="code" href="namespacemod__dt.html">mod_dt</a>, <span class="keywordtype">only</span>: <a class="code" href="namespacemod__dt.html#aea859f9346411815a5d7a157dd8afab0">setdt</a></div>
<div class="line"><a name="l00198"></a><span class="lineno"> 198</span>  </div>
<div class="line"><a name="l00199"></a><span class="lineno"> 199</span>  </div>
<div class="line"><a name="l00200"></a><span class="lineno"> 200</span>  <span class="keywordtype">double precision</span> :: time_last_print, time_write0, time_write, time_before_advance, dt_loop</div>
<div class="line"><a name="l00201"></a><span class="lineno"> 201</span>  <span class="keywordtype">integer(kind=8)</span> ncells_update</div>
<div class="line"><a name="l00202"></a><span class="lineno"> 202</span>  <span class="keywordtype">integer</span> :: level, ifile, fixcount, ncells_block, igrid, iigrid</div>
<div class="line"><a name="l00203"></a><span class="lineno"> 203</span>  <span class="keywordtype">logical</span> :: crashall</div>
<div class="line"><a name="l00204"></a><span class="lineno"> 204</span>  </div>
<div class="line"><a name="l00205"></a><span class="lineno"> 205</span>  <a class="code" href="namespacemod__timing.html#a50ae0a9a14c55c1fa78e1f603eadf6f4">time_in</a>=mpi_wtime()</div>
<div class="line"><a name="l00206"></a><span class="lineno"> 206</span>  time_last_print = -bigdouble</div>
<div class="line"><a name="l00207"></a><span class="lineno"> 207</span>  fixcount=1</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>  <a class="code" href="namespacemod__global__parameters.html#a610ee117dcc31f61f60487ab220b740c">n_saves</a>(<a class="code" href="namespacemod__global__parameters.html#a9e14f8777e3d1c99500aabba1f25384f">filelog_</a>:<a class="code" href="namespacemod__global__parameters.html#aa8b0f3c32c987669794c2a72cb29161e">fileout_</a>) = <a class="code" href="namespacemod__global__parameters.html#a370863264a3b2f3734b6cfacdd8b2bed">snapshotini</a></div>
<div class="line"><a name="l00210"></a><span class="lineno"> 210</span>  </div>
<div class="line"><a name="l00211"></a><span class="lineno"> 211</span>  <span class="keywordflow">do</span> ifile=<a class="code" href="namespacemod__global__parameters.html#ad8e2f2407305f395e212d838cbd366a0">nfile</a>,1,-1</div>
<div class="line"><a name="l00212"></a><span class="lineno"> 212</span>  <span class="keywordflow">if</span>(<a class="code" href="namespacemod__global__parameters.html#a2bb0b481a238e6de804ec476a9cc0f2f">resume_previous_run</a>) <span class="keywordflow">then</span></div>
<div class="line"><a name="l00213"></a><span class="lineno"> 213</span>  <a class="code" href="namespacemod__global__parameters.html#a02129feb72266efdabff49e7f5937324">tsavelast</a>(ifile)=aint((<a class="code" href="namespacemod__global__parameters.html#a2bdc961e7304863887ec17a92ae5ac0a">global_time</a>+smalldouble)/<a class="code" href="namespacemod__global__parameters.html#a92be6d1fd210a17a74b04ef7b597b791">dtsave</a>(ifile))*<a class="code" href="namespacemod__global__parameters.html#a92be6d1fd210a17a74b04ef7b597b791">dtsave</a>(ifile)</div>
<div class="line"><a name="l00214"></a><span class="lineno"> 214</span>  <a class="code" href="namespacemod__global__parameters.html#a8a619bd64d8dae580dd164a657c6e7df">itsavelast</a>(ifile)=<a class="code" href="namespacemod__global__parameters.html#a37c8bbe2457c57b29f0bca3f7e1387fa">it</a>/<a class="code" href="namespacemod__global__parameters.html#a642b591486cb72f711ffcaffacd41d84">ditsave</a>(ifile)*<a class="code" href="namespacemod__global__parameters.html#a642b591486cb72f711ffcaffacd41d84">ditsave</a>(ifile)</div>
<div class="line"><a name="l00215"></a><span class="lineno"> 215</span>  <span class="keywordflow">else</span></div>
<div class="line"><a name="l00216"></a><span class="lineno"> 216</span>  <a class="code" href="namespacemod__global__parameters.html#a02129feb72266efdabff49e7f5937324">tsavelast</a>(ifile)=<a class="code" href="namespacemod__global__parameters.html#a2bdc961e7304863887ec17a92ae5ac0a">global_time</a></div>
<div class="line"><a name="l00217"></a><span class="lineno"> 217</span>  <a class="code" href="namespacemod__global__parameters.html#a8a619bd64d8dae580dd164a657c6e7df">itsavelast</a>(ifile)=<a class="code" href="namespacemod__global__parameters.html#a37c8bbe2457c57b29f0bca3f7e1387fa">it</a></div>
<div class="line"><a name="l00218"></a><span class="lineno"> 218</span> <span class="keywordflow"> end if</span></div>
<div class="line"><a name="l00219"></a><span class="lineno"> 219</span> <span class="keywordflow"> end do</span></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>  <span class="comment">! the next two are used to keep track of the performance during runtime:</span></div>
<div class="line"><a name="l00222"></a><span class="lineno"> 222</span>  <a class="code" href="namespacemod__timing.html#a235af821f4ab48e15d285460766ca0c6">ittimelast</a>=<a class="code" href="namespacemod__global__parameters.html#a37c8bbe2457c57b29f0bca3f7e1387fa">it</a></div>
<div class="line"><a name="l00223"></a><span class="lineno"> 223</span>  <a class="code" href="namespacemod__timing.html#a7eaa0c0e6abb95dd60b30c345156d180">timelast</a>=mpi_wtime()</div>
<div class="line"><a name="l00224"></a><span class="lineno"> 224</span>  </div>
<div class="line"><a name="l00225"></a><span class="lineno"> 225</span>  <span class="comment">! ------ start of integration loop. ------------------</span></div>
<div class="line"><a name="l00226"></a><span class="lineno"> 226</span>  <span class="keywordflow">if</span> (<a class="code" href="namespacemod__global__parameters.html#a605b2c8e7a386f644c7f8817421b6d67">mype</a>==0) <span class="keywordflow">then</span></div>
<div class="line"><a name="l00227"></a><span class="lineno"> 227</span>  <span class="keyword">write</span>(*, <span class="stringliteral">'(A,ES9.2,A)'</span>) <span class="stringliteral">' Start integrating, print status every '</span>, &</div>
<div class="line"><a name="l00228"></a><span class="lineno"> 228</span>  <a class="code" href="namespacemod__global__parameters.html#a9138f9532b13609e59e135a0a3592a5d">time_between_print</a>, <span class="stringliteral">' seconds'</span></div>
<div class="line"><a name="l00229"></a><span class="lineno"> 229</span>  <span class="keyword">write</span>(*, <span class="stringliteral">'(A4,A10,A12,A12,A12)'</span>) <span class="stringliteral">' #'</span>, <span class="stringliteral">'it'</span>, <span class="stringliteral">'time'</span>, <span class="stringliteral">'dt'</span>, <span class="stringliteral">'wc-time(s)'</span></div>
<div class="line"><a name="l00230"></a><span class="lineno"> 230</span> <span class="keywordflow"> end if</span></div>
<div class="line"><a name="l00231"></a><span class="lineno"> 231</span>  </div>
<div class="line"><a name="l00232"></a><span class="lineno"> 232</span>  <a class="code" href="namespacemod__timing.html#ac2a03b9963336062fe4ea0b75419705b">timeloop0</a>=mpi_wtime()</div>
<div class="line"><a name="l00233"></a><span class="lineno"> 233</span>  <a class="code" href="namespacemod__global__parameters.html#aaf718579b3a77399dad2b8346370c1b6">time_bc</a>=0.d0</div>
<div class="line"><a name="l00234"></a><span class="lineno"> 234</span>  time_write=0.d0</div>
<div class="line"><a name="l00235"></a><span class="lineno"> 235</span>  ncells_block={(<a class="code" href="namespacemod__global__parameters.html#a1ae1204f8ad0508b0a13de9c48217b97">ixghi</a>^<a class="code" href="namespacemod__global__parameters.html#a68549065c490d02e1de338e8a60c3f12">d</a>-2*<a class="code" href="namespacemod__global__parameters.html#ab7c7effa3bb9a3ba7e79fd548fc7c8aa">nghostcells</a>)*}</div>
<div class="line"><a name="l00236"></a><span class="lineno"> 236</span>  ncells_update=0</div>
<div class="line"><a name="l00237"></a><span class="lineno"> 237</span>  dt_loop=0.d0</div>
<div class="line"><a name="l00238"></a><span class="lineno"> 238</span>  </div>
<div class="line"><a name="l00239"></a><span class="lineno"> 239</span>  <a class="code" href="namespacemod__global__parameters.html#a9715546f26c07cf6c1c55d0a1d72bcfd">time_advance</a>=.true.</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>  time_evol : <span class="keywordflow">do</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>  time_before_advance=mpi_wtime()</div>
<div class="line"><a name="l00244"></a><span class="lineno"> 244</span>  <span class="comment">! set time step</span></div>
<div class="line"><a name="l00245"></a><span class="lineno"> 245</span>  <span class="keyword">call </span><a class="code" href="namespacemod__dt.html#aea859f9346411815a5d7a157dd8afab0">setdt</a>()</div>
<div class="line"><a name="l00246"></a><span class="lineno"> 246</span>  </div>
<div class="line"><a name="l00247"></a><span class="lineno"> 247</span>  <span class="comment">! Optionally call a user method that can modify the grid variables at the</span></div>
<div class="line"><a name="l00248"></a><span class="lineno"> 248</span>  <span class="comment">! beginning of a time step</span></div>
<div class="line"><a name="l00249"></a><span class="lineno"> 249</span>  <span class="keywordflow">if</span> (<span class="keyword">associated</span>(<a class="code" href="namespacemod__usr__methods.html#a1f93558516afa1ff06e6107ddcbc8acc">usr_process_grid</a>) .or. &</div>
<div class="line"><a name="l00250"></a><span class="lineno"> 250</span>  <span class="keyword">associated</span>(<a class="code" href="namespacemod__usr__methods.html#a9efb0f60a29fdac3cfaac5c8b1844649">usr_process_global</a>)) <span class="keywordflow">then</span></div>
<div class="line"><a name="l00251"></a><span class="lineno"> 251</span>  <span class="keyword">call </span><a class="code" href="namespacemod__advance.html#a4c2beedac0bce5cbce19c516a00b5c98">process</a>(<a class="code" href="namespacemod__global__parameters.html#a37c8bbe2457c57b29f0bca3f7e1387fa">it</a>,<a class="code" href="namespacemod__global__parameters.html#a2bdc961e7304863887ec17a92ae5ac0a">global_time</a>)</div>
<div class="line"><a name="l00252"></a><span class="lineno"> 252</span> <span class="keywordflow"> end if</span></div>
<div class="line"><a name="l00253"></a><span class="lineno"> 253</span>  </div>
<div class="line"><a name="l00254"></a><span class="lineno"> 254</span>  <span class="comment">! Check if output needs to be written</span></div>
<div class="line"><a name="l00255"></a><span class="lineno"> 255</span>  <span class="keywordflow">do</span> ifile=<a class="code" href="namespacemod__global__parameters.html#ad8e2f2407305f395e212d838cbd366a0">nfile</a>,1,-1</div>
<div class="line"><a name="l00256"></a><span class="lineno"> 256</span>  <a class="code" href="namespacemod__global__parameters.html#a2894929bedb935d318017e1f5fe10b07">save_file</a>(ifile) = <a class="code" href="amrvac_8t.html#a5161b0d2d5cd17f5ef88afee2e969ac1">timetosave</a>(ifile)</div>
<div class="line"><a name="l00257"></a><span class="lineno"> 257</span> <span class="keywordflow"> end do</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"> 259</span>  <a class="code" href="namespacemod__timing.html#ab2fc2bcd0630bbc346e0f6d0ec5015b5">timeio0</a>=mpi_wtime()</div>
<div class="line"><a name="l00260"></a><span class="lineno"> 260</span>  </div>
<div class="line"><a name="l00261"></a><span class="lineno"> 261</span>  <span class="keywordflow">if</span> (<a class="code" href="namespacemod__timing.html#ab2fc2bcd0630bbc346e0f6d0ec5015b5">timeio0</a> - time_last_print > <a class="code" href="namespacemod__global__parameters.html#a9138f9532b13609e59e135a0a3592a5d">time_between_print</a>) <span class="keywordflow">then</span></div>
<div class="line"><a name="l00262"></a><span class="lineno"> 262</span>  time_last_print = <a class="code" href="namespacemod__timing.html#ab2fc2bcd0630bbc346e0f6d0ec5015b5">timeio0</a></div>
<div class="line"><a name="l00263"></a><span class="lineno"> 263</span>  <span class="keywordflow">if</span> (<a class="code" href="namespacemod__global__parameters.html#a605b2c8e7a386f644c7f8817421b6d67">mype</a> == 0) <span class="keywordflow">then</span></div>
<div class="line"><a name="l00264"></a><span class="lineno"> 264</span>  <span class="keyword">write</span>(*, <span class="stringliteral">'(A4,I10,ES12.4,ES12.4,ES12.4)'</span>) <span class="stringliteral">" #"</span>, &</div>
<div class="line"><a name="l00265"></a><span class="lineno"> 265</span>  <a class="code" href="namespacemod__global__parameters.html#a37c8bbe2457c57b29f0bca3f7e1387fa">it</a>, <a class="code" href="namespacemod__global__parameters.html#a2bdc961e7304863887ec17a92ae5ac0a">global_time</a>, <a class="code" href="namespacemod__global__parameters.html#a696248795de3f887232834d6136b8501">dt</a>, <a class="code" href="namespacemod__timing.html#ab2fc2bcd0630bbc346e0f6d0ec5015b5">timeio0</a> - <a class="code" href="namespacemod__timing.html#a50ae0a9a14c55c1fa78e1f603eadf6f4">time_in</a></div>
<div class="line"><a name="l00266"></a><span class="lineno"> 266</span> <span class="keywordflow"> end if</span></div>
<div class="line"><a name="l00267"></a><span class="lineno"> 267</span> <span class="keywordflow"> end if</span></div>
<div class="line"><a name="l00268"></a><span class="lineno"> 268</span>  </div>
<div class="line"><a name="l00269"></a><span class="lineno"> 269</span>  <span class="comment">! output data</span></div>
<div class="line"><a name="l00270"></a><span class="lineno"> 270</span>  <span class="keywordflow">if</span> (any(<a class="code" href="namespacemod__global__parameters.html#a2894929bedb935d318017e1f5fe10b07">save_file</a>)) <span class="keywordflow">then</span></div>
<div class="line"><a name="l00271"></a><span class="lineno"> 271</span>  <span class="keywordflow">if</span>(<span class="keyword">associated</span>(<a class="code" href="namespacemod__usr__methods.html#a8ed38783519fa33a4dc1f310f315b450">usr_modify_output</a>)) <span class="keywordflow">then</span></div>
<div class="line"><a name="l00272"></a><span class="lineno"> 272</span>  <span class="comment">! Users can modify or set variables before output is written</span></div>
<div class="line"><a name="l00273"></a><span class="lineno"> 273</span>  <span class="keywordflow">do</span> iigrid=1,igridstail; igrid=igrids(iigrid);</div>
<div class="line"><a name="l00274"></a><span class="lineno"> 274</span>  ^<a class="code" href="namespacemod__global__parameters.html#a68549065c490d02e1de338e8a60c3f12">d</a>&<a class="code" href="namespacemod__global__parameters.html#ac487446056522027f949f42ba64b2e11">dxlevel</a>(^<a class="code" href="namespacemod__global__parameters.html#a68549065c490d02e1de338e8a60c3f12">d</a>)=<a class="code" href="namespacemod__global__parameters.html#a9dd666c3ecb8ef351f14f46cf32a3a62">rnode</a>(<a class="code" href="namespacemod__global__parameters.html#ad720343997778dd3cdeb03a7b389a3b0">rpdx</a>^<a class="code" href="namespacemod__global__parameters.html#aa3194833cc9e7e739ed1fa396655a636">d_</a>,igrid);</div>
<div class="line"><a name="l00275"></a><span class="lineno"> 275</span>  <a class="code" href="namespacemod__global__parameters.html#a026d4f7c417820e04a0731db6833204b">block</a>=>ps(igrid)</div>
<div class="line"><a name="l00276"></a><span class="lineno"> 276</span>  <span class="keyword">call </span><a class="code" href="namespacemod__usr__methods.html#a8ed38783519fa33a4dc1f310f315b450">usr_modify_output</a>(ixg^<a class="code" href="namespacemod__global__parameters.html#a66b6d102b0c1abd62b12a11b7fdb31b3">ll</a>,<a class="code" href="namespacemod__ghostcells__update.html#adc4d94514dca05ef03d020a397854e9d">ixm</a>^<a class="code" href="namespacemod__global__parameters.html#a66b6d102b0c1abd62b12a11b7fdb31b3">ll</a>,<a class="code" href="namespacemod__global__parameters.html#a2bdc961e7304863887ec17a92ae5ac0a">global_time</a>,ps(igrid)%w,ps(igrid)%x)</div>
<div class="line"><a name="l00277"></a><span class="lineno"> 277</span> <span class="keywordflow"> end do</span></div>
<div class="line"><a name="l00278"></a><span class="lineno"> 278</span> <span class="keywordflow"> end if</span></div>
<div class="line"><a name="l00279"></a><span class="lineno"> 279</span>  time_write=0.d0</div>
<div class="line"><a name="l00280"></a><span class="lineno"> 280</span>  <span class="keywordflow">do</span> ifile=<a class="code" href="namespacemod__global__parameters.html#ad8e2f2407305f395e212d838cbd366a0">nfile</a>,1,-1</div>
<div class="line"><a name="l00281"></a><span class="lineno"> 281</span>  <span class="keywordflow">if</span> (<a class="code" href="namespacemod__global__parameters.html#a2894929bedb935d318017e1f5fe10b07">save_file</a>(ifile)) <span class="keywordflow">then</span></div>
<div class="line"><a name="l00282"></a><span class="lineno"> 282</span>  time_write0=mpi_wtime()</div>
<div class="line"><a name="l00283"></a><span class="lineno"> 283</span>  <span class="keyword">call </span><a class="code" href="namespacemod__input__output.html#a061b50e8aaaaf828c94809adf831ccbe">saveamrfile</a>(ifile)</div>
<div class="line"><a name="l00284"></a><span class="lineno"> 284</span>  time_write=time_write+mpi_wtime()-time_write0</div>
<div class="line"><a name="l00285"></a><span class="lineno"> 285</span> <span class="keywordflow"> end if</span></div>
<div class="line"><a name="l00286"></a><span class="lineno"> 286</span> <span class="keywordflow"> end do</span></div>
<div class="line"><a name="l00287"></a><span class="lineno"> 287</span> <span class="keywordflow"> end if</span></div>
<div class="line"><a name="l00288"></a><span class="lineno"> 288</span>  </div>
<div class="line"><a name="l00289"></a><span class="lineno"> 289</span>  <span class="comment">! output a snapshot when user write a file named 'savenow' in the same</span></div>
<div class="line"><a name="l00290"></a><span class="lineno"> 290</span>  <span class="comment">! folder as the executable amrvac</span></div>
<div class="line"><a name="l00291"></a><span class="lineno"> 291</span>  <span class="keywordflow">if</span> (<a class="code" href="namespacemod__global__parameters.html#a605b2c8e7a386f644c7f8817421b6d67">mype</a>==0) <span class="keyword">inquire</span>(file=<span class="stringliteral">'savenow'</span>,exist=<a class="code" href="namespacemod__input__output__helper.html#af211fca4e0891c5e3bd801a985bce973">save_now</a>)</div>
<div class="line"><a name="l00292"></a><span class="lineno"> 292</span>  <span class="keywordflow">if</span> (<a class="code" href="namespacemod__global__parameters.html#a879ff9a3d86e228553c9e44151a31574">npe</a>>1) <span class="keyword">call </span>mpi_bcast(<a class="code" href="namespacemod__input__output__helper.html#af211fca4e0891c5e3bd801a985bce973">save_now</a>,1,mpi_logical,0,<a class="code" href="namespacemod__global__parameters.html#a5704f1c57aa09935d3491f65ad240861">icomm</a>,<a class="code" href="namespacemod__global__parameters.html#a701c9a9b2d5f02bb7c7a8181f09df2ae">ierrmpi</a>)</div>
<div class="line"><a name="l00293"></a><span class="lineno"> 293</span>  </div>
<div class="line"><a name="l00294"></a><span class="lineno"> 294</span>  <span class="keywordflow">if</span> (<a class="code" href="namespacemod__input__output__helper.html#af211fca4e0891c5e3bd801a985bce973">save_now</a>) <span class="keywordflow">then</span></div>
<div class="line"><a name="l00295"></a><span class="lineno"> 295</span>  <span class="keywordflow">if</span>(<a class="code" href="namespacemod__global__parameters.html#a605b2c8e7a386f644c7f8817421b6d67">mype</a>==0) <span class="keyword">write</span>(*,<span class="stringliteral">'(a,i7,a,i7,a,es12.4)'</span>) <span class="stringliteral">' save a snapshot No.'</span>,&</div>
<div class="line"><a name="l00296"></a><span class="lineno"> 296</span>  <a class="code" href="namespacemod__global__parameters.html#a7e84e042d8f65bd51a4c3435ebd78e35">snapshotnext</a>,<span class="stringliteral">' at it='</span>,<a class="code" href="namespacemod__global__parameters.html#a37c8bbe2457c57b29f0bca3f7e1387fa">it</a>,<span class="stringliteral">' global_time='</span>,<a class="code" href="namespacemod__global__parameters.html#a2bdc961e7304863887ec17a92ae5ac0a">global_time</a></div>
<div class="line"><a name="l00297"></a><span class="lineno"> 297</span>  <span class="keyword">call </span><a class="code" href="namespacemod__input__output.html#a061b50e8aaaaf828c94809adf831ccbe">saveamrfile</a>(1)</div>
<div class="line"><a name="l00298"></a><span class="lineno"> 298</span>  <span class="keyword">call </span><a class="code" href="namespacemod__input__output.html#a061b50e8aaaaf828c94809adf831ccbe">saveamrfile</a>(2)</div>
<div class="line"><a name="l00299"></a><span class="lineno"> 299</span>  <span class="keyword">call </span>mpi_file_delete(<span class="stringliteral">'savenow'</span>,mpi_info_null,<a class="code" href="namespacemod__global__parameters.html#a701c9a9b2d5f02bb7c7a8181f09df2ae">ierrmpi</a>)</div>
<div class="line"><a name="l00300"></a><span class="lineno"> 300</span> <span class="keywordflow"> end if</span></div>
<div class="line"><a name="l00301"></a><span class="lineno"> 301</span>  <a class="code" href="namespacemod__timing.html#a4c06dd166317d6e3b44c6ab001538053">timeio_tot</a>=<a class="code" href="namespacemod__timing.html#a4c06dd166317d6e3b44c6ab001538053">timeio_tot</a>+mpi_wtime()-<a class="code" href="namespacemod__timing.html#ab2fc2bcd0630bbc346e0f6d0ec5015b5">timeio0</a></div>
<div class="line"><a name="l00302"></a><span class="lineno"> 302</span>  </div>
<div class="line"><a name="l00303"></a><span class="lineno"> 303</span>  <a class="code" href="namespacemod__global__parameters.html#ae37434f1201849e8248975d38f191b66">pass_wall_time</a>=mpi_wtime()-time0+dt_loop+4.d0*time_write >=<a class="code" href="namespacemod__global__parameters.html#a6f4b0ca677f067d9ffa334a39c81198b">wall_time_max</a></div>
<div class="line"><a name="l00304"></a><span class="lineno"> 304</span>  </div>
<div class="line"><a name="l00305"></a><span class="lineno"> 305</span>  <span class="comment">! exit time loop if time is up</span></div>
<div class="line"><a name="l00306"></a><span class="lineno"> 306</span>  <span class="keywordflow">if</span> (<a class="code" href="namespacemod__global__parameters.html#a37c8bbe2457c57b29f0bca3f7e1387fa">it</a>>=<a class="code" href="namespacemod__global__parameters.html#a057feb2697cc1ef7cee9e82c79d7eb27">it_max</a> .or. <a class="code" href="namespacemod__global__parameters.html#a2bdc961e7304863887ec17a92ae5ac0a">global_time</a>>=<a class="code" href="namespacemod__global__parameters.html#a2dd037f0c45d7e7ba6a10c1f16092699">time_max</a> .or. <a class="code" href="namespacemod__global__parameters.html#ae37434f1201849e8248975d38f191b66">pass_wall_time</a> .or. <a class="code" href="namespacemod__global__parameters.html#ae9df63ed323b77d4c3477e5fa33cc122">final_dt_exit</a>) <span class="keywordflow">exit</span> time_evol</div>
<div class="line"><a name="l00307"></a><span class="lineno"> 307</span>  </div>
<div class="line"><a name="l00308"></a><span class="lineno"> 308</span>  <span class="comment">! solving equations</span></div>
<div class="line"><a name="l00309"></a><span class="lineno"> 309</span>  <span class="keyword">call </span><a class="code" href="namespacemod__advance.html#a3abc5d81403e5443dc97a4db696acfd1">advance</a>(<a class="code" href="namespacemod__global__parameters.html#a37c8bbe2457c57b29f0bca3f7e1387fa">it</a>)</div>
<div class="line"><a name="l00310"></a><span class="lineno"> 310</span>  </div>
<div class="line"><a name="l00311"></a><span class="lineno"> 311</span>  <span class="comment">! if met unphysical values, output the last good status and stop the run</span></div>
<div class="line"><a name="l00312"></a><span class="lineno"> 312</span>  <span class="keyword">call </span>mpi_allreduce(<a class="code" href="namespacemod__global__parameters.html#ac423e9047236553af2021f67a3203bc0">crash</a>,crashall,1,mpi_logical,mpi_lor,<a class="code" href="namespacemod__global__parameters.html#a5704f1c57aa09935d3491f65ad240861">icomm</a>,<a class="code" href="namespacemod__global__parameters.html#a701c9a9b2d5f02bb7c7a8181f09df2ae">ierrmpi</a>)</div>
<div class="line"><a name="l00313"></a><span class="lineno"> 313</span>  <span class="keywordflow">if</span> (crashall) <span class="keywordflow">then</span></div>
<div class="line"><a name="l00314"></a><span class="lineno"> 314</span>  <span class="keyword">call </span><a class="code" href="namespacemod__input__output.html#a061b50e8aaaaf828c94809adf831ccbe">saveamrfile</a>(1)</div>
<div class="line"><a name="l00315"></a><span class="lineno"> 315</span>  <span class="keyword">call </span><a class="code" href="namespacemod__input__output.html#a061b50e8aaaaf828c94809adf831ccbe">saveamrfile</a>(2)</div>
<div class="line"><a name="l00316"></a><span class="lineno"> 316</span>  <span class="keywordflow">if</span>(<a class="code" href="namespacemod__global__parameters.html#a605b2c8e7a386f644c7f8817421b6d67">mype</a>==0) <span class="keyword">write</span>(*,*) <span class="stringliteral">"Error: small value encountered, run crash."</span></div>
<div class="line"><a name="l00317"></a><span class="lineno"> 317</span>  <span class="keyword">call </span>mpi_abort(<a class="code" href="namespacemod__global__parameters.html#a5704f1c57aa09935d3491f65ad240861">icomm</a>, iigrid, <a class="code" href="namespacemod__global__parameters.html#a701c9a9b2d5f02bb7c7a8181f09df2ae">ierrmpi</a>)</div>
<div class="line"><a name="l00318"></a><span class="lineno"> 318</span> <span class="keywordflow"> end if</span></div>
<div class="line"><a name="l00319"></a><span class="lineno"> 319</span>  </div>
<div class="line"><a name="l00320"></a><span class="lineno"> 320</span>  <span class="comment">! Optionally call a user method that can modify the grid variables at the</span></div>
<div class="line"><a name="l00321"></a><span class="lineno"> 321</span>  <span class="comment">! end of a time step: this is for two-way coupling to PIC, e.g.</span></div>
<div class="line"><a name="l00322"></a><span class="lineno"> 322</span>  <span class="keywordflow">if</span> (<span class="keyword">associated</span>(<a class="code" href="namespacemod__usr__methods.html#a65c2e6d926228175cd8b638835638bd8">usr_process_adv_grid</a>) .or. &</div>
<div class="line"><a name="l00323"></a><span class="lineno"> 323</span>  <span class="keyword">associated</span>(<a class="code" href="namespacemod__usr__methods.html#ab4e641f0ea0e276897bd7a9847ec126c">usr_process_adv_global</a>)) <span class="keywordflow">then</span></div>
<div class="line"><a name="l00324"></a><span class="lineno"> 324</span>  <span class="keyword">call </span><a class="code" href="namespacemod__advance.html#a0dc1d03e0f58c2714522534be50cb915">process_advanced</a>(<a class="code" href="namespacemod__global__parameters.html#a37c8bbe2457c57b29f0bca3f7e1387fa">it</a>,<a class="code" href="namespacemod__global__parameters.html#a2bdc961e7304863887ec17a92ae5ac0a">global_time</a>)</div>
<div class="line"><a name="l00325"></a><span class="lineno"> 325</span> <span class="keywordflow"> end if</span></div>
<div class="line"><a name="l00326"></a><span class="lineno"> 326</span>  </div>
<div class="line"><a name="l00327"></a><span class="lineno"> 327</span>  <span class="comment">! update AMR mesh and tree</span></div>
<div class="line"><a name="l00328"></a><span class="lineno"> 328</span>  <a class="code" href="namespacemod__timing.html#aff10a9563972549bbbb6f597235d9f6e">timegr0</a>=mpi_wtime()</div>
<div class="line"><a name="l00329"></a><span class="lineno"> 329</span>  <span class="keywordflow">if</span>(<a class="code" href="namespacemod__global__parameters.html#a3ca4430b2e1352a48833355f28427d9f">ditregrid</a>>1) <span class="keywordflow">then</span></div>
<div class="line"><a name="l00330"></a><span class="lineno"> 330</span>  <span class="keywordflow">if</span>(fixcount<<a class="code" href="namespacemod__global__parameters.html#a3ca4430b2e1352a48833355f28427d9f">ditregrid</a>) <span class="keywordflow">then</span></div>
<div class="line"><a name="l00331"></a><span class="lineno"> 331</span>  fixcount=fixcount+1</div>
<div class="line"><a name="l00332"></a><span class="lineno"> 332</span>  <span class="keywordflow">else</span></div>
<div class="line"><a name="l00333"></a><span class="lineno"> 333</span>  <span class="keywordflow">if</span> (<a class="code" href="namespacemod__global__parameters.html#ad3ffd4e35e76a0b86495789e5458fdd8">refine_max_level</a>>1 .and. .not.(<a class="code" href="amrvac_8t.html#a0ced65b6e56f54386e2f7718d7095a10">fixgrid</a>())) <span class="keyword">call </span><a class="code" href="namespacemod__amr__grid.html#a1d21768e5b7034d71d93c87a60b14833">resettree</a></div>
<div class="line"><a name="l00334"></a><span class="lineno"> 334</span>  fixcount=1</div>
<div class="line"><a name="l00335"></a><span class="lineno"> 335</span> <span class="keywordflow"> end if</span></div>
<div class="line"><a name="l00336"></a><span class="lineno"> 336</span>  <span class="keywordflow">else</span></div>
<div class="line"><a name="l00337"></a><span class="lineno"> 337</span>  <span class="keywordflow">if</span> (<a class="code" href="namespacemod__global__parameters.html#ad3ffd4e35e76a0b86495789e5458fdd8">refine_max_level</a>>1 .and. .not.(<a class="code" href="amrvac_8t.html#a0ced65b6e56f54386e2f7718d7095a10">fixgrid</a>())) <span class="keyword">call </span><a class="code" href="namespacemod__amr__grid.html#a1d21768e5b7034d71d93c87a60b14833">resettree</a></div>
<div class="line"><a name="l00338"></a><span class="lineno"> 338</span> <span class="keywordflow"> end if</span></div>
<div class="line"><a name="l00339"></a><span class="lineno"> 339</span>  <a class="code" href="namespacemod__timing.html#a3ba18a349556f9382c767a25cf291aa7">timegr_tot</a>=<a class="code" href="namespacemod__timing.html#a3ba18a349556f9382c767a25cf291aa7">timegr_tot</a>+(mpi_wtime()-<a class="code" href="namespacemod__timing.html#aff10a9563972549bbbb6f597235d9f6e">timegr0</a>)</div>
<div class="line"><a name="l00340"></a><span class="lineno"> 340</span>  </div>
<div class="line"><a name="l00341"></a><span class="lineno"> 341</span>  <span class="comment">! update time variables</span></div>
<div class="line"><a name="l00342"></a><span class="lineno"> 342</span>  <a class="code" href="namespacemod__global__parameters.html#a37c8bbe2457c57b29f0bca3f7e1387fa">it</a> = <a class="code" href="namespacemod__global__parameters.html#a37c8bbe2457c57b29f0bca3f7e1387fa">it</a> + 1</div>
<div class="line"><a name="l00343"></a><span class="lineno"> 343</span>  <a class="code" href="namespacemod__global__parameters.html#a2bdc961e7304863887ec17a92ae5ac0a">global_time</a> = <a class="code" href="namespacemod__global__parameters.html#a2bdc961e7304863887ec17a92ae5ac0a">global_time</a> + <a class="code" href="namespacemod__global__parameters.html#a696248795de3f887232834d6136b8501">dt</a></div>
<div class="line"><a name="l00344"></a><span class="lineno"> 344</span>  </div>
<div class="line"><a name="l00345"></a><span class="lineno"> 345</span>  <span class="keywordflow">if</span>(<a class="code" href="namespacemod__global__parameters.html#a37c8bbe2457c57b29f0bca3f7e1387fa">it</a>>9000000)<span class="keywordflow">then</span></div>
<div class="line"><a name="l00346"></a><span class="lineno"> 346</span>  <a class="code" href="namespacemod__global__parameters.html#a37c8bbe2457c57b29f0bca3f7e1387fa">it</a> = <a class="code" href="namespacemod__global__parameters.html#a7697c549bfe2fdc52590606d35f7645f">slowsteps</a>+<a class="code" href="namespacemod__global__parameters.html#a3b867699253875817b4abd3a348b8f53">it_init</a></div>
<div class="line"><a name="l00347"></a><span class="lineno"> 347</span>  <a class="code" href="namespacemod__global__parameters.html#a8a619bd64d8dae580dd164a657c6e7df">itsavelast</a>(:)=0</div>
<div class="line"><a name="l00348"></a><span class="lineno"> 348</span> <span class="keywordflow"> end if</span></div>
<div class="line"><a name="l00349"></a><span class="lineno"> 349</span>  </div>
<div class="line"><a name="l00350"></a><span class="lineno"> 350</span>  <span class="comment">! count updated cells</span></div>
<div class="line"><a name="l00351"></a><span class="lineno"> 351</span>  ncells_update=ncells_update+ncells_block*<a class="code" href="namespacemod__forest.html#a2698b7425dadfb438f2d8e2a9e70b497">nleafs_active</a></div>
<div class="line"><a name="l00352"></a><span class="lineno"> 352</span>  </div>
<div class="line"><a name="l00353"></a><span class="lineno"> 353</span>  <span class="comment">! time lapses in one loop</span></div>
<div class="line"><a name="l00354"></a><span class="lineno"> 354</span>  dt_loop=mpi_wtime()-time_before_advance</div>
<div class="line"><a name="l00355"></a><span class="lineno"> 355</span> <span class="keywordflow"> end do</span> time_evol</div>
<div class="line"><a name="l00356"></a><span class="lineno"> 356</span>  </div>
<div class="line"><a name="l00357"></a><span class="lineno"> 357</span>  <span class="keywordflow">if</span>(<a class="code" href="namespacemod__global__parameters.html#a539b80e7ad5ccd313f1076e15a7cd137">use_particles</a>) <span class="keywordflow">then</span></div>
<div class="line"><a name="l00358"></a><span class="lineno"> 358</span>  <span class="keyword">call </span>finish_gridvars()</div>
<div class="line"><a name="l00359"></a><span class="lineno"> 359</span> <span class="keywordflow"> end if</span></div>
<div class="line"><a name="l00360"></a><span class="lineno"> 360</span>  </div>
<div class="line"><a name="l00361"></a><span class="lineno"> 361</span>  <a class="code" href="namespacemod__global__parameters.html#a9715546f26c07cf6c1c55d0a1d72bcfd">time_advance</a>=.false.</div>
<div class="line"><a name="l00362"></a><span class="lineno"> 362</span>  </div>
<div class="line"><a name="l00363"></a><span class="lineno"> 363</span>  <a class="code" href="namespacemod__timing.html#ab80941ce6f1cdd34e8ab9a4939557e39">timeloop</a>=mpi_wtime()-<a class="code" href="namespacemod__timing.html#ac2a03b9963336062fe4ea0b75419705b">timeloop0</a></div>
<div class="line"><a name="l00364"></a><span class="lineno"> 364</span>  </div>
<div class="line"><a name="l00365"></a><span class="lineno"> 365</span>  <span class="keywordflow">if</span> (<a class="code" href="namespacemod__global__parameters.html#a605b2c8e7a386f644c7f8817421b6d67">mype</a>==0) <span class="keywordflow">then</span></div>
<div class="line"><a name="l00366"></a><span class="lineno"> 366</span>  <span class="keyword">write</span>(*,<span class="stringliteral">'(a,f12.3,a)'</span>)<span class="stringliteral">' Total timeloop took : '</span>,<a class="code" href="namespacemod__timing.html#ab80941ce6f1cdd34e8ab9a4939557e39">timeloop</a>,<span class="stringliteral">' sec'</span></div>
<div class="line"><a name="l00367"></a><span class="lineno"> 367</span>  <span class="keyword">write</span>(*,<span class="stringliteral">'(a,f12.3,a)'</span>)<span class="stringliteral">' Time spent on AMR : '</span>,<a class="code" href="namespacemod__timing.html#a3ba18a349556f9382c767a25cf291aa7">timegr_tot</a>,<span class="stringliteral">' sec'</span></div>
<div class="line"><a name="l00368"></a><span class="lineno"> 368</span>  <span class="keyword">write</span>(*,<span class="stringliteral">'(a,f12.2,a)'</span>)<span class="stringliteral">' Percentage: '</span>,100.0*<a class="code" href="namespacemod__timing.html#a3ba18a349556f9382c767a25cf291aa7">timegr_tot</a>/<a class="code" href="namespacemod__timing.html#ab80941ce6f1cdd34e8ab9a4939557e39">timeloop</a>,<span class="stringliteral">' %'</span></div>
<div class="line"><a name="l00369"></a><span class="lineno"> 369</span>  <span class="keyword">write</span>(*,<span class="stringliteral">'(a,f12.3,a)'</span>)<span class="stringliteral">' Time spent on IO in loop : '</span>,<a class="code" href="namespacemod__timing.html#a4c06dd166317d6e3b44c6ab001538053">timeio_tot</a>,<span class="stringliteral">' sec'</span></div>
<div class="line"><a name="l00370"></a><span class="lineno"> 370</span>  <span class="keyword">write</span>(*,<span class="stringliteral">'(a,f12.2,a)'</span>)<span class="stringliteral">' Percentage: '</span>,100.0*<a class="code" href="namespacemod__timing.html#a4c06dd166317d6e3b44c6ab001538053">timeio_tot</a>/<a class="code" href="namespacemod__timing.html#ab80941ce6f1cdd34e8ab9a4939557e39">timeloop</a>,<span class="stringliteral">' %'</span></div>
<div class="line"><a name="l00371"></a><span class="lineno"> 371</span>  <span class="keyword">write</span>(*,<span class="stringliteral">'(a,f12.3,a)'</span>)<span class="stringliteral">' Time spent on ghost cells : '</span>,<a class="code" href="namespacemod__global__parameters.html#aaf718579b3a77399dad2b8346370c1b6">time_bc</a>,<span class="stringliteral">' sec'</span></div>
<div class="line"><a name="l00372"></a><span class="lineno"> 372</span>  <span class="keyword">write</span>(*,<span class="stringliteral">'(a,f12.2,a)'</span>)<span class="stringliteral">' Percentage: '</span>,100.0*<a class="code" href="namespacemod__global__parameters.html#aaf718579b3a77399dad2b8346370c1b6">time_bc</a>/<a class="code" href="namespacemod__timing.html#ab80941ce6f1cdd34e8ab9a4939557e39">timeloop</a>,<span class="stringliteral">' %'</span></div>
<div class="line"><a name="l00373"></a><span class="lineno"> 373</span>  <span class="keyword">write</span>(*,<span class="stringliteral">'(a,f12.3,a)'</span>)<span class="stringliteral">' Time spent on computing : '</span>,<a class="code" href="namespacemod__timing.html#ab80941ce6f1cdd34e8ab9a4939557e39">timeloop</a>-<a class="code" href="namespacemod__timing.html#a4c06dd166317d6e3b44c6ab001538053">timeio_tot</a>-<a class="code" href="namespacemod__timing.html#a3ba18a349556f9382c767a25cf291aa7">timegr_tot</a>-<a class="code" href="namespacemod__global__parameters.html#aaf718579b3a77399dad2b8346370c1b6">time_bc</a>,<span class="stringliteral">' sec'</span></div>
<div class="line"><a name="l00374"></a><span class="lineno"> 374</span>  <span class="keyword">write</span>(*,<span class="stringliteral">'(a,f12.2,a)'</span>)<span class="stringliteral">' Percentage: '</span>,100.0*(<a class="code" href="namespacemod__timing.html#ab80941ce6f1cdd34e8ab9a4939557e39">timeloop</a>-<a class="code" href="namespacemod__timing.html#a4c06dd166317d6e3b44c6ab001538053">timeio_tot</a>-<a class="code" href="namespacemod__timing.html#a3ba18a349556f9382c767a25cf291aa7">timegr_tot</a>-<a class="code" href="namespacemod__global__parameters.html#aaf718579b3a77399dad2b8346370c1b6">time_bc</a>)/<a class="code" href="namespacemod__timing.html#ab80941ce6f1cdd34e8ab9a4939557e39">timeloop</a>,<span class="stringliteral">' %'</span></div>
<div class="line"><a name="l00375"></a><span class="lineno"> 375</span>  <span class="keyword">write</span>(*,<span class="stringliteral">'(a,es12.3 )'</span>)<span class="stringliteral">' Cells updated / proc / sec : '</span>,dble(ncells_update)*dble(<a class="code" href="namespacemod__global__parameters.html#a04d1a4206037847c3c566b73b266fa64">nstep</a>)/dble(<a class="code" href="namespacemod__global__parameters.html#a879ff9a3d86e228553c9e44151a31574">npe</a>)/<a class="code" href="namespacemod__timing.html#ab80941ce6f1cdd34e8ab9a4939557e39">timeloop</a></div>
<div class="line"><a name="l00376"></a><span class="lineno"> 376</span> <span class="keywordflow"> end if</span></div>
<div class="line"><a name="l00377"></a><span class="lineno"> 377</span>  </div>
<div class="line"><a name="l00378"></a><span class="lineno"> 378</span>  <span class="comment">! output end state</span></div>
<div class="line"><a name="l00379"></a><span class="lineno"> 379</span>  <a class="code" href="namespacemod__timing.html#ab2fc2bcd0630bbc346e0f6d0ec5015b5">timeio0</a>=mpi_wtime()</div>
<div class="line"><a name="l00380"></a><span class="lineno"> 380</span>  <span class="keywordflow">do</span> ifile=<a class="code" href="namespacemod__global__parameters.html#ad8e2f2407305f395e212d838cbd366a0">nfile</a>,1,-1</div>
<div class="line"><a name="l00381"></a><span class="lineno"> 381</span>  <span class="keywordflow">if</span>(<a class="code" href="namespacemod__global__parameters.html#a8a619bd64d8dae580dd164a657c6e7df">itsavelast</a>(ifile)<<a class="code" href="namespacemod__global__parameters.html#a37c8bbe2457c57b29f0bca3f7e1387fa">it</a>) <span class="keyword">call </span><a class="code" href="namespacemod__input__output.html#a061b50e8aaaaf828c94809adf831ccbe">saveamrfile</a>(ifile)</div>
<div class="line"><a name="l00382"></a><span class="lineno"> 382</span> <span class="keywordflow"> end do</span></div>
<div class="line"><a name="l00383"></a><span class="lineno"> 383</span>  <span class="keywordflow">if</span> (<a class="code" href="namespacemod__global__parameters.html#a605b2c8e7a386f644c7f8817421b6d67">mype</a>==0) <span class="keyword">call </span>mpi_file_close(<a class="code" href="namespacemod__global__parameters.html#afffa1fd3e8b551b3f2ba9defbcc88f50">log_fh</a>,<a class="code" href="namespacemod__global__parameters.html#a701c9a9b2d5f02bb7c7a8181f09df2ae">ierrmpi</a>)</div>
<div class="line"><a name="l00384"></a><span class="lineno"> 384</span>  <a class="code" href="namespacemod__timing.html#a4c06dd166317d6e3b44c6ab001538053">timeio_tot</a>=<a class="code" href="namespacemod__timing.html#a4c06dd166317d6e3b44c6ab001538053">timeio_tot</a>+(mpi_wtime()-<a class="code" href="namespacemod__timing.html#ab2fc2bcd0630bbc346e0f6d0ec5015b5">timeio0</a>)</div>
<div class="line"><a name="l00385"></a><span class="lineno"> 385</span>  </div>
<div class="line"><a name="l00386"></a><span class="lineno"> 386</span>  <span class="keywordflow">if</span> (<a class="code" href="namespacemod__global__parameters.html#a605b2c8e7a386f644c7f8817421b6d67">mype</a>==0) <span class="keywordflow">then</span></div>
<div class="line"><a name="l00387"></a><span class="lineno"> 387</span>  <span class="keyword">write</span>(*,<span class="stringliteral">'(a,f12.3,a)'</span>)<span class="stringliteral">' Total time spent on IO : '</span>,<a class="code" href="namespacemod__timing.html#a4c06dd166317d6e3b44c6ab001538053">timeio_tot</a>,<span class="stringliteral">' sec'</span></div>
<div class="line"><a name="l00388"></a><span class="lineno"> 388</span>  <span class="keyword">write</span>(*,<span class="stringliteral">'(a,f12.3,a)'</span>)<span class="stringliteral">' Total timeintegration took : '</span>,mpi_wtime()-<a class="code" href="namespacemod__timing.html#a50ae0a9a14c55c1fa78e1f603eadf6f4">time_in</a>,<span class="stringliteral">' sec'</span></div>
<div class="line"><a name="l00389"></a><span class="lineno"> 389</span>  <span class="keyword">write</span>(*, <span class="stringliteral">'(A4,I10,ES12.3,ES12.3,ES12.3)'</span>) <span class="stringliteral">" #"</span>, &</div>
<div class="line"><a name="l00390"></a><span class="lineno"> 390</span>  <a class="code" href="namespacemod__global__parameters.html#a37c8bbe2457c57b29f0bca3f7e1387fa">it</a>, <a class="code" href="namespacemod__global__parameters.html#a2bdc961e7304863887ec17a92ae5ac0a">global_time</a>, <a class="code" href="namespacemod__global__parameters.html#a696248795de3f887232834d6136b8501">dt</a>, <a class="code" href="namespacemod__timing.html#ab2fc2bcd0630bbc346e0f6d0ec5015b5">timeio0</a> - <a class="code" href="namespacemod__timing.html#a50ae0a9a14c55c1fa78e1f603eadf6f4">time_in</a></div>
<div class="line"><a name="l00391"></a><span class="lineno"> 391</span> <span class="keywordflow"> end if</span></div>
<div class="line"><a name="l00392"></a><span class="lineno"> 392</span>  </div>
<div class="line"><a name="l00393"></a><span class="lineno"> 393</span>  {<span class="preprocessor">#IFDEF RAY</span></div>
<div class="line"><a name="l00394"></a><span class="lineno"> 394</span> <span class="preprocessor"></span> <span class="keyword">call </span>time_spent_on_rays</div>
<div class="line"><a name="l00395"></a><span class="lineno"> 395</span>  }</div>
<div class="line"><a name="l00396"></a><span class="lineno"> 396</span>  </div>
<div class="line"><a name="l00397"></a><span class="lineno"> 397</span>  <span class="keywordflow">if</span>(<a class="code" href="namespacemod__global__parameters.html#a539b80e7ad5ccd313f1076e15a7cd137">use_particles</a>) <span class="keyword">call </span>time_spent_on_particles</div>
<div class="line"><a name="l00398"></a><span class="lineno"> 398</span>  </div>
<div class="line"><a name="l00399"></a><span class="lineno"> 399</span>  <span class="keywordflow">if</span> (<a class="code" href="namespacemod__global__parameters.html#ac83affec4bc5aca052a0b30a39dd0ebf">use_multigrid</a>) <span class="keyword">call </span>mg_timers_show(<a class="code" href="namespacemod__multigrid__coupling.html#a142d2164d06b247e80e61927349a1d36">mg</a>)</div>
<div class="line"><a name="l00400"></a><span class="lineno"> 400</span>  <span class="keyword">end subroutine </span><a class="code" href="amrvac_8t.html#ac5af3cab85e31682fedc92879f7e072e">timeintegration</a></div>
<div class="line"><a name="l00401"></a><span class="lineno"> 401</span> <span class="comment"></span> </div>
<div class="line"><a name="l00402"></a><span class="lineno"> 402</span> <span class="comment"> !> Save times are defined by either tsave(isavet(ifile),ifile) or</span></div>
<div class="line"><a name="l00403"></a><span class="lineno"> 403</span> <span class="comment"> !> itsave(isaveit(ifile),ifile) or dtsave(ifile) or ditsave(ifile)</span></div>
<div class="line"><a name="l00404"></a><span class="lineno"> 404</span> <span class="comment"> !> tsavestart(ifile) determines first start time. This only affects</span></div>
<div class="line"><a name="l00405"></a><span class="lineno"> 405</span> <span class="comment"> !> read out times determined by dtsave(ifiles).</span></div>
<div class="line"><a name="l00406"></a><span class="lineno"> 406</span> <span class="comment"> !> Other conditions may be included.</span></div>
<div class="line"><a name="l00407"></a><span class="lineno"><a class="line" href="amrvac_8t.html#a5161b0d2d5cd17f5ef88afee2e969ac1"> 407</a></span>  <span class="keyword">logical </span><span class="keyword">function </span><a class="code" href="amrvac_8t.html#a5161b0d2d5cd17f5ef88afee2e969ac1">timetosave</a>(ifile)</div>
<div class="line"><a name="l00408"></a><span class="lineno"> 408</span>  <span class="keywordtype">use </span><a class="code" href="namespacemod__global__parameters.html">mod_global_parameters</a></div>
<div class="line"><a name="l00409"></a><span class="lineno"> 409</span>  </div>
<div class="line"><a name="l00410"></a><span class="lineno"> 410</span>  <span class="keywordtype">integer</span>:: ifile</div>
<div class="line"><a name="l00411"></a><span class="lineno"> 411</span>  <span class="keywordtype">logical</span>:: oksave</div>
<div class="line"><a name="l00412"></a><span class="lineno"> 412</span>  </div>
<div class="line"><a name="l00413"></a><span class="lineno"> 413</span>  oksave=.false.</div>
<div class="line"><a name="l00414"></a><span class="lineno"> 414</span>  <span class="keywordflow">if</span> (<a class="code" href="namespacemod__global__parameters.html#a37c8bbe2457c57b29f0bca3f7e1387fa">it</a>==<a class="code" href="namespacemod__global__parameters.html#a2cc0f16622648beea976f73191955bfc">itsave</a>(<a class="code" href="namespacemod__global__parameters.html#aeb30573e6532f604a257c2705db802cf">isaveit</a>(ifile),ifile)) <span class="keywordflow">then</span></div>
<div class="line"><a name="l00415"></a><span class="lineno"> 415</span>  oksave=.true.</div>
<div class="line"><a name="l00416"></a><span class="lineno"> 416</span>  <a class="code" href="namespacemod__global__parameters.html#aeb30573e6532f604a257c2705db802cf">isaveit</a>(ifile)=<a class="code" href="namespacemod__global__parameters.html#aeb30573e6532f604a257c2705db802cf">isaveit</a>(ifile)+1</div>
<div class="line"><a name="l00417"></a><span class="lineno"> 417</span> <span class="keywordflow"> end if</span></div>
<div class="line"><a name="l00418"></a><span class="lineno"> 418</span>  <span class="keywordflow">if</span> (<a class="code" href="namespacemod__global__parameters.html#a37c8bbe2457c57b29f0bca3f7e1387fa">it</a>==<a class="code" href="namespacemod__global__parameters.html#a8a619bd64d8dae580dd164a657c6e7df">itsavelast</a>(ifile)+<a class="code" href="namespacemod__global__parameters.html#a642b591486cb72f711ffcaffacd41d84">ditsave</a>(ifile)) oksave=.true.</div>
<div class="line"><a name="l00419"></a><span class="lineno"> 419</span>  </div>
<div class="line"><a name="l00420"></a><span class="lineno"> 420</span>  <span class="keywordflow">if</span> (<a class="code" href="namespacemod__global__parameters.html#a2bdc961e7304863887ec17a92ae5ac0a">global_time</a>>=<a class="code" href="namespacemod__global__parameters.html#abb88b3a6316e2d70f8758af903c29d5e">tsave</a>(<a class="code" href="namespacemod__global__parameters.html#af6c799c5a82858e33cb6c30c691f952d">isavet</a>(ifile),ifile).and.<a class="code" href="namespacemod__global__parameters.html#a2bdc961e7304863887ec17a92ae5ac0a">global_time</a>-<a class="code" href="namespacemod__global__parameters.html#a696248795de3f887232834d6136b8501">dt</a><<a class="code" href="namespacemod__global__parameters.html#abb88b3a6316e2d70f8758af903c29d5e">tsave</a>(<a class="code" href="namespacemod__global__parameters.html#af6c799c5a82858e33cb6c30c691f952d">isavet</a>(ifile),ifile)) <span class="keywordflow">then</span></div>
<div class="line"><a name="l00421"></a><span class="lineno"> 421</span>  oksave=.true.</div>
<div class="line"><a name="l00422"></a><span class="lineno"> 422</span>  <a class="code" href="namespacemod__global__parameters.html#af6c799c5a82858e33cb6c30c691f952d">isavet</a>(ifile)=<a class="code" href="namespacemod__global__parameters.html#af6c799c5a82858e33cb6c30c691f952d">isavet</a>(ifile)+1</div>
<div class="line"><a name="l00423"></a><span class="lineno"> 423</span> <span class="keywordflow"> end if</span></div>
<div class="line"><a name="l00424"></a><span class="lineno"> 424</span>  </div>
<div class="line"><a name="l00425"></a><span class="lineno"> 425</span>  <span class="keywordflow">if</span>(<a class="code" href="namespacemod__global__parameters.html#a2bdc961e7304863887ec17a92ae5ac0a">global_time</a>>=<a class="code" href="namespacemod__global__parameters.html#a63586860c44b7ca7aeee41a26a6b2c02">tsavestart</a>(ifile)-smalldouble)<span class="keywordflow">then</span></div>
<div class="line"><a name="l00426"></a><span class="lineno"> 426</span>  <span class="keywordflow">if</span> (<a class="code" href="namespacemod__global__parameters.html#a2bdc961e7304863887ec17a92ae5ac0a">global_time</a>>=<a class="code" href="namespacemod__global__parameters.html#a02129feb72266efdabff49e7f5937324">tsavelast</a>(ifile)+<a class="code" href="namespacemod__global__parameters.html#a92be6d1fd210a17a74b04ef7b597b791">dtsave</a>(ifile)-smalldouble)<span class="keywordflow">then</span></div>
<div class="line"><a name="l00427"></a><span class="lineno"> 427</span>  oksave=.true.</div>
<div class="line"><a name="l00428"></a><span class="lineno"> 428</span>  <a class="code" href="namespacemod__global__parameters.html#a610ee117dcc31f61f60487ab220b740c">n_saves</a>(ifile) = <a class="code" href="namespacemod__global__parameters.html#a610ee117dcc31f61f60487ab220b740c">n_saves</a>(ifile) + 1</div>
<div class="line"><a name="l00429"></a><span class="lineno"> 429</span> <span class="keywordflow"> endif</span></div>
<div class="line"><a name="l00430"></a><span class="lineno"> 430</span> <span class="keywordflow"> endif</span></div>
<div class="line"><a name="l00431"></a><span class="lineno"> 431</span>  </div>
<div class="line"><a name="l00432"></a><span class="lineno"> 432</span>  <span class="keywordflow">if</span> (oksave) <span class="keywordflow">then</span></div>
<div class="line"><a name="l00433"></a><span class="lineno"> 433</span>  <a class="code" href="namespacemod__global__parameters.html#a02129feb72266efdabff49e7f5937324">tsavelast</a>(ifile) =<a class="code" href="namespacemod__global__parameters.html#a2bdc961e7304863887ec17a92ae5ac0a">global_time</a></div>
<div class="line"><a name="l00434"></a><span class="lineno"> 434</span>  <a class="code" href="namespacemod__global__parameters.html#a8a619bd64d8dae580dd164a657c6e7df">itsavelast</a>(ifile)=<a class="code" href="namespacemod__global__parameters.html#a37c8bbe2457c57b29f0bca3f7e1387fa">it</a></div>
<div class="line"><a name="l00435"></a><span class="lineno"> 435</span> <span class="keywordflow"> end if</span></div>
<div class="line"><a name="l00436"></a><span class="lineno"> 436</span>  <a class="code" href="amrvac_8t.html#a5161b0d2d5cd17f5ef88afee2e969ac1">timetosave</a>=oksave</div>
<div class="line"><a name="l00437"></a><span class="lineno"> 437</span>  </div>
<div class="line"><a name="l00438"></a><span class="lineno"> 438</span>  <span class="keywordflow">return</span></div>
<div class="line"><a name="l00439"></a><span class="lineno"> 439</span>  <span class="keyword">end function </span><a class="code" href="amrvac_8t.html#a5161b0d2d5cd17f5ef88afee2e969ac1">timetosave</a></div>
<div class="line"><a name="l00440"></a><span class="lineno"> 440</span> <span class="comment"></span> </div>
<div class="line"><a name="l00441"></a><span class="lineno"> 441</span> <span class="comment"> !> Return true if the AMR grid should not be adapted any more. This is</span></div>
<div class="line"><a name="l00442"></a><span class="lineno"> 442</span> <span class="comment"> !> controlled by tfixgrid or itfixgrid. Other conditions may be included.</span></div>
<div class="line"><a name="l00443"></a><span class="lineno"><a class="line" href="amrvac_8t.html#a0ced65b6e56f54386e2f7718d7095a10"> 443</a></span>  <span class="keyword">logical </span><span class="keyword">function </span><a class="code" href="amrvac_8t.html#a0ced65b6e56f54386e2f7718d7095a10">fixgrid</a>()</div>
<div class="line"><a name="l00444"></a><span class="lineno"> 444</span>  <span class="keywordtype">use </span><a class="code" href="namespacemod__global__parameters.html">mod_global_parameters</a></div>
<div class="line"><a name="l00445"></a><span class="lineno"> 445</span>  </div>
<div class="line"><a name="l00446"></a><span class="lineno"> 446</span>  <a class="code" href="amrvac_8t.html#a0ced65b6e56f54386e2f7718d7095a10">fixgrid</a>= (<a class="code" href="namespacemod__global__parameters.html#a2bdc961e7304863887ec17a92ae5ac0a">global_time</a>>=<a class="code" href="namespacemod__global__parameters.html#ab49a62e2ea118f2424bb612ee35d5639">tfixgrid</a> .or. <a class="code" href="namespacemod__global__parameters.html#a37c8bbe2457c57b29f0bca3f7e1387fa">it</a>>=<a class="code" href="namespacemod__global__parameters.html#a45e1d0bc4dbe15357349fdc359366fba">itfixgrid</a>)</div>
<div class="line"><a name="l00447"></a><span class="lineno"> 447</span>  <span class="keyword">end function </span><a class="code" href="amrvac_8t.html#a0ced65b6e56f54386e2f7718d7095a10">fixgrid</a></div>
<div class="line"><a name="l00448"></a><span class="lineno"> 448</span>  </div>
<div class="line"><a name="l00449"></a><span class="lineno"> 449</span> <span class="keyword">end program </span><a class="code" href="amrvac_8t.html#a8d1c183fe6d835d905a98ecc7ac3668b">amrvac</a></div>
<div class="ttc" id="aamrvac_8t_html_a0ced65b6e56f54386e2f7718d7095a10"><div class="ttname"><a href="amrvac_8t.html#a0ced65b6e56f54386e2f7718d7095a10">fixgrid</a></div><div class="ttdeci">logical function fixgrid()</div><div class="ttdoc">Return true if the AMR grid should not be adapted any more. This is controlled by tfixgrid or itfixgr...</div><div class="ttdef"><b>Definition:</b> <a href="amrvac_8t_source.html#l00443">amrvac.t:444</a></div></div>
<div class="ttc" id="aamrvac_8t_html_a5161b0d2d5cd17f5ef88afee2e969ac1"><div class="ttname"><a href="amrvac_8t.html#a5161b0d2d5cd17f5ef88afee2e969ac1">timetosave</a></div><div class="ttdeci">logical function timetosave(ifile)</div><div class="ttdoc">Save times are defined by either tsave(isavet(ifile),ifile) or itsave(isaveit(ifile),...</div><div class="ttdef"><b>Definition:</b> <a href="amrvac_8t_source.html#l00407">amrvac.t:408</a></div></div>
<div class="ttc" id="aamrvac_8t_html_a8d1c183fe6d835d905a98ecc7ac3668b"><div class="ttname"><a href="amrvac_8t.html#a8d1c183fe6d835d905a98ecc7ac3668b">amrvac</a></div><div class="ttdeci">program amrvac</div><div class="ttdoc">AMRVAC solves a set of hyperbolic equations using adaptive mesh refinement.</div><div class="ttdef"><b>Definition:</b> <a href="amrvac_8t_source.html#l00004">amrvac.t:4</a></div></div>
<div class="ttc" id="aamrvac_8t_html_ac5af3cab85e31682fedc92879f7e072e"><div class="ttname"><a href="amrvac_8t.html#ac5af3cab85e31682fedc92879f7e072e">timeintegration</a></div><div class="ttdeci">subroutine timeintegration()</div><div class="ttdef"><b>Definition:</b> <a href="amrvac_8t_source.html#l00189">amrvac.t:190</a></div></div>
<div class="ttc" id="anamespacemod__advance_html"><div class="ttname"><a href="namespacemod__advance.html">mod_advance</a></div><div class="ttdoc">Module containing all the time stepping schemes.</div><div class="ttdef"><b>Definition:</b> <a href="mod__advance_8t_source.html#l00002">mod_advance.t:2</a></div></div>
<div class="ttc" id="anamespacemod__advance_html_a0dc1d03e0f58c2714522534be50cb915"><div class="ttname"><a href="namespacemod__advance.html#a0dc1d03e0f58c2714522534be50cb915">mod_advance::process_advanced</a></div><div class="ttdeci">subroutine, public process_advanced(iit, qt)</div><div class="ttdoc">process_advanced is user entry in time loop, just after advance allows to modify solution,...</div><div class="ttdef"><b>Definition:</b> <a href="mod__advance_8t_source.html#l00772">mod_advance.t:773</a></div></div>
<div class="ttc" id="anamespacemod__advance_html_a3abc5d81403e5443dc97a4db696acfd1"><div class="ttname"><a href="namespacemod__advance.html#a3abc5d81403e5443dc97a4db696acfd1">mod_advance::advance</a></div><div class="ttdeci">subroutine, public advance(iit)</div><div class="ttdoc">Advance all the grids over one time step, including all sources.</div><div class="ttdef"><b>Definition:</b> <a href="mod__advance_8t_source.html#l00017">mod_advance.t:18</a></div></div>
<div class="ttc" id="anamespacemod__advance_html_a4c2beedac0bce5cbce19c516a00b5c98"><div class="ttname"><a href="namespacemod__advance.html#a4c2beedac0bce5cbce19c516a00b5c98">mod_advance::process</a></div><div class="ttdeci">subroutine, public process(iit, qt)</div><div class="ttdoc">process is a user entry in time loop, before output and advance allows to modify solution,...</div><div class="ttdef"><b>Definition:</b> <a href="mod__advance_8t_source.html#l00739">mod_advance.t:740</a></div></div>
<div class="ttc" id="anamespacemod__amr__grid_html"><div class="ttname"><a href="namespacemod__amr__grid.html">mod_amr_grid</a></div><div class="ttdef"><b>Definition:</b> <a href="mod__amr__grid_8t_source.html#l00001">mod_amr_grid.t:1</a></div></div>
<div class="ttc" id="anamespacemod__amr__grid_html_a1d21768e5b7034d71d93c87a60b14833"><div class="ttname"><a href="namespacemod__amr__grid.html#a1d21768e5b7034d71d93c87a60b14833">mod_amr_grid::resettree</a></div><div class="ttdeci">subroutine, public resettree</div><div class="ttdoc">reset AMR and (de)allocate boundary flux storage at level changes</div><div class="ttdef"><b>Definition:</b> <a href="mod__amr__grid_8t_source.html#l00046">mod_amr_grid.t:47</a></div></div>
<div class="ttc" id="anamespacemod__amr__grid_html_a46bb4219ed6144389d25ea1d03354575"><div class="ttname"><a href="namespacemod__amr__grid.html#a46bb4219ed6144389d25ea1d03354575">mod_amr_grid::resettree_convert</a></div><div class="ttdeci">subroutine, public resettree_convert</div><div class="ttdoc">Force the tree to desired level(s) from level_io(_min/_max) used for conversion to vtk output.</div><div class="ttdef"><b>Definition:</b> <a href="mod__amr__grid_8t_source.html#l00078">mod_amr_grid.t:79</a></div></div>
<div class="ttc" id="anamespacemod__amr__grid_html_a81fdb2745e9bcee99e51e222cfb57a42"><div class="ttname"><a href="namespacemod__amr__grid.html#a81fdb2745e9bcee99e51e222cfb57a42">mod_amr_grid::settree</a></div><div class="ttdeci">subroutine, public settree</div><div class="ttdoc">Build up AMR.</div><div class="ttdef"><b>Definition:</b> <a href="mod__amr__grid_8t_source.html#l00013">mod_amr_grid.t:14</a></div></div>
<div class="ttc" id="anamespacemod__comm__lib_html"><div class="ttname"><a href="namespacemod__comm__lib.html">mod_comm_lib</a></div><div class="ttdef"><b>Definition:</b> <a href="mod__comm__lib_8t_source.html#l00001">mod_comm_lib.t:1</a></div></div>
<div class="ttc" id="anamespacemod__comm__lib_html_a388d2ad420c05555f3bd1744b8e17689"><div class="ttname"><a href="namespacemod__comm__lib.html#a388d2ad420c05555f3bd1744b8e17689">mod_comm_lib::comm_start</a></div><div class="ttdeci">subroutine, public comm_start</div><div class="ttdoc">Initialize the MPI environment.</div><div class="ttdef"><b>Definition:</b> <a href="mod__comm__lib_8t_source.html#l00016">mod_comm_lib.t:17</a></div></div>
<div class="ttc" id="anamespacemod__comm__lib_html_a3bb8f7073e6c5083d584d17c871d8af6"><div class="ttname"><a href="namespacemod__comm__lib.html#a3bb8f7073e6c5083d584d17c871d8af6">mod_comm_lib::comm_finalize</a></div><div class="ttdeci">subroutine, public comm_finalize</div><div class="ttdoc">Finalize (or shutdown) the MPI environment.</div><div class="ttdef"><b>Definition:</b> <a href="mod__comm__lib_8t_source.html#l00048">mod_comm_lib.t:49</a></div></div>
<div class="ttc" id="anamespacemod__comm__lib_html_a9b6f1a8fd13bc5670e3b426151c34048"><div class="ttname"><a href="namespacemod__comm__lib.html#a9b6f1a8fd13bc5670e3b426151c34048">mod_comm_lib::mpistop</a></div><div class="ttdeci">subroutine, public mpistop(message)</div><div class="ttdoc">Exit MPI-AMRVAC with an error message.</div><div class="ttdef"><b>Definition:</b> <a href="mod__comm__lib_8t_source.html#l00207">mod_comm_lib.t:208</a></div></div>
<div class="ttc" id="anamespacemod__convert__files_html"><div class="ttname"><a href="namespacemod__convert__files.html">mod_convert_files</a></div><div class="ttdef"><b>Definition:</b> <a href="mod__convert__files_8t_source.html#l00001">mod_convert_files.t:1</a></div></div>
<div class="ttc" id="anamespacemod__convert__files_html_a62a6fb3fa85f5bb311485d3dc140562c"><div class="ttname"><a href="namespacemod__convert__files.html#a62a6fb3fa85f5bb311485d3dc140562c">mod_convert_files::generate_plotfile</a></div><div class="ttdeci">subroutine generate_plotfile</div><div class="ttdef"><b>Definition:</b> <a href="mod__convert__files_8t_source.html#l00009">mod_convert_files.t:10</a></div></div>
<div class="ttc" id="anamespacemod__convert_html"><div class="ttname"><a href="namespacemod__convert.html">mod_convert</a></div><div class="ttdef"><b>Definition:</b> <a href="mod__convert_8t_source.html#l00001">mod_convert.t:1</a></div></div>
<div class="ttc" id="anamespacemod__convert_html_aa85241ac32b3b2a84319e2fe0fa01b56"><div class="ttname"><a href="namespacemod__convert.html#aa85241ac32b3b2a84319e2fe0fa01b56">mod_convert::init_convert</a></div><div class="ttdeci">subroutine init_convert()</div><div class="ttdef"><b>Definition:</b> <a href="mod__convert_8t_source.html#l00031">mod_convert.t:32</a></div></div>
<div class="ttc" id="anamespacemod__dt_html"><div class="ttname"><a href="namespacemod__dt.html">mod_dt</a></div><div class="ttdef"><b>Definition:</b> <a href="mod__dt_8t_source.html#l00001">mod_dt.t:1</a></div></div>
<div class="ttc" id="anamespacemod__dt_html_aea859f9346411815a5d7a157dd8afab0"><div class="ttname"><a href="namespacemod__dt.html#aea859f9346411815a5d7a157dd8afab0">mod_dt::setdt</a></div><div class="ttdeci">subroutine, public setdt()</div><div class="ttdoc">setdt - set dt for all levels between levmin and levmax. dtpar>0 --> use fixed dtpar for all level dt...</div><div class="ttdef"><b>Definition:</b> <a href="mod__dt_8t_source.html#l00010">mod_dt.t:11</a></div></div>
<div class="ttc" id="anamespacemod__fix__conserve_html"><div class="ttname"><a href="namespacemod__fix__conserve.html">mod_fix_conserve</a></div><div class="ttdoc">Module for flux conservation near refinement boundaries.</div><div class="ttdef"><b>Definition:</b> <a href="mod__fix__conserve_8t_source.html#l00002">mod_fix_conserve.t:2</a></div></div>
<div class="ttc" id="anamespacemod__fix__conserve_html_ad56616828b83c369718a109e26b0e9ff"><div class="ttname"><a href="namespacemod__fix__conserve.html#ad56616828b83c369718a109e26b0e9ff">mod_fix_conserve::allocatebflux</a></div><div class="ttdeci">subroutine, public allocatebflux</div><div class="ttdef"><b>Definition:</b> <a href="mod__fix__conserve_8t_source.html#l00396">mod_fix_conserve.t:397</a></div></div>
<div class="ttc" id="anamespacemod__forest_html"><div class="ttname"><a href="namespacemod__forest.html">mod_forest</a></div><div class="ttdoc">Module with basic grid data structures.</div><div class="ttdef"><b>Definition:</b> <a href="mod__forest_8t_source.html#l00002">mod_forest.t:2</a></div></div>
<div class="ttc" id="anamespacemod__forest_html_a2698b7425dadfb438f2d8e2a9e70b497"><div class="ttname"><a href="namespacemod__forest.html#a2698b7425dadfb438f2d8e2a9e70b497">mod_forest::nleafs_active</a></div><div class="ttdeci">integer nleafs_active</div><div class="ttdef"><b>Definition:</b> <a href="mod__forest_8t_source.html#l00078">mod_forest.t:78</a></div></div>
<div class="ttc" id="anamespacemod__ghostcells__update_html"><div class="ttname"><a href="namespacemod__ghostcells__update.html">mod_ghostcells_update</a></div><div class="ttdoc">update ghost cells of all blocks including physical boundaries</div><div class="ttdef"><b>Definition:</b> <a href="mod__ghostcells__update_8t_source.html#l00002">mod_ghostcells_update.t:2</a></div></div>
<div class="ttc" id="anamespacemod__ghostcells__update_html_abc70508ceb326fb28166d751e5de31fc"><div class="ttname"><a href="namespacemod__ghostcells__update.html#abc70508ceb326fb28166d751e5de31fc">mod_ghostcells_update::getbc</a></div><div class="ttdeci">subroutine getbc(time, qdt, psb, nwstart, nwbc, req_diag)</div><div class="ttdoc">do update ghost cells of all blocks including physical boundaries</div><div class="ttdef"><b>Definition:</b> <a href="mod__ghostcells__update_8t_source.html#l00434">mod_ghostcells_update.t:435</a></div></div>
<div class="ttc" id="anamespacemod__ghostcells__update_html_adc4d94514dca05ef03d020a397854e9d"><div class="ttname"><a href="namespacemod__ghostcells__update.html#adc4d94514dca05ef03d020a397854e9d">mod_ghostcells_update::ixm</a></div><div class="ttdeci">integer ixm</div><div class="ttdef"><b>Definition:</b> <a href="mod__ghostcells__update_8t_source.html#l00006">mod_ghostcells_update.t:6</a></div></div>
<div class="ttc" id="anamespacemod__global__parameters_html"><div class="ttname"><a href="namespacemod__global__parameters.html">mod_global_parameters</a></div><div class="ttdoc">This module contains definitions of global parameters and variables and some generic functions/subrou...</div><div class="ttdef"><b>Definition:</b> <a href="mod__global__parameters_8t_source.html#l00004">mod_global_parameters.t:4</a></div></div>
<div class="ttc" id="anamespacemod__global__parameters_html_a02129feb72266efdabff49e7f5937324"><div class="ttname"><a href="namespacemod__global__parameters.html#a02129feb72266efdabff49e7f5937324">mod_global_parameters::tsavelast</a></div><div class="ttdeci">double precision, dimension(nfile) tsavelast</div><div class="ttdef"><b>Definition:</b> <a href="mod__global__parameters_8t_source.html#l00208">mod_global_parameters.t:208</a></div></div>
<div class="ttc" id="anamespacemod__global__parameters_html_a026d4f7c417820e04a0731db6833204b"><div class="ttname"><a href="namespacemod__global__parameters.html#a026d4f7c417820e04a0731db6833204b">mod_global_parameters::block</a></div><div class="ttdeci">type(state), pointer block</div><div class="ttdoc">Block pointer for using one block and its previous state.</div><div class="ttdef"><b>Definition:</b> <a href="mod__global__parameters_8t_source.html#l00771">mod_global_parameters.t:771</a></div></div>
<div class="ttc" id="anamespacemod__global__parameters_html_a04d1a4206037847c3c566b73b266fa64"><div class="ttname"><a href="namespacemod__global__parameters.html#a04d1a4206037847c3c566b73b266fa64">mod_global_parameters::nstep</a></div><div class="ttdeci">integer nstep</div><div class="ttdoc">How many sub-steps the time integrator takes.</div><div class="ttdef"><b>Definition:</b> <a href="mod__global__parameters_8t_source.html#l00453">mod_global_parameters.t:453</a></div></div>
<div class="ttc" id="anamespacemod__global__parameters_html_a057feb2697cc1ef7cee9e82c79d7eb27"><div class="ttname"><a href="namespacemod__global__parameters.html#a057feb2697cc1ef7cee9e82c79d7eb27">mod_global_parameters::it_max</a></div><div class="ttdeci">integer it_max</div><div class="ttdoc">Stop the simulation after this many time steps have been taken.</div><div class="ttdef"><b>Definition:</b> <a href="mod__global__parameters_8t_source.html#l00438">mod_global_parameters.t:438</a></div></div>
<div class="ttc" id="anamespacemod__global__parameters_html_a09bdaca578aec7457ae3779ef78cd8eb"><div class="ttname"><a href="namespacemod__global__parameters.html#a09bdaca578aec7457ae3779ef78cd8eb">mod_global_parameters::level_io_min</a></div><div class="ttdeci">integer level_io_min</div><div class="ttdef"><b>Definition:</b> <a href="mod__global__parameters_8t_source.html#l00379">mod_global_parameters.t:379</a></div></div>
<div class="ttc" id="anamespacemod__global__parameters_html_a1337000bcd79422ab891841e74f3715f"><div class="ttname"><a href="namespacemod__global__parameters.html#a1337000bcd79422ab891841e74f3715f">mod_global_parameters::reset_it</a></div><div class="ttdeci">logical reset_it</div><div class="ttdoc">If true, reset iteration count to 0.</div><div class="ttdef"><b>Definition:</b> <a href="mod__global__parameters_8t_source.html#l00603">mod_global_parameters.t:603</a></div></div>
<div class="ttc" id="anamespacemod__global__parameters_html_a1ae1204f8ad0508b0a13de9c48217b97"><div class="ttname"><a href="namespacemod__global__parameters.html#a1ae1204f8ad0508b0a13de9c48217b97">mod_global_parameters::ixghi</a></div><div class="ttdeci">integer ixghi</div><div class="ttdoc">Upper index of grid block arrays.</div><div class="ttdef"><b>Definition:</b> <a href="mod__global__parameters_8t_source.html#l00281">mod_global_parameters.t:281</a></div></div>
<div class="ttc" id="anamespacemod__global__parameters_html_a2894929bedb935d318017e1f5fe10b07"><div class="ttname"><a href="namespacemod__global__parameters.html#a2894929bedb935d318017e1f5fe10b07">mod_global_parameters::save_file</a></div><div class="ttdeci">logical, dimension(nfile) save_file</div><div class="ttdoc">whether or not to save an output file</div><div class="ttdef"><b>Definition:</b> <a href="mod__global__parameters_8t_source.html#l00571">mod_global_parameters.t:571</a></div></div>
<div class="ttc" id="anamespacemod__global__parameters_html_a2bb0b481a238e6de804ec476a9cc0f2f"><div class="ttname"><a href="namespacemod__global__parameters.html#a2bb0b481a238e6de804ec476a9cc0f2f">mod_global_parameters::resume_previous_run</a></div><div class="ttdeci">logical resume_previous_run</div><div class="ttdoc">If true, restart a previous run from the latest snapshot.</div><div class="ttdef"><b>Definition:</b> <a href="mod__global__parameters_8t_source.html#l00580">mod_global_parameters.t:580</a></div></div>
<div class="ttc" id="anamespacemod__global__parameters_html_a2bdc961e7304863887ec17a92ae5ac0a"><div class="ttname"><a href="namespacemod__global__parameters.html#a2bdc961e7304863887ec17a92ae5ac0a">mod_global_parameters::global_time</a></div><div class="ttdeci">double precision global_time</div><div class="ttdoc">The global simulation time.</div><div class="ttdef"><b>Definition:</b> <a href="mod__global__parameters_8t_source.html#l00047">mod_global_parameters.t:47</a></div></div>
<div class="ttc" id="anamespacemod__global__parameters_html_a2cc0f16622648beea976f73191955bfc"><div class="ttname"><a href="namespacemod__global__parameters.html#a2cc0f16622648beea976f73191955bfc">mod_global_parameters::itsave</a></div><div class="ttdeci">integer, dimension(nsavehi, nfile) itsave</div><div class="ttdoc">Save output of type N on iterations itsave(:, N)</div><div class="ttdef"><b>Definition:</b> <a href="mod__global__parameters_8t_source.html#l00324">mod_global_parameters.t:324</a></div></div>
<div class="ttc" id="anamespacemod__global__parameters_html_a2dd037f0c45d7e7ba6a10c1f16092699"><div class="ttname"><a href="namespacemod__global__parameters.html#a2dd037f0c45d7e7ba6a10c1f16092699">mod_global_parameters::time_max</a></div><div class="ttdeci">double precision time_max</div><div class="ttdoc">End time for the simulation.</div><div class="ttdef"><b>Definition:</b> <a href="mod__global__parameters_8t_source.html#l00053">mod_global_parameters.t:53</a></div></div>
<div class="ttc" id="anamespacemod__global__parameters_html_a32b88ccd4a2d2fd290d36b61c28488f1"><div class="ttname"><a href="namespacemod__global__parameters.html#a32b88ccd4a2d2fd290d36b61c28488f1">mod_global_parameters::time_init</a></div><div class="ttdeci">double precision time_init</div><div class="ttdoc">Start time for the simulation.</div><div class="ttdef"><b>Definition:</b> <a href="mod__global__parameters_8t_source.html#l00050">mod_global_parameters.t:50</a></div></div>
<div class="ttc" id="anamespacemod__global__parameters_html_a3445cbdbb5912e5da0aafc9b83ec6300"><div class="ttname"><a href="namespacemod__global__parameters.html#a3445cbdbb5912e5da0aafc9b83ec6300">mod_global_parameters::firstprocess</a></div><div class="ttdeci">logical firstprocess</div><div class="ttdoc">If true, call initonegrid_usr upon restarting.</div><div class="ttdef"><b>Definition:</b> <a href="mod__global__parameters_8t_source.html#l00609">mod_global_parameters.t:609</a></div></div>
<div class="ttc" id="anamespacemod__global__parameters_html_a370863264a3b2f3734b6cfacdd8b2bed"><div class="ttname"><a href="namespacemod__global__parameters.html#a370863264a3b2f3734b6cfacdd8b2bed">mod_global_parameters::snapshotini</a></div><div class="ttdeci">integer snapshotini</div><div class="ttdoc">Resume from the snapshot with this index.</div><div class="ttdef"><b>Definition:</b> <a href="mod__global__parameters_8t_source.html#l00382">mod_global_parameters.t:382</a></div></div>
<div class="ttc" id="anamespacemod__global__parameters_html_a37c8bbe2457c57b29f0bca3f7e1387fa"><div class="ttname"><a href="namespacemod__global__parameters.html#a37c8bbe2457c57b29f0bca3f7e1387fa">mod_global_parameters::it</a></div><div class="ttdeci">integer it</div><div class="ttdoc">Number of time steps taken.</div><div class="ttdef"><b>Definition:</b> <a href="mod__global__parameters_8t_source.html#l00435">mod_global_parameters.t:435</a></div></div>
<div class="ttc" id="anamespacemod__global__parameters_html_a3b867699253875817b4abd3a348b8f53"><div class="ttname"><a href="namespacemod__global__parameters.html#a3b867699253875817b4abd3a348b8f53">mod_global_parameters::it_init</a></div><div class="ttdeci">integer it_init</div><div class="ttdoc">initial iteration count</div><div class="ttdef"><b>Definition:</b> <a href="mod__global__parameters_8t_source.html#l00441">mod_global_parameters.t:441</a></div></div>
<div class="ttc" id="anamespacemod__global__parameters_html_a3ca4430b2e1352a48833355f28427d9f"><div class="ttname"><a href="namespacemod__global__parameters.html#a3ca4430b2e1352a48833355f28427d9f">mod_global_parameters::ditregrid</a></div><div class="ttdeci">integer ditregrid</div><div class="ttdoc">Reconstruct the AMR grid once every ditregrid iteration(s)</div><div class="ttdef"><b>Definition:</b> <a href="mod__global__parameters_8t_source.html#l00409">mod_global_parameters.t:409</a></div></div>
<div class="ttc" id="anamespacemod__global__parameters_html_a43c682e6a92ae87edc89730d59af7b46"><div class="ttname"><a href="namespacemod__global__parameters.html#a43c682e6a92ae87edc89730d59af7b46">mod_global_parameters::convert_type</a></div><div class="ttdeci">character(len=std_len) convert_type</div><div class="ttdoc">Which format to use when converting.</div><div class="ttdef"><b>Definition:</b> <a href="mod__global__parameters_8t_source.html#l00730">mod_global_parameters.t:730</a></div></div>
<div class="ttc" id="anamespacemod__global__parameters_html_a45e1d0bc4dbe15357349fdc359366fba"><div class="ttname"><a href="namespacemod__global__parameters.html#a45e1d0bc4dbe15357349fdc359366fba">mod_global_parameters::itfixgrid</a></div><div class="ttdeci">integer itfixgrid</div><div class="ttdoc">Fix the AMR grid after this many time steps.</div><div class="ttdef"><b>Definition:</b> <a href="mod__global__parameters_8t_source.html#l00406">mod_global_parameters.t:406</a></div></div>
<div class="ttc" id="anamespacemod__global__parameters_html_a47213c2deabf33173fab8d80bc64aa79"><div class="ttname"><a href="namespacemod__global__parameters.html#a47213c2deabf33173fab8d80bc64aa79">mod_global_parameters::level_io</a></div><div class="ttdeci">integer level_io</div><div class="ttdef"><b>Definition:</b> <a href="mod__global__parameters_8t_source.html#l00379">mod_global_parameters.t:379</a></div></div>
<div class="ttc" id="anamespacemod__global__parameters_html_a47fcfbf341c2a93f7d90896ad4032692"><div class="ttname"><a href="namespacemod__global__parameters.html#a47fcfbf341c2a93f7d90896ad4032692">mod_global_parameters::nlevelshi</a></div><div class="ttdeci">integer, parameter nlevelshi</div><div class="ttdoc">The maximum number of levels in the grid refinement.</div><div class="ttdef"><b>Definition:</b> <a href="mod__global__parameters_8t_source.html#l00400">mod_global_parameters.t:400</a></div></div>
<div class="ttc" id="anamespacemod__global__parameters_html_a539b80e7ad5ccd313f1076e15a7cd137"><div class="ttname"><a href="namespacemod__global__parameters.html#a539b80e7ad5ccd313f1076e15a7cd137">mod_global_parameters::use_particles</a></div><div class="ttdeci">logical use_particles</div><div class="ttdoc">Use particles module or not.</div><div class="ttdef"><b>Definition:</b> <a href="mod__global__parameters_8t_source.html#l00633">mod_global_parameters.t:633</a></div></div>
<div class="ttc" id="anamespacemod__global__parameters_html_a5704f1c57aa09935d3491f65ad240861"><div class="ttname"><a href="namespacemod__global__parameters.html#a5704f1c57aa09935d3491f65ad240861">mod_global_parameters::icomm</a></div><div class="ttdeci">integer icomm</div><div class="ttdoc">The MPI communicator.</div><div class="ttdef"><b>Definition:</b> <a href="mod__global__parameters_8t_source.html#l00226">mod_global_parameters.t:226</a></div></div>
<div class="ttc" id="anamespacemod__global__parameters_html_a5c1bf53d9221dda713b7731ca922f3d5"><div class="ttname"><a href="namespacemod__global__parameters.html#a5c1bf53d9221dda713b7731ca922f3d5">mod_global_parameters::reset_time</a></div><div class="ttdeci">logical reset_time</div><div class="ttdoc">If true, reset iteration count and global_time to original values, and start writing snapshots at ind...</div><div class="ttdef"><b>Definition:</b> <a href="mod__global__parameters_8t_source.html#l00600">mod_global_parameters.t:600</a></div></div>
<div class="ttc" id="anamespacemod__global__parameters_html_a605b2c8e7a386f644c7f8817421b6d67"><div class="ttname"><a href="namespacemod__global__parameters.html#a605b2c8e7a386f644c7f8817421b6d67">mod_global_parameters::mype</a></div><div class="ttdeci">integer mype</div><div class="ttdoc">The rank of the current MPI task.</div><div class="ttdef"><b>Definition:</b> <a href="mod__global__parameters_8t_source.html#l00223">mod_global_parameters.t:223</a></div></div>
<div class="ttc" id="anamespacemod__global__parameters_html_a610ee117dcc31f61f60487ab220b740c"><div class="ttname"><a href="namespacemod__global__parameters.html#a610ee117dcc31f61f60487ab220b740c">mod_global_parameters::n_saves</a></div><div class="ttdeci">integer, dimension(1:nfile) n_saves</div><div class="ttdoc">Number of saved files of each type.</div><div class="ttdef"><b>Definition:</b> <a href="mod__global__parameters_8t_source.html#l00339">mod_global_parameters.t:339</a></div></div>
<div class="ttc" id="anamespacemod__global__parameters_html_a63586860c44b7ca7aeee41a26a6b2c02"><div class="ttname"><a href="namespacemod__global__parameters.html#a63586860c44b7ca7aeee41a26a6b2c02">mod_global_parameters::tsavestart</a></div><div class="ttdeci">double precision, dimension(nfile) tsavestart</div><div class="ttdoc">Start of read out (not counting specified read outs)</div><div class="ttdef"><b>Definition:</b> <a href="mod__global__parameters_8t_source.html#l00214">mod_global_parameters.t:214</a></div></div>
<div class="ttc" id="anamespacemod__global__parameters_html_a642b591486cb72f711ffcaffacd41d84"><div class="ttname"><a href="namespacemod__global__parameters.html#a642b591486cb72f711ffcaffacd41d84">mod_global_parameters::ditsave</a></div><div class="ttdeci">integer, dimension(nfile) ditsave</div><div class="ttdoc">Repeatedly save output of type N when ditsave(N) time steps have passed.</div><div class="ttdef"><b>Definition:</b> <a href="mod__global__parameters_8t_source.html#l00329">mod_global_parameters.t:329</a></div></div>
<div class="ttc" id="anamespacemod__global__parameters_html_a66b6d102b0c1abd62b12a11b7fdb31b3"><div class="ttname"><a href="namespacemod__global__parameters.html#a66b6d102b0c1abd62b12a11b7fdb31b3">mod_global_parameters::ll</a></div><div class="ttdeci">integer ll</div><div class="ttdef"><b>Definition:</b> <a href="mod__global__parameters_8t_source.html#l00250">mod_global_parameters.t:250</a></div></div>
<div class="ttc" id="anamespacemod__global__parameters_html_a68549065c490d02e1de338e8a60c3f12"><div class="ttname"><a href="namespacemod__global__parameters.html#a68549065c490d02e1de338e8a60c3f12">mod_global_parameters::d</a></div><div class="ttdeci">double precision, dimension(:), allocatable, parameter d</div><div class="ttdef"><b>Definition:</b> <a href="mod__global__parameters_8t_source.html#l00023">mod_global_parameters.t:23</a></div></div>
<div class="ttc" id="anamespacemod__global__parameters_html_a696248795de3f887232834d6136b8501"><div class="ttname"><a href="namespacemod__global__parameters.html#a696248795de3f887232834d6136b8501">mod_global_parameters::dt</a></div><div class="ttdeci">double precision dt</div><div class="ttdoc">global time step</div><div class="ttdef"><b>Definition:</b> <a href="mod__global__parameters_8t_source.html#l00032">mod_global_parameters.t:32</a></div></div>
<div class="ttc" id="anamespacemod__global__parameters_html_a6f4b0ca677f067d9ffa334a39c81198b"><div class="ttname"><a href="namespacemod__global__parameters.html#a6f4b0ca677f067d9ffa334a39c81198b">mod_global_parameters::wall_time_max</a></div><div class="ttdeci">double precision wall_time_max</div><div class="ttdoc">Ending wall time (in hours) for the simulation.</div><div class="ttdef"><b>Definition:</b> <a href="mod__global__parameters_8t_source.html#l00056">mod_global_parameters.t:56</a></div></div>
<div class="ttc" id="anamespacemod__global__parameters_html_a701c9a9b2d5f02bb7c7a8181f09df2ae"><div class="ttname"><a href="namespacemod__global__parameters.html#a701c9a9b2d5f02bb7c7a8181f09df2ae">mod_global_parameters::ierrmpi</a></div><div class="ttdeci">integer ierrmpi</div><div class="ttdoc">A global MPI error return code.</div><div class="ttdef"><b>Definition:</b> <a href="mod__global__parameters_8t_source.html#l00229">mod_global_parameters.t:229</a></div></div>
<div class="ttc" id="anamespacemod__global__parameters_html_a701d9f0321c70f8e13a05f6c15f2fb76"><div class="ttname"><a href="namespacemod__global__parameters.html#a701d9f0321c70f8e13a05f6c15f2fb76">mod_global_parameters::autoconvert</a></div><div class="ttdeci">logical autoconvert</div><div class="ttdoc">If true, already convert to output format during the run.</div><div class="ttdef"><b>Definition:</b> <a href="mod__global__parameters_8t_source.html#l00587">mod_global_parameters.t:587</a></div></div>
<div class="ttc" id="anamespacemod__global__parameters_html_a7697c549bfe2fdc52590606d35f7645f"><div class="ttname"><a href="namespacemod__global__parameters.html#a7697c549bfe2fdc52590606d35f7645f">mod_global_parameters::slowsteps</a></div><div class="ttdeci">integer slowsteps</div><div class="ttdoc">If > 1, then in the first slowsteps-1 time steps dt is reduced by a factor .</div><div class="ttdef"><b>Definition:</b> <a href="mod__global__parameters_8t_source.html#l00445">mod_global_parameters.t:445</a></div></div>
<div class="ttc" id="anamespacemod__global__parameters_html_a7e84e042d8f65bd51a4c3435ebd78e35"><div class="ttname"><a href="namespacemod__global__parameters.html#a7e84e042d8f65bd51a4c3435ebd78e35">mod_global_parameters::snapshotnext</a></div><div class="ttdeci">integer snapshotnext</div><div class="ttdoc">IO: snapshot and collapsed views output numbers/labels.</div><div class="ttdef"><b>Definition:</b> <a href="mod__global__parameters_8t_source.html#l00342">mod_global_parameters.t:342</a></div></div>
<div class="ttc" id="anamespacemod__global__parameters_html_a879ff9a3d86e228553c9e44151a31574"><div class="ttname"><a href="namespacemod__global__parameters.html#a879ff9a3d86e228553c9e44151a31574">mod_global_parameters::npe</a></div><div class="ttdeci">integer npe</div><div class="ttdoc">The number of MPI tasks.</div><div class="ttdef"><b>Definition:</b> <a href="mod__global__parameters_8t_source.html#l00220">mod_global_parameters.t:220</a></div></div>
<div class="ttc" id="anamespacemod__global__parameters_html_a8a619bd64d8dae580dd164a657c6e7df"><div class="ttname"><a href="namespacemod__global__parameters.html#a8a619bd64d8dae580dd164a657c6e7df">mod_global_parameters::itsavelast</a></div><div class="ttdeci">integer, dimension(nfile) itsavelast</div><div class="ttdef"><b>Definition:</b> <a href="mod__global__parameters_8t_source.html#l00326">mod_global_parameters.t:326</a></div></div>
<div class="ttc" id="anamespacemod__global__parameters_html_a9138f9532b13609e59e135a0a3592a5d"><div class="ttname"><a href="namespacemod__global__parameters.html#a9138f9532b13609e59e135a0a3592a5d">mod_global_parameters::time_between_print</a></div><div class="ttdeci">double precision time_between_print</div><div class="ttdoc">to monitor timeintegration loop at given wall-clock time intervals</div><div class="ttdef"><b>Definition:</b> <a href="mod__global__parameters_8t_source.html#l00026">mod_global_parameters.t:26</a></div></div>
<div class="ttc" id="anamespacemod__global__parameters_html_a9214ecd6fb45fa103a8518c45be16072"><div class="ttname"><a href="namespacemod__global__parameters.html#a9214ecd6fb45fa103a8518c45be16072">mod_global_parameters::unitterm</a></div><div class="ttdeci">integer, parameter unitterm</div><div class="ttdoc">Unit for standard output.</div><div class="ttdef"><b>Definition:</b> <a href="mod__global__parameters_8t_source.html#l00363">mod_global_parameters.t:363</a></div></div>
<div class="ttc" id="anamespacemod__global__parameters_html_a92be6d1fd210a17a74b04ef7b597b791"><div class="ttname"><a href="namespacemod__global__parameters.html#a92be6d1fd210a17a74b04ef7b597b791">mod_global_parameters::dtsave</a></div><div class="ttdeci">double precision, dimension(nfile) dtsave</div><div class="ttdoc">Repeatedly save output of type N when dtsave(N) simulation time has passed.</div><div class="ttdef"><b>Definition:</b> <a href="mod__global__parameters_8t_source.html#l00211">mod_global_parameters.t:211</a></div></div>
<div class="ttc" id="anamespacemod__global__parameters_html_a9715546f26c07cf6c1c55d0a1d72bcfd"><div class="ttname"><a href="namespacemod__global__parameters.html#a9715546f26c07cf6c1c55d0a1d72bcfd">mod_global_parameters::time_advance</a></div><div class="ttdeci">logical time_advance</div><div class="ttdoc">do time evolving</div><div class="ttdef"><b>Definition:</b> <a href="mod__global__parameters_8t_source.html#l00593">mod_global_parameters.t:593</a></div></div>
<div class="ttc" id="anamespacemod__global__parameters_html_a99b70d54ff2f08fb179495e2a07d1e44"><div class="ttname"><a href="namespacemod__global__parameters.html#a99b70d54ff2f08fb179495e2a07d1e44">mod_global_parameters::restart_from_file</a></div><div class="ttdeci">character(len=std_len) restart_from_file</div><div class="ttdoc">If not 'unavailable', resume from snapshot with this base file name.</div><div class="ttdef"><b>Definition:</b> <a href="mod__global__parameters_8t_source.html#l00741">mod_global_parameters.t:741</a></div></div>
<div class="ttc" id="anamespacemod__global__parameters_html_a9dd666c3ecb8ef351f14f46cf32a3a62"><div class="ttname"><a href="namespacemod__global__parameters.html#a9dd666c3ecb8ef351f14f46cf32a3a62">mod_global_parameters::rnode</a></div><div class="ttdeci">double precision, dimension(:,:), allocatable rnode</div><div class="ttdoc">Corner coordinates.</div><div class="ttdef"><b>Definition:</b> <a href="mod__global__parameters_8t_source.html#l00177">mod_global_parameters.t:177</a></div></div>
<div class="ttc" id="anamespacemod__global__parameters_html_a9e14f8777e3d1c99500aabba1f25384f"><div class="ttname"><a href="namespacemod__global__parameters.html#a9e14f8777e3d1c99500aabba1f25384f">mod_global_parameters::filelog_</a></div><div class="ttdeci">integer, parameter filelog_</div><div class="ttdoc">Constant indicating log output.</div><div class="ttdef"><b>Definition:</b> <a href="mod__global__parameters_8t_source.html#l00345">mod_global_parameters.t:345</a></div></div>
<div class="ttc" id="anamespacemod__global__parameters_html_aa3194833cc9e7e739ed1fa396655a636"><div class="ttname"><a href="namespacemod__global__parameters.html#aa3194833cc9e7e739ed1fa396655a636">mod_global_parameters::d_</a></div><div class="ttdeci">integer, parameter d_</div><div class="ttdef"><b>Definition:</b> <a href="mod__global__parameters_8t_source.html#l00307">mod_global_parameters.t:307</a></div></div>
<div class="ttc" id="anamespacemod__global__parameters_html_aa8b0f3c32c987669794c2a72cb29161e"><div class="ttname"><a href="namespacemod__global__parameters.html#aa8b0f3c32c987669794c2a72cb29161e">mod_global_parameters::fileout_</a></div><div class="ttdeci">integer, parameter fileout_</div><div class="ttdoc">Constant indicating regular output.</div><div class="ttdef"><b>Definition:</b> <a href="mod__global__parameters_8t_source.html#l00348">mod_global_parameters.t:348</a></div></div>
<div class="ttc" id="anamespacemod__global__parameters_html_aaf718579b3a77399dad2b8346370c1b6"><div class="ttname"><a href="namespacemod__global__parameters.html#aaf718579b3a77399dad2b8346370c1b6">mod_global_parameters::time_bc</a></div><div class="ttdeci">double precision time_bc</div><div class="ttdoc">accumulated wall-clock time spent on boundary conditions</div><div class="ttdef"><b>Definition:</b> <a href="mod__global__parameters_8t_source.html#l00029">mod_global_parameters.t:29</a></div></div>
<div class="ttc" id="anamespacemod__global__parameters_html_ab49a62e2ea118f2424bb612ee35d5639"><div class="ttname"><a href="namespacemod__global__parameters.html#ab49a62e2ea118f2424bb612ee35d5639">mod_global_parameters::tfixgrid</a></div><div class="ttdeci">double precision tfixgrid</div><div class="ttdoc">Fix the AMR grid after this time.</div><div class="ttdef"><b>Definition:</b> <a href="mod__global__parameters_8t_source.html#l00068">mod_global_parameters.t:68</a></div></div>
<div class="ttc" id="anamespacemod__global__parameters_html_ab7c7effa3bb9a3ba7e79fd548fc7c8aa"><div class="ttname"><a href="namespacemod__global__parameters.html#ab7c7effa3bb9a3ba7e79fd548fc7c8aa">mod_global_parameters::nghostcells</a></div><div class="ttdeci">integer nghostcells</div><div class="ttdoc">Number of ghost cells surrounding a grid.</div><div class="ttdef"><b>Definition:</b> <a href="mod__global__parameters_8t_source.html#l00290">mod_global_parameters.t:290</a></div></div>
<div class="ttc" id="anamespacemod__global__parameters_html_aba6bd3b8579dde6b7c68f65ab628a049"><div class="ttname"><a href="namespacemod__global__parameters.html#aba6bd3b8579dde6b7c68f65ab628a049">mod_global_parameters::undefined</a></div><div class="ttdeci">character(len= *), parameter undefined</div><div class="ttdef"><b>Definition:</b> <a href="mod__global__parameters_8t_source.html#l00720">mod_global_parameters.t:720</a></div></div>
<div class="ttc" id="anamespacemod__global__parameters_html_abb88b3a6316e2d70f8758af903c29d5e"><div class="ttname"><a href="namespacemod__global__parameters.html#abb88b3a6316e2d70f8758af903c29d5e">mod_global_parameters::tsave</a></div><div class="ttdeci">double precision, dimension(nsavehi, nfile) tsave</div><div class="ttdoc">Save output of type N on times tsave(:, N)</div><div class="ttdef"><b>Definition:</b> <a href="mod__global__parameters_8t_source.html#l00206">mod_global_parameters.t:206</a></div></div>
<div class="ttc" id="anamespacemod__global__parameters_html_abeaadf7ca515b0a99e6e1e326d88e4f7"><div class="ttname"><a href="namespacemod__global__parameters.html#abeaadf7ca515b0a99e6e1e326d88e4f7">mod_global_parameters::convert</a></div><div class="ttdeci">logical convert</div><div class="ttdoc">If true and restart_from_file is given, convert snapshots to other file formats.</div><div class="ttdef"><b>Definition:</b> <a href="mod__global__parameters_8t_source.html#l00584">mod_global_parameters.t:584</a></div></div>
<div class="ttc" id="anamespacemod__global__parameters_html_ac103339f015a822b2021a6f4f3b53edc"><div class="ttname"><a href="namespacemod__global__parameters.html#ac103339f015a822b2021a6f4f3b53edc">mod_global_parameters::levmax</a></div><div class="ttdeci">integer levmax</div><div class="ttdef"><b>Definition:</b> <a href="mod__global__parameters_8t_source.html#l00418">mod_global_parameters.t:418</a></div></div>
<div class="ttc" id="anamespacemod__global__parameters_html_ac29e1282b63a78a2c3a89d18f05675ff"><div class="ttname"><a href="namespacemod__global__parameters.html#ac29e1282b63a78a2c3a89d18f05675ff">mod_global_parameters::reset_grid</a></div><div class="ttdeci">logical reset_grid</div><div class="ttdoc">If true, rebuild the AMR grid upon restarting.</div><div class="ttdef"><b>Definition:</b> <a href="mod__global__parameters_8t_source.html#l00618">mod_global_parameters.t:618</a></div></div>
<div class="ttc" id="anamespacemod__global__parameters_html_ac423e9047236553af2021f67a3203bc0"><div class="ttname"><a href="namespacemod__global__parameters.html#ac423e9047236553af2021f67a3203bc0">mod_global_parameters::crash</a></div><div class="ttdeci">logical crash</div><div class="ttdoc">Save a snapshot before crash a run met unphysical values.</div><div class="ttdef"><b>Definition:</b> <a href="mod__global__parameters_8t_source.html#l00645">mod_global_parameters.t:645</a></div></div>
<div class="ttc" id="anamespacemod__global__parameters_html_ac487446056522027f949f42ba64b2e11"><div class="ttname"><a href="namespacemod__global__parameters.html#ac487446056522027f949f42ba64b2e11">mod_global_parameters::dxlevel</a></div><div class="ttdeci">double precision, dimension(^nd) dxlevel</div><div class="ttdoc">store unstretched cell size of current level</div><div class="ttdef"><b>Definition:</b> <a href="mod__global__parameters_8t_source.html#l00018">mod_global_parameters.t:18</a></div></div>
<div class="ttc" id="anamespacemod__global__parameters_html_ac83affec4bc5aca052a0b30a39dd0ebf"><div class="ttname"><a href="namespacemod__global__parameters.html#ac83affec4bc5aca052a0b30a39dd0ebf">mod_global_parameters::use_multigrid</a></div><div class="ttdeci">logical use_multigrid</div><div class="ttdoc">Use multigrid (only available in 2D and 3D)</div><div class="ttdef"><b>Definition:</b> <a href="mod__global__parameters_8t_source.html#l00636">mod_global_parameters.t:636</a></div></div>
<div class="ttc" id="anamespacemod__global__parameters_html_acff6d1a4095e8d228d4c288f433ab99a"><div class="ttname"><a href="namespacemod__global__parameters.html#acff6d1a4095e8d228d4c288f433ab99a">mod_global_parameters::level_io_max</a></div><div class="ttdeci">integer level_io_max</div><div class="ttdef"><b>Definition:</b> <a href="mod__global__parameters_8t_source.html#l00379">mod_global_parameters.t:379</a></div></div>
<div class="ttc" id="anamespacemod__global__parameters_html_ad3ffd4e35e76a0b86495789e5458fdd8"><div class="ttname"><a href="namespacemod__global__parameters.html#ad3ffd4e35e76a0b86495789e5458fdd8">mod_global_parameters::refine_max_level</a></div><div class="ttdeci">integer refine_max_level</div><div class="ttdoc">Maximal number of AMR levels.</div><div class="ttdef"><b>Definition:</b> <a href="mod__global__parameters_8t_source.html#l00403">mod_global_parameters.t:403</a></div></div>
<div class="ttc" id="anamespacemod__global__parameters_html_ad720343997778dd3cdeb03a7b389a3b0"><div class="ttname"><a href="namespacemod__global__parameters.html#ad720343997778dd3cdeb03a7b389a3b0">mod_global_parameters::rpdx</a></div><div class="ttdeci">integer, parameter rpdx</div><div class="ttdef"><b>Definition:</b> <a href="mod__global__parameters_8t_source.html#l00318">mod_global_parameters.t:318</a></div></div>
<div class="ttc" id="anamespacemod__global__parameters_html_ad8e2f2407305f395e212d838cbd366a0"><div class="ttname"><a href="namespacemod__global__parameters.html#ad8e2f2407305f395e212d838cbd366a0">mod_global_parameters::nfile</a></div><div class="ttdeci">integer, parameter nfile</div><div class="ttdoc">Number of output methods.</div><div class="ttdef"><b>Definition:</b> <a href="mod__global__parameters_8t_source.html#l00203">mod_global_parameters.t:203</a></div></div>
<div class="ttc" id="anamespacemod__global__parameters_html_ada8ed41cad56938dba0a13009b2b66a5"><div class="ttname"><a href="namespacemod__global__parameters.html#ada8ed41cad56938dba0a13009b2b66a5">mod_global_parameters::levmin</a></div><div class="ttdeci">integer levmin</div><div class="ttdef"><b>Definition:</b> <a href="mod__global__parameters_8t_source.html#l00417">mod_global_parameters.t:417</a></div></div>
<div class="ttc" id="anamespacemod__global__parameters_html_ae37434f1201849e8248975d38f191b66"><div class="ttname"><a href="namespacemod__global__parameters.html#ae37434f1201849e8248975d38f191b66">mod_global_parameters::pass_wall_time</a></div><div class="ttdeci">logical pass_wall_time</div><div class="ttdoc">If true, wall time is up, modify snapshotnext for later overwrite.</div><div class="ttdef"><b>Definition:</b> <a href="mod__global__parameters_8t_source.html#l00612">mod_global_parameters.t:612</a></div></div>
<div class="ttc" id="anamespacemod__global__parameters_html_ae9df63ed323b77d4c3477e5fa33cc122"><div class="ttname"><a href="namespacemod__global__parameters.html#ae9df63ed323b77d4c3477e5fa33cc122">mod_global_parameters::final_dt_exit</a></div><div class="ttdeci">logical final_dt_exit</div><div class="ttdoc">Force timeloop exit when final dt < dtmin.</div><div class="ttdef"><b>Definition:</b> <a href="mod__global__parameters_8t_source.html#l00596">mod_global_parameters.t:596</a></div></div>
<div class="ttc" id="anamespacemod__global__parameters_html_aeb30573e6532f604a257c2705db802cf"><div class="ttname"><a href="namespacemod__global__parameters.html#aeb30573e6532f604a257c2705db802cf">mod_global_parameters::isaveit</a></div><div class="ttdeci">integer, dimension(nfile) isaveit</div><div class="ttdef"><b>Definition:</b> <a href="mod__global__parameters_8t_source.html#l00333">mod_global_parameters.t:333</a></div></div>
<div class="ttc" id="anamespacemod__global__parameters_html_af6c799c5a82858e33cb6c30c691f952d"><div class="ttname"><a href="namespacemod__global__parameters.html#af6c799c5a82858e33cb6c30c691f952d">mod_global_parameters::isavet</a></div><div class="ttdeci">integer, dimension(nfile) isavet</div><div class="ttdef"><b>Definition:</b> <a href="mod__global__parameters_8t_source.html#l00331">mod_global_parameters.t:331</a></div></div>
<div class="ttc" id="anamespacemod__global__parameters_html_afffa1fd3e8b551b3f2ba9defbcc88f50"><div class="ttname"><a href="namespacemod__global__parameters.html#afffa1fd3e8b551b3f2ba9defbcc88f50">mod_global_parameters::log_fh</a></div><div class="ttdeci">integer log_fh</div><div class="ttdoc">MPI file handle for logfile.</div><div class="ttdef"><b>Definition:</b> <a href="mod__global__parameters_8t_source.html#l00232">mod_global_parameters.t:232</a></div></div>
<div class="ttc" id="anamespacemod__initialize__amr_html"><div class="ttname"><a href="namespacemod__initialize__amr.html">mod_initialize_amr</a></div><div class="ttdef"><b>Definition:</b> <a href="mod__initialize__amr_8t_source.html#l00001">mod_initialize_amr.t:1</a></div></div>
<div class="ttc" id="anamespacemod__initialize__amr_html_a0057789c0baf7737ff7d12f1c6a5ff65"><div class="ttname"><a href="namespacemod__initialize__amr.html#a0057789c0baf7737ff7d12f1c6a5ff65">mod_initialize_amr::improve_initial_condition</a></div><div class="ttdeci">subroutine, public improve_initial_condition()</div><div class="ttdoc">improve initial condition after initialization</div><div class="ttdef"><b>Definition:</b> <a href="mod__initialize__amr_8t_source.html#l00097">mod_initialize_amr.t:98</a></div></div>
<div class="ttc" id="anamespacemod__initialize__amr_html_aa168da334aaca07260c9bc5449925576"><div class="ttname"><a href="namespacemod__initialize__amr.html#aa168da334aaca07260c9bc5449925576">mod_initialize_amr::initlevelone</a></div><div class="ttdeci">subroutine, public initlevelone</div><div class="ttdoc">Generate and initialize all grids at the coarsest level (level one)</div><div class="ttdef"><b>Definition:</b> <a href="mod__initialize__amr_8t_source.html#l00016">mod_initialize_amr.t:17</a></div></div>
<div class="ttc" id="anamespacemod__initialize__amr_html_ac2c24309d6ecbdc2f734308561d22363"><div class="ttname"><a href="namespacemod__initialize__amr.html#ac2c24309d6ecbdc2f734308561d22363">mod_initialize_amr::modify_ic</a></div><div class="ttdeci">subroutine, public modify_ic</div><div class="ttdoc">modify initial condition</div><div class="ttdef"><b>Definition:</b> <a href="mod__initialize__amr_8t_source.html#l00076">mod_initialize_amr.t:77</a></div></div>
<div class="ttc" id="anamespacemod__initialize_html"><div class="ttname"><a href="namespacemod__initialize.html">mod_initialize</a></div><div class="ttdoc">This module handles the initialization of various components of amrvac.</div><div class="ttdef"><b>Definition:</b> <a href="mod__initialize_8t_source.html#l00002">mod_initialize.t:2</a></div></div>
<div class="ttc" id="anamespacemod__initialize_html_a57f25bc03fa294f258c33ddd3d4c844b"><div class="ttname"><a href="namespacemod__initialize.html#a57f25bc03fa294f258c33ddd3d4c844b">mod_initialize::initialize_amrvac</a></div><div class="ttdeci">subroutine, public initialize_amrvac()</div><div class="ttdoc">Initialize amrvac: read par files and initialize variables.</div><div class="ttdef"><b>Definition:</b> <a href="mod__initialize_8t_source.html#l00016">mod_initialize.t:17</a></div></div>
<div class="ttc" id="anamespacemod__input__output__helper_html"><div class="ttname"><a href="namespacemod__input__output__helper.html">mod_input_output_helper</a></div><div class="ttdef"><b>Definition:</b> <a href="mod__input__output__helper_8t_source.html#l00001">mod_input_output_helper.t:1</a></div></div>
<div class="ttc" id="anamespacemod__input__output__helper_html_af211fca4e0891c5e3bd801a985bce973"><div class="ttname"><a href="namespacemod__input__output__helper.html#af211fca4e0891c5e3bd801a985bce973">mod_input_output_helper::save_now</a></div><div class="ttdeci">logical save_now</div><div class="ttdoc">whether a manually inserted snapshot is saved</div><div class="ttdef"><b>Definition:</b> <a href="mod__input__output__helper_8t_source.html#l00013">mod_input_output_helper.t:13</a></div></div>
<div class="ttc" id="anamespacemod__input__output_html"><div class="ttname"><a href="namespacemod__input__output.html">mod_input_output</a></div><div class="ttdoc">Module for reading input and writing output.</div><div class="ttdef"><b>Definition:</b> <a href="mod__input__output_8t_source.html#l00002">mod_input_output.t:2</a></div></div>
<div class="ttc" id="anamespacemod__input__output_html_a061b50e8aaaaf828c94809adf831ccbe"><div class="ttname"><a href="namespacemod__input__output.html#a061b50e8aaaaf828c94809adf831ccbe">mod_input_output::saveamrfile</a></div><div class="ttdeci">subroutine saveamrfile(ifile)</div><div class="ttdef"><b>Definition:</b> <a href="mod__input__output_8t_source.html#l01719">mod_input_output.t:1720</a></div></div>
<div class="ttc" id="anamespacemod__input__output_html_a98a1cccd22f5c9aebc79667b1b469161"><div class="ttname"><a href="namespacemod__input__output.html#a98a1cccd22f5c9aebc79667b1b469161">mod_input_output::read_arguments</a></div><div class="ttdeci">subroutine read_arguments()</div><div class="ttdoc">Read the command line arguments passed to amrvac.</div><div class="ttdef"><b>Definition:</b> <a href="mod__input__output_8t_source.html#l00035">mod_input_output.t:36</a></div></div>
<div class="ttc" id="anamespacemod__input__output_html_aa2d00e56c4444b0b4806a9c13ce2eff7"><div class="ttname"><a href="namespacemod__input__output.html#aa2d00e56c4444b0b4806a9c13ce2eff7">mod_input_output::read_snapshot</a></div><div class="ttdeci">subroutine read_snapshot</div><div class="ttdoc">Routine to read in snapshots (.dat files). When it cannot recognize the file version,...</div><div class="ttdef"><b>Definition:</b> <a href="mod__input__output_8t_source.html#l02159">mod_input_output.t:2160</a></div></div>
<div class="ttc" id="anamespacemod__multigrid__coupling_html"><div class="ttname"><a href="namespacemod__multigrid__coupling.html">mod_multigrid_coupling</a></div><div class="ttdoc">Module to couple the octree-mg library to AMRVAC. This file uses the VACPP preprocessor,...</div><div class="ttdef"><b>Definition:</b> <a href="mod__multigrid__coupling_8t_source.html#l00003">mod_multigrid_coupling.t:3</a></div></div>
<div class="ttc" id="anamespacemod__multigrid__coupling_html_a142d2164d06b247e80e61927349a1d36"><div class="ttname"><a href="namespacemod__multigrid__coupling.html#a142d2164d06b247e80e61927349a1d36">mod_multigrid_coupling::mg</a></div><div class="ttdeci">type(mg_t) mg</div><div class="ttdoc">Data structure containing the multigrid tree.</div><div class="ttdef"><b>Definition:</b> <a href="mod__multigrid__coupling_8t_source.html#l00019">mod_multigrid_coupling.t:19</a></div></div>
<div class="ttc" id="anamespacemod__multigrid__coupling_html_aec3563c8809267a23e94c236093a2b12"><div class="ttname"><a href="namespacemod__multigrid__coupling.html#aec3563c8809267a23e94c236093a2b12">mod_multigrid_coupling::mg_setup_multigrid</a></div><div class="ttdeci">subroutine mg_setup_multigrid()</div><div class="ttdoc">Setup multigrid for usage.</div><div class="ttdef"><b>Definition:</b> <a href="mod__multigrid__coupling_8t_source.html#l00033">mod_multigrid_coupling.t:34</a></div></div>
<div class="ttc" id="anamespacemod__particles_html"><div class="ttname"><a href="namespacemod__particles.html">mod_particles</a></div><div class="ttdoc">Module containing all the particle routines.</div><div class="ttdef"><b>Definition:</b> <a href="mod__particles_8t_source.html#l00002">mod_particles.t:2</a></div></div>
<div class="ttc" id="anamespacemod__particles_html_aecb3aafd9f10d12b4b4ca6466ed6da87"><div class="ttname"><a href="namespacemod__particles.html#aecb3aafd9f10d12b4b4ca6466ed6da87">mod_particles::particles_create</a></div><div class="ttdeci">subroutine particles_create()</div><div class="ttdoc">Create initial particles.</div><div class="ttdef"><b>Definition:</b> <a href="mod__particles_8t_source.html#l00041">mod_particles.t:42</a></div></div>
<div class="ttc" id="anamespacemod__physics_html"><div class="ttname"><a href="namespacemod__physics.html">mod_physics</a></div><div class="ttdoc">This module defines the procedures of a physics module. It contains function pointers for the various...</div><div class="ttdef"><b>Definition:</b> <a href="mod__physics_8t_source.html#l00004">mod_physics.t:4</a></div></div>
<div class="ttc" id="anamespacemod__physics_html_afc22cf6c5ef51120a483f6e11549b91c"><div class="ttname"><a href="namespacemod__physics.html#afc22cf6c5ef51120a483f6e11549b91c">mod_physics::phys_special_advance</a></div><div class="ttdeci">procedure(sub_special_advance), pointer phys_special_advance</div><div class="ttdef"><b>Definition:</b> <a href="mod__physics_8t_source.html#l00075">mod_physics.t:75</a></div></div>
<div class="ttc" id="anamespacemod__selectgrids_html"><div class="ttname"><a href="namespacemod__selectgrids.html">mod_selectgrids</a></div><div class="ttdef"><b>Definition:</b> <a href="mod__selectgrids_8t_source.html#l00001">mod_selectgrids.t:1</a></div></div>
<div class="ttc" id="anamespacemod__selectgrids_html_aa15f11bf5108fe0eae81eb81aa46f3b1"><div class="ttname"><a href="namespacemod__selectgrids.html#aa15f11bf5108fe0eae81eb81aa46f3b1">mod_selectgrids::selectgrids</a></div><div class="ttdeci">subroutine, public selectgrids</div><div class="ttdef"><b>Definition:</b> <a href="mod__selectgrids_8t_source.html#l00012">mod_selectgrids.t:13</a></div></div>
<div class="ttc" id="anamespacemod__timing_html"><div class="ttname"><a href="namespacemod__timing.html">mod_timing</a></div><div class="ttdef"><b>Definition:</b> <a href="mod__timing_8t_source.html#l00001">mod_timing.t:1</a></div></div>
<div class="ttc" id="anamespacemod__timing_html_a235af821f4ab48e15d285460766ca0c6"><div class="ttname"><a href="namespacemod__timing.html#a235af821f4ab48e15d285460766ca0c6">mod_timing::ittimelast</a></div><div class="ttdeci">integer ittimelast</div><div class="ttdef"><b>Definition:</b> <a href="mod__timing_8t_source.html#l00013">mod_timing.t:13</a></div></div>
<div class="ttc" id="anamespacemod__timing_html_a3ba18a349556f9382c767a25cf291aa7"><div class="ttname"><a href="namespacemod__timing.html#a3ba18a349556f9382c767a25cf291aa7">mod_timing::timegr_tot</a></div><div class="ttdeci">double precision timegr_tot</div><div class="ttdef"><b>Definition:</b> <a href="mod__timing_8t_source.html#l00009">mod_timing.t:9</a></div></div>
<div class="ttc" id="anamespacemod__timing_html_a4c06dd166317d6e3b44c6ab001538053"><div class="ttname"><a href="namespacemod__timing.html#a4c06dd166317d6e3b44c6ab001538053">mod_timing::timeio_tot</a></div><div class="ttdeci">double precision timeio_tot</div><div class="ttdef"><b>Definition:</b> <a href="mod__timing_8t_source.html#l00008">mod_timing.t:8</a></div></div>
<div class="ttc" id="anamespacemod__timing_html_a50ae0a9a14c55c1fa78e1f603eadf6f4"><div class="ttname"><a href="namespacemod__timing.html#a50ae0a9a14c55c1fa78e1f603eadf6f4">mod_timing::time_in</a></div><div class="ttdeci">double precision time_in</div><div class="ttdef"><b>Definition:</b> <a href="mod__timing_8t_source.html#l00008">mod_timing.t:8</a></div></div>
<div class="ttc" id="anamespacemod__timing_html_a7eaa0c0e6abb95dd60b30c345156d180"><div class="ttname"><a href="namespacemod__timing.html#a7eaa0c0e6abb95dd60b30c345156d180">mod_timing::timelast</a></div><div class="ttdeci">double precision timelast</div><div class="ttdef"><b>Definition:</b> <a href="mod__timing_8t_source.html#l00012">mod_timing.t:12</a></div></div>
<div class="ttc" id="anamespacemod__timing_html_ab2fc2bcd0630bbc346e0f6d0ec5015b5"><div class="ttname"><a href="namespacemod__timing.html#ab2fc2bcd0630bbc346e0f6d0ec5015b5">mod_timing::timeio0</a></div><div class="ttdeci">double precision timeio0</div><div class="ttdef"><b>Definition:</b> <a href="mod__timing_8t_source.html#l00008">mod_timing.t:8</a></div></div>
<div class="ttc" id="anamespacemod__timing_html_ab80941ce6f1cdd34e8ab9a4939557e39"><div class="ttname"><a href="namespacemod__timing.html#ab80941ce6f1cdd34e8ab9a4939557e39">mod_timing::timeloop</a></div><div class="ttdeci">double precision timeloop</div><div class="ttdef"><b>Definition:</b> <a href="mod__timing_8t_source.html#l00009">mod_timing.t:9</a></div></div>
<div class="ttc" id="anamespacemod__timing_html_ac2a03b9963336062fe4ea0b75419705b"><div class="ttname"><a href="namespacemod__timing.html#ac2a03b9963336062fe4ea0b75419705b">mod_timing::timeloop0</a></div><div class="ttdeci">double precision timeloop0</div><div class="ttdef"><b>Definition:</b> <a href="mod__timing_8t_source.html#l00009">mod_timing.t:9</a></div></div>
<div class="ttc" id="anamespacemod__timing_html_aff10a9563972549bbbb6f597235d9f6e"><div class="ttname"><a href="namespacemod__timing.html#aff10a9563972549bbbb6f597235d9f6e">mod_timing::timegr0</a></div><div class="ttdeci">double precision timegr0</div><div class="ttdef"><b>Definition:</b> <a href="mod__timing_8t_source.html#l00009">mod_timing.t:9</a></div></div>
<div class="ttc" id="anamespacemod__trac_html"><div class="ttname"><a href="namespacemod__trac.html">mod_trac</a></div><div class="ttdef"><b>Definition:</b> <a href="mod__trac_8t_source.html#l00001">mod_trac.t:1</a></div></div>
<div class="ttc" id="anamespacemod__trac_html_aa52c4fa933c5b1df28693d70a1742d0b"><div class="ttname"><a href="namespacemod__trac.html#aa52c4fa933c5b1df28693d70a1742d0b">mod_trac::initialize_trac_after_settree</a></div><div class="ttdeci">subroutine, public initialize_trac_after_settree</div><div class="ttdef"><b>Definition:</b> <a href="mod__trac_8t_source.html#l00868">mod_trac.t:869</a></div></div>
<div class="ttc" id="anamespacemod__usr__methods_html"><div class="ttname"><a href="namespacemod__usr__methods.html">mod_usr_methods</a></div><div class="ttdoc">Module with all the methods that users can customize in AMRVAC.</div><div class="ttdef"><b>Definition:</b> <a href="mod__usr__methods_8t_source.html#l00004">mod_usr_methods.t:4</a></div></div>
<div class="ttc" id="anamespacemod__usr__methods_html_a1f93558516afa1ff06e6107ddcbc8acc"><div class="ttname"><a href="namespacemod__usr__methods.html#a1f93558516afa1ff06e6107ddcbc8acc">mod_usr_methods::usr_process_grid</a></div><div class="ttdeci">procedure(process_grid), pointer usr_process_grid</div><div class="ttdef"><b>Definition:</b> <a href="mod__usr__methods_8t_source.html#l00030">mod_usr_methods.t:30</a></div></div>
<div class="ttc" id="anamespacemod__usr__methods_html_a65c2e6d926228175cd8b638835638bd8"><div class="ttname"><a href="namespacemod__usr__methods.html#a65c2e6d926228175cd8b638835638bd8">mod_usr_methods::usr_process_adv_grid</a></div><div class="ttdeci">procedure(process_adv_grid), pointer usr_process_adv_grid</div><div class="ttdef"><b>Definition:</b> <a href="mod__usr__methods_8t_source.html#l00034">mod_usr_methods.t:34</a></div></div>
<div class="ttc" id="anamespacemod__usr__methods_html_a8ed38783519fa33a4dc1f310f315b450"><div class="ttname"><a href="namespacemod__usr__methods.html#a8ed38783519fa33a4dc1f310f315b450">mod_usr_methods::usr_modify_output</a></div><div class="ttdeci">procedure(sub_modify_io), pointer usr_modify_output</div><div class="ttdef"><b>Definition:</b> <a href="mod__usr__methods_8t_source.html#l00026">mod_usr_methods.t:26</a></div></div>
<div class="ttc" id="anamespacemod__usr__methods_html_a905fdae645546965bba6a9817a90944a"><div class="ttname"><a href="namespacemod__usr__methods.html#a905fdae645546965bba6a9817a90944a">mod_usr_methods::usr_before_main_loop</a></div><div class="ttdeci">procedure(p_no_args), pointer usr_before_main_loop</div><div class="ttdef"><b>Definition:</b> <a href="mod__usr__methods_8t_source.html#l00041">mod_usr_methods.t:41</a></div></div>
<div class="ttc" id="anamespacemod__usr__methods_html_a9efb0f60a29fdac3cfaac5c8b1844649"><div class="ttname"><a href="namespacemod__usr__methods.html#a9efb0f60a29fdac3cfaac5c8b1844649">mod_usr_methods::usr_process_global</a></div><div class="ttdeci">procedure(process_global), pointer usr_process_global</div><div class="ttdef"><b>Definition:</b> <a href="mod__usr__methods_8t_source.html#l00031">mod_usr_methods.t:31</a></div></div>
<div class="ttc" id="anamespacemod__usr__methods_html_ab4e641f0ea0e276897bd7a9847ec126c"><div class="ttname"><a href="namespacemod__usr__methods.html#ab4e641f0ea0e276897bd7a9847ec126c">mod_usr_methods::usr_process_adv_global</a></div><div class="ttdeci">procedure(process_adv_global), pointer usr_process_adv_global</div><div class="ttdef"><b>Definition:</b> <a href="mod__usr__methods_8t_source.html#l00035">mod_usr_methods.t:35</a></div></div>
<div class="ttc" id="anamespacemod__usr_html"><div class="ttname"><a href="namespacemod__usr.html">mod_usr</a></div><div class="ttdoc">This is a template for a new user problem of mhd.</div><div class="ttdef"><b>Definition:</b> <a href="mod__usr__template_8t_source.html#l00002">mod_usr_template.t:2</a></div></div>
<div class="ttc" id="anamespacemod__usr_html_ae9af24eaf30f13b1f264cc800272798c"><div class="ttname"><a href="namespacemod__usr.html#ae9af24eaf30f13b1f264cc800272798c">mod_usr::usr_init</a></div><div class="ttdeci">subroutine usr_init()</div><div class="ttdoc">This routine should set user methods, and activate the physics module.</div><div class="ttdef"><b>Definition:</b> <a href="mod__usr__template_8t_source.html#l00015">mod_usr_template.t:16</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>