[1682] | 1 | !> @file header.f90 |
---|
[2000] | 2 | !------------------------------------------------------------------------------! |
---|
[2696] | 3 | ! This file is part of the PALM model system. |
---|
[1036] | 4 | ! |
---|
[2000] | 5 | ! PALM is free software: you can redistribute it and/or modify it under the |
---|
| 6 | ! terms of the GNU General Public License as published by the Free Software |
---|
| 7 | ! Foundation, either version 3 of the License, or (at your option) any later |
---|
| 8 | ! version. |
---|
[1036] | 9 | ! |
---|
| 10 | ! PALM is distributed in the hope that it will be useful, but WITHOUT ANY |
---|
| 11 | ! WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR |
---|
| 12 | ! A PARTICULAR PURPOSE. See the GNU General Public License for more details. |
---|
| 13 | ! |
---|
| 14 | ! You should have received a copy of the GNU General Public License along with |
---|
| 15 | ! PALM. If not, see <http://www.gnu.org/licenses/>. |
---|
| 16 | ! |
---|
[2718] | 17 | ! Copyright 1997-2018 Leibniz Universitaet Hannover |
---|
[2000] | 18 | !------------------------------------------------------------------------------! |
---|
[1036] | 19 | ! |
---|
[254] | 20 | ! Current revisions: |
---|
[1] | 21 | ! ----------------- |
---|
[3589] | 22 | ! |
---|
| 23 | ! |
---|
| 24 | ! Former revisions: |
---|
| 25 | ! ----------------- |
---|
| 26 | ! $Id: header.f90 3589 2018-11-30 15:09:51Z kanani $ |
---|
[3582] | 27 | ! Move the control parameter "salsa" from salsa_mod to control_parameters |
---|
| 28 | ! (M. Kurppa) |
---|
| 29 | ! |
---|
[3589] | 30 | ! 3582 2018-11-29 19:16:36Z suehring |
---|
[3553] | 31 | ! variables documented |
---|
| 32 | ! |
---|
| 33 | ! 3552 2018-11-22 10:28:35Z suehring |
---|
[3529] | 34 | ! change date format into YYYY-MM-DD |
---|
| 35 | ! |
---|
| 36 | ! 3525 2018-11-14 16:06:14Z kanani |
---|
[3525] | 37 | ! Changes related to clean-up of biometeorology (dom_dwd_user) |
---|
| 38 | ! |
---|
| 39 | ! 3524 2018-11-14 13:36:44Z raasch |
---|
[3524] | 40 | ! unused variables removed |
---|
| 41 | ! |
---|
| 42 | ! 3467 2018-10-30 19:05:21Z suehring |
---|
[3467] | 43 | ! Implementation of a new aerosol module salsa. |
---|
| 44 | ! |
---|
| 45 | ! 3448 2018-10-29 18:14:31Z kanani |
---|
[3448] | 46 | ! Add biometeorology |
---|
| 47 | ! |
---|
| 48 | ! 3355 2018-10-16 14:03:34Z knoop |
---|
[3347] | 49 | ! Header output concerning offline nesting |
---|
| 50 | ! |
---|
| 51 | ! 3343 2018-10-15 10:38:52Z suehring |
---|
[3302] | 52 | ! call of ocean_header |
---|
| 53 | ! |
---|
| 54 | ! 3298 2018-10-02 12:21:11Z kanani |
---|
[3298] | 55 | ! Minor formatting (kanani) |
---|
| 56 | ! Add chemistry header (basit) |
---|
| 57 | ! |
---|
| 58 | ! 3294 2018-10-01 02:37:10Z raasch |
---|
[3294] | 59 | ! changes concerning modularization of ocean option |
---|
| 60 | ! |
---|
| 61 | ! 3274 2018-09-24 15:42:55Z knoop |
---|
[3274] | 62 | ! Modularization of all bulk cloud physics code components |
---|
| 63 | ! |
---|
| 64 | ! 3241 2018-09-12 15:02:00Z raasch |
---|
[3241] | 65 | ! unused variables removed |
---|
| 66 | ! |
---|
| 67 | ! 3232 2018-09-07 12:21:44Z raasch |
---|
[3225] | 68 | ! Increase printed length of run identifier |
---|
| 69 | ! |
---|
[3232] | 70 | ! 3225 2018-08-30 16:33:14Z kanani |
---|
| 71 | ! Increase printed length of run identifier |
---|
| 72 | ! |
---|
[3225] | 73 | ! 3083 2018-06-19 14:03:12Z gronemeier |
---|
[3083] | 74 | ! Print RANS-mode constants |
---|
| 75 | ! |
---|
| 76 | ! 3065 2018-06-12 07:03:02Z Giersch |
---|
[3065] | 77 | ! Header output concerning stretching revised |
---|
| 78 | ! |
---|
| 79 | ! 3045 2018-05-28 07:55:41Z Giersch |
---|
[3045] | 80 | ! Error messages revised |
---|
| 81 | ! |
---|
| 82 | ! 2967 2018-04-13 11:22:08Z raasch |
---|
[2967] | 83 | ! bugfix: missing parallel cpp-directives added |
---|
| 84 | ! |
---|
| 85 | ! 2883 2018-03-14 08:29:10Z Giersch |
---|
[2883] | 86 | ! Format of the output of dt_dopr_listing (325) has been changed |
---|
| 87 | ! |
---|
| 88 | ! 2817 2018-02-19 16:32:21Z knoop |
---|
[2817] | 89 | ! Preliminary gust module interface implemented |
---|
| 90 | ! |
---|
| 91 | ! 2776 2018-01-31 10:44:42Z Giersch |
---|
[2776] | 92 | ! Variable synthetic_turbulence_generator has been abbreviated |
---|
| 93 | ! |
---|
| 94 | ! 2746 2018-01-15 12:06:04Z suehring |
---|
[2746] | 95 | ! Move flag plant canopy to modules |
---|
| 96 | ! |
---|
| 97 | ! 2718 2018-01-02 08:49:38Z maronga |
---|
[2716] | 98 | ! Corrected "Former revisions" section |
---|
| 99 | ! |
---|
| 100 | ! 2701 2017-12-15 15:40:50Z suehring |
---|
| 101 | ! Changes from last commit documented |
---|
| 102 | ! |
---|
| 103 | ! 2698 2017-12-14 18:46:24Z suehring |
---|
[2701] | 104 | ! Bugfix in get_topography_top_index |
---|
| 105 | ! |
---|
[2716] | 106 | ! 2696 2017-12-14 17:12:51Z kanani |
---|
| 107 | ! Change in file header (GPL part) |
---|
[2696] | 108 | ! Print information about turbulence closure (TG) |
---|
| 109 | ! Print information about inifor initialization (MS) |
---|
| 110 | ! |
---|
| 111 | ! 2575 2017-10-24 09:57:58Z maronga |
---|
[2550] | 112 | ! Added output for complex terrain simulations |
---|
| 113 | ! |
---|
| 114 | ! 2544 2017-10-13 18:09:32Z maronga |
---|
[2544] | 115 | ! Moved initial day of year and time to inipar. |
---|
| 116 | ! |
---|
| 117 | ! 2339 2017-08-07 13:55:26Z gronemeier |
---|
[2339] | 118 | ! corrected timestamp in header |
---|
| 119 | ! |
---|
| 120 | ! 2338 2017-08-07 12:15:38Z gronemeier |
---|
[2338] | 121 | ! Modularize 1D model |
---|
| 122 | ! |
---|
[2339] | 123 | ! 2320 2017-07-21 12:47:43Z suehring |
---|
[2320] | 124 | ! Modularize large-scale forcing and nudging |
---|
| 125 | ! |
---|
| 126 | ! 2300 2017-06-29 13:31:14Z raasch |
---|
[2300] | 127 | ! host-specific code removed |
---|
| 128 | ! |
---|
| 129 | ! 2299 2017-06-29 10:14:38Z maronga |
---|
[2299] | 130 | ! Modified output for spinups |
---|
| 131 | ! |
---|
| 132 | ! 2298 2017-06-29 09:28:18Z raasch |
---|
[2298] | 133 | ! MPI2 related parts removed |
---|
| 134 | ! |
---|
| 135 | ! 2270 2017-06-09 12:18:47Z maronga |
---|
[2270] | 136 | ! Renamed Prandtl layer to constant flux layer |
---|
| 137 | ! |
---|
| 138 | ! 2259 2017-06-08 09:09:11Z gronemeier |
---|
[2259] | 139 | ! Implemented synthetic turbulence generator |
---|
| 140 | ! |
---|
| 141 | ! 2258 2017-06-08 07:55:13Z suehring |
---|
[2258] | 142 | ! Bugfix, add pre-preprocessor directives to enable non-parrallel mode |
---|
| 143 | ! |
---|
| 144 | ! 2233 2017-05-30 18:08:54Z suehring |
---|
[1485] | 145 | ! |
---|
[2233] | 146 | ! 2232 2017-05-30 17:47:52Z suehring |
---|
| 147 | ! Adjustments to new topography and surface concept |
---|
| 148 | ! Generic tunnel setup added |
---|
| 149 | ! |
---|
[2201] | 150 | ! 2200 2017-04-11 11:37:51Z suehring |
---|
| 151 | ! monotonic_adjustment removed |
---|
| 152 | ! |
---|
[2119] | 153 | ! 2118 2017-01-17 16:38:49Z raasch |
---|
| 154 | ! OpenACC relatec code removed |
---|
| 155 | ! |
---|
[2074] | 156 | ! 2073 2016-11-30 14:34:05Z raasch |
---|
| 157 | ! small bugfix concerning output of scalar profiles |
---|
| 158 | ! |
---|
[2051] | 159 | ! 2050 2016-11-08 15:00:55Z gronemeier |
---|
| 160 | ! Implement turbulent outflow condition |
---|
| 161 | ! |
---|
[2038] | 162 | ! 2037 2016-10-26 11:15:40Z knoop |
---|
| 163 | ! Anelastic approximation implemented |
---|
| 164 | ! |
---|
[2001] | 165 | ! 2000 2016-08-20 18:09:15Z knoop |
---|
| 166 | ! Forced header and separation lines into 80 columns |
---|
| 167 | ! |
---|
[1993] | 168 | ! 1992 2016-08-12 15:14:59Z suehring |
---|
| 169 | ! Adapted for top_scalarflux |
---|
| 170 | ! |
---|
[1961] | 171 | ! 1960 2016-07-12 16:34:24Z suehring |
---|
| 172 | ! Treat humidity and passive scalar separately. |
---|
| 173 | ! Modify misleading information concerning humidity. |
---|
| 174 | ! Bugfix, change unit for humidity flux. |
---|
| 175 | ! |
---|
[1958] | 176 | ! 1957 2016-07-07 10:43:48Z suehring |
---|
| 177 | ! flight module added |
---|
| 178 | ! |
---|
[1932] | 179 | ! 1931 2016-06-10 12:06:59Z suehring |
---|
| 180 | ! Rename multigrid into multigrid_noopt |
---|
| 181 | ! |
---|
[1903] | 182 | ! 1902 2016-05-09 11:18:56Z suehring |
---|
| 183 | ! Write information about masking_method only for multigrid solver |
---|
| 184 | ! |
---|
[1851] | 185 | ! 1849 2016-04-08 11:33:18Z hoffmann |
---|
| 186 | ! Adapted for modularization of microphysics |
---|
| 187 | ! |
---|
[1834] | 188 | ! 1833 2016-04-07 14:23:03Z raasch |
---|
| 189 | ! spectrum renamed spectra_mod, output of spectra related quantities moved to |
---|
| 190 | ! spectra_mod |
---|
| 191 | ! |
---|
[1832] | 192 | ! 1831 2016-04-07 13:15:51Z hoffmann |
---|
| 193 | ! turbulence renamed collision_turbulence, |
---|
| 194 | ! drizzle renamed cloud_water_sedimentation |
---|
| 195 | ! |
---|
[1827] | 196 | ! 1826 2016-04-07 12:01:39Z maronga |
---|
| 197 | ! Moved radiation model header output to the respective module. |
---|
| 198 | ! Moved canopy model header output to the respective module. |
---|
| 199 | ! |
---|
[1823] | 200 | ! 1822 2016-04-07 07:49:42Z hoffmann |
---|
| 201 | ! Tails removed. icloud_scheme replaced by microphysics_* |
---|
| 202 | ! |
---|
[1818] | 203 | ! 1817 2016-04-06 15:44:20Z maronga |
---|
| 204 | ! Moved land_surface_model header output to the respective module. |
---|
| 205 | ! |
---|
[1809] | 206 | ! 1808 2016-04-05 19:44:00Z raasch |
---|
| 207 | ! routine local_flush replaced by FORTRAN statement |
---|
| 208 | ! |
---|
[1798] | 209 | ! 1797 2016-03-21 16:50:28Z raasch |
---|
| 210 | ! output of nesting datatransfer mode |
---|
| 211 | ! |
---|
[1792] | 212 | ! 1791 2016-03-11 10:41:25Z raasch |
---|
| 213 | ! output of nesting informations of all domains |
---|
| 214 | ! |
---|
[1789] | 215 | ! 1788 2016-03-10 11:01:04Z maronga |
---|
| 216 | ! Parameter dewfall removed |
---|
| 217 | ! |
---|
[1787] | 218 | ! 1786 2016-03-08 05:49:27Z raasch |
---|
| 219 | ! cpp-direktives for spectra removed |
---|
| 220 | ! |
---|
[1784] | 221 | ! 1783 2016-03-06 18:36:17Z raasch |
---|
| 222 | ! netcdf module and variable names changed, output of netcdf_deflate |
---|
| 223 | ! |
---|
[1765] | 224 | ! 1764 2016-02-28 12:45:19Z raasch |
---|
| 225 | ! output of nesting informations |
---|
| 226 | ! |
---|
[1698] | 227 | ! 1697 2015-10-28 17:14:10Z raasch |
---|
| 228 | ! small E- and F-FORMAT changes to avoid informative compiler messages about |
---|
| 229 | ! insufficient field width |
---|
| 230 | ! |
---|
[1692] | 231 | ! 1691 2015-10-26 16:17:44Z maronga |
---|
| 232 | ! Renamed prandtl_layer to constant_flux_layer, renames rif_min/rif_max to |
---|
| 233 | ! zeta_min/zeta_max. |
---|
| 234 | ! |
---|
[1683] | 235 | ! 1682 2015-10-07 23:56:08Z knoop |
---|
| 236 | ! Code annotations made doxygen readable |
---|
| 237 | ! |
---|
[1676] | 238 | ! 1675 2015-10-02 08:28:59Z gronemeier |
---|
| 239 | ! Bugfix: Definition of topography grid levels |
---|
| 240 | ! |
---|
[1662] | 241 | ! 1660 2015-09-21 08:15:16Z gronemeier |
---|
| 242 | ! Bugfix: Definition of building/street canyon height if vertical grid stretching |
---|
| 243 | ! starts below the maximum topography height. |
---|
| 244 | ! |
---|
[1591] | 245 | ! 1590 2015-05-08 13:56:27Z maronga |
---|
| 246 | ! Bugfix: Added TRIM statements for character strings for LSM and radiation code |
---|
| 247 | ! |
---|
[1586] | 248 | ! 1585 2015-04-30 07:05:52Z maronga |
---|
| 249 | ! Further output for radiation model(s). |
---|
| 250 | ! |
---|
[1576] | 251 | ! 1575 2015-03-27 09:56:27Z raasch |
---|
| 252 | ! adjustments for psolver-queries, output of seed_follows_topography |
---|
| 253 | ! |
---|
[1561] | 254 | ! 1560 2015-03-06 10:48:54Z keck |
---|
| 255 | ! output for recycling y shift |
---|
| 256 | ! |
---|
[1558] | 257 | ! 1557 2015-03-05 16:43:04Z suehring |
---|
| 258 | ! output for monotonic limiter |
---|
| 259 | ! |
---|
[1552] | 260 | ! 1551 2015-03-03 14:18:16Z maronga |
---|
| 261 | ! Added informal output for land surface model and radiation model. Removed typo. |
---|
| 262 | ! |
---|
[3448] | 263 | ! 1496 2014-12-02 17:25:50Z maronga |
---|
| 264 | ! Renamed: "radiation -> "cloud_top_radiation" |
---|
| 265 | ! |
---|
[1485] | 266 | ! 1484 2014-10-21 10:53:05Z kanani |
---|
[1484] | 267 | ! Changes due to new module structure of the plant canopy model: |
---|
| 268 | ! module plant_canopy_model_mod and output for new canopy model parameters |
---|
| 269 | ! (alpha_lad, beta_lad, lai_beta,...) added, |
---|
| 270 | ! drag_coefficient, leaf_surface_concentration and scalar_exchange_coefficient |
---|
| 271 | ! renamed to canopy_drag_coeff, leaf_surface_conc and leaf_scalar_exch_coeff, |
---|
| 272 | ! learde renamed leaf_area_density. |
---|
| 273 | ! Bugfix: DO-WHILE-loop for lad header information additionally restricted |
---|
| 274 | ! by maximum number of gradient levels (currently 10) |
---|
[1483] | 275 | ! |
---|
| 276 | ! 1482 2014-10-18 12:34:45Z raasch |
---|
| 277 | ! information about calculated or predefined virtual processor topology adjusted |
---|
| 278 | ! |
---|
[1469] | 279 | ! 1468 2014-09-24 14:06:57Z maronga |
---|
| 280 | ! Adapted for use on up to 6-digit processor cores |
---|
| 281 | ! |
---|
[1430] | 282 | ! 1429 2014-07-15 12:53:45Z knoop |
---|
| 283 | ! header exended to provide ensemble_member_nr if specified |
---|
| 284 | ! |
---|
[1377] | 285 | ! 1376 2014-04-26 11:21:22Z boeske |
---|
| 286 | ! Correction of typos |
---|
| 287 | ! |
---|
[1366] | 288 | ! 1365 2014-04-22 15:03:56Z boeske |
---|
| 289 | ! New section 'Large scale forcing and nudging': |
---|
| 290 | ! output of large scale forcing and nudging information, |
---|
| 291 | ! new section for initial profiles created |
---|
| 292 | ! |
---|
[1360] | 293 | ! 1359 2014-04-11 17:15:14Z hoffmann |
---|
| 294 | ! dt_sort_particles removed |
---|
| 295 | ! |
---|
[1354] | 296 | ! 1353 2014-04-08 15:21:23Z heinze |
---|
| 297 | ! REAL constants provided with KIND-attribute |
---|
| 298 | ! |
---|
[1329] | 299 | ! 1327 2014-03-21 11:00:16Z raasch |
---|
| 300 | ! parts concerning iso2d and avs output removed, |
---|
| 301 | ! -netcdf output queries |
---|
| 302 | ! |
---|
[1325] | 303 | ! 1324 2014-03-21 09:13:16Z suehring |
---|
| 304 | ! Bugfix: module spectrum added |
---|
| 305 | ! |
---|
[1323] | 306 | ! 1322 2014-03-20 16:38:49Z raasch |
---|
| 307 | ! REAL functions provided with KIND-attribute, |
---|
| 308 | ! some REAL constants defined as wp-kind |
---|
| 309 | ! |
---|
[1321] | 310 | ! 1320 2014-03-20 08:40:49Z raasch |
---|
[1320] | 311 | ! ONLY-attribute added to USE-statements, |
---|
| 312 | ! kind-parameters added to all INTEGER and REAL declaration statements, |
---|
| 313 | ! kinds are defined in new module kinds, |
---|
| 314 | ! revision history before 2012 removed, |
---|
| 315 | ! comment fields (!:) to be used for variable explanations added to |
---|
| 316 | ! all variable declaration statements |
---|
[1321] | 317 | ! |
---|
[1309] | 318 | ! 1308 2014-03-13 14:58:42Z fricke |
---|
| 319 | ! output of the fixed number of output time levels |
---|
| 320 | ! output_format adjusted for masked data if netcdf_data_format > 5 |
---|
| 321 | ! |
---|
[1300] | 322 | ! 1299 2014-03-06 13:15:21Z heinze |
---|
| 323 | ! output for using large_scale subsidence in combination |
---|
| 324 | ! with large_scale_forcing |
---|
| 325 | ! reformatting, more detailed explanations |
---|
| 326 | ! |
---|
[1242] | 327 | ! 1241 2013-10-30 11:36:58Z heinze |
---|
| 328 | ! output for nudging + large scale forcing from external file |
---|
| 329 | ! |
---|
[1217] | 330 | ! 1216 2013-08-26 09:31:42Z raasch |
---|
| 331 | ! output for transpose_compute_overlap |
---|
| 332 | ! |
---|
[1213] | 333 | ! 1212 2013-08-15 08:46:27Z raasch |
---|
| 334 | ! output for poisfft_hybrid removed |
---|
| 335 | ! |
---|
[1182] | 336 | ! 1179 2013-06-14 05:57:58Z raasch |
---|
| 337 | ! output of reference_state, use_reference renamed use_single_reference_value |
---|
| 338 | ! |
---|
[1160] | 339 | ! 1159 2013-05-21 11:58:22Z fricke |
---|
| 340 | ! +use_cmax |
---|
| 341 | ! |
---|
[1116] | 342 | ! 1115 2013-03-26 18:16:16Z hoffmann |
---|
| 343 | ! descriptions for Seifert-Beheng-cloud-physics-scheme added |
---|
| 344 | ! |
---|
[1112] | 345 | ! 1111 2013-03-08 23:54:10Z raasch |
---|
| 346 | ! output of accelerator board information |
---|
| 347 | ! ibc_p_b = 2 removed |
---|
| 348 | ! |
---|
[1109] | 349 | ! 1108 2013-03-05 07:03:32Z raasch |
---|
| 350 | ! bugfix for r1106 |
---|
| 351 | ! |
---|
[1107] | 352 | ! 1106 2013-03-04 05:31:38Z raasch |
---|
| 353 | ! some format changes for coupled runs |
---|
| 354 | ! |
---|
[1093] | 355 | ! 1092 2013-02-02 11:24:22Z raasch |
---|
| 356 | ! unused variables removed |
---|
| 357 | ! |
---|
[1037] | 358 | ! 1036 2012-10-22 13:43:42Z raasch |
---|
| 359 | ! code put under GPL (PALM 3.9) |
---|
| 360 | ! |
---|
[1035] | 361 | ! 1031 2012-10-19 14:35:30Z raasch |
---|
| 362 | ! output of netCDF data format modified |
---|
| 363 | ! |
---|
[1017] | 364 | ! 1015 2012-09-27 09:23:24Z raasch |
---|
[1365] | 365 | ! output of Adjustment of mixing length to the Prandtl mixing length at first |
---|
[1017] | 366 | ! grid point above ground removed |
---|
| 367 | ! |
---|
[1004] | 368 | ! 1003 2012-09-14 14:35:53Z raasch |
---|
| 369 | ! output of information about equal/unequal subdomain size removed |
---|
| 370 | ! |
---|
[1002] | 371 | ! 1001 2012-09-13 14:08:46Z raasch |
---|
| 372 | ! all actions concerning leapfrog- and upstream-spline-scheme removed |
---|
| 373 | ! |
---|
[979] | 374 | ! 978 2012-08-09 08:28:32Z fricke |
---|
| 375 | ! -km_damp_max, outflow_damping_width |
---|
| 376 | ! +pt_damping_factor, pt_damping_width |
---|
| 377 | ! +z0h |
---|
| 378 | ! |
---|
[965] | 379 | ! 964 2012-07-26 09:14:24Z raasch |
---|
| 380 | ! output of profil-related quantities removed |
---|
| 381 | ! |
---|
[941] | 382 | ! 940 2012-07-09 14:31:00Z raasch |
---|
| 383 | ! Output in case of simulations for pure neutral stratification (no pt-equation |
---|
| 384 | ! solved) |
---|
| 385 | ! |
---|
[928] | 386 | ! 927 2012-06-06 19:15:04Z raasch |
---|
| 387 | ! output of masking_method for mg-solver |
---|
| 388 | ! |
---|
[869] | 389 | ! 868 2012-03-28 12:21:07Z raasch |
---|
| 390 | ! translation velocity in Galilean transformation changed to 0.6 * ug |
---|
| 391 | ! |
---|
[834] | 392 | ! 833 2012-02-22 08:55:55Z maronga |
---|
| 393 | ! Adjusted format for leaf area density |
---|
| 394 | ! |
---|
[829] | 395 | ! 828 2012-02-21 12:00:36Z raasch |
---|
| 396 | ! output of dissipation_classes + radius_classes |
---|
| 397 | ! |
---|
[826] | 398 | ! 825 2012-02-19 03:03:44Z raasch |
---|
| 399 | ! Output of cloud physics parameters/quantities complemented and restructured |
---|
| 400 | ! |
---|
[1] | 401 | ! Revision 1.1 1997/08/11 06:17:20 raasch |
---|
| 402 | ! Initial revision |
---|
| 403 | ! |
---|
| 404 | ! |
---|
| 405 | ! Description: |
---|
| 406 | ! ------------ |
---|
[1764] | 407 | !> Writing a header with all important information about the current run. |
---|
[1682] | 408 | !> This subroutine is called three times, two times at the beginning |
---|
| 409 | !> (writing information on files RUN_CONTROL and HEADER) and one time at the |
---|
| 410 | !> end of the run, then writing additional information about CPU-usage on file |
---|
| 411 | !> header. |
---|
[411] | 412 | !-----------------------------------------------------------------------------! |
---|
[1682] | 413 | SUBROUTINE header |
---|
| 414 | |
---|
[1] | 415 | |
---|
[1320] | 416 | USE arrays_3d, & |
---|
[2232] | 417 | ONLY: pt_init, q_init, s_init, sa_init, ug, vg, w_subs, zu, zw |
---|
[3274] | 418 | |
---|
| 419 | USE basic_constants_and_equations_mod, & |
---|
[3524] | 420 | ONLY: g, kappa, l_v |
---|
[3274] | 421 | |
---|
[3448] | 422 | USE biometeorology_mod, & |
---|
[3525] | 423 | ONLY: bio_header |
---|
[3448] | 424 | |
---|
[3274] | 425 | USE bulk_cloud_model_mod, & |
---|
| 426 | ONLY: bulk_cloud_model, bcm_header |
---|
| 427 | |
---|
[3298] | 428 | USE chemistry_model_mod, & |
---|
| 429 | ONLY: chem_header |
---|
| 430 | |
---|
[1] | 431 | USE control_parameters |
---|
[1849] | 432 | |
---|
[1320] | 433 | USE cpulog, & |
---|
| 434 | ONLY: log_point_s |
---|
[3298] | 435 | |
---|
[2544] | 436 | USE date_and_time_mod, & |
---|
| 437 | ONLY: day_of_year_init, time_utc_init |
---|
| 438 | |
---|
[1320] | 439 | USE dvrp_variables, & |
---|
| 440 | ONLY: use_seperate_pe_for_dvrp_output |
---|
| 441 | |
---|
[1957] | 442 | USE flight_mod, & |
---|
| 443 | ONLY: flight_header |
---|
| 444 | |
---|
[1320] | 445 | USE grid_variables, & |
---|
| 446 | ONLY: dx, dy |
---|
[2817] | 447 | |
---|
| 448 | USE gust_mod, & |
---|
| 449 | ONLY: gust_header, gust_module_enabled |
---|
[3448] | 450 | |
---|
[1320] | 451 | USE indices, & |
---|
| 452 | ONLY: mg_loc_ind, nnx, nny, nnz, nx, ny, nxl_mg, nxr_mg, nyn_mg, & |
---|
| 453 | nys_mg, nzt, nzt_mg |
---|
| 454 | |
---|
| 455 | USE kinds |
---|
[1817] | 456 | |
---|
[1551] | 457 | USE land_surface_model_mod, & |
---|
[2232] | 458 | ONLY: lsm_header |
---|
[1849] | 459 | |
---|
[2320] | 460 | USE lsf_nudging_mod, & |
---|
| 461 | ONLY: lsf_nudging_header |
---|
| 462 | |
---|
[2338] | 463 | USE model_1d_mod, & |
---|
[1320] | 464 | ONLY: damp_level_ind_1d, dt_pr_1d, dt_run_control_1d, end_time_1d |
---|
[2338] | 465 | |
---|
[1783] | 466 | USE netcdf_interface, & |
---|
| 467 | ONLY: netcdf_data_format, netcdf_data_format_string, netcdf_deflate |
---|
[3448] | 468 | |
---|
[3347] | 469 | USE nesting_offl_mod, & |
---|
| 470 | ONLY: nesting_offl_header |
---|
[1783] | 471 | |
---|
[3294] | 472 | USE ocean_mod, & |
---|
[3302] | 473 | ONLY: ibc_sa_t, ocean_header, prho_reference, sa_surface, & |
---|
| 474 | sa_vertical_gradient, sa_vertical_gradient_level, & |
---|
| 475 | sa_vertical_gradient_level_ind |
---|
[3294] | 476 | |
---|
[1320] | 477 | USE particle_attributes, & |
---|
| 478 | ONLY: bc_par_b, bc_par_lr, bc_par_ns, bc_par_t, collision_kernel, & |
---|
[1831] | 479 | curvature_solution_effects, & |
---|
[1320] | 480 | density_ratio, dissipation_classes, dt_min_part, dt_prel, & |
---|
[1359] | 481 | dt_write_particle_data, end_time_prel, & |
---|
[1822] | 482 | number_of_particle_groups, particle_advection, & |
---|
| 483 | particle_advection_start, & |
---|
[1320] | 484 | particles_per_point, pdx, pdy, pdz, psb, psl, psn, psr, pss, & |
---|
| 485 | pst, radius, radius_classes, random_start_position, & |
---|
[1575] | 486 | seed_follows_topography, & |
---|
[1822] | 487 | total_number_of_particles, use_sgs_for_particles, & |
---|
[1320] | 488 | vertical_particle_advection, write_particle_statistics |
---|
| 489 | |
---|
[1] | 490 | USE pegrid |
---|
[1484] | 491 | |
---|
| 492 | USE plant_canopy_model_mod, & |
---|
[2746] | 493 | ONLY: pcm_header |
---|
[2259] | 494 | |
---|
[2967] | 495 | #if defined( __parallel ) |
---|
[1791] | 496 | USE pmc_handle_communicator, & |
---|
| 497 | ONLY: pmc_get_model_info |
---|
[2967] | 498 | #endif |
---|
[1791] | 499 | |
---|
[1764] | 500 | USE pmc_interface, & |
---|
[1797] | 501 | ONLY: nested_run, nesting_datatransfer_mode, nesting_mode |
---|
[1764] | 502 | |
---|
[1551] | 503 | USE radiation_model_mod, & |
---|
[1826] | 504 | ONLY: radiation, radiation_header |
---|
[3467] | 505 | |
---|
| 506 | USE salsa_mod, & |
---|
[3582] | 507 | ONLY: salsa_header |
---|
[1324] | 508 | |
---|
[1833] | 509 | USE spectra_mod, & |
---|
| 510 | ONLY: calculate_spectra, spectra_header |
---|
[1] | 511 | |
---|
[2232] | 512 | USE surface_mod, & |
---|
[2698] | 513 | ONLY: surf_def_h, get_topography_top_index_ji |
---|
[2232] | 514 | |
---|
[2259] | 515 | USE synthetic_turbulence_generator_mod, & |
---|
| 516 | ONLY: stg_header |
---|
| 517 | |
---|
[3083] | 518 | USE turbulence_closure_mod, & |
---|
| 519 | ONLY: rans_const_c, rans_const_sigma |
---|
| 520 | |
---|
[1] | 521 | IMPLICIT NONE |
---|
| 522 | |
---|
[1320] | 523 | |
---|
[3552] | 524 | CHARACTER (LEN=2) :: do2d_mode !< mode of 2D data output (xy, xz, yz) |
---|
[1320] | 525 | |
---|
[3552] | 526 | CHARACTER (LEN=5) :: section_chr !< string indicating grid information where to output 2D slices |
---|
[1320] | 527 | |
---|
[3552] | 528 | CHARACTER (LEN=10) :: coor_chr !< string for subsidence velocities in large-scale forcing |
---|
| 529 | CHARACTER (LEN=10) :: host_chr !< string for hostname |
---|
[1320] | 530 | |
---|
[3552] | 531 | CHARACTER (LEN=16) :: begin_chr !< string indication start time for the data output |
---|
[1320] | 532 | |
---|
[3552] | 533 | CHARACTER (LEN=26) :: ver_rev !< string for run identification |
---|
[1791] | 534 | |
---|
[3552] | 535 | CHARACTER (LEN=32) :: cpl_name !< name of child domain (nesting mode only) |
---|
[1320] | 536 | |
---|
[3552] | 537 | CHARACTER (LEN=40) :: output_format !< netcdf format |
---|
[1320] | 538 | |
---|
[3552] | 539 | CHARACTER (LEN=70) :: char1 !< dummy varialbe used for various strings |
---|
| 540 | CHARACTER (LEN=70) :: char2 !< string containing informating about the advected distance in case of Galilei transformation |
---|
| 541 | CHARACTER (LEN=70) :: dopr_chr !< string indicating profile output variables |
---|
| 542 | CHARACTER (LEN=70) :: do2d_xy !< string indicating 2D-xy output variables |
---|
| 543 | CHARACTER (LEN=70) :: do2d_xz !< string indicating 2D-xz output variables |
---|
| 544 | CHARACTER (LEN=70) :: do2d_yz !< string indicating 2D-yz output variables |
---|
| 545 | CHARACTER (LEN=70) :: do3d_chr !< string indicating 3D output variables |
---|
| 546 | CHARACTER (LEN=70) :: domask_chr !< string indicating masked output variables |
---|
| 547 | CHARACTER (LEN=70) :: run_classification !< string classifying type of run, e.g. nested, coupled, etc. |
---|
[1320] | 548 | |
---|
[3552] | 549 | CHARACTER (LEN=85) :: r_upper !< string indicating model top boundary condition for various quantities |
---|
| 550 | CHARACTER (LEN=85) :: r_lower !< string indicating bottom boundary condition for various quantities |
---|
[1320] | 551 | |
---|
[3552] | 552 | CHARACTER (LEN=86) :: coordinates !< string indicating height coordinates for profile-prescribed variables |
---|
| 553 | CHARACTER (LEN=86) :: gradients !< string indicating gradients of profile-prescribed variables between the prescribed height coordinates |
---|
| 554 | CHARACTER (LEN=86) :: slices !< string indicating grid coordinates of profile-prescribed subsidence velocity |
---|
| 555 | CHARACTER (LEN=86) :: temperatures !< string indicating profile-prescribed subsidence velocities |
---|
| 556 | CHARACTER (LEN=86) :: ugcomponent !< string indicating profile-prescribed geostrophic u-component |
---|
| 557 | CHARACTER (LEN=86) :: vgcomponent !< string indicating profile-prescribed geostrophic v-component |
---|
[1] | 558 | |
---|
[3552] | 559 | CHARACTER (LEN=1), DIMENSION(1:3) :: dir = (/ 'x', 'y', 'z' /) !< string indicating masking steps along certain direction |
---|
[410] | 560 | |
---|
[3552] | 561 | INTEGER(iwp) :: av !< index indicating average output quantities |
---|
| 562 | INTEGER(iwp) :: bh !< building height in generic single-building setup |
---|
| 563 | INTEGER(iwp) :: blx !< building width in grid points along x in generic single-building setup |
---|
| 564 | INTEGER(iwp) :: bly !< building width in grid points along y in generic single-building setup |
---|
| 565 | INTEGER(iwp) :: bxl !< index for left building wall in generic single-building setup |
---|
| 566 | INTEGER(iwp) :: bxr !< index for right building wall in generic single-building setup |
---|
| 567 | INTEGER(iwp) :: byn !< index for north building wall in generic single-building setup |
---|
| 568 | INTEGER(iwp) :: bys !< index for south building wall in generic single-building setup |
---|
| 569 | INTEGER(iwp) :: ch !< canyon depth in generic street-canyon setup |
---|
| 570 | INTEGER(iwp) :: count !< number of masked output locations |
---|
| 571 | INTEGER(iwp) :: cpl_parent_id !< parent ID for the respective child model |
---|
| 572 | INTEGER(iwp) :: cwx !< canyon width along x in generic street-canyon setup |
---|
| 573 | INTEGER(iwp) :: cwy !< canyon width along y in generic street-canyon setup |
---|
| 574 | INTEGER(iwp) :: cxl !< index for left canyon wall in generic street-canyon setup |
---|
| 575 | INTEGER(iwp) :: cxr !< index for right canyon wall in generic street-canyon setup |
---|
| 576 | INTEGER(iwp) :: cyn !< index for north canyon wall in generic street-canyon setup |
---|
| 577 | INTEGER(iwp) :: cys !< index for south canyon wall in generic street-canyon setup |
---|
| 578 | INTEGER(iwp) :: dim !< running index for masking output locations |
---|
| 579 | INTEGER(iwp) :: i !< running index for various loops |
---|
| 580 | INTEGER(iwp) :: io !< file unit of HEADER file |
---|
| 581 | INTEGER(iwp) :: l !< substring length |
---|
| 582 | INTEGER(iwp) :: ll !< substring length |
---|
| 583 | INTEGER(iwp) :: my_cpl_id !< run id in a nested model setup |
---|
| 584 | INTEGER(iwp) :: n !< running index over number of couplers in a nested model setup |
---|
| 585 | INTEGER(iwp) :: ncpl !< number of coupler in a nested model setup |
---|
| 586 | INTEGER(iwp) :: npe_total !< number of total PEs in a coupler (parent + child) |
---|
[1320] | 587 | |
---|
[1826] | 588 | |
---|
[3552] | 589 | REAL(wp) :: cpuseconds_per_simulated_second !< CPU time (in s) per simulated second |
---|
[1791] | 590 | REAL(wp) :: lower_left_coord_x !< x-coordinate of nest domain |
---|
| 591 | REAL(wp) :: lower_left_coord_y !< y-coordinate of nest domain |
---|
[1] | 592 | |
---|
| 593 | ! |
---|
| 594 | !-- Open the output file. At the end of the simulation, output is directed |
---|
| 595 | !-- to unit 19. |
---|
| 596 | IF ( ( runnr == 0 .OR. force_print_header ) .AND. & |
---|
| 597 | .NOT. simulated_time_at_begin /= simulated_time ) THEN |
---|
| 598 | io = 15 ! header output on file RUN_CONTROL |
---|
| 599 | ELSE |
---|
| 600 | io = 19 ! header output on file HEADER |
---|
| 601 | ENDIF |
---|
| 602 | CALL check_open( io ) |
---|
| 603 | |
---|
| 604 | ! |
---|
| 605 | !-- At the end of the run, output file (HEADER) will be rewritten with |
---|
[1551] | 606 | !-- new information |
---|
[1] | 607 | IF ( io == 19 .AND. simulated_time_at_begin /= simulated_time ) REWIND( 19 ) |
---|
| 608 | |
---|
| 609 | ! |
---|
| 610 | !-- Determine kind of model run |
---|
| 611 | IF ( TRIM( initializing_actions ) == 'read_restart_data' ) THEN |
---|
[1764] | 612 | run_classification = 'restart run' |
---|
[328] | 613 | ELSEIF ( TRIM( initializing_actions ) == 'cyclic_fill' ) THEN |
---|
[1764] | 614 | run_classification = 'run with cyclic fill of 3D - prerun data' |
---|
[147] | 615 | ELSEIF ( INDEX( initializing_actions, 'set_constant_profiles' ) /= 0 ) THEN |
---|
[1764] | 616 | run_classification = 'run without 1D - prerun' |
---|
[197] | 617 | ELSEIF ( INDEX( initializing_actions, 'set_1d-model_profiles' ) /= 0 ) THEN |
---|
[1764] | 618 | run_classification = 'run with 1D - prerun' |
---|
[2696] | 619 | ELSEIF ( INDEX( initializing_actions, 'inifor' ) /= 0 ) THEN |
---|
| 620 | run_classification = 'run initialized with COSMO data' |
---|
[197] | 621 | ELSEIF ( INDEX( initializing_actions, 'by_user' ) /=0 ) THEN |
---|
[1764] | 622 | run_classification = 'run initialized by user' |
---|
[3045] | 623 | ELSEIF ( INDEX( initializing_actions, 'initialize_vortex' ) /=0 ) THEN |
---|
| 624 | run_classification = 'run additionally initialized by a Rankine-vortex' |
---|
| 625 | ELSEIF ( INDEX( initializing_actions, 'initialize_ptanom' ) /=0 ) THEN |
---|
| 626 | run_classification = 'run additionally initialized by temperature anomaly' |
---|
[1] | 627 | ELSE |
---|
[254] | 628 | message_string = ' unknown action(s): ' // TRIM( initializing_actions ) |
---|
| 629 | CALL message( 'header', 'PA0191', 0, 0, 0, 6, 0 ) |
---|
[1] | 630 | ENDIF |
---|
[3241] | 631 | IF ( nested_run ) run_classification = 'nested ' // run_classification(1:63) |
---|
[3294] | 632 | IF ( ocean_mode ) THEN |
---|
[3241] | 633 | run_classification = 'ocean - ' // run_classification(1:61) |
---|
[97] | 634 | ELSE |
---|
[3241] | 635 | run_classification = 'atmosphere - ' // run_classification(1:57) |
---|
[97] | 636 | ENDIF |
---|
[1] | 637 | |
---|
| 638 | ! |
---|
| 639 | !-- Run-identification, date, time, host |
---|
| 640 | host_chr = host(1:10) |
---|
[75] | 641 | ver_rev = TRIM( version ) // ' ' // TRIM( revision ) |
---|
[102] | 642 | WRITE ( io, 100 ) ver_rev, TRIM( run_classification ) |
---|
[291] | 643 | IF ( TRIM( coupling_mode ) /= 'uncoupled' ) THEN |
---|
[2298] | 644 | WRITE ( io, 101 ) coupling_mode |
---|
[291] | 645 | ENDIF |
---|
[1108] | 646 | #if defined( __parallel ) |
---|
[2299] | 647 | IF ( coupling_start_time /= 0.0_wp .AND. .NOT. spinup ) THEN |
---|
[1106] | 648 | IF ( coupling_start_time > simulated_time_at_begin ) THEN |
---|
| 649 | WRITE ( io, 109 ) |
---|
| 650 | ELSE |
---|
| 651 | WRITE ( io, 114 ) |
---|
| 652 | ENDIF |
---|
| 653 | ENDIF |
---|
[1108] | 654 | #endif |
---|
[1429] | 655 | IF ( ensemble_member_nr /= 0 ) THEN |
---|
| 656 | WRITE ( io, 512 ) run_date, run_identifier, run_time, runnr, & |
---|
| 657 | ADJUSTR( host_chr ), ensemble_member_nr |
---|
| 658 | ELSE |
---|
| 659 | WRITE ( io, 102 ) run_date, run_identifier, run_time, runnr, & |
---|
[102] | 660 | ADJUSTR( host_chr ) |
---|
[1429] | 661 | ENDIF |
---|
[1] | 662 | #if defined( __parallel ) |
---|
[1482] | 663 | IF ( npex == -1 .AND. npey == -1 ) THEN |
---|
[1] | 664 | char1 = 'calculated' |
---|
| 665 | ELSE |
---|
| 666 | char1 = 'predefined' |
---|
| 667 | ENDIF |
---|
| 668 | IF ( threads_per_task == 1 ) THEN |
---|
[102] | 669 | WRITE ( io, 103 ) numprocs, pdims(1), pdims(2), TRIM( char1 ) |
---|
[1] | 670 | ELSE |
---|
[102] | 671 | WRITE ( io, 104 ) numprocs*threads_per_task, numprocs, & |
---|
[1] | 672 | threads_per_task, pdims(1), pdims(2), TRIM( char1 ) |
---|
| 673 | ENDIF |
---|
[2300] | 674 | |
---|
| 675 | IF ( pdims(2) == 1 ) THEN |
---|
[102] | 676 | WRITE ( io, 107 ) 'x' |
---|
[1] | 677 | ELSEIF ( pdims(1) == 1 ) THEN |
---|
[102] | 678 | WRITE ( io, 107 ) 'y' |
---|
[1] | 679 | ENDIF |
---|
[102] | 680 | IF ( use_seperate_pe_for_dvrp_output ) WRITE ( io, 105 ) |
---|
[759] | 681 | IF ( numprocs /= maximum_parallel_io_streams ) THEN |
---|
| 682 | WRITE ( io, 108 ) maximum_parallel_io_streams |
---|
| 683 | ENDIF |
---|
[1] | 684 | #endif |
---|
[1764] | 685 | |
---|
| 686 | ! |
---|
| 687 | !-- Nesting informations |
---|
| 688 | IF ( nested_run ) THEN |
---|
[1791] | 689 | |
---|
[2967] | 690 | #if defined( __parallel ) |
---|
[1797] | 691 | WRITE ( io, 600 ) TRIM( nesting_mode ), & |
---|
| 692 | TRIM( nesting_datatransfer_mode ) |
---|
[1791] | 693 | CALL pmc_get_model_info( ncpl = ncpl, cpl_id = my_cpl_id ) |
---|
| 694 | |
---|
| 695 | DO n = 1, ncpl |
---|
| 696 | CALL pmc_get_model_info( request_for_cpl_id = n, cpl_name = cpl_name,& |
---|
| 697 | cpl_parent_id = cpl_parent_id, & |
---|
| 698 | lower_left_x = lower_left_coord_x, & |
---|
| 699 | lower_left_y = lower_left_coord_y, & |
---|
| 700 | npe_total = npe_total ) |
---|
| 701 | IF ( n == my_cpl_id ) THEN |
---|
| 702 | char1 = '*' |
---|
| 703 | ELSE |
---|
| 704 | char1 = ' ' |
---|
| 705 | ENDIF |
---|
| 706 | WRITE ( io, 601 ) TRIM( char1 ), n, cpl_parent_id, npe_total, & |
---|
| 707 | lower_left_coord_x, lower_left_coord_y, & |
---|
| 708 | TRIM( cpl_name ) |
---|
| 709 | ENDDO |
---|
[2967] | 710 | #endif |
---|
| 711 | |
---|
[1764] | 712 | ENDIF |
---|
[1] | 713 | WRITE ( io, 99 ) |
---|
| 714 | |
---|
| 715 | ! |
---|
| 716 | !-- Numerical schemes |
---|
| 717 | WRITE ( io, 110 ) |
---|
[2696] | 718 | IF ( rans_mode ) THEN |
---|
| 719 | WRITE ( io, 124 ) TRIM( turbulence_closure ), 'RANS' |
---|
| 720 | ELSE |
---|
| 721 | WRITE ( io, 124 ) TRIM( turbulence_closure ), 'LES' |
---|
| 722 | ENDIF |
---|
[2037] | 723 | WRITE ( io, 121 ) TRIM( approximation ) |
---|
[1] | 724 | IF ( psolver(1:7) == 'poisfft' ) THEN |
---|
| 725 | WRITE ( io, 111 ) TRIM( fft_method ) |
---|
[1216] | 726 | IF ( transpose_compute_overlap ) WRITE( io, 115 ) |
---|
[1] | 727 | ELSEIF ( psolver == 'sor' ) THEN |
---|
| 728 | WRITE ( io, 112 ) nsor_ini, nsor, omega_sor |
---|
[1575] | 729 | ELSEIF ( psolver(1:9) == 'multigrid' ) THEN |
---|
| 730 | WRITE ( io, 135 ) TRIM(psolver), cycle_mg, maximum_grid_level, ngsrb |
---|
[1] | 731 | IF ( mg_cycles == -1 ) THEN |
---|
| 732 | WRITE ( io, 140 ) residual_limit |
---|
| 733 | ELSE |
---|
| 734 | WRITE ( io, 141 ) mg_cycles |
---|
| 735 | ENDIF |
---|
| 736 | IF ( mg_switch_to_pe0_level == 0 ) THEN |
---|
| 737 | WRITE ( io, 136 ) nxr_mg(1)-nxl_mg(1)+1, nyn_mg(1)-nys_mg(1)+1, & |
---|
| 738 | nzt_mg(1) |
---|
[197] | 739 | ELSEIF ( mg_switch_to_pe0_level /= -1 ) THEN |
---|
[1] | 740 | WRITE ( io, 137 ) mg_switch_to_pe0_level, & |
---|
| 741 | mg_loc_ind(2,0)-mg_loc_ind(1,0)+1, & |
---|
| 742 | mg_loc_ind(4,0)-mg_loc_ind(3,0)+1, & |
---|
| 743 | nzt_mg(mg_switch_to_pe0_level), & |
---|
| 744 | nxr_mg(1)-nxl_mg(1)+1, nyn_mg(1)-nys_mg(1)+1, & |
---|
| 745 | nzt_mg(1) |
---|
| 746 | ENDIF |
---|
[1931] | 747 | IF ( psolver == 'multigrid_noopt' .AND. masking_method ) WRITE ( io, 144 ) |
---|
[1] | 748 | ENDIF |
---|
| 749 | IF ( call_psolver_at_all_substeps .AND. timestep_scheme(1:5) == 'runge' ) & |
---|
| 750 | THEN |
---|
| 751 | WRITE ( io, 142 ) |
---|
| 752 | ENDIF |
---|
| 753 | |
---|
| 754 | IF ( momentum_advec == 'pw-scheme' ) THEN |
---|
| 755 | WRITE ( io, 113 ) |
---|
[1299] | 756 | ELSEIF (momentum_advec == 'ws-scheme' ) THEN |
---|
[667] | 757 | WRITE ( io, 503 ) |
---|
[1] | 758 | ENDIF |
---|
| 759 | IF ( scalar_advec == 'pw-scheme' ) THEN |
---|
| 760 | WRITE ( io, 116 ) |
---|
[667] | 761 | ELSEIF ( scalar_advec == 'ws-scheme' ) THEN |
---|
| 762 | WRITE ( io, 504 ) |
---|
[1] | 763 | ELSE |
---|
| 764 | WRITE ( io, 118 ) |
---|
| 765 | ENDIF |
---|
[63] | 766 | |
---|
| 767 | WRITE ( io, 139 ) TRIM( loop_optimization ) |
---|
| 768 | |
---|
[1] | 769 | IF ( galilei_transformation ) THEN |
---|
| 770 | IF ( use_ug_for_galilei_tr ) THEN |
---|
[868] | 771 | char1 = '0.6 * geostrophic wind' |
---|
[1] | 772 | ELSE |
---|
| 773 | char1 = 'mean wind in model domain' |
---|
| 774 | ENDIF |
---|
| 775 | IF ( simulated_time_at_begin == simulated_time ) THEN |
---|
| 776 | char2 = 'at the start of the run' |
---|
| 777 | ELSE |
---|
| 778 | char2 = 'at the end of the run' |
---|
| 779 | ENDIF |
---|
[1353] | 780 | WRITE ( io, 119 ) TRIM( char1 ), TRIM( char2 ), & |
---|
| 781 | advected_distance_x/1000.0_wp, & |
---|
| 782 | advected_distance_y/1000.0_wp |
---|
[1] | 783 | ENDIF |
---|
[1001] | 784 | WRITE ( io, 122 ) timestep_scheme |
---|
[87] | 785 | IF ( use_upstream_for_tke ) WRITE ( io, 143 ) |
---|
[1353] | 786 | IF ( rayleigh_damping_factor /= 0.0_wp ) THEN |
---|
[3294] | 787 | IF ( .NOT. ocean_mode ) THEN |
---|
[108] | 788 | WRITE ( io, 123 ) 'above', rayleigh_damping_height, & |
---|
| 789 | rayleigh_damping_factor |
---|
| 790 | ELSE |
---|
| 791 | WRITE ( io, 123 ) 'below', rayleigh_damping_height, & |
---|
| 792 | rayleigh_damping_factor |
---|
| 793 | ENDIF |
---|
[1] | 794 | ENDIF |
---|
[940] | 795 | IF ( neutral ) WRITE ( io, 131 ) pt_surface |
---|
[75] | 796 | IF ( humidity ) THEN |
---|
[3274] | 797 | IF ( .NOT. bulk_cloud_model ) THEN |
---|
[1] | 798 | WRITE ( io, 129 ) |
---|
| 799 | ELSE |
---|
| 800 | WRITE ( io, 130 ) |
---|
| 801 | ENDIF |
---|
| 802 | ENDIF |
---|
| 803 | IF ( passive_scalar ) WRITE ( io, 134 ) |
---|
[240] | 804 | IF ( conserve_volume_flow ) THEN |
---|
[241] | 805 | WRITE ( io, 150 ) conserve_volume_flow_mode |
---|
| 806 | IF ( TRIM( conserve_volume_flow_mode ) == 'bulk_velocity' ) THEN |
---|
| 807 | WRITE ( io, 151 ) u_bulk, v_bulk |
---|
| 808 | ENDIF |
---|
[240] | 809 | ELSEIF ( dp_external ) THEN |
---|
| 810 | IF ( dp_smooth ) THEN |
---|
[241] | 811 | WRITE ( io, 152 ) dpdxy, dp_level_b, ', vertically smoothed.' |
---|
[240] | 812 | ELSE |
---|
[241] | 813 | WRITE ( io, 152 ) dpdxy, dp_level_b, '.' |
---|
[240] | 814 | ENDIF |
---|
| 815 | ENDIF |
---|
[1] | 816 | WRITE ( io, 99 ) |
---|
| 817 | |
---|
| 818 | ! |
---|
[1551] | 819 | !-- Runtime and timestep information |
---|
[1] | 820 | WRITE ( io, 200 ) |
---|
| 821 | IF ( .NOT. dt_fixed ) THEN |
---|
| 822 | WRITE ( io, 201 ) dt_max, cfl_factor |
---|
| 823 | ELSE |
---|
| 824 | WRITE ( io, 202 ) dt |
---|
| 825 | ENDIF |
---|
| 826 | WRITE ( io, 203 ) simulated_time_at_begin, end_time |
---|
| 827 | |
---|
[1322] | 828 | IF ( time_restart /= 9999999.9_wp .AND. & |
---|
[1] | 829 | simulated_time_at_begin == simulated_time ) THEN |
---|
[1322] | 830 | IF ( dt_restart == 9999999.9_wp ) THEN |
---|
[1] | 831 | WRITE ( io, 204 ) ' Restart at: ',time_restart |
---|
| 832 | ELSE |
---|
| 833 | WRITE ( io, 205 ) ' Restart at: ',time_restart, dt_restart |
---|
| 834 | ENDIF |
---|
| 835 | ENDIF |
---|
| 836 | |
---|
| 837 | IF ( simulated_time_at_begin /= simulated_time ) THEN |
---|
| 838 | i = MAX ( log_point_s(10)%counts, 1 ) |
---|
[1353] | 839 | IF ( ( simulated_time - simulated_time_at_begin ) == 0.0_wp ) THEN |
---|
| 840 | cpuseconds_per_simulated_second = 0.0_wp |
---|
[1] | 841 | ELSE |
---|
| 842 | cpuseconds_per_simulated_second = log_point_s(10)%sum / & |
---|
| 843 | ( simulated_time - & |
---|
| 844 | simulated_time_at_begin ) |
---|
| 845 | ENDIF |
---|
[1322] | 846 | WRITE ( io, 206 ) simulated_time, log_point_s(10)%sum, & |
---|
| 847 | log_point_s(10)%sum / REAL( i, KIND=wp ), & |
---|
[1] | 848 | cpuseconds_per_simulated_second |
---|
[1322] | 849 | IF ( time_restart /= 9999999.9_wp .AND. time_restart < end_time ) THEN |
---|
| 850 | IF ( dt_restart == 9999999.9_wp ) THEN |
---|
[1106] | 851 | WRITE ( io, 204 ) ' Next restart at: ',time_restart |
---|
[1] | 852 | ELSE |
---|
[1106] | 853 | WRITE ( io, 205 ) ' Next restart at: ',time_restart, dt_restart |
---|
[1] | 854 | ENDIF |
---|
| 855 | ENDIF |
---|
| 856 | ENDIF |
---|
| 857 | |
---|
[1324] | 858 | |
---|
[1] | 859 | ! |
---|
[291] | 860 | !-- Start time for coupled runs, if independent precursor runs for atmosphere |
---|
[1106] | 861 | !-- and ocean are used or have been used. In this case, coupling_start_time |
---|
| 862 | !-- defines the time when the coupling is switched on. |
---|
[1353] | 863 | IF ( coupling_start_time /= 0.0_wp ) THEN |
---|
[1106] | 864 | WRITE ( io, 207 ) coupling_start_time |
---|
[291] | 865 | ENDIF |
---|
| 866 | |
---|
| 867 | ! |
---|
[1] | 868 | !-- Computational grid |
---|
[3294] | 869 | IF ( .NOT. ocean_mode ) THEN |
---|
[3065] | 870 | WRITE ( io, 250 ) dx, dy |
---|
| 871 | |
---|
| 872 | DO i = 1, number_stretch_level_start+1 |
---|
| 873 | WRITE ( io, 253 ) i, dz(i) |
---|
| 874 | ENDDO |
---|
| 875 | |
---|
| 876 | WRITE( io, 251 ) (nx+1)*dx, (ny+1)*dy, zu(nzt+1) |
---|
| 877 | |
---|
| 878 | IF ( ANY( dz_stretch_level_start_index < nzt+1 ) ) THEN |
---|
| 879 | WRITE( io, '(A)', advance='no') ' Vertical stretching starts at height:' |
---|
| 880 | DO i = 1, number_stretch_level_start |
---|
| 881 | WRITE ( io, '(F10.1,A3)', advance='no' ) dz_stretch_level_start(i), ' m,' |
---|
| 882 | ENDDO |
---|
| 883 | WRITE( io, '(/,A)', advance='no') ' Vertical stretching starts at index: ' |
---|
| 884 | DO i = 1, number_stretch_level_start |
---|
| 885 | WRITE ( io, '(I12,A1)', advance='no' ) dz_stretch_level_start_index(i), ',' |
---|
| 886 | ENDDO |
---|
| 887 | WRITE( io, '(/,A)', advance='no') ' Vertical stretching ends at height: ' |
---|
| 888 | DO i = 1, number_stretch_level_start |
---|
| 889 | WRITE ( io, '(F10.1,A3)', advance='no' ) dz_stretch_level_end(i), ' m,' |
---|
| 890 | ENDDO |
---|
| 891 | WRITE( io, '(/,A)', advance='no') ' Vertical stretching ends at index: ' |
---|
| 892 | DO i = 1, number_stretch_level_start |
---|
| 893 | WRITE ( io, '(I12,A1)', advance='no' ) dz_stretch_level_end_index(i), ',' |
---|
| 894 | ENDDO |
---|
| 895 | WRITE( io, '(/,A)', advance='no') ' Factor used for stretching: ' |
---|
| 896 | DO i = 1, number_stretch_level_start |
---|
| 897 | WRITE ( io, '(F12.3,A1)', advance='no' ) dz_stretch_factor_array(i), ',' |
---|
| 898 | ENDDO |
---|
[94] | 899 | ENDIF |
---|
[3065] | 900 | |
---|
[94] | 901 | ELSE |
---|
[3065] | 902 | WRITE ( io, 250 ) dx, dy |
---|
| 903 | DO i = 1, number_stretch_level_start+1 |
---|
| 904 | WRITE ( io, 253 ) i, dz(i) |
---|
| 905 | ENDDO |
---|
| 906 | |
---|
| 907 | WRITE ( io, 251 ) (nx+1)*dx, (ny+1)*dy, zu(0) |
---|
| 908 | |
---|
| 909 | IF ( ANY( dz_stretch_level_start_index > 0 ) ) THEN |
---|
| 910 | WRITE( io, '(A)', advance='no') ' Vertical stretching starts at height:' |
---|
| 911 | DO i = 1, number_stretch_level_start |
---|
| 912 | WRITE ( io, '(F10.1,A3)', advance='no' ) dz_stretch_level_start(i), ' m,' |
---|
| 913 | ENDDO |
---|
| 914 | WRITE( io, '(/,A)', advance='no') ' Vertical stretching starts at index: ' |
---|
| 915 | DO i = 1, number_stretch_level_start |
---|
| 916 | WRITE ( io, '(I12,A1)', advance='no' ) dz_stretch_level_start_index(i), ',' |
---|
| 917 | ENDDO |
---|
| 918 | WRITE( io, '(/,A)', advance='no') ' Vertical stretching ends at height: ' |
---|
| 919 | DO i = 1, number_stretch_level_start |
---|
| 920 | WRITE ( io, '(F10.1,A3)', advance='no' ) dz_stretch_level_end(i), ' m,' |
---|
| 921 | ENDDO |
---|
| 922 | WRITE( io, '(/,A)', advance='no') ' Vertical stretching ends at index: ' |
---|
| 923 | DO i = 1, number_stretch_level_start |
---|
| 924 | WRITE ( io, '(I12,A1)', advance='no' ) dz_stretch_level_end_index(i), ',' |
---|
| 925 | ENDDO |
---|
| 926 | WRITE( io, '(/,A)', advance='no') ' Factor used for stretching: ' |
---|
| 927 | DO i = 1, number_stretch_level_start |
---|
| 928 | WRITE ( io, '(F12.3,A1)', advance='no' ) dz_stretch_factor_array(i), ',' |
---|
| 929 | ENDDO |
---|
[94] | 930 | ENDIF |
---|
[1] | 931 | ENDIF |
---|
[3065] | 932 | WRITE ( io, 254 ) nx, ny, nzt+1, MIN( nnx, nx+1 ), MIN( nny, ny+1 ), & |
---|
[1] | 933 | MIN( nnz+2, nzt+2 ) |
---|
| 934 | IF ( sloping_surface ) WRITE ( io, 260 ) alpha_surface |
---|
| 935 | |
---|
| 936 | ! |
---|
[1365] | 937 | !-- Large scale forcing and nudging |
---|
[2320] | 938 | IF ( large_scale_forcing ) CALL lsf_nudging_header( io ) |
---|
[3448] | 939 | |
---|
[3347] | 940 | ! |
---|
| 941 | !-- Offline nesting |
---|
| 942 | IF ( nesting_offline ) CALL nesting_offl_header( io ) |
---|
[1365] | 943 | |
---|
| 944 | ! |
---|
| 945 | !-- Profile for the large scale vertial velocity |
---|
| 946 | !-- Building output strings, starting with surface value |
---|
| 947 | IF ( large_scale_subsidence ) THEN |
---|
| 948 | temperatures = ' 0.0' |
---|
| 949 | gradients = '------' |
---|
| 950 | slices = ' 0' |
---|
| 951 | coordinates = ' 0.0' |
---|
| 952 | i = 1 |
---|
| 953 | DO WHILE ( subs_vertical_gradient_level_i(i) /= -9999 ) |
---|
| 954 | |
---|
| 955 | WRITE (coor_chr,'(E10.2,7X)') & |
---|
| 956 | w_subs(subs_vertical_gradient_level_i(i)) |
---|
| 957 | temperatures = TRIM( temperatures ) // ' ' // TRIM( coor_chr ) |
---|
| 958 | |
---|
| 959 | WRITE (coor_chr,'(E10.2,7X)') subs_vertical_gradient(i) |
---|
| 960 | gradients = TRIM( gradients ) // ' ' // TRIM( coor_chr ) |
---|
| 961 | |
---|
| 962 | WRITE (coor_chr,'(I10,7X)') subs_vertical_gradient_level_i(i) |
---|
| 963 | slices = TRIM( slices ) // ' ' // TRIM( coor_chr ) |
---|
| 964 | |
---|
| 965 | WRITE (coor_chr,'(F10.2,7X)') subs_vertical_gradient_level(i) |
---|
| 966 | coordinates = TRIM( coordinates ) // ' ' // TRIM( coor_chr ) |
---|
| 967 | |
---|
| 968 | IF ( i == 10 ) THEN |
---|
| 969 | EXIT |
---|
| 970 | ELSE |
---|
| 971 | i = i + 1 |
---|
| 972 | ENDIF |
---|
| 973 | |
---|
| 974 | ENDDO |
---|
| 975 | |
---|
| 976 | |
---|
| 977 | IF ( .NOT. large_scale_forcing ) THEN |
---|
| 978 | WRITE ( io, 426 ) TRIM( coordinates ), TRIM( temperatures ), & |
---|
| 979 | TRIM( gradients ), TRIM( slices ) |
---|
| 980 | ENDIF |
---|
| 981 | |
---|
| 982 | |
---|
| 983 | ENDIF |
---|
| 984 | |
---|
| 985 | !-- Profile of the geostrophic wind (component ug) |
---|
| 986 | !-- Building output strings |
---|
| 987 | WRITE ( ugcomponent, '(F6.2)' ) ug_surface |
---|
| 988 | gradients = '------' |
---|
| 989 | slices = ' 0' |
---|
| 990 | coordinates = ' 0.0' |
---|
| 991 | i = 1 |
---|
| 992 | DO WHILE ( ug_vertical_gradient_level_ind(i) /= -9999 ) |
---|
| 993 | |
---|
| 994 | WRITE (coor_chr,'(F6.2,1X)') ug(ug_vertical_gradient_level_ind(i)) |
---|
| 995 | ugcomponent = TRIM( ugcomponent ) // ' ' // TRIM( coor_chr ) |
---|
| 996 | |
---|
| 997 | WRITE (coor_chr,'(F6.2,1X)') ug_vertical_gradient(i) |
---|
| 998 | gradients = TRIM( gradients ) // ' ' // TRIM( coor_chr ) |
---|
| 999 | |
---|
| 1000 | WRITE (coor_chr,'(I6,1X)') ug_vertical_gradient_level_ind(i) |
---|
| 1001 | slices = TRIM( slices ) // ' ' // TRIM( coor_chr ) |
---|
| 1002 | |
---|
| 1003 | WRITE (coor_chr,'(F6.1,1X)') ug_vertical_gradient_level(i) |
---|
| 1004 | coordinates = TRIM( coordinates ) // ' ' // TRIM( coor_chr ) |
---|
| 1005 | |
---|
| 1006 | IF ( i == 10 ) THEN |
---|
| 1007 | EXIT |
---|
| 1008 | ELSE |
---|
| 1009 | i = i + 1 |
---|
| 1010 | ENDIF |
---|
| 1011 | |
---|
| 1012 | ENDDO |
---|
| 1013 | |
---|
| 1014 | IF ( .NOT. large_scale_forcing ) THEN |
---|
| 1015 | WRITE ( io, 423 ) TRIM( coordinates ), TRIM( ugcomponent ), & |
---|
| 1016 | TRIM( gradients ), TRIM( slices ) |
---|
| 1017 | ENDIF |
---|
| 1018 | |
---|
| 1019 | !-- Profile of the geostrophic wind (component vg) |
---|
| 1020 | !-- Building output strings |
---|
| 1021 | WRITE ( vgcomponent, '(F6.2)' ) vg_surface |
---|
| 1022 | gradients = '------' |
---|
| 1023 | slices = ' 0' |
---|
| 1024 | coordinates = ' 0.0' |
---|
| 1025 | i = 1 |
---|
| 1026 | DO WHILE ( vg_vertical_gradient_level_ind(i) /= -9999 ) |
---|
| 1027 | |
---|
| 1028 | WRITE (coor_chr,'(F6.2,1X)') vg(vg_vertical_gradient_level_ind(i)) |
---|
| 1029 | vgcomponent = TRIM( vgcomponent ) // ' ' // TRIM( coor_chr ) |
---|
| 1030 | |
---|
| 1031 | WRITE (coor_chr,'(F6.2,1X)') vg_vertical_gradient(i) |
---|
| 1032 | gradients = TRIM( gradients ) // ' ' // TRIM( coor_chr ) |
---|
| 1033 | |
---|
| 1034 | WRITE (coor_chr,'(I6,1X)') vg_vertical_gradient_level_ind(i) |
---|
| 1035 | slices = TRIM( slices ) // ' ' // TRIM( coor_chr ) |
---|
| 1036 | |
---|
| 1037 | WRITE (coor_chr,'(F6.1,1X)') vg_vertical_gradient_level(i) |
---|
| 1038 | coordinates = TRIM( coordinates ) // ' ' // TRIM( coor_chr ) |
---|
| 1039 | |
---|
| 1040 | IF ( i == 10 ) THEN |
---|
| 1041 | EXIT |
---|
| 1042 | ELSE |
---|
| 1043 | i = i + 1 |
---|
| 1044 | ENDIF |
---|
| 1045 | |
---|
| 1046 | ENDDO |
---|
| 1047 | |
---|
| 1048 | IF ( .NOT. large_scale_forcing ) THEN |
---|
| 1049 | WRITE ( io, 424 ) TRIM( coordinates ), TRIM( vgcomponent ), & |
---|
| 1050 | TRIM( gradients ), TRIM( slices ) |
---|
| 1051 | ENDIF |
---|
| 1052 | |
---|
| 1053 | ! |
---|
[1] | 1054 | !-- Topography |
---|
| 1055 | WRITE ( io, 270 ) topography |
---|
| 1056 | SELECT CASE ( TRIM( topography ) ) |
---|
| 1057 | |
---|
| 1058 | CASE ( 'flat' ) |
---|
| 1059 | ! no actions necessary |
---|
| 1060 | |
---|
| 1061 | CASE ( 'single_building' ) |
---|
| 1062 | blx = INT( building_length_x / dx ) |
---|
| 1063 | bly = INT( building_length_y / dy ) |
---|
[1675] | 1064 | bh = MINLOC( ABS( zw - building_height ), 1 ) - 1 |
---|
| 1065 | IF ( ABS( zw(bh ) - building_height ) == & |
---|
| 1066 | ABS( zw(bh+1) - building_height ) ) bh = bh + 1 |
---|
[1] | 1067 | |
---|
[1322] | 1068 | IF ( building_wall_left == 9999999.9_wp ) THEN |
---|
[1] | 1069 | building_wall_left = ( nx + 1 - blx ) / 2 * dx |
---|
| 1070 | ENDIF |
---|
[1353] | 1071 | bxl = INT ( building_wall_left / dx + 0.5_wp ) |
---|
[1] | 1072 | bxr = bxl + blx |
---|
| 1073 | |
---|
[1322] | 1074 | IF ( building_wall_south == 9999999.9_wp ) THEN |
---|
[1] | 1075 | building_wall_south = ( ny + 1 - bly ) / 2 * dy |
---|
| 1076 | ENDIF |
---|
[1353] | 1077 | bys = INT ( building_wall_south / dy + 0.5_wp ) |
---|
[1] | 1078 | byn = bys + bly |
---|
| 1079 | |
---|
| 1080 | WRITE ( io, 271 ) building_length_x, building_length_y, & |
---|
| 1081 | building_height, bxl, bxr, bys, byn |
---|
| 1082 | |
---|
[240] | 1083 | CASE ( 'single_street_canyon' ) |
---|
[1675] | 1084 | ch = MINLOC( ABS( zw - canyon_height ), 1 ) - 1 |
---|
| 1085 | IF ( ABS( zw(ch ) - canyon_height ) == & |
---|
| 1086 | ABS( zw(ch+1) - canyon_height ) ) ch = ch + 1 |
---|
[1322] | 1087 | IF ( canyon_width_x /= 9999999.9_wp ) THEN |
---|
[240] | 1088 | ! |
---|
| 1089 | !-- Street canyon in y direction |
---|
| 1090 | cwx = NINT( canyon_width_x / dx ) |
---|
[1322] | 1091 | IF ( canyon_wall_left == 9999999.9_wp ) THEN |
---|
[240] | 1092 | canyon_wall_left = ( nx + 1 - cwx ) / 2 * dx |
---|
| 1093 | ENDIF |
---|
| 1094 | cxl = NINT( canyon_wall_left / dx ) |
---|
| 1095 | cxr = cxl + cwx |
---|
| 1096 | WRITE ( io, 272 ) 'y', canyon_height, ch, 'u', cxl, cxr |
---|
| 1097 | |
---|
[1322] | 1098 | ELSEIF ( canyon_width_y /= 9999999.9_wp ) THEN |
---|
[240] | 1099 | ! |
---|
| 1100 | !-- Street canyon in x direction |
---|
| 1101 | cwy = NINT( canyon_width_y / dy ) |
---|
[1322] | 1102 | IF ( canyon_wall_south == 9999999.9_wp ) THEN |
---|
[240] | 1103 | canyon_wall_south = ( ny + 1 - cwy ) / 2 * dy |
---|
| 1104 | ENDIF |
---|
| 1105 | cys = NINT( canyon_wall_south / dy ) |
---|
| 1106 | cyn = cys + cwy |
---|
| 1107 | WRITE ( io, 272 ) 'x', canyon_height, ch, 'v', cys, cyn |
---|
| 1108 | ENDIF |
---|
| 1109 | |
---|
[2232] | 1110 | CASE ( 'tunnel' ) |
---|
| 1111 | IF ( tunnel_width_x /= 9999999.9_wp ) THEN |
---|
| 1112 | ! |
---|
| 1113 | !-- Tunnel axis in y direction |
---|
| 1114 | IF ( tunnel_length == 9999999.9_wp .OR. & |
---|
| 1115 | tunnel_length >= ( nx + 1 ) * dx ) THEN |
---|
| 1116 | WRITE ( io, 273 ) 'y', tunnel_height, tunnel_wall_depth, & |
---|
| 1117 | tunnel_width_x |
---|
| 1118 | ELSE |
---|
| 1119 | WRITE ( io, 274 ) 'y', tunnel_height, tunnel_wall_depth, & |
---|
| 1120 | tunnel_width_x, tunnel_length |
---|
| 1121 | ENDIF |
---|
| 1122 | |
---|
| 1123 | ELSEIF ( tunnel_width_y /= 9999999.9_wp ) THEN |
---|
| 1124 | ! |
---|
| 1125 | !-- Tunnel axis in x direction |
---|
| 1126 | IF ( tunnel_length == 9999999.9_wp .OR. & |
---|
| 1127 | tunnel_length >= ( ny + 1 ) * dy ) THEN |
---|
| 1128 | WRITE ( io, 273 ) 'x', tunnel_height, tunnel_wall_depth, & |
---|
| 1129 | tunnel_width_y |
---|
| 1130 | ELSE |
---|
| 1131 | WRITE ( io, 274 ) 'x', tunnel_height, tunnel_wall_depth, & |
---|
| 1132 | tunnel_width_y, tunnel_length |
---|
| 1133 | ENDIF |
---|
| 1134 | ENDIF |
---|
| 1135 | |
---|
[1] | 1136 | END SELECT |
---|
| 1137 | |
---|
[256] | 1138 | IF ( TRIM( topography ) /= 'flat' ) THEN |
---|
| 1139 | IF ( TRIM( topography_grid_convention ) == ' ' ) THEN |
---|
| 1140 | IF ( TRIM( topography ) == 'single_building' .OR. & |
---|
| 1141 | TRIM( topography ) == 'single_street_canyon' ) THEN |
---|
| 1142 | WRITE ( io, 278 ) |
---|
| 1143 | ELSEIF ( TRIM( topography ) == 'read_from_file' ) THEN |
---|
| 1144 | WRITE ( io, 279 ) |
---|
| 1145 | ENDIF |
---|
| 1146 | ELSEIF ( TRIM( topography_grid_convention ) == 'cell_edge' ) THEN |
---|
| 1147 | WRITE ( io, 278 ) |
---|
| 1148 | ELSEIF ( TRIM( topography_grid_convention ) == 'cell_center' ) THEN |
---|
| 1149 | WRITE ( io, 279 ) |
---|
| 1150 | ENDIF |
---|
| 1151 | ENDIF |
---|
| 1152 | |
---|
[2550] | 1153 | !-- Complex terrain |
---|
| 1154 | IF ( complex_terrain ) THEN |
---|
| 1155 | WRITE( io, 280 ) |
---|
| 1156 | IF ( turbulent_inflow ) THEN |
---|
[2698] | 1157 | WRITE( io, 281 ) zu( get_topography_top_index_ji( 0, 0, 's' ) ) |
---|
[2550] | 1158 | ENDIF |
---|
| 1159 | IF ( TRIM( initializing_actions ) == 'cyclic_fill' ) THEN |
---|
| 1160 | WRITE( io, 282 ) |
---|
| 1161 | ENDIF |
---|
| 1162 | ENDIF |
---|
| 1163 | |
---|
[3302] | 1164 | ! |
---|
| 1165 | !-- Header information from other modules |
---|
[3525] | 1166 | IF ( biometeorology ) CALL bio_header ( io ) |
---|
[3302] | 1167 | IF ( gust_module_enabled ) CALL gust_header( io ) |
---|
| 1168 | IF ( land_surface ) CALL lsm_header( io ) |
---|
| 1169 | IF ( ocean_mode ) CALL ocean_header( io ) |
---|
| 1170 | IF ( plant_canopy ) CALL pcm_header( io ) |
---|
| 1171 | IF ( radiation ) CALL radiation_header( io ) |
---|
| 1172 | IF ( syn_turb_gen ) CALL stg_header( io ) |
---|
[2259] | 1173 | |
---|
[3298] | 1174 | IF ( air_chemistry ) CALL chem_header ( io ) |
---|
[1551] | 1175 | ! |
---|
[1] | 1176 | !-- Boundary conditions |
---|
| 1177 | IF ( ibc_p_b == 0 ) THEN |
---|
[1826] | 1178 | r_lower = 'p(0) = 0 |' |
---|
[1] | 1179 | ELSEIF ( ibc_p_b == 1 ) THEN |
---|
[1826] | 1180 | r_lower = 'p(0) = p(1) |' |
---|
[1] | 1181 | ENDIF |
---|
| 1182 | IF ( ibc_p_t == 0 ) THEN |
---|
[1826] | 1183 | r_upper = 'p(nzt+1) = 0 |' |
---|
[1] | 1184 | ELSE |
---|
[1826] | 1185 | r_upper = 'p(nzt+1) = p(nzt) |' |
---|
[1] | 1186 | ENDIF |
---|
| 1187 | |
---|
| 1188 | IF ( ibc_uv_b == 0 ) THEN |
---|
[1826] | 1189 | r_lower = TRIM( r_lower ) // ' uv(0) = -uv(1) |' |
---|
[1] | 1190 | ELSE |
---|
[1826] | 1191 | r_lower = TRIM( r_lower ) // ' uv(0) = uv(1) |' |
---|
[1] | 1192 | ENDIF |
---|
[132] | 1193 | IF ( TRIM( bc_uv_t ) == 'dirichlet_0' ) THEN |
---|
[1826] | 1194 | r_upper = TRIM( r_upper ) // ' uv(nzt+1) = 0 |' |
---|
[132] | 1195 | ELSEIF ( ibc_uv_t == 0 ) THEN |
---|
[1826] | 1196 | r_upper = TRIM( r_upper ) // ' uv(nzt+1) = ug(nzt+1), vg(nzt+1) |' |
---|
[1] | 1197 | ELSE |
---|
[1826] | 1198 | r_upper = TRIM( r_upper ) // ' uv(nzt+1) = uv(nzt) |' |
---|
[1] | 1199 | ENDIF |
---|
| 1200 | |
---|
| 1201 | IF ( ibc_pt_b == 0 ) THEN |
---|
[1551] | 1202 | IF ( land_surface ) THEN |
---|
[1826] | 1203 | r_lower = TRIM( r_lower ) // ' pt(0) = from soil model' |
---|
[1551] | 1204 | ELSE |
---|
[1826] | 1205 | r_lower = TRIM( r_lower ) // ' pt(0) = pt_surface' |
---|
[1551] | 1206 | ENDIF |
---|
[102] | 1207 | ELSEIF ( ibc_pt_b == 1 ) THEN |
---|
[1826] | 1208 | r_lower = TRIM( r_lower ) // ' pt(0) = pt(1)' |
---|
[102] | 1209 | ELSEIF ( ibc_pt_b == 2 ) THEN |
---|
[1826] | 1210 | r_lower = TRIM( r_lower ) // ' pt(0) = from coupled model' |
---|
[1] | 1211 | ENDIF |
---|
| 1212 | IF ( ibc_pt_t == 0 ) THEN |
---|
[1826] | 1213 | r_upper = TRIM( r_upper ) // ' pt(nzt+1) = pt_top' |
---|
[19] | 1214 | ELSEIF( ibc_pt_t == 1 ) THEN |
---|
[1826] | 1215 | r_upper = TRIM( r_upper ) // ' pt(nzt+1) = pt(nzt)' |
---|
[19] | 1216 | ELSEIF( ibc_pt_t == 2 ) THEN |
---|
[1826] | 1217 | r_upper = TRIM( r_upper ) // ' pt(nzt+1) = pt(nzt) + dpt/dz_ini' |
---|
[667] | 1218 | |
---|
[1] | 1219 | ENDIF |
---|
| 1220 | |
---|
[1826] | 1221 | WRITE ( io, 300 ) r_lower, r_upper |
---|
[1] | 1222 | |
---|
| 1223 | IF ( .NOT. constant_diffusion ) THEN |
---|
| 1224 | IF ( ibc_e_b == 1 ) THEN |
---|
[1826] | 1225 | r_lower = 'e(0) = e(1)' |
---|
[1] | 1226 | ELSE |
---|
[1826] | 1227 | r_lower = 'e(0) = e(1) = (u*/0.1)**2' |
---|
[1] | 1228 | ENDIF |
---|
[1826] | 1229 | r_upper = 'e(nzt+1) = e(nzt) = e(nzt-1)' |
---|
[1] | 1230 | |
---|
[1826] | 1231 | WRITE ( io, 301 ) 'e', r_lower, r_upper |
---|
[1] | 1232 | |
---|
| 1233 | ENDIF |
---|
| 1234 | |
---|
[3294] | 1235 | IF ( ocean_mode ) THEN |
---|
[1826] | 1236 | r_lower = 'sa(0) = sa(1)' |
---|
[97] | 1237 | IF ( ibc_sa_t == 0 ) THEN |
---|
[1826] | 1238 | r_upper = 'sa(nzt+1) = sa_surface' |
---|
[1] | 1239 | ELSE |
---|
[1826] | 1240 | r_upper = 'sa(nzt+1) = sa(nzt)' |
---|
[1] | 1241 | ENDIF |
---|
[1826] | 1242 | WRITE ( io, 301 ) 'sa', r_lower, r_upper |
---|
[97] | 1243 | ENDIF |
---|
[1] | 1244 | |
---|
[97] | 1245 | IF ( humidity ) THEN |
---|
| 1246 | IF ( ibc_q_b == 0 ) THEN |
---|
[1551] | 1247 | IF ( land_surface ) THEN |
---|
[1826] | 1248 | r_lower = 'q(0) = from soil model' |
---|
[1551] | 1249 | ELSE |
---|
[1826] | 1250 | r_lower = 'q(0) = q_surface' |
---|
[1551] | 1251 | ENDIF |
---|
| 1252 | |
---|
[97] | 1253 | ELSE |
---|
[1992] | 1254 | r_lower = 'q(0) = q(1)' |
---|
[97] | 1255 | ENDIF |
---|
| 1256 | IF ( ibc_q_t == 0 ) THEN |
---|
[1992] | 1257 | r_upper = 'q(nzt+1) = q_top' |
---|
[97] | 1258 | ELSE |
---|
[1992] | 1259 | r_upper = 'q(nzt+1) = q(nzt) + dq/dz' |
---|
[97] | 1260 | ENDIF |
---|
[1826] | 1261 | WRITE ( io, 301 ) 'q', r_lower, r_upper |
---|
[97] | 1262 | ENDIF |
---|
[1] | 1263 | |
---|
[97] | 1264 | IF ( passive_scalar ) THEN |
---|
[1960] | 1265 | IF ( ibc_s_b == 0 ) THEN |
---|
[1992] | 1266 | r_lower = 's(0) = s_surface' |
---|
[97] | 1267 | ELSE |
---|
[1992] | 1268 | r_lower = 's(0) = s(1)' |
---|
[97] | 1269 | ENDIF |
---|
[1960] | 1270 | IF ( ibc_s_t == 0 ) THEN |
---|
[1992] | 1271 | r_upper = 's(nzt+1) = s_top' |
---|
| 1272 | ELSEIF ( ibc_s_t == 1 ) THEN |
---|
| 1273 | r_upper = 's(nzt+1) = s(nzt)' |
---|
| 1274 | ELSEIF ( ibc_s_t == 2 ) THEN |
---|
| 1275 | r_upper = 's(nzt+1) = s(nzt) + ds/dz' |
---|
[97] | 1276 | ENDIF |
---|
[1826] | 1277 | WRITE ( io, 301 ) 's', r_lower, r_upper |
---|
[1] | 1278 | ENDIF |
---|
| 1279 | |
---|
| 1280 | IF ( use_surface_fluxes ) THEN |
---|
| 1281 | WRITE ( io, 303 ) |
---|
| 1282 | IF ( constant_heatflux ) THEN |
---|
[1299] | 1283 | IF ( large_scale_forcing .AND. lsf_surf ) THEN |
---|
[2232] | 1284 | IF ( surf_def_h(0)%ns >= 1 ) WRITE ( io, 306 ) surf_def_h(0)%shf(1) |
---|
[1241] | 1285 | ELSE |
---|
| 1286 | WRITE ( io, 306 ) surface_heatflux |
---|
| 1287 | ENDIF |
---|
[1] | 1288 | IF ( random_heatflux ) WRITE ( io, 307 ) |
---|
| 1289 | ENDIF |
---|
[75] | 1290 | IF ( humidity .AND. constant_waterflux ) THEN |
---|
[1299] | 1291 | IF ( large_scale_forcing .AND. lsf_surf ) THEN |
---|
[2232] | 1292 | WRITE ( io, 311 ) surf_def_h(0)%qsws(1) |
---|
[1241] | 1293 | ELSE |
---|
| 1294 | WRITE ( io, 311 ) surface_waterflux |
---|
| 1295 | ENDIF |
---|
[1] | 1296 | ENDIF |
---|
[1960] | 1297 | IF ( passive_scalar .AND. constant_scalarflux ) THEN |
---|
| 1298 | WRITE ( io, 313 ) surface_scalarflux |
---|
[1] | 1299 | ENDIF |
---|
| 1300 | ENDIF |
---|
| 1301 | |
---|
[19] | 1302 | IF ( use_top_fluxes ) THEN |
---|
| 1303 | WRITE ( io, 304 ) |
---|
[102] | 1304 | IF ( coupling_mode == 'uncoupled' ) THEN |
---|
[151] | 1305 | WRITE ( io, 320 ) top_momentumflux_u, top_momentumflux_v |
---|
[102] | 1306 | IF ( constant_top_heatflux ) THEN |
---|
| 1307 | WRITE ( io, 306 ) top_heatflux |
---|
| 1308 | ENDIF |
---|
| 1309 | ELSEIF ( coupling_mode == 'ocean_to_atmosphere' ) THEN |
---|
| 1310 | WRITE ( io, 316 ) |
---|
[19] | 1311 | ENDIF |
---|
[3294] | 1312 | IF ( ocean_mode .AND. constant_top_salinityflux ) & |
---|
[97] | 1313 | WRITE ( io, 309 ) top_salinityflux |
---|
[1960] | 1314 | IF ( humidity ) WRITE ( io, 315 ) |
---|
[1992] | 1315 | IF ( passive_scalar .AND. constant_top_scalarflux ) & |
---|
| 1316 | WRITE ( io, 302 ) top_scalarflux |
---|
[19] | 1317 | ENDIF |
---|
| 1318 | |
---|
[1691] | 1319 | IF ( constant_flux_layer ) THEN |
---|
| 1320 | WRITE ( io, 305 ) (zu(1)-zu(0)), roughness_length, & |
---|
| 1321 | z0h_factor*roughness_length, kappa, & |
---|
| 1322 | zeta_min, zeta_max |
---|
[1] | 1323 | IF ( .NOT. constant_heatflux ) WRITE ( io, 308 ) |
---|
[75] | 1324 | IF ( humidity .AND. .NOT. constant_waterflux ) THEN |
---|
[1] | 1325 | WRITE ( io, 312 ) |
---|
| 1326 | ENDIF |
---|
[1960] | 1327 | IF ( passive_scalar .AND. .NOT. constant_scalarflux ) THEN |
---|
[1] | 1328 | WRITE ( io, 314 ) |
---|
| 1329 | ENDIF |
---|
| 1330 | ELSE |
---|
| 1331 | IF ( INDEX(initializing_actions, 'set_1d-model_profiles') /= 0 ) THEN |
---|
[1691] | 1332 | WRITE ( io, 310 ) zeta_min, zeta_max |
---|
[1] | 1333 | ENDIF |
---|
| 1334 | ENDIF |
---|
| 1335 | |
---|
| 1336 | WRITE ( io, 317 ) bc_lr, bc_ns |
---|
[707] | 1337 | IF ( .NOT. bc_lr_cyc .OR. .NOT. bc_ns_cyc ) THEN |
---|
[1159] | 1338 | WRITE ( io, 318 ) use_cmax, pt_damping_width, pt_damping_factor |
---|
[151] | 1339 | IF ( turbulent_inflow ) THEN |
---|
[1560] | 1340 | IF ( .NOT. recycling_yshift ) THEN |
---|
| 1341 | WRITE ( io, 319 ) recycling_width, recycling_plane, & |
---|
| 1342 | inflow_damping_height, inflow_damping_width |
---|
| 1343 | ELSE |
---|
| 1344 | WRITE ( io, 322 ) recycling_width, recycling_plane, & |
---|
| 1345 | inflow_damping_height, inflow_damping_width |
---|
| 1346 | END IF |
---|
[151] | 1347 | ENDIF |
---|
[2050] | 1348 | IF ( turbulent_outflow ) THEN |
---|
| 1349 | WRITE ( io, 323 ) outflow_source_plane, INT(outflow_source_plane/dx) |
---|
| 1350 | ENDIF |
---|
[1] | 1351 | ENDIF |
---|
| 1352 | |
---|
| 1353 | ! |
---|
[1365] | 1354 | !-- Initial Profiles |
---|
| 1355 | WRITE ( io, 321 ) |
---|
| 1356 | ! |
---|
| 1357 | !-- Initial wind profiles |
---|
| 1358 | IF ( u_profile(1) /= 9999999.9_wp ) WRITE ( io, 427 ) |
---|
| 1359 | |
---|
| 1360 | ! |
---|
| 1361 | !-- Initial temperature profile |
---|
| 1362 | !-- Building output strings, starting with surface temperature |
---|
| 1363 | WRITE ( temperatures, '(F6.2)' ) pt_surface |
---|
| 1364 | gradients = '------' |
---|
| 1365 | slices = ' 0' |
---|
| 1366 | coordinates = ' 0.0' |
---|
| 1367 | i = 1 |
---|
| 1368 | DO WHILE ( pt_vertical_gradient_level_ind(i) /= -9999 ) |
---|
| 1369 | |
---|
| 1370 | WRITE (coor_chr,'(F7.2)') pt_init(pt_vertical_gradient_level_ind(i)) |
---|
| 1371 | temperatures = TRIM( temperatures ) // ' ' // TRIM( coor_chr ) |
---|
| 1372 | |
---|
| 1373 | WRITE (coor_chr,'(F7.2)') pt_vertical_gradient(i) |
---|
| 1374 | gradients = TRIM( gradients ) // ' ' // TRIM( coor_chr ) |
---|
| 1375 | |
---|
| 1376 | WRITE (coor_chr,'(I7)') pt_vertical_gradient_level_ind(i) |
---|
| 1377 | slices = TRIM( slices ) // ' ' // TRIM( coor_chr ) |
---|
| 1378 | |
---|
| 1379 | WRITE (coor_chr,'(F7.1)') pt_vertical_gradient_level(i) |
---|
| 1380 | coordinates = TRIM( coordinates ) // ' ' // TRIM( coor_chr ) |
---|
| 1381 | |
---|
| 1382 | IF ( i == 10 ) THEN |
---|
| 1383 | EXIT |
---|
| 1384 | ELSE |
---|
| 1385 | i = i + 1 |
---|
| 1386 | ENDIF |
---|
| 1387 | |
---|
| 1388 | ENDDO |
---|
| 1389 | |
---|
| 1390 | IF ( .NOT. nudging ) THEN |
---|
| 1391 | WRITE ( io, 420 ) TRIM( coordinates ), TRIM( temperatures ), & |
---|
| 1392 | TRIM( gradients ), TRIM( slices ) |
---|
| 1393 | ELSE |
---|
| 1394 | WRITE ( io, 428 ) |
---|
| 1395 | ENDIF |
---|
| 1396 | |
---|
| 1397 | ! |
---|
| 1398 | !-- Initial humidity profile |
---|
| 1399 | !-- Building output strings, starting with surface humidity |
---|
[1960] | 1400 | IF ( humidity ) THEN |
---|
[1365] | 1401 | WRITE ( temperatures, '(E8.1)' ) q_surface |
---|
| 1402 | gradients = '--------' |
---|
| 1403 | slices = ' 0' |
---|
| 1404 | coordinates = ' 0.0' |
---|
| 1405 | i = 1 |
---|
| 1406 | DO WHILE ( q_vertical_gradient_level_ind(i) /= -9999 ) |
---|
| 1407 | |
---|
| 1408 | WRITE (coor_chr,'(E8.1,4X)') q_init(q_vertical_gradient_level_ind(i)) |
---|
| 1409 | temperatures = TRIM( temperatures ) // ' ' // TRIM( coor_chr ) |
---|
| 1410 | |
---|
| 1411 | WRITE (coor_chr,'(E8.1,4X)') q_vertical_gradient(i) |
---|
| 1412 | gradients = TRIM( gradients ) // ' ' // TRIM( coor_chr ) |
---|
| 1413 | |
---|
| 1414 | WRITE (coor_chr,'(I8,4X)') q_vertical_gradient_level_ind(i) |
---|
| 1415 | slices = TRIM( slices ) // ' ' // TRIM( coor_chr ) |
---|
| 1416 | |
---|
| 1417 | WRITE (coor_chr,'(F8.1,4X)') q_vertical_gradient_level(i) |
---|
| 1418 | coordinates = TRIM( coordinates ) // ' ' // TRIM( coor_chr ) |
---|
| 1419 | |
---|
| 1420 | IF ( i == 10 ) THEN |
---|
| 1421 | EXIT |
---|
| 1422 | ELSE |
---|
| 1423 | i = i + 1 |
---|
| 1424 | ENDIF |
---|
| 1425 | |
---|
| 1426 | ENDDO |
---|
| 1427 | |
---|
[1960] | 1428 | IF ( .NOT. nudging ) THEN |
---|
| 1429 | WRITE ( io, 421 ) TRIM( coordinates ), TRIM( temperatures ), & |
---|
[1365] | 1430 | TRIM( gradients ), TRIM( slices ) |
---|
| 1431 | ENDIF |
---|
| 1432 | ENDIF |
---|
[1960] | 1433 | ! |
---|
| 1434 | !-- Initial scalar profile |
---|
| 1435 | !-- Building output strings, starting with surface humidity |
---|
| 1436 | IF ( passive_scalar ) THEN |
---|
| 1437 | WRITE ( temperatures, '(E8.1)' ) s_surface |
---|
| 1438 | gradients = '--------' |
---|
| 1439 | slices = ' 0' |
---|
| 1440 | coordinates = ' 0.0' |
---|
| 1441 | i = 1 |
---|
| 1442 | DO WHILE ( s_vertical_gradient_level_ind(i) /= -9999 ) |
---|
| 1443 | |
---|
[2073] | 1444 | WRITE (coor_chr,'(E8.1,4X)') s_init(s_vertical_gradient_level_ind(i)) |
---|
[1960] | 1445 | temperatures = TRIM( temperatures ) // ' ' // TRIM( coor_chr ) |
---|
[1365] | 1446 | |
---|
[1960] | 1447 | WRITE (coor_chr,'(E8.1,4X)') s_vertical_gradient(i) |
---|
| 1448 | gradients = TRIM( gradients ) // ' ' // TRIM( coor_chr ) |
---|
| 1449 | |
---|
| 1450 | WRITE (coor_chr,'(I8,4X)') s_vertical_gradient_level_ind(i) |
---|
| 1451 | slices = TRIM( slices ) // ' ' // TRIM( coor_chr ) |
---|
| 1452 | |
---|
| 1453 | WRITE (coor_chr,'(F8.1,4X)') s_vertical_gradient_level(i) |
---|
| 1454 | coordinates = TRIM( coordinates ) // ' ' // TRIM( coor_chr ) |
---|
| 1455 | |
---|
| 1456 | IF ( i == 10 ) THEN |
---|
| 1457 | EXIT |
---|
| 1458 | ELSE |
---|
| 1459 | i = i + 1 |
---|
| 1460 | ENDIF |
---|
| 1461 | |
---|
| 1462 | ENDDO |
---|
| 1463 | |
---|
| 1464 | WRITE ( io, 422 ) TRIM( coordinates ), TRIM( temperatures ), & |
---|
| 1465 | TRIM( gradients ), TRIM( slices ) |
---|
| 1466 | ENDIF |
---|
| 1467 | |
---|
[1365] | 1468 | ! |
---|
| 1469 | !-- Initial salinity profile |
---|
| 1470 | !-- Building output strings, starting with surface salinity |
---|
[3294] | 1471 | IF ( ocean_mode ) THEN |
---|
[1365] | 1472 | WRITE ( temperatures, '(F6.2)' ) sa_surface |
---|
| 1473 | gradients = '------' |
---|
| 1474 | slices = ' 0' |
---|
| 1475 | coordinates = ' 0.0' |
---|
| 1476 | i = 1 |
---|
| 1477 | DO WHILE ( sa_vertical_gradient_level_ind(i) /= -9999 ) |
---|
| 1478 | |
---|
| 1479 | WRITE (coor_chr,'(F7.2)') sa_init(sa_vertical_gradient_level_ind(i)) |
---|
| 1480 | temperatures = TRIM( temperatures ) // ' ' // TRIM( coor_chr ) |
---|
| 1481 | |
---|
| 1482 | WRITE (coor_chr,'(F7.2)') sa_vertical_gradient(i) |
---|
| 1483 | gradients = TRIM( gradients ) // ' ' // TRIM( coor_chr ) |
---|
| 1484 | |
---|
| 1485 | WRITE (coor_chr,'(I7)') sa_vertical_gradient_level_ind(i) |
---|
| 1486 | slices = TRIM( slices ) // ' ' // TRIM( coor_chr ) |
---|
| 1487 | |
---|
| 1488 | WRITE (coor_chr,'(F7.1)') sa_vertical_gradient_level(i) |
---|
| 1489 | coordinates = TRIM( coordinates ) // ' ' // TRIM( coor_chr ) |
---|
| 1490 | |
---|
| 1491 | IF ( i == 10 ) THEN |
---|
| 1492 | EXIT |
---|
| 1493 | ELSE |
---|
| 1494 | i = i + 1 |
---|
| 1495 | ENDIF |
---|
| 1496 | |
---|
| 1497 | ENDDO |
---|
| 1498 | |
---|
| 1499 | WRITE ( io, 425 ) TRIM( coordinates ), TRIM( temperatures ), & |
---|
| 1500 | TRIM( gradients ), TRIM( slices ) |
---|
| 1501 | ENDIF |
---|
| 1502 | |
---|
| 1503 | |
---|
| 1504 | ! |
---|
[1] | 1505 | !-- Listing of 1D-profiles |
---|
[151] | 1506 | WRITE ( io, 325 ) dt_dopr_listing |
---|
[1353] | 1507 | IF ( averaging_interval_pr /= 0.0_wp ) THEN |
---|
[151] | 1508 | WRITE ( io, 326 ) averaging_interval_pr, dt_averaging_input_pr |
---|
[1] | 1509 | ENDIF |
---|
| 1510 | |
---|
| 1511 | ! |
---|
| 1512 | !-- DATA output |
---|
| 1513 | WRITE ( io, 330 ) |
---|
[1353] | 1514 | IF ( averaging_interval_pr /= 0.0_wp ) THEN |
---|
[151] | 1515 | WRITE ( io, 326 ) averaging_interval_pr, dt_averaging_input_pr |
---|
[1] | 1516 | ENDIF |
---|
| 1517 | |
---|
| 1518 | ! |
---|
| 1519 | !-- 1D-profiles |
---|
[346] | 1520 | dopr_chr = 'Profile:' |
---|
[1] | 1521 | IF ( dopr_n /= 0 ) THEN |
---|
| 1522 | WRITE ( io, 331 ) |
---|
| 1523 | |
---|
| 1524 | output_format = '' |
---|
[1783] | 1525 | output_format = netcdf_data_format_string |
---|
| 1526 | IF ( netcdf_deflate == 0 ) THEN |
---|
| 1527 | WRITE ( io, 344 ) output_format |
---|
| 1528 | ELSE |
---|
| 1529 | WRITE ( io, 354 ) TRIM( output_format ), netcdf_deflate |
---|
| 1530 | ENDIF |
---|
[1] | 1531 | |
---|
| 1532 | DO i = 1, dopr_n |
---|
| 1533 | dopr_chr = TRIM( dopr_chr ) // ' ' // TRIM( data_output_pr(i) ) // ',' |
---|
| 1534 | IF ( LEN_TRIM( dopr_chr ) >= 60 ) THEN |
---|
| 1535 | WRITE ( io, 332 ) dopr_chr |
---|
| 1536 | dopr_chr = ' :' |
---|
| 1537 | ENDIF |
---|
| 1538 | ENDDO |
---|
| 1539 | |
---|
| 1540 | IF ( dopr_chr /= '' ) THEN |
---|
| 1541 | WRITE ( io, 332 ) dopr_chr |
---|
| 1542 | ENDIF |
---|
| 1543 | WRITE ( io, 333 ) dt_dopr, averaging_interval_pr, dt_averaging_input_pr |
---|
[1353] | 1544 | IF ( skip_time_dopr /= 0.0_wp ) WRITE ( io, 339 ) skip_time_dopr |
---|
[1] | 1545 | ENDIF |
---|
| 1546 | |
---|
| 1547 | ! |
---|
| 1548 | !-- 2D-arrays |
---|
| 1549 | DO av = 0, 1 |
---|
| 1550 | |
---|
| 1551 | i = 1 |
---|
| 1552 | do2d_xy = '' |
---|
| 1553 | do2d_xz = '' |
---|
| 1554 | do2d_yz = '' |
---|
| 1555 | DO WHILE ( do2d(av,i) /= ' ' ) |
---|
| 1556 | |
---|
| 1557 | l = MAX( 2, LEN_TRIM( do2d(av,i) ) ) |
---|
| 1558 | do2d_mode = do2d(av,i)(l-1:l) |
---|
| 1559 | |
---|
| 1560 | SELECT CASE ( do2d_mode ) |
---|
| 1561 | CASE ( 'xy' ) |
---|
| 1562 | ll = LEN_TRIM( do2d_xy ) |
---|
| 1563 | do2d_xy = do2d_xy(1:ll) // ' ' // do2d(av,i)(1:l-3) // ',' |
---|
| 1564 | CASE ( 'xz' ) |
---|
| 1565 | ll = LEN_TRIM( do2d_xz ) |
---|
| 1566 | do2d_xz = do2d_xz(1:ll) // ' ' // do2d(av,i)(1:l-3) // ',' |
---|
| 1567 | CASE ( 'yz' ) |
---|
| 1568 | ll = LEN_TRIM( do2d_yz ) |
---|
| 1569 | do2d_yz = do2d_yz(1:ll) // ' ' // do2d(av,i)(1:l-3) // ',' |
---|
| 1570 | END SELECT |
---|
| 1571 | |
---|
| 1572 | i = i + 1 |
---|
| 1573 | |
---|
| 1574 | ENDDO |
---|
| 1575 | |
---|
| 1576 | IF ( ( ( do2d_xy /= '' .AND. section(1,1) /= -9999 ) .OR. & |
---|
| 1577 | ( do2d_xz /= '' .AND. section(1,2) /= -9999 ) .OR. & |
---|
[1327] | 1578 | ( do2d_yz /= '' .AND. section(1,3) /= -9999 ) ) ) THEN |
---|
[1] | 1579 | |
---|
| 1580 | IF ( av == 0 ) THEN |
---|
| 1581 | WRITE ( io, 334 ) '' |
---|
| 1582 | ELSE |
---|
| 1583 | WRITE ( io, 334 ) '(time-averaged)' |
---|
| 1584 | ENDIF |
---|
| 1585 | |
---|
| 1586 | IF ( do2d_at_begin ) THEN |
---|
| 1587 | begin_chr = 'and at the start' |
---|
| 1588 | ELSE |
---|
| 1589 | begin_chr = '' |
---|
| 1590 | ENDIF |
---|
| 1591 | |
---|
| 1592 | output_format = '' |
---|
[1783] | 1593 | output_format = netcdf_data_format_string |
---|
| 1594 | IF ( netcdf_deflate == 0 ) THEN |
---|
| 1595 | WRITE ( io, 344 ) output_format |
---|
| 1596 | ELSE |
---|
| 1597 | WRITE ( io, 354 ) TRIM( output_format ), netcdf_deflate |
---|
| 1598 | ENDIF |
---|
[1] | 1599 | |
---|
| 1600 | IF ( do2d_xy /= '' .AND. section(1,1) /= -9999 ) THEN |
---|
| 1601 | i = 1 |
---|
| 1602 | slices = '/' |
---|
| 1603 | coordinates = '/' |
---|
| 1604 | ! |
---|
[1551] | 1605 | !-- Building strings with index and coordinate information of the |
---|
[1] | 1606 | !-- slices |
---|
| 1607 | DO WHILE ( section(i,1) /= -9999 ) |
---|
| 1608 | |
---|
| 1609 | WRITE (section_chr,'(I5)') section(i,1) |
---|
| 1610 | section_chr = ADJUSTL( section_chr ) |
---|
| 1611 | slices = TRIM( slices ) // TRIM( section_chr ) // '/' |
---|
| 1612 | |
---|
[206] | 1613 | IF ( section(i,1) == -1 ) THEN |
---|
[1353] | 1614 | WRITE (coor_chr,'(F10.1)') -1.0_wp |
---|
[206] | 1615 | ELSE |
---|
| 1616 | WRITE (coor_chr,'(F10.1)') zu(section(i,1)) |
---|
| 1617 | ENDIF |
---|
[1] | 1618 | coor_chr = ADJUSTL( coor_chr ) |
---|
| 1619 | coordinates = TRIM( coordinates ) // TRIM( coor_chr ) // '/' |
---|
| 1620 | |
---|
| 1621 | i = i + 1 |
---|
| 1622 | ENDDO |
---|
| 1623 | IF ( av == 0 ) THEN |
---|
| 1624 | WRITE ( io, 335 ) 'XY', do2d_xy, dt_do2d_xy, & |
---|
| 1625 | TRIM( begin_chr ), 'k', TRIM( slices ), & |
---|
| 1626 | TRIM( coordinates ) |
---|
[1353] | 1627 | IF ( skip_time_do2d_xy /= 0.0_wp ) THEN |
---|
[1] | 1628 | WRITE ( io, 339 ) skip_time_do2d_xy |
---|
| 1629 | ENDIF |
---|
| 1630 | ELSE |
---|
| 1631 | WRITE ( io, 342 ) 'XY', do2d_xy, dt_data_output_av, & |
---|
| 1632 | TRIM( begin_chr ), averaging_interval, & |
---|
| 1633 | dt_averaging_input, 'k', TRIM( slices ), & |
---|
| 1634 | TRIM( coordinates ) |
---|
[1353] | 1635 | IF ( skip_time_data_output_av /= 0.0_wp ) THEN |
---|
[1] | 1636 | WRITE ( io, 339 ) skip_time_data_output_av |
---|
| 1637 | ENDIF |
---|
| 1638 | ENDIF |
---|
[1308] | 1639 | IF ( netcdf_data_format > 4 ) THEN |
---|
| 1640 | WRITE ( io, 352 ) ntdim_2d_xy(av) |
---|
| 1641 | ELSE |
---|
| 1642 | WRITE ( io, 353 ) |
---|
| 1643 | ENDIF |
---|
[1] | 1644 | ENDIF |
---|
| 1645 | |
---|
| 1646 | IF ( do2d_xz /= '' .AND. section(1,2) /= -9999 ) THEN |
---|
| 1647 | i = 1 |
---|
| 1648 | slices = '/' |
---|
| 1649 | coordinates = '/' |
---|
| 1650 | ! |
---|
[1551] | 1651 | !-- Building strings with index and coordinate information of the |
---|
[1] | 1652 | !-- slices |
---|
| 1653 | DO WHILE ( section(i,2) /= -9999 ) |
---|
| 1654 | |
---|
| 1655 | WRITE (section_chr,'(I5)') section(i,2) |
---|
| 1656 | section_chr = ADJUSTL( section_chr ) |
---|
| 1657 | slices = TRIM( slices ) // TRIM( section_chr ) // '/' |
---|
| 1658 | |
---|
| 1659 | WRITE (coor_chr,'(F10.1)') section(i,2) * dy |
---|
| 1660 | coor_chr = ADJUSTL( coor_chr ) |
---|
| 1661 | coordinates = TRIM( coordinates ) // TRIM( coor_chr ) // '/' |
---|
| 1662 | |
---|
| 1663 | i = i + 1 |
---|
| 1664 | ENDDO |
---|
| 1665 | IF ( av == 0 ) THEN |
---|
| 1666 | WRITE ( io, 335 ) 'XZ', do2d_xz, dt_do2d_xz, & |
---|
| 1667 | TRIM( begin_chr ), 'j', TRIM( slices ), & |
---|
| 1668 | TRIM( coordinates ) |
---|
[1353] | 1669 | IF ( skip_time_do2d_xz /= 0.0_wp ) THEN |
---|
[1] | 1670 | WRITE ( io, 339 ) skip_time_do2d_xz |
---|
| 1671 | ENDIF |
---|
| 1672 | ELSE |
---|
| 1673 | WRITE ( io, 342 ) 'XZ', do2d_xz, dt_data_output_av, & |
---|
| 1674 | TRIM( begin_chr ), averaging_interval, & |
---|
| 1675 | dt_averaging_input, 'j', TRIM( slices ), & |
---|
| 1676 | TRIM( coordinates ) |
---|
[1353] | 1677 | IF ( skip_time_data_output_av /= 0.0_wp ) THEN |
---|
[1] | 1678 | WRITE ( io, 339 ) skip_time_data_output_av |
---|
| 1679 | ENDIF |
---|
| 1680 | ENDIF |
---|
[1308] | 1681 | IF ( netcdf_data_format > 4 ) THEN |
---|
| 1682 | WRITE ( io, 352 ) ntdim_2d_xz(av) |
---|
| 1683 | ELSE |
---|
| 1684 | WRITE ( io, 353 ) |
---|
| 1685 | ENDIF |
---|
[1] | 1686 | ENDIF |
---|
| 1687 | |
---|
| 1688 | IF ( do2d_yz /= '' .AND. section(1,3) /= -9999 ) THEN |
---|
| 1689 | i = 1 |
---|
| 1690 | slices = '/' |
---|
| 1691 | coordinates = '/' |
---|
| 1692 | ! |
---|
[1551] | 1693 | !-- Building strings with index and coordinate information of the |
---|
[1] | 1694 | !-- slices |
---|
| 1695 | DO WHILE ( section(i,3) /= -9999 ) |
---|
| 1696 | |
---|
| 1697 | WRITE (section_chr,'(I5)') section(i,3) |
---|
| 1698 | section_chr = ADJUSTL( section_chr ) |
---|
| 1699 | slices = TRIM( slices ) // TRIM( section_chr ) // '/' |
---|
| 1700 | |
---|
| 1701 | WRITE (coor_chr,'(F10.1)') section(i,3) * dx |
---|
| 1702 | coor_chr = ADJUSTL( coor_chr ) |
---|
| 1703 | coordinates = TRIM( coordinates ) // TRIM( coor_chr ) // '/' |
---|
| 1704 | |
---|
| 1705 | i = i + 1 |
---|
| 1706 | ENDDO |
---|
| 1707 | IF ( av == 0 ) THEN |
---|
| 1708 | WRITE ( io, 335 ) 'YZ', do2d_yz, dt_do2d_yz, & |
---|
| 1709 | TRIM( begin_chr ), 'i', TRIM( slices ), & |
---|
| 1710 | TRIM( coordinates ) |
---|
[1353] | 1711 | IF ( skip_time_do2d_yz /= 0.0_wp ) THEN |
---|
[1] | 1712 | WRITE ( io, 339 ) skip_time_do2d_yz |
---|
| 1713 | ENDIF |
---|
| 1714 | ELSE |
---|
| 1715 | WRITE ( io, 342 ) 'YZ', do2d_yz, dt_data_output_av, & |
---|
| 1716 | TRIM( begin_chr ), averaging_interval, & |
---|
| 1717 | dt_averaging_input, 'i', TRIM( slices ), & |
---|
| 1718 | TRIM( coordinates ) |
---|
[1353] | 1719 | IF ( skip_time_data_output_av /= 0.0_wp ) THEN |
---|
[1] | 1720 | WRITE ( io, 339 ) skip_time_data_output_av |
---|
| 1721 | ENDIF |
---|
| 1722 | ENDIF |
---|
[1308] | 1723 | IF ( netcdf_data_format > 4 ) THEN |
---|
| 1724 | WRITE ( io, 352 ) ntdim_2d_yz(av) |
---|
| 1725 | ELSE |
---|
| 1726 | WRITE ( io, 353 ) |
---|
| 1727 | ENDIF |
---|
[1] | 1728 | ENDIF |
---|
| 1729 | |
---|
| 1730 | ENDIF |
---|
| 1731 | |
---|
| 1732 | ENDDO |
---|
| 1733 | |
---|
| 1734 | ! |
---|
| 1735 | !-- 3d-arrays |
---|
| 1736 | DO av = 0, 1 |
---|
| 1737 | |
---|
| 1738 | i = 1 |
---|
| 1739 | do3d_chr = '' |
---|
| 1740 | DO WHILE ( do3d(av,i) /= ' ' ) |
---|
| 1741 | |
---|
| 1742 | do3d_chr = TRIM( do3d_chr ) // ' ' // TRIM( do3d(av,i) ) // ',' |
---|
| 1743 | i = i + 1 |
---|
| 1744 | |
---|
| 1745 | ENDDO |
---|
| 1746 | |
---|
| 1747 | IF ( do3d_chr /= '' ) THEN |
---|
| 1748 | IF ( av == 0 ) THEN |
---|
| 1749 | WRITE ( io, 336 ) '' |
---|
| 1750 | ELSE |
---|
| 1751 | WRITE ( io, 336 ) '(time-averaged)' |
---|
| 1752 | ENDIF |
---|
| 1753 | |
---|
[1783] | 1754 | output_format = netcdf_data_format_string |
---|
| 1755 | IF ( netcdf_deflate == 0 ) THEN |
---|
| 1756 | WRITE ( io, 344 ) output_format |
---|
| 1757 | ELSE |
---|
| 1758 | WRITE ( io, 354 ) TRIM( output_format ), netcdf_deflate |
---|
| 1759 | ENDIF |
---|
[1] | 1760 | |
---|
| 1761 | IF ( do3d_at_begin ) THEN |
---|
| 1762 | begin_chr = 'and at the start' |
---|
| 1763 | ELSE |
---|
| 1764 | begin_chr = '' |
---|
| 1765 | ENDIF |
---|
| 1766 | IF ( av == 0 ) THEN |
---|
| 1767 | WRITE ( io, 337 ) do3d_chr, dt_do3d, TRIM( begin_chr ), & |
---|
| 1768 | zu(nz_do3d), nz_do3d |
---|
| 1769 | ELSE |
---|
| 1770 | WRITE ( io, 343 ) do3d_chr, dt_data_output_av, & |
---|
| 1771 | TRIM( begin_chr ), averaging_interval, & |
---|
| 1772 | dt_averaging_input, zu(nz_do3d), nz_do3d |
---|
| 1773 | ENDIF |
---|
| 1774 | |
---|
[1308] | 1775 | IF ( netcdf_data_format > 4 ) THEN |
---|
| 1776 | WRITE ( io, 352 ) ntdim_3d(av) |
---|
| 1777 | ELSE |
---|
| 1778 | WRITE ( io, 353 ) |
---|
| 1779 | ENDIF |
---|
| 1780 | |
---|
[1] | 1781 | IF ( av == 0 ) THEN |
---|
[1353] | 1782 | IF ( skip_time_do3d /= 0.0_wp ) THEN |
---|
[1] | 1783 | WRITE ( io, 339 ) skip_time_do3d |
---|
| 1784 | ENDIF |
---|
| 1785 | ELSE |
---|
[1353] | 1786 | IF ( skip_time_data_output_av /= 0.0_wp ) THEN |
---|
[1] | 1787 | WRITE ( io, 339 ) skip_time_data_output_av |
---|
| 1788 | ENDIF |
---|
| 1789 | ENDIF |
---|
| 1790 | |
---|
| 1791 | ENDIF |
---|
| 1792 | |
---|
| 1793 | ENDDO |
---|
| 1794 | |
---|
| 1795 | ! |
---|
[410] | 1796 | !-- masked arrays |
---|
| 1797 | IF ( masks > 0 ) WRITE ( io, 345 ) & |
---|
| 1798 | mask_scale_x, mask_scale_y, mask_scale_z |
---|
| 1799 | DO mid = 1, masks |
---|
| 1800 | DO av = 0, 1 |
---|
| 1801 | |
---|
| 1802 | i = 1 |
---|
| 1803 | domask_chr = '' |
---|
| 1804 | DO WHILE ( domask(mid,av,i) /= ' ' ) |
---|
| 1805 | domask_chr = TRIM( domask_chr ) // ' ' // & |
---|
| 1806 | TRIM( domask(mid,av,i) ) // ',' |
---|
| 1807 | i = i + 1 |
---|
| 1808 | ENDDO |
---|
| 1809 | |
---|
| 1810 | IF ( domask_chr /= '' ) THEN |
---|
| 1811 | IF ( av == 0 ) THEN |
---|
| 1812 | WRITE ( io, 346 ) '', mid |
---|
| 1813 | ELSE |
---|
| 1814 | WRITE ( io, 346 ) ' (time-averaged)', mid |
---|
| 1815 | ENDIF |
---|
| 1816 | |
---|
[1783] | 1817 | output_format = netcdf_data_format_string |
---|
[1308] | 1818 | !-- Parallel output not implemented for mask data, hence |
---|
| 1819 | !-- output_format must be adjusted. |
---|
| 1820 | IF ( netcdf_data_format == 5 ) output_format = 'netCDF4/HDF5' |
---|
| 1821 | IF ( netcdf_data_format == 6 ) output_format = 'netCDF4/HDF5 classic' |
---|
[1783] | 1822 | IF ( netcdf_deflate == 0 ) THEN |
---|
| 1823 | WRITE ( io, 344 ) output_format |
---|
| 1824 | ELSE |
---|
| 1825 | WRITE ( io, 354 ) TRIM( output_format ), netcdf_deflate |
---|
| 1826 | ENDIF |
---|
[410] | 1827 | |
---|
| 1828 | IF ( av == 0 ) THEN |
---|
| 1829 | WRITE ( io, 347 ) domask_chr, dt_domask(mid) |
---|
| 1830 | ELSE |
---|
| 1831 | WRITE ( io, 348 ) domask_chr, dt_data_output_av, & |
---|
| 1832 | averaging_interval, dt_averaging_input |
---|
| 1833 | ENDIF |
---|
| 1834 | |
---|
| 1835 | IF ( av == 0 ) THEN |
---|
[1353] | 1836 | IF ( skip_time_domask(mid) /= 0.0_wp ) THEN |
---|
[410] | 1837 | WRITE ( io, 339 ) skip_time_domask(mid) |
---|
| 1838 | ENDIF |
---|
| 1839 | ELSE |
---|
[1353] | 1840 | IF ( skip_time_data_output_av /= 0.0_wp ) THEN |
---|
[410] | 1841 | WRITE ( io, 339 ) skip_time_data_output_av |
---|
| 1842 | ENDIF |
---|
| 1843 | ENDIF |
---|
| 1844 | ! |
---|
| 1845 | !-- output locations |
---|
| 1846 | DO dim = 1, 3 |
---|
[1353] | 1847 | IF ( mask(mid,dim,1) >= 0.0_wp ) THEN |
---|
[410] | 1848 | count = 0 |
---|
[1353] | 1849 | DO WHILE ( mask(mid,dim,count+1) >= 0.0_wp ) |
---|
[410] | 1850 | count = count + 1 |
---|
| 1851 | ENDDO |
---|
| 1852 | WRITE ( io, 349 ) dir(dim), dir(dim), mid, dir(dim), & |
---|
| 1853 | mask(mid,dim,:count) |
---|
[1353] | 1854 | ELSEIF ( mask_loop(mid,dim,1) < 0.0_wp .AND. & |
---|
| 1855 | mask_loop(mid,dim,2) < 0.0_wp .AND. & |
---|
| 1856 | mask_loop(mid,dim,3) == 0.0_wp ) THEN |
---|
[410] | 1857 | WRITE ( io, 350 ) dir(dim), dir(dim) |
---|
[1353] | 1858 | ELSEIF ( mask_loop(mid,dim,3) == 0.0_wp ) THEN |
---|
[410] | 1859 | WRITE ( io, 351 ) dir(dim), dir(dim), mid, dir(dim), & |
---|
| 1860 | mask_loop(mid,dim,1:2) |
---|
| 1861 | ELSE |
---|
| 1862 | WRITE ( io, 351 ) dir(dim), dir(dim), mid, dir(dim), & |
---|
| 1863 | mask_loop(mid,dim,1:3) |
---|
| 1864 | ENDIF |
---|
| 1865 | ENDDO |
---|
| 1866 | ENDIF |
---|
| 1867 | |
---|
| 1868 | ENDDO |
---|
| 1869 | ENDDO |
---|
| 1870 | |
---|
| 1871 | ! |
---|
[1] | 1872 | !-- Timeseries |
---|
[1322] | 1873 | IF ( dt_dots /= 9999999.9_wp ) THEN |
---|
[1] | 1874 | WRITE ( io, 340 ) |
---|
| 1875 | |
---|
[1783] | 1876 | output_format = netcdf_data_format_string |
---|
| 1877 | IF ( netcdf_deflate == 0 ) THEN |
---|
| 1878 | WRITE ( io, 344 ) output_format |
---|
| 1879 | ELSE |
---|
| 1880 | WRITE ( io, 354 ) TRIM( output_format ), netcdf_deflate |
---|
| 1881 | ENDIF |
---|
[1] | 1882 | WRITE ( io, 341 ) dt_dots |
---|
| 1883 | ENDIF |
---|
| 1884 | |
---|
| 1885 | #if defined( __dvrp_graphics ) |
---|
| 1886 | ! |
---|
| 1887 | !-- Dvrp-output |
---|
[1322] | 1888 | IF ( dt_dvrp /= 9999999.9_wp ) THEN |
---|
[1] | 1889 | WRITE ( io, 360 ) dt_dvrp, TRIM( dvrp_output ), TRIM( dvrp_host ), & |
---|
| 1890 | TRIM( dvrp_username ), TRIM( dvrp_directory ) |
---|
| 1891 | i = 1 |
---|
| 1892 | l = 0 |
---|
[336] | 1893 | m = 0 |
---|
[1] | 1894 | DO WHILE ( mode_dvrp(i) /= ' ' ) |
---|
| 1895 | IF ( mode_dvrp(i)(1:10) == 'isosurface' ) THEN |
---|
[130] | 1896 | READ ( mode_dvrp(i), '(10X,I2)' ) j |
---|
[1] | 1897 | l = l + 1 |
---|
| 1898 | IF ( do3d(0,j) /= ' ' ) THEN |
---|
[336] | 1899 | WRITE ( io, 361 ) TRIM( do3d(0,j) ), threshold(l), & |
---|
| 1900 | isosurface_color(:,l) |
---|
[1] | 1901 | ENDIF |
---|
| 1902 | ELSEIF ( mode_dvrp(i)(1:6) == 'slicer' ) THEN |
---|
[130] | 1903 | READ ( mode_dvrp(i), '(6X,I2)' ) j |
---|
[336] | 1904 | m = m + 1 |
---|
| 1905 | IF ( do2d(0,j) /= ' ' ) THEN |
---|
| 1906 | WRITE ( io, 362 ) TRIM( do2d(0,j) ), & |
---|
| 1907 | slicer_range_limits_dvrp(:,m) |
---|
| 1908 | ENDIF |
---|
[1] | 1909 | ENDIF |
---|
| 1910 | i = i + 1 |
---|
| 1911 | ENDDO |
---|
[237] | 1912 | |
---|
[336] | 1913 | WRITE ( io, 365 ) groundplate_color, superelevation_x, & |
---|
| 1914 | superelevation_y, superelevation, clip_dvrp_l, & |
---|
| 1915 | clip_dvrp_r, clip_dvrp_s, clip_dvrp_n |
---|
| 1916 | |
---|
| 1917 | IF ( TRIM( topography ) /= 'flat' ) THEN |
---|
| 1918 | WRITE ( io, 366 ) topography_color |
---|
| 1919 | IF ( cluster_size > 1 ) THEN |
---|
| 1920 | WRITE ( io, 367 ) cluster_size |
---|
| 1921 | ENDIF |
---|
[237] | 1922 | ENDIF |
---|
| 1923 | |
---|
[1] | 1924 | ENDIF |
---|
| 1925 | #endif |
---|
[1957] | 1926 | ! |
---|
| 1927 | !-- Output of virtual flight information |
---|
| 1928 | IF ( virtual_flight ) CALL flight_header( io ) |
---|
[1] | 1929 | |
---|
| 1930 | ! |
---|
[1833] | 1931 | !-- Output of spectra related quantities |
---|
| 1932 | IF ( calculate_spectra ) CALL spectra_header( io ) |
---|
[1] | 1933 | |
---|
| 1934 | WRITE ( io, 99 ) |
---|
| 1935 | |
---|
| 1936 | ! |
---|
| 1937 | !-- Physical quantities |
---|
| 1938 | WRITE ( io, 400 ) |
---|
| 1939 | |
---|
| 1940 | ! |
---|
| 1941 | !-- Geostrophic parameters |
---|
[2575] | 1942 | WRITE ( io, 410 ) latitude, longitude, omega, f, fs |
---|
[1] | 1943 | |
---|
[3241] | 1944 | ! |
---|
| 1945 | !-- Day of year, UTC |
---|
[2544] | 1946 | WRITE ( io, 456 ) day_of_year_init, time_utc_init |
---|
| 1947 | |
---|
[1] | 1948 | ! |
---|
| 1949 | !-- Other quantities |
---|
| 1950 | WRITE ( io, 411 ) g |
---|
[1551] | 1951 | |
---|
[1179] | 1952 | WRITE ( io, 412 ) TRIM( reference_state ) |
---|
| 1953 | IF ( use_single_reference_value ) THEN |
---|
[3294] | 1954 | IF ( ocean_mode ) THEN |
---|
[1179] | 1955 | WRITE ( io, 413 ) prho_reference |
---|
[97] | 1956 | ELSE |
---|
[1179] | 1957 | WRITE ( io, 414 ) pt_reference |
---|
[97] | 1958 | ENDIF |
---|
| 1959 | ENDIF |
---|
[1] | 1960 | |
---|
| 1961 | ! |
---|
[3274] | 1962 | !-- Output of microphysics information |
---|
| 1963 | IF ( bulk_cloud_model ) CALL bcm_header( io ) |
---|
[1] | 1964 | |
---|
| 1965 | ! |
---|
[824] | 1966 | !-- Cloud physcis parameters / quantities / numerical methods |
---|
| 1967 | WRITE ( io, 430 ) |
---|
[3274] | 1968 | IF ( humidity .AND. .NOT. bulk_cloud_model .AND. .NOT. cloud_droplets) THEN |
---|
[824] | 1969 | WRITE ( io, 431 ) |
---|
[3274] | 1970 | ENDIF |
---|
| 1971 | IF ( humidity .AND. cloud_droplets ) THEN |
---|
[824] | 1972 | WRITE ( io, 433 ) |
---|
| 1973 | IF ( curvature_solution_effects ) WRITE ( io, 434 ) |
---|
[825] | 1974 | IF ( collision_kernel /= 'none' ) THEN |
---|
| 1975 | WRITE ( io, 435 ) TRIM( collision_kernel ) |
---|
[828] | 1976 | IF ( collision_kernel(6:9) == 'fast' ) THEN |
---|
| 1977 | WRITE ( io, 436 ) radius_classes, dissipation_classes |
---|
| 1978 | ENDIF |
---|
[825] | 1979 | ELSE |
---|
[828] | 1980 | WRITE ( io, 437 ) |
---|
[825] | 1981 | ENDIF |
---|
[824] | 1982 | ENDIF |
---|
| 1983 | |
---|
| 1984 | ! |
---|
[1] | 1985 | !-- LES / turbulence parameters |
---|
| 1986 | WRITE ( io, 450 ) |
---|
| 1987 | |
---|
| 1988 | !-- |
---|
| 1989 | ! ... LES-constants used must still be added here |
---|
| 1990 | !-- |
---|
| 1991 | IF ( constant_diffusion ) THEN |
---|
| 1992 | WRITE ( io, 451 ) km_constant, km_constant/prandtl_number, & |
---|
| 1993 | prandtl_number |
---|
| 1994 | ENDIF |
---|
| 1995 | IF ( .NOT. constant_diffusion) THEN |
---|
[1353] | 1996 | IF ( e_init > 0.0_wp ) WRITE ( io, 455 ) e_init |
---|
| 1997 | IF ( e_min > 0.0_wp ) WRITE ( io, 454 ) e_min |
---|
[1] | 1998 | IF ( wall_adjustment ) WRITE ( io, 453 ) wall_adjustment_factor |
---|
| 1999 | ENDIF |
---|
[3083] | 2000 | IF ( rans_mode ) THEN |
---|
| 2001 | WRITE ( io, 457 ) rans_const_c, rans_const_sigma |
---|
| 2002 | ENDIF |
---|
[1] | 2003 | ! |
---|
| 2004 | !-- Special actions during the run |
---|
| 2005 | WRITE ( io, 470 ) |
---|
| 2006 | IF ( create_disturbances ) THEN |
---|
| 2007 | WRITE ( io, 471 ) dt_disturb, disturbance_amplitude, & |
---|
| 2008 | zu(disturbance_level_ind_b), disturbance_level_ind_b,& |
---|
| 2009 | zu(disturbance_level_ind_t), disturbance_level_ind_t |
---|
[707] | 2010 | IF ( .NOT. bc_lr_cyc .OR. .NOT. bc_ns_cyc ) THEN |
---|
[1] | 2011 | WRITE ( io, 472 ) inflow_disturbance_begin, inflow_disturbance_end |
---|
| 2012 | ELSE |
---|
| 2013 | WRITE ( io, 473 ) disturbance_energy_limit |
---|
| 2014 | ENDIF |
---|
| 2015 | WRITE ( io, 474 ) TRIM( random_generator ) |
---|
| 2016 | ENDIF |
---|
[1353] | 2017 | IF ( pt_surface_initial_change /= 0.0_wp ) THEN |
---|
[1] | 2018 | WRITE ( io, 475 ) pt_surface_initial_change |
---|
| 2019 | ENDIF |
---|
[1353] | 2020 | IF ( humidity .AND. q_surface_initial_change /= 0.0_wp ) THEN |
---|
[1] | 2021 | WRITE ( io, 476 ) q_surface_initial_change |
---|
| 2022 | ENDIF |
---|
[1353] | 2023 | IF ( passive_scalar .AND. q_surface_initial_change /= 0.0_wp ) THEN |
---|
[1] | 2024 | WRITE ( io, 477 ) q_surface_initial_change |
---|
| 2025 | ENDIF |
---|
| 2026 | |
---|
[60] | 2027 | IF ( particle_advection ) THEN |
---|
[1] | 2028 | ! |
---|
[60] | 2029 | !-- Particle attributes |
---|
| 2030 | WRITE ( io, 480 ) particle_advection_start, dt_prel, bc_par_lr, & |
---|
| 2031 | bc_par_ns, bc_par_b, bc_par_t, particle_maximum_age, & |
---|
[1359] | 2032 | end_time_prel |
---|
[60] | 2033 | IF ( use_sgs_for_particles ) WRITE ( io, 488 ) dt_min_part |
---|
| 2034 | IF ( random_start_position ) WRITE ( io, 481 ) |
---|
[1575] | 2035 | IF ( seed_follows_topography ) WRITE ( io, 496 ) |
---|
[60] | 2036 | IF ( particles_per_point > 1 ) WRITE ( io, 489 ) particles_per_point |
---|
| 2037 | WRITE ( io, 495 ) total_number_of_particles |
---|
[1322] | 2038 | IF ( dt_write_particle_data /= 9999999.9_wp ) THEN |
---|
[60] | 2039 | WRITE ( io, 485 ) dt_write_particle_data |
---|
[1327] | 2040 | IF ( netcdf_data_format > 1 ) THEN |
---|
| 2041 | output_format = 'netcdf (64 bit offset) and binary' |
---|
[1] | 2042 | ELSE |
---|
[1327] | 2043 | output_format = 'netcdf and binary' |
---|
[1] | 2044 | ENDIF |
---|
[1783] | 2045 | IF ( netcdf_deflate == 0 ) THEN |
---|
| 2046 | WRITE ( io, 344 ) output_format |
---|
| 2047 | ELSE |
---|
| 2048 | WRITE ( io, 354 ) TRIM( output_format ), netcdf_deflate |
---|
| 2049 | ENDIF |
---|
[1] | 2050 | ENDIF |
---|
[1322] | 2051 | IF ( dt_dopts /= 9999999.9_wp ) WRITE ( io, 494 ) dt_dopts |
---|
[60] | 2052 | IF ( write_particle_statistics ) WRITE ( io, 486 ) |
---|
[1] | 2053 | |
---|
[60] | 2054 | WRITE ( io, 487 ) number_of_particle_groups |
---|
[1] | 2055 | |
---|
[60] | 2056 | DO i = 1, number_of_particle_groups |
---|
[1322] | 2057 | IF ( i == 1 .AND. density_ratio(i) == 9999999.9_wp ) THEN |
---|
[1353] | 2058 | WRITE ( io, 490 ) i, 0.0_wp |
---|
[60] | 2059 | WRITE ( io, 492 ) |
---|
[1] | 2060 | ELSE |
---|
[60] | 2061 | WRITE ( io, 490 ) i, radius(i) |
---|
[1353] | 2062 | IF ( density_ratio(i) /= 0.0_wp ) THEN |
---|
[60] | 2063 | WRITE ( io, 491 ) density_ratio(i) |
---|
| 2064 | ELSE |
---|
| 2065 | WRITE ( io, 492 ) |
---|
| 2066 | ENDIF |
---|
[1] | 2067 | ENDIF |
---|
[60] | 2068 | WRITE ( io, 493 ) psl(i), psr(i), pss(i), psn(i), psb(i), pst(i), & |
---|
| 2069 | pdx(i), pdy(i), pdz(i) |
---|
[336] | 2070 | IF ( .NOT. vertical_particle_advection(i) ) WRITE ( io, 482 ) |
---|
[60] | 2071 | ENDDO |
---|
[1] | 2072 | |
---|
[60] | 2073 | ENDIF |
---|
[1] | 2074 | |
---|
[60] | 2075 | |
---|
[1] | 2076 | ! |
---|
| 2077 | !-- Parameters of 1D-model |
---|
| 2078 | IF ( INDEX( initializing_actions, 'set_1d-model_profiles' ) /= 0 ) THEN |
---|
| 2079 | WRITE ( io, 500 ) end_time_1d, dt_run_control_1d, dt_pr_1d, & |
---|
| 2080 | mixing_length_1d, dissipation_1d |
---|
| 2081 | IF ( damp_level_ind_1d /= nzt+1 ) THEN |
---|
| 2082 | WRITE ( io, 502 ) zu(damp_level_ind_1d), damp_level_ind_1d |
---|
| 2083 | ENDIF |
---|
| 2084 | ENDIF |
---|
[3467] | 2085 | |
---|
| 2086 | ! |
---|
| 2087 | !-- SALSA information |
---|
| 2088 | IF ( salsa ) CALL salsa_header( io ) |
---|
[1] | 2089 | |
---|
| 2090 | ! |
---|
[1551] | 2091 | !-- User-defined information |
---|
[1] | 2092 | CALL user_header( io ) |
---|
| 2093 | |
---|
| 2094 | WRITE ( io, 99 ) |
---|
| 2095 | |
---|
| 2096 | ! |
---|
| 2097 | !-- Write buffer contents to disc immediately |
---|
[1808] | 2098 | FLUSH( io ) |
---|
[1] | 2099 | |
---|
| 2100 | ! |
---|
| 2101 | !-- Here the FORMATs start |
---|
| 2102 | |
---|
| 2103 | 99 FORMAT (1X,78('-')) |
---|
[1468] | 2104 | 100 FORMAT (/1X,'******************************',4X,44('-')/ & |
---|
| 2105 | 1X,'* ',A,' *',4X,A/ & |
---|
| 2106 | 1X,'******************************',4X,44('-')) |
---|
[2298] | 2107 | 101 FORMAT (35X,'coupled run: ',A/ & |
---|
[1468] | 2108 | 35X,42('-')) |
---|
[3529] | 2109 | 102 FORMAT (/' Date: ',A10,4X,'Run: ',A34/ & |
---|
[1468] | 2110 | ' Time: ',A8,4X,'Run-No.: ',I2.2/ & |
---|
[1106] | 2111 | ' Run on host: ',A10) |
---|
[1] | 2112 | #if defined( __parallel ) |
---|
[1468] | 2113 | 103 FORMAT (' Number of PEs:',10X,I6,4X,'Processor grid (x,y): (',I4,',',I4, & |
---|
[1] | 2114 | ')',1X,A) |
---|
[1468] | 2115 | 104 FORMAT (' Number of PEs:',10X,I6,4X,'Tasks:',I4,' threads per task:',I4/ & |
---|
| 2116 | 35X,'Processor grid (x,y): (',I4,',',I4,')',1X,A) |
---|
| 2117 | 105 FORMAT (35X,'One additional PE is used to handle'/37X,'the dvrp output!') |
---|
| 2118 | 107 FORMAT (35X,'A 1d-decomposition along ',A,' is used') |
---|
| 2119 | 108 FORMAT (35X,'Max. # of parallel I/O streams is ',I5) |
---|
| 2120 | 109 FORMAT (35X,'Precursor run for coupled atmos-ocean run'/ & |
---|
| 2121 | 35X,42('-')) |
---|
| 2122 | 114 FORMAT (35X,'Coupled atmosphere-ocean run following'/ & |
---|
| 2123 | 35X,'independent precursor runs'/ & |
---|
| 2124 | 35X,42('-')) |
---|
[1] | 2125 | #endif |
---|
| 2126 | 110 FORMAT (/' Numerical Schemes:'/ & |
---|
| 2127 | ' -----------------'/) |
---|
[2696] | 2128 | 124 FORMAT (' --> Use the ',A,' turbulence closure (',A,' mode).') |
---|
[2037] | 2129 | 121 FORMAT (' --> Use the ',A,' approximation for the model equations.') |
---|
[1] | 2130 | 111 FORMAT (' --> Solve perturbation pressure via FFT using ',A,' routines') |
---|
| 2131 | 112 FORMAT (' --> Solve perturbation pressure via SOR-Red/Black-Schema'/ & |
---|
[1697] | 2132 | ' Iterations (initial/other): ',I3,'/',I3,' omega =',F6.3) |
---|
[1] | 2133 | 113 FORMAT (' --> Momentum advection via Piascek-Williams-Scheme (Form C3)', & |
---|
| 2134 | ' or Upstream') |
---|
[1216] | 2135 | 115 FORMAT (' FFT and transpositions are overlapping') |
---|
[1] | 2136 | 116 FORMAT (' --> Scalar advection via Piascek-Williams-Scheme (Form C3)', & |
---|
| 2137 | ' or Upstream') |
---|
| 2138 | 118 FORMAT (' --> Scalar advection via Bott-Chlond-Scheme') |
---|
[1106] | 2139 | 119 FORMAT (' --> Galilei-Transform applied to horizontal advection:'/ & |
---|
| 2140 | ' translation velocity = ',A/ & |
---|
[1] | 2141 | ' distance advected ',A,': ',F8.3,' km(x) ',F8.3,' km(y)') |
---|
| 2142 | 122 FORMAT (' --> Time differencing scheme: ',A) |
---|
[108] | 2143 | 123 FORMAT (' --> Rayleigh-Damping active, starts ',A,' z = ',F8.2,' m'/ & |
---|
[1697] | 2144 | ' maximum damping coefficient:',F6.3, ' 1/s') |
---|
[1] | 2145 | 129 FORMAT (' --> Additional prognostic equation for the specific humidity') |
---|
| 2146 | 130 FORMAT (' --> Additional prognostic equation for the total water content') |
---|
[940] | 2147 | 131 FORMAT (' --> No pt-equation solved. Neutral stratification with pt = ', & |
---|
| 2148 | F6.2, ' K assumed') |
---|
[1] | 2149 | 134 FORMAT (' --> Additional prognostic equation for a passive scalar') |
---|
[1575] | 2150 | 135 FORMAT (' --> Solve perturbation pressure via ',A,' method (', & |
---|
[1] | 2151 | A,'-cycle)'/ & |
---|
| 2152 | ' number of grid levels: ',I2/ & |
---|
| 2153 | ' Gauss-Seidel red/black iterations: ',I2) |
---|
| 2154 | 136 FORMAT (' gridpoints of coarsest subdomain (x,y,z): (',I3,',',I3,',', & |
---|
| 2155 | I3,')') |
---|
| 2156 | 137 FORMAT (' level data gathered on PE0 at level: ',I2/ & |
---|
| 2157 | ' gridpoints of coarsest subdomain (x,y,z): (',I3,',',I3,',', & |
---|
| 2158 | I3,')'/ & |
---|
| 2159 | ' gridpoints of coarsest domain (x,y,z): (',I3,',',I3,',', & |
---|
| 2160 | I3,')') |
---|
[63] | 2161 | 139 FORMAT (' --> Loop optimization method: ',A) |
---|
[1] | 2162 | 140 FORMAT (' maximum residual allowed: ',E10.3) |
---|
| 2163 | 141 FORMAT (' fixed number of multigrid cycles: ',I4) |
---|
| 2164 | 142 FORMAT (' perturbation pressure is calculated at every Runge-Kutta ', & |
---|
| 2165 | 'step') |
---|
[87] | 2166 | 143 FORMAT (' Euler/upstream scheme is used for the SGS turbulent ', & |
---|
| 2167 | 'kinetic energy') |
---|
[927] | 2168 | 144 FORMAT (' masking method is used') |
---|
[1] | 2169 | 150 FORMAT (' --> Volume flow at the right and north boundary will be ', & |
---|
[241] | 2170 | 'conserved'/ & |
---|
| 2171 | ' using the ',A,' mode') |
---|
| 2172 | 151 FORMAT (' with u_bulk = ',F7.3,' m/s and v_bulk = ',F7.3,' m/s') |
---|
[306] | 2173 | 152 FORMAT (' --> External pressure gradient directly prescribed by the user:',& |
---|
| 2174 | /' ',2(1X,E12.5),'Pa/m in x/y direction', & |
---|
| 2175 | /' starting from dp_level_b =', F8.3, 'm', A /) |
---|
[1] | 2176 | 200 FORMAT (//' Run time and time step information:'/ & |
---|
| 2177 | ' ----------------------------------'/) |
---|
[1106] | 2178 | 201 FORMAT ( ' Timestep: variable maximum value: ',F6.3,' s', & |
---|
[1697] | 2179 | ' CFL-factor:',F5.2) |
---|
[1106] | 2180 | 202 FORMAT ( ' Timestep: dt = ',F6.3,' s'/) |
---|
| 2181 | 203 FORMAT ( ' Start time: ',F9.3,' s'/ & |
---|
| 2182 | ' End time: ',F9.3,' s') |
---|
[1] | 2183 | 204 FORMAT ( A,F9.3,' s') |
---|
| 2184 | 205 FORMAT ( A,F9.3,' s',5X,'restart every',17X,F9.3,' s') |
---|
[1106] | 2185 | 206 FORMAT (/' Time reached: ',F9.3,' s'/ & |
---|
| 2186 | ' CPU-time used: ',F9.3,' s per timestep: ', & |
---|
| 2187 | ' ',F9.3,' s'/ & |
---|
[1111] | 2188 | ' per second of simulated tim', & |
---|
[1] | 2189 | 'e: ',F9.3,' s') |
---|
[1106] | 2190 | 207 FORMAT ( ' Coupling start time: ',F9.3,' s') |
---|
[1] | 2191 | 250 FORMAT (//' Computational grid and domain size:'/ & |
---|
| 2192 | ' ----------------------------------'// & |
---|
[3065] | 2193 | ' Grid length: dx = ',F8.3,' m dy = ',F8.3, ' m') |
---|
| 2194 | 251 FORMAT ( /' Domain size: x = ',F10.3,' m y = ',F10.3, & |
---|
[1] | 2195 | ' m z(u) = ',F10.3,' m'/) |
---|
[3065] | 2196 | 253 FORMAT ( ' dz(',I1,') = ', F8.3, ' m') |
---|
| 2197 | 254 FORMAT (//' Number of gridpoints (x,y,z): (0:',I4,', 0:',I4,', 0:',I4,')'/ & |
---|
[1] | 2198 | ' Subdomain size (x,y,z): ( ',I4,', ',I4,', ',I4,')'/) |
---|
| 2199 | 260 FORMAT (/' The model has a slope in x-direction. Inclination angle: ',F6.2,& |
---|
| 2200 | ' degrees') |
---|
[1551] | 2201 | 270 FORMAT (//' Topography information:'/ & |
---|
| 2202 | ' ----------------------'// & |
---|
[1] | 2203 | 1X,'Topography: ',A) |
---|
| 2204 | 271 FORMAT ( ' Building size (x/y/z) in m: ',F5.1,' / ',F5.1,' / ',F5.1/ & |
---|
| 2205 | ' Horizontal index bounds (l/r/s/n): ',I4,' / ',I4,' / ',I4, & |
---|
| 2206 | ' / ',I4) |
---|
[240] | 2207 | 272 FORMAT ( ' Single quasi-2D street canyon of infinite length in ',A, & |
---|
| 2208 | ' direction' / & |
---|
| 2209 | ' Canyon height: ', F6.2, 'm, ch = ', I4, '.' / & |
---|
| 2210 | ' Canyon position (',A,'-walls): cxl = ', I4,', cxr = ', I4, '.') |
---|
[2232] | 2211 | 273 FORMAT ( ' Tunnel of infinite length in ',A, & |
---|
| 2212 | ' direction' / & |
---|
| 2213 | ' Tunnel height: ', F6.2, / & |
---|
| 2214 | ' Tunnel-wall depth: ', F6.2 / & |
---|
| 2215 | ' Tunnel width: ', F6.2 ) |
---|
| 2216 | 274 FORMAT ( ' Tunnel in ', A, ' direction.' / & |
---|
| 2217 | ' Tunnel height: ', F6.2, / & |
---|
| 2218 | ' Tunnel-wall depth: ', F6.2 / & |
---|
| 2219 | ' Tunnel width: ', F6.2, / & |
---|
| 2220 | ' Tunnel length: ', F6.2 ) |
---|
[256] | 2221 | 278 FORMAT (' Topography grid definition convention:'/ & |
---|
| 2222 | ' cell edge (staggered grid points'/ & |
---|
| 2223 | ' (u in x-direction, v in y-direction))' /) |
---|
| 2224 | 279 FORMAT (' Topography grid definition convention:'/ & |
---|
| 2225 | ' cell center (scalar grid points)' /) |
---|
[2550] | 2226 | 280 FORMAT (' Complex terrain simulation is activated.') |
---|
| 2227 | 281 FORMAT (' --> Mean inflow profiles are adjusted.' / & |
---|
| 2228 | ' --> Elevation of inflow boundary: ', F7.1, ' m' ) |
---|
| 2229 | 282 FORMAT (' --> Initial data from 3D-precursor run is shifted' / & |
---|
| 2230 | ' vertically depending on local surface height.') |
---|
[1] | 2231 | 300 FORMAT (//' Boundary conditions:'/ & |
---|
| 2232 | ' -------------------'// & |
---|
| 2233 | ' p uv ', & |
---|
[1551] | 2234 | ' pt'// & |
---|
[1] | 2235 | ' B. bound.: ',A/ & |
---|
| 2236 | ' T. bound.: ',A) |
---|
[97] | 2237 | 301 FORMAT (/' ',A// & |
---|
[1] | 2238 | ' B. bound.: ',A/ & |
---|
| 2239 | ' T. bound.: ',A) |
---|
[19] | 2240 | 303 FORMAT (/' Bottom surface fluxes are used in diffusion terms at k=1') |
---|
| 2241 | 304 FORMAT (/' Top surface fluxes are used in diffusion terms at k=nzt') |
---|
[2270] | 2242 | 305 FORMAT (//' Constant flux layer between bottom surface and first ', & |
---|
| 2243 | 'computational u,v-level:'// & |
---|
| 2244 | ' z_mo = ',F6.2,' m z0 =',F7.4,' m z0h =',F8.5,& |
---|
[1697] | 2245 | ' m kappa =',F5.2/ & |
---|
| 2246 | ' Rif value range: ',F8.2,' <= rif <=',F6.2) |
---|
[97] | 2247 | 306 FORMAT (' Predefined constant heatflux: ',F9.6,' K m/s') |
---|
[1] | 2248 | 307 FORMAT (' Heatflux has a random normal distribution') |
---|
| 2249 | 308 FORMAT (' Predefined surface temperature') |
---|
[97] | 2250 | 309 FORMAT (' Predefined constant salinityflux: ',F9.6,' psu m/s') |
---|
[1] | 2251 | 310 FORMAT (//' 1D-Model:'// & |
---|
| 2252 | ' Rif value range: ',F6.2,' <= rif <=',F6.2) |
---|
[1960] | 2253 | 311 FORMAT (' Predefined constant humidity flux: ',E10.3,' kg/kg m/s') |
---|
[1] | 2254 | 312 FORMAT (' Predefined surface humidity') |
---|
| 2255 | 313 FORMAT (' Predefined constant scalar flux: ',E10.3,' kg/(m**2 s)') |
---|
| 2256 | 314 FORMAT (' Predefined scalar value at the surface') |
---|
[1992] | 2257 | 302 FORMAT (' Predefined constant scalarflux: ',F9.6,' kg/(m**2 s)') |
---|
| 2258 | 315 FORMAT (' Humidity flux at top surface is 0.0') |
---|
[102] | 2259 | 316 FORMAT (' Sensible heatflux and momentum flux from coupled ', & |
---|
| 2260 | 'atmosphere model') |
---|
[1] | 2261 | 317 FORMAT (//' Lateral boundaries:'/ & |
---|
| 2262 | ' left/right: ',A/ & |
---|
| 2263 | ' north/south: ',A) |
---|
[1159] | 2264 | 318 FORMAT (/' use_cmax: ',L1 / & |
---|
| 2265 | ' pt damping layer width = ',F8.2,' m, pt ', & |
---|
[1697] | 2266 | 'damping factor =',F7.4) |
---|
[151] | 2267 | 319 FORMAT (' turbulence recycling at inflow switched on'/ & |
---|
| 2268 | ' width of recycling domain: ',F7.1,' m grid index: ',I4/ & |
---|
| 2269 | ' inflow damping height: ',F6.1,' m width: ',F6.1,' m') |
---|
| 2270 | 320 FORMAT (' Predefined constant momentumflux: u: ',F9.6,' m**2/s**2'/ & |
---|
[103] | 2271 | ' v: ',F9.6,' m**2/s**2') |
---|
[1365] | 2272 | 321 FORMAT (//' Initial profiles:'/ & |
---|
| 2273 | ' ----------------') |
---|
[1560] | 2274 | 322 FORMAT (' turbulence recycling at inflow switched on'/ & |
---|
| 2275 | ' y shift of the recycled inflow turbulence switched on'/ & |
---|
| 2276 | ' width of recycling domain: ',F7.1,' m grid index: ',I4/ & |
---|
[1592] | 2277 | ' inflow damping height: ',F6.1,' m width: ',F6.1,' m'/) |
---|
[2050] | 2278 | 323 FORMAT (' turbulent outflow conditon switched on'/ & |
---|
| 2279 | ' position of outflow source plane: ',F7.1,' m ', & |
---|
| 2280 | 'grid index: ', I4) |
---|
[151] | 2281 | 325 FORMAT (//' List output:'/ & |
---|
[1] | 2282 | ' -----------'// & |
---|
| 2283 | ' 1D-Profiles:'/ & |
---|
[2883] | 2284 | ' Output every ',F10.2,' s') |
---|
[151] | 2285 | 326 FORMAT (' Time averaged over ',F8.2,' s'/ & |
---|
[1] | 2286 | ' Averaging input every ',F8.2,' s') |
---|
| 2287 | 330 FORMAT (//' Data output:'/ & |
---|
| 2288 | ' -----------'/) |
---|
| 2289 | 331 FORMAT (/' 1D-Profiles:') |
---|
| 2290 | 332 FORMAT (/' ',A) |
---|
| 2291 | 333 FORMAT (' Output every ',F8.2,' s',/ & |
---|
| 2292 | ' Time averaged over ',F8.2,' s'/ & |
---|
| 2293 | ' Averaging input every ',F8.2,' s') |
---|
| 2294 | 334 FORMAT (/' 2D-Arrays',A,':') |
---|
| 2295 | 335 FORMAT (/' ',A2,'-cross-section Arrays: ',A/ & |
---|
| 2296 | ' Output every ',F8.2,' s ',A/ & |
---|
| 2297 | ' Cross sections at ',A1,' = ',A/ & |
---|
| 2298 | ' scalar-coordinates: ',A,' m'/) |
---|
| 2299 | 336 FORMAT (/' 3D-Arrays',A,':') |
---|
| 2300 | 337 FORMAT (/' Arrays: ',A/ & |
---|
| 2301 | ' Output every ',F8.2,' s ',A/ & |
---|
| 2302 | ' Upper output limit at ',F8.2,' m (GP ',I4,')'/) |
---|
| 2303 | 339 FORMAT (' No output during initial ',F8.2,' s') |
---|
| 2304 | 340 FORMAT (/' Time series:') |
---|
| 2305 | 341 FORMAT (' Output every ',F8.2,' s'/) |
---|
| 2306 | 342 FORMAT (/' ',A2,'-cross-section Arrays: ',A/ & |
---|
| 2307 | ' Output every ',F8.2,' s ',A/ & |
---|
| 2308 | ' Time averaged over ',F8.2,' s'/ & |
---|
| 2309 | ' Averaging input every ',F8.2,' s'/ & |
---|
| 2310 | ' Cross sections at ',A1,' = ',A/ & |
---|
| 2311 | ' scalar-coordinates: ',A,' m'/) |
---|
| 2312 | 343 FORMAT (/' Arrays: ',A/ & |
---|
| 2313 | ' Output every ',F8.2,' s ',A/ & |
---|
| 2314 | ' Time averaged over ',F8.2,' s'/ & |
---|
| 2315 | ' Averaging input every ',F8.2,' s'/ & |
---|
| 2316 | ' Upper output limit at ',F8.2,' m (GP ',I4,')'/) |
---|
[292] | 2317 | 344 FORMAT (' Output format: ',A/) |
---|
[410] | 2318 | 345 FORMAT (/' Scaling lengths for output locations of all subsequent mask IDs:',/ & |
---|
| 2319 | ' mask_scale_x (in x-direction): ',F9.3, ' m',/ & |
---|
| 2320 | ' mask_scale_y (in y-direction): ',F9.3, ' m',/ & |
---|
| 2321 | ' mask_scale_z (in z-direction): ',F9.3, ' m' ) |
---|
| 2322 | 346 FORMAT (/' Masked data output',A,' for mask ID ',I2, ':') |
---|
| 2323 | 347 FORMAT (' Variables: ',A/ & |
---|
| 2324 | ' Output every ',F8.2,' s') |
---|
| 2325 | 348 FORMAT (' Variables: ',A/ & |
---|
| 2326 | ' Output every ',F8.2,' s'/ & |
---|
| 2327 | ' Time averaged over ',F8.2,' s'/ & |
---|
| 2328 | ' Averaging input every ',F8.2,' s') |
---|
| 2329 | 349 FORMAT (/' Output locations in ',A,'-direction in multiples of ', & |
---|
| 2330 | 'mask_scale_',A,' predefined by array mask_',I2.2,'_',A,':'/ & |
---|
| 2331 | 13(' ',8(F8.2,',')/) ) |
---|
| 2332 | 350 FORMAT (/' Output locations in ',A,'-direction: ', & |
---|
| 2333 | 'all gridpoints along ',A,'-direction (default).' ) |
---|
| 2334 | 351 FORMAT (/' Output locations in ',A,'-direction in multiples of ', & |
---|
| 2335 | 'mask_scale_',A,' constructed from array mask_',I2.2,'_',A,'_loop:'/ & |
---|
| 2336 | ' loop begin:',F8.2,', end:',F8.2,', stride:',F8.2 ) |
---|
[1313] | 2337 | 352 FORMAT (/' Number of output time levels allowed: ',I3 /) |
---|
| 2338 | 353 FORMAT (/' Number of output time levels allowed: unlimited' /) |
---|
[1783] | 2339 | 354 FORMAT (' Output format: ',A, ' compressed with level: ',I1/) |
---|
[1] | 2340 | #if defined( __dvrp_graphics ) |
---|
| 2341 | 360 FORMAT (' Plot-Sequence with dvrp-software:'/ & |
---|
| 2342 | ' Output every ',F7.1,' s'/ & |
---|
| 2343 | ' Output mode: ',A/ & |
---|
| 2344 | ' Host / User: ',A,' / ',A/ & |
---|
| 2345 | ' Directory: ',A// & |
---|
| 2346 | ' The sequence contains:') |
---|
[337] | 2347 | 361 FORMAT (/' Isosurface of "',A,'" Threshold value: ', E12.3/ & |
---|
| 2348 | ' Isosurface color: (',F4.2,',',F4.2,',',F4.2,') (R,G,B)') |
---|
| 2349 | 362 FORMAT (/' Slicer plane ',A/ & |
---|
[336] | 2350 | ' Slicer limits: [',F6.2,',',F6.2,']') |
---|
[337] | 2351 | 365 FORMAT (/' Groundplate color: (',F4.2,',',F4.2,',',F4.2,') (R,G,B)'/ & |
---|
[336] | 2352 | ' Superelevation along (x,y,z): (',F4.1,',',F4.1,',',F4.1, & |
---|
| 2353 | ')'/ & |
---|
| 2354 | ' Clipping limits: from x = ',F9.1,' m to x = ',F9.1,' m'/ & |
---|
| 2355 | ' from y = ',F9.1,' m to y = ',F9.1,' m') |
---|
[337] | 2356 | 366 FORMAT (/' Topography color: (',F4.2,',',F4.2,',',F4.2,') (R,G,B)') |
---|
[336] | 2357 | 367 FORMAT (' Polygon reduction for topography: cluster_size = ', I1) |
---|
[1] | 2358 | #endif |
---|
| 2359 | 400 FORMAT (//' Physical quantities:'/ & |
---|
| 2360 | ' -------------------'/) |
---|
[2575] | 2361 | 410 FORMAT (' Geograph. latitude : latitude = ',F4.1,' degr'/ & |
---|
| 2362 | ' Geograph. longitude : longitude = ',F4.1,' degr'/ & |
---|
[1697] | 2363 | ' Angular velocity : omega =',E10.3,' rad/s'/ & |
---|
[1551] | 2364 | ' Coriolis parameter : f = ',F9.6,' 1/s'/ & |
---|
| 2365 | ' f* = ',F9.6,' 1/s') |
---|
| 2366 | 411 FORMAT (/' Gravity : g = ',F4.1,' m/s**2') |
---|
[1179] | 2367 | 412 FORMAT (/' Reference state used in buoyancy terms: ',A) |
---|
| 2368 | 413 FORMAT (' Reference density in buoyancy terms: ',F8.3,' kg/m**3') |
---|
| 2369 | 414 FORMAT (' Reference temperature in buoyancy terms: ',F8.4,' K') |
---|
[1] | 2370 | 420 FORMAT (/' Characteristic levels of the initial temperature profile:'// & |
---|
| 2371 | ' Height: ',A,' m'/ & |
---|
| 2372 | ' Temperature: ',A,' K'/ & |
---|
| 2373 | ' Gradient: ',A,' K/100m'/ & |
---|
| 2374 | ' Gridpoint: ',A) |
---|
| 2375 | 421 FORMAT (/' Characteristic levels of the initial humidity profile:'// & |
---|
| 2376 | ' Height: ',A,' m'/ & |
---|
| 2377 | ' Humidity: ',A,' kg/kg'/ & |
---|
| 2378 | ' Gradient: ',A,' (kg/kg)/100m'/ & |
---|
| 2379 | ' Gridpoint: ',A) |
---|
| 2380 | 422 FORMAT (/' Characteristic levels of the initial scalar profile:'// & |
---|
| 2381 | ' Height: ',A,' m'/ & |
---|
| 2382 | ' Scalar concentration: ',A,' kg/m**3'/ & |
---|
| 2383 | ' Gradient: ',A,' (kg/m**3)/100m'/ & |
---|
| 2384 | ' Gridpoint: ',A) |
---|
| 2385 | 423 FORMAT (/' Characteristic levels of the geo. wind component ug:'// & |
---|
| 2386 | ' Height: ',A,' m'/ & |
---|
| 2387 | ' ug: ',A,' m/s'/ & |
---|
| 2388 | ' Gradient: ',A,' 1/100s'/ & |
---|
| 2389 | ' Gridpoint: ',A) |
---|
| 2390 | 424 FORMAT (/' Characteristic levels of the geo. wind component vg:'// & |
---|
| 2391 | ' Height: ',A,' m'/ & |
---|
[97] | 2392 | ' vg: ',A,' m/s'/ & |
---|
[1] | 2393 | ' Gradient: ',A,' 1/100s'/ & |
---|
| 2394 | ' Gridpoint: ',A) |
---|
[97] | 2395 | 425 FORMAT (/' Characteristic levels of the initial salinity profile:'// & |
---|
| 2396 | ' Height: ',A,' m'/ & |
---|
| 2397 | ' Salinity: ',A,' psu'/ & |
---|
| 2398 | ' Gradient: ',A,' psu/100m'/ & |
---|
| 2399 | ' Gridpoint: ',A) |
---|
[411] | 2400 | 426 FORMAT (/' Characteristic levels of the subsidence/ascent profile:'// & |
---|
| 2401 | ' Height: ',A,' m'/ & |
---|
| 2402 | ' w_subs: ',A,' m/s'/ & |
---|
| 2403 | ' Gradient: ',A,' (m/s)/100m'/ & |
---|
| 2404 | ' Gridpoint: ',A) |
---|
[767] | 2405 | 427 FORMAT (/' Initial wind profiles (u,v) are interpolated from given'// & |
---|
| 2406 | ' profiles') |
---|
[1241] | 2407 | 428 FORMAT (/' Initial profiles (u, v, pt, q) are taken from file '/ & |
---|
| 2408 | ' NUDGING_DATA') |
---|
[824] | 2409 | 430 FORMAT (//' Cloud physics quantities / methods:'/ & |
---|
| 2410 | ' ----------------------------------'/) |
---|
[1960] | 2411 | 431 FORMAT (' Humidity is considered, bu no condensation') |
---|
[824] | 2412 | 433 FORMAT (' Cloud droplets treated explicitly using the Lagrangian part', & |
---|
| 2413 | 'icle model') |
---|
| 2414 | 434 FORMAT (' Curvature and solution effecs are considered for growth of', & |
---|
| 2415 | ' droplets < 1.0E-6 m') |
---|
[825] | 2416 | 435 FORMAT (' Droplet collision is handled by ',A,'-kernel') |
---|
[828] | 2417 | 436 FORMAT (' Fast kernel with fixed radius- and dissipation classes ', & |
---|
| 2418 | 'are used'/ & |
---|
| 2419 | ' number of radius classes: ',I3,' interval ', & |
---|
| 2420 | '[1.0E-6,2.0E-4] m'/ & |
---|
| 2421 | ' number of dissipation classes: ',I2,' interval ', & |
---|
| 2422 | '[0,1000] cm**2/s**3') |
---|
| 2423 | 437 FORMAT (' Droplet collision is switched off') |
---|
[1] | 2424 | 450 FORMAT (//' LES / Turbulence quantities:'/ & |
---|
| 2425 | ' ---------------------------'/) |
---|
[824] | 2426 | 451 FORMAT (' Diffusion coefficients are constant:'/ & |
---|
| 2427 | ' Km = ',F6.2,' m**2/s Kh = ',F6.2,' m**2/s Pr = ',F5.2) |
---|
[1697] | 2428 | 453 FORMAT (' Mixing length is limited to',F5.2,' * z') |
---|
[824] | 2429 | 454 FORMAT (' TKE is not allowed to fall below ',E9.2,' (m/s)**2') |
---|
| 2430 | 455 FORMAT (' initial TKE is prescribed as ',E9.2,' (m/s)**2') |
---|
[3241] | 2431 | 456 FORMAT (/' Day of the year at model start : day_init = ',I3 & |
---|
| 2432 | /' UTC time at model start : time_utc_init = ',F7.1,' s') |
---|
[3083] | 2433 | 457 FORMAT (' RANS-mode constants: c_0 = ',F9.5/ & |
---|
| 2434 | ' c_1 = ',F9.5/ & |
---|
| 2435 | ' c_2 = ',F9.5/ & |
---|
| 2436 | ' c_3 = ',F9.5/ & |
---|
| 2437 | ' c_4 = ',F9.5/ & |
---|
| 2438 | ' sigma_e = ',F9.5/ & |
---|
| 2439 | ' sigma_diss = ',F9.5) |
---|
[1] | 2440 | 470 FORMAT (//' Actions during the simulation:'/ & |
---|
| 2441 | ' -----------------------------'/) |
---|
[94] | 2442 | 471 FORMAT (' Disturbance impulse (u,v) every : ',F6.2,' s'/ & |
---|
[1697] | 2443 | ' Disturbance amplitude : ',F5.2, ' m/s'/ & |
---|
[94] | 2444 | ' Lower disturbance level : ',F8.2,' m (GP ',I4,')'/ & |
---|
| 2445 | ' Upper disturbance level : ',F8.2,' m (GP ',I4,')') |
---|
[1] | 2446 | 472 FORMAT (' Disturbances continued during the run from i/j =',I4, & |
---|
| 2447 | ' to i/j =',I4) |
---|
| 2448 | 473 FORMAT (' Disturbances cease as soon as the disturbance energy exceeds',& |
---|
[1697] | 2449 | F6.3, ' m**2/s**2') |
---|
[1] | 2450 | 474 FORMAT (' Random number generator used : ',A/) |
---|
| 2451 | 475 FORMAT (' The surface temperature is increased (or decreased, ', & |
---|
| 2452 | 'respectively, if'/ & |
---|
| 2453 | ' the value is negative) by ',F5.2,' K at the beginning of the',& |
---|
| 2454 | ' 3D-simulation'/) |
---|
| 2455 | 476 FORMAT (' The surface humidity is increased (or decreased, ',& |
---|
| 2456 | 'respectively, if the'/ & |
---|
| 2457 | ' value is negative) by ',E8.1,' kg/kg at the beginning of', & |
---|
| 2458 | ' the 3D-simulation'/) |
---|
| 2459 | 477 FORMAT (' The scalar value is increased at the surface (or decreased, ',& |
---|
| 2460 | 'respectively, if the'/ & |
---|
| 2461 | ' value is negative) by ',E8.1,' kg/m**3 at the beginning of', & |
---|
| 2462 | ' the 3D-simulation'/) |
---|
| 2463 | 480 FORMAT (' Particles:'/ & |
---|
| 2464 | ' ---------'// & |
---|
| 2465 | ' Particle advection is active (switched on at t = ', F7.1, & |
---|
| 2466 | ' s)'/ & |
---|
| 2467 | ' Start of new particle generations every ',F6.1,' s'/ & |
---|
| 2468 | ' Boundary conditions: left/right: ', A, ' north/south: ', A/& |
---|
| 2469 | ' bottom: ', A, ' top: ', A/& |
---|
| 2470 | ' Maximum particle age: ',F9.1,' s'/ & |
---|
[1359] | 2471 | ' Advection stopped at t = ',F9.1,' s'/) |
---|
[1] | 2472 | 481 FORMAT (' Particles have random start positions'/) |
---|
[336] | 2473 | 482 FORMAT (' Particles are advected only horizontally'/) |
---|
[1] | 2474 | 485 FORMAT (' Particle data are written on file every ', F9.1, ' s') |
---|
| 2475 | 486 FORMAT (' Particle statistics are written on file'/) |
---|
| 2476 | 487 FORMAT (' Number of particle groups: ',I2/) |
---|
| 2477 | 488 FORMAT (' SGS velocity components are used for particle advection'/ & |
---|
[1697] | 2478 | ' minimum timestep for advection:', F8.5/) |
---|
[1] | 2479 | 489 FORMAT (' Number of particles simultaneously released at each ', & |
---|
| 2480 | 'point: ', I5/) |
---|
| 2481 | 490 FORMAT (' Particle group ',I2,':'/ & |
---|
| 2482 | ' Particle radius: ',E10.3, 'm') |
---|
| 2483 | 491 FORMAT (' Particle inertia is activated'/ & |
---|
[1697] | 2484 | ' density_ratio (rho_fluid/rho_particle) =',F6.3/) |
---|
[1] | 2485 | 492 FORMAT (' Particles are advected only passively (no inertia)'/) |
---|
| 2486 | 493 FORMAT (' Boundaries of particle source: x:',F8.1,' - ',F8.1,' m'/& |
---|
| 2487 | ' y:',F8.1,' - ',F8.1,' m'/& |
---|
| 2488 | ' z:',F8.1,' - ',F8.1,' m'/& |
---|
| 2489 | ' Particle distances: dx = ',F8.1,' m dy = ',F8.1, & |
---|
| 2490 | ' m dz = ',F8.1,' m'/) |
---|
| 2491 | 494 FORMAT (' Output of particle time series in NetCDF format every ', & |
---|
| 2492 | F8.2,' s'/) |
---|
| 2493 | 495 FORMAT (' Number of particles in total domain: ',I10/) |
---|
[1575] | 2494 | 496 FORMAT (' Initial vertical particle positions are interpreted ', & |
---|
| 2495 | 'as relative to the given topography') |
---|
[1] | 2496 | 500 FORMAT (//' 1D-Model parameters:'/ & |
---|
| 2497 | ' -------------------'// & |
---|
| 2498 | ' Simulation time: ',F8.1,' s'/ & |
---|
| 2499 | ' Run-controll output every: ',F8.1,' s'/ & |
---|
| 2500 | ' Vertical profile output every: ',F8.1,' s'/ & |
---|
| 2501 | ' Mixing length calculation: ',A/ & |
---|
| 2502 | ' Dissipation calculation: ',A/) |
---|
| 2503 | 502 FORMAT (' Damping layer starts from ',F7.1,' m (GP ',I4,')'/) |
---|
[667] | 2504 | 503 FORMAT (' --> Momentum advection via Wicker-Skamarock-Scheme 5th order') |
---|
| 2505 | 504 FORMAT (' --> Scalar advection via Wicker-Skamarock-Scheme 5th order') |
---|
[3529] | 2506 | 512 FORMAT (/' Date: ',A10,6X,'Run: ',A34/ & |
---|
[1429] | 2507 | ' Time: ',A8,6X,'Run-No.: ',I2.2/ & |
---|
| 2508 | ' Run on host: ',A10,6X,'En-No.: ',I2.2) |
---|
[1791] | 2509 | 600 FORMAT (/' Nesting informations:'/ & |
---|
| 2510 | ' --------------------'/ & |
---|
[1797] | 2511 | ' Nesting mode: ',A/ & |
---|
| 2512 | ' Nesting-datatransfer mode: ',A// & |
---|
[1791] | 2513 | ' Nest id parent number lower left coordinates name'/ & |
---|
| 2514 | ' (*=me) id of PEs x (m) y (m)' ) |
---|
| 2515 | 601 FORMAT (2X,A1,1X,I2.2,6X,I2.2,5X,I5,5X,F8.2,2X,F8.2,5X,A) |
---|
[1] | 2516 | |
---|
| 2517 | END SUBROUTINE header |
---|