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