Commit 9cc084a
Fix initialization of reference pressure for physics when using MPAS dynamical core (#317)
### Tag name (required for release branches):
None
### Originator(s):
PeterHjortLauritzen, nusbaume, kuanchihwang
### Description (include the issue title, and the keyword ['closes',
'fixes', 'resolves'] followed by the issue number):
Presently, MPAS dynamical core is not initializing reference pressure
for physics in the same way as others. This PR backports the fix from
ESCOMP/CAM#1169.
To confirm the fix, observe log entries similar to the following in
`atm.log.<job-id>.<date>-<time>`. The reference pressure at surface now
starts from 1000 hPa. Previously, it starts from 1013.25 hPa.
```
dyn_debug_print (0): Reference layer information:
dyn_debug_print (0): ----- | -------------- | --------------
dyn_debug_print (0): Index | Height (m) | Pressure (hPa)
dyn_debug_print (0): ----- | 44999.999819 | 1.431394
dyn_debug_print (0): 1 | 43953.595504 | 1.655836
dyn_debug_print (0): ----- | 42907.191189 | 1.880278
dyn_debug_print (0): 2 | 41877.531046 | 2.177235
dyn_debug_print (0): ----- | 40847.870904 | 2.474192
dyn_debug_print (0): 3 | 39835.232205 | 2.867591
dyn_debug_print (0): ----- | 38822.593507 | 3.260989
... (SNIPPED) ...
dyn_debug_print (0): ----- | 1292.109873 | 856.014954
dyn_debug_print (0): 30 | 997.820649 | 887.686997
dyn_debug_print (0): ----- | 703.531425 | 919.359041
dyn_debug_print (0): 31 | 476.271636 | 945.093654
dyn_debug_print (0): ----- | 249.011847 | 970.828267
dyn_debug_print (0): 32 | 124.505924 | 985.414133
dyn_debug_print (0): ----- | 0.000000 | 1000.000000
```
Closes #315.
### Describe any changes made to build system:
None
### Describe any changes made to the namelist:
None
### List any changes to the defaults for the input datasets (e.g.
boundary datasets):
None
### List all files eliminated and why:
None
### List all files added and what they do:
None
### List all existing files that have been modified, and describe the
changes:
* `M src/dynamics/mpas/dyn_comp.F90`
* Sort statements
* `M src/dynamics/mpas/dyn_grid.F90`
* Properly call `std_atm_pres` to initialize reference pressure for
physics
* Wire up history support
* More explicit memory management
* Update code comments
* `M src/utils/std_atm_profile.F90`
* Allow custom surface pressure in `std_atm_pres`
* Remove unused variable in `std_atm_pres`
---------
Co-authored-by: Peter Hjort Lauritzen <[email protected]>
Co-authored-by: Jesse Nusbaumer <[email protected]>1 parent 455003c commit 9cc084a
File tree
3 files changed
+60
-26
lines changed- src
- dynamics/mpas
- utils
3 files changed
+60
-26
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
812 | 812 | | |
813 | 813 | | |
814 | 814 | | |
815 | | - | |
816 | 815 | | |
817 | 816 | | |
818 | 817 | | |
| |||
821 | 820 | | |
822 | 821 | | |
823 | 822 | | |
| 823 | + | |
824 | 824 | | |
825 | 825 | | |
826 | 826 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
14 | | - | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
107 | 108 | | |
108 | 109 | | |
109 | 110 | | |
110 | | - | |
| 111 | + | |
111 | 112 | | |
112 | 113 | | |
113 | 114 | | |
| |||
123 | 124 | | |
124 | 125 | | |
125 | 126 | | |
126 | | - | |
| 127 | + | |
127 | 128 | | |
128 | 129 | | |
129 | 130 | | |
| |||
139 | 140 | | |
140 | 141 | | |
141 | 142 | | |
142 | | - | |
| 143 | + | |
143 | 144 | | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
144 | 149 | | |
145 | 150 | | |
| 151 | + | |
| 152 | + | |
146 | 153 | | |
147 | 154 | | |
148 | 155 | | |
| |||
169 | 176 | | |
170 | 177 | | |
171 | 178 | | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
172 | 187 | | |
173 | 188 | | |
174 | 189 | | |
175 | 190 | | |
176 | | - | |
| 191 | + | |
177 | 192 | | |
178 | 193 | | |
179 | 194 | | |
| |||
201 | 216 | | |
202 | 217 | | |
203 | 218 | | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
204 | 225 | | |
205 | 226 | | |
206 | 227 | | |
| |||
209 | 230 | | |
210 | 231 | | |
211 | 232 | | |
212 | | - | |
| 233 | + | |
213 | 234 | | |
214 | 235 | | |
215 | 236 | | |
| |||
274 | 295 | | |
275 | 296 | | |
276 | 297 | | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
277 | 301 | | |
278 | 302 | | |
279 | 303 | | |
| |||
298 | 322 | | |
299 | 323 | | |
300 | 324 | | |
301 | | - | |
302 | | - | |
| 325 | + | |
| 326 | + | |
303 | 327 | | |
304 | 328 | | |
305 | | - | |
306 | | - | |
| 329 | + | |
| 330 | + | |
307 | 331 | | |
308 | 332 | | |
309 | | - | |
310 | | - | |
| 333 | + | |
| 334 | + | |
311 | 335 | | |
312 | | - | |
313 | | - | |
| 336 | + | |
| 337 | + | |
314 | 338 | | |
315 | | - | |
316 | | - | |
| 339 | + | |
| 340 | + | |
317 | 341 | | |
318 | | - | |
319 | | - | |
| 342 | + | |
| 343 | + | |
320 | 344 | | |
321 | 345 | | |
322 | 346 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
59 | | - | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
60 | 64 | | |
61 | | - | |
62 | 65 | | |
63 | 66 | | |
64 | 67 | | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
65 | 76 | | |
66 | 77 | | |
67 | 78 | | |
| |||
78 | 89 | | |
79 | 90 | | |
80 | 91 | | |
81 | | - | |
| 92 | + | |
82 | 93 | | |
83 | | - | |
| 94 | + | |
84 | 95 | | |
85 | 96 | | |
86 | 97 | | |
87 | | - | |
88 | 98 | | |
89 | 99 | | |
90 | 100 | | |
| |||
0 commit comments