[4017] | 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 | ! |
---|
[4360] | 17 | ! Copyright 1997-2020 Leibniz Universitaet Hannover |
---|
[2000] | 18 | !------------------------------------------------------------------------------! |
---|
[1036] | 19 | ! |
---|
[254] | 20 | ! Current revisions: |
---|
[1] | 21 | ! ----------------- |
---|
[4586] | 22 | ! |
---|
| 23 | ! |
---|
[3589] | 24 | ! Former revisions: |
---|
| 25 | ! ----------------- |
---|
| 26 | ! $Id: header.f90 4586 2020-07-01 16:16:43Z suehring $ |
---|
[4586] | 27 | ! Renamed rif to Ri (gradient Richardson number, 1D model) |
---|
| 28 | ! and zeta (= z_mo / ol, stability parameter, 3D model) |
---|
| 29 | ! |
---|
| 30 | ! 4573 2020-06-24 13:08:47Z oliver.maas |
---|
[4573] | 31 | ! added statement for pt_surface_heating_rate |
---|
[4586] | 32 | ! |
---|
[4573] | 33 | ! 4536 2020-05-17 17:24:13Z raasch |
---|
[4536] | 34 | ! output of restart data format added |
---|
[4586] | 35 | ! |
---|
[4536] | 36 | ! 4473 2020-03-25 21:04:07Z gronemeier |
---|
[4473] | 37 | ! revised message if wall_adjustment is used |
---|
[4586] | 38 | ! |
---|
[4473] | 39 | ! 4444 2020-03-05 15:59:50Z raasch |
---|
[4444] | 40 | ! bugfix: cpp-directives for serial mode added |
---|
[4586] | 41 | ! |
---|
[4444] | 42 | ! 4360 2020-01-07 11:25:50Z suehring |
---|
[4339] | 43 | ! Bugfix, character length too short, caused crash on NEC. |
---|
[4586] | 44 | ! |
---|
[4339] | 45 | ! 4309 2019-11-26 18:49:59Z suehring |
---|
[4309] | 46 | ! replaced recycling_yshift by y_shift |
---|
[4586] | 47 | ! |
---|
[4309] | 48 | ! 4301 2019-11-22 12:09:09Z oliver.maas |
---|
[4301] | 49 | ! |
---|
| 50 | ! 4297 2019-11-21 10:37:50Z oliver.maas |
---|
[4300] | 51 | ! Adjusted format for simulated time and related quantities |
---|
[4586] | 52 | ! |
---|
[4300] | 53 | ! 4297 2019-11-21 10:37:50Z oliver.maas |
---|
[4297] | 54 | ! adjusted message to the changed parameter recycling_yshift |
---|
[4586] | 55 | ! |
---|
[4297] | 56 | ! 4227 2019-09-10 18:04:34Z gronemeier |
---|
[4227] | 57 | ! implement new palm_date_time_mod |
---|
[4586] | 58 | ! |
---|
[4227] | 59 | ! 4223 2019-09-10 09:20:47Z gronemeier |
---|
[4196] | 60 | ! Write information about rotation angle |
---|
[4586] | 61 | ! |
---|
[4196] | 62 | ! 4182 2019-08-22 15:20:23Z scharf |
---|
[4182] | 63 | ! Corrected "Former revisions" section |
---|
[4586] | 64 | ! |
---|
[4182] | 65 | ! 4168 2019-08-16 13:50:17Z suehring |
---|
[4168] | 66 | ! Replace function get_topography_top_index by topo_top_ind |
---|
[4586] | 67 | ! |
---|
[4168] | 68 | ! 4069 2019-07-01 14:05:51Z Giersch |
---|
[4586] | 69 | ! Masked output running index mid has been introduced as a local variable to |
---|
| 70 | ! avoid runtime error (Loop variable has been modified) in time_integration |
---|
| 71 | ! |
---|
[4069] | 72 | ! 4023 2019-06-12 13:20:01Z maronga |
---|
[4023] | 73 | ! Renamed "coupling start time" to "spinup time" |
---|
[4586] | 74 | ! |
---|
[4023] | 75 | ! 4017 2019-06-06 12:16:46Z schwenkel |
---|
[3761] | 76 | ! unused variable removed |
---|
[4586] | 77 | ! |
---|
[3761] | 78 | ! 3655 2019-01-07 16:51:22Z knoop |
---|
[3637] | 79 | ! Implementation of the PALM module interface |
---|
[3298] | 80 | ! |
---|
[4182] | 81 | ! Revision 1.1 1997/08/11 06:17:20 raasch |
---|
| 82 | ! Initial revision |
---|
| 83 | ! |
---|
| 84 | ! |
---|
[1] | 85 | ! Description: |
---|
| 86 | ! ------------ |
---|
[1764] | 87 | !> Writing a header with all important information about the current run. |
---|
[4586] | 88 | !> This subroutine is called three times, two times at the beginning |
---|
[1682] | 89 | !> (writing information on files RUN_CONTROL and HEADER) and one time at the |
---|
| 90 | !> end of the run, then writing additional information about CPU-usage on file |
---|
| 91 | !> header. |
---|
[411] | 92 | !-----------------------------------------------------------------------------! |
---|
[1682] | 93 | SUBROUTINE header |
---|
[1] | 94 | |
---|
[4586] | 95 | |
---|
[1320] | 96 | USE arrays_3d, & |
---|
[2232] | 97 | ONLY: pt_init, q_init, s_init, sa_init, ug, vg, w_subs, zu, zw |
---|
[3274] | 98 | |
---|
| 99 | USE basic_constants_and_equations_mod, & |
---|
[3761] | 100 | ONLY: g, kappa |
---|
[3274] | 101 | |
---|
| 102 | USE bulk_cloud_model_mod, & |
---|
[3637] | 103 | ONLY: bulk_cloud_model |
---|
[3274] | 104 | |
---|
[1] | 105 | USE control_parameters |
---|
[1849] | 106 | |
---|
[1320] | 107 | USE cpulog, & |
---|
| 108 | ONLY: log_point_s |
---|
[3298] | 109 | |
---|
[1320] | 110 | USE grid_variables, & |
---|
| 111 | ONLY: dx, dy |
---|
[2817] | 112 | |
---|
[1320] | 113 | USE indices, & |
---|
| 114 | ONLY: mg_loc_ind, nnx, nny, nnz, nx, ny, nxl_mg, nxr_mg, nyn_mg, & |
---|
[4168] | 115 | nys_mg, nzt, nzt_mg, topo_top_ind |
---|
[3637] | 116 | |
---|
[1320] | 117 | USE kinds |
---|
[1849] | 118 | |
---|
[2338] | 119 | USE model_1d_mod, & |
---|
[1320] | 120 | ONLY: damp_level_ind_1d, dt_pr_1d, dt_run_control_1d, end_time_1d |
---|
[2338] | 121 | |
---|
[3637] | 122 | USE module_interface, & |
---|
| 123 | ONLY: module_interface_header |
---|
| 124 | |
---|
[1783] | 125 | USE netcdf_interface, & |
---|
| 126 | ONLY: netcdf_data_format, netcdf_data_format_string, netcdf_deflate |
---|
[3448] | 127 | |
---|
[3294] | 128 | USE ocean_mod, & |
---|
[3637] | 129 | ONLY: ibc_sa_t, prho_reference, sa_surface, & |
---|
[3302] | 130 | sa_vertical_gradient, sa_vertical_gradient_level, & |
---|
| 131 | sa_vertical_gradient_level_ind |
---|
[3294] | 132 | |
---|
[4227] | 133 | USE palm_date_time_mod, & |
---|
| 134 | ONLY: get_date_time |
---|
| 135 | |
---|
[1] | 136 | USE pegrid |
---|
[1484] | 137 | |
---|
[2967] | 138 | #if defined( __parallel ) |
---|
[1791] | 139 | USE pmc_handle_communicator, & |
---|
| 140 | ONLY: pmc_get_model_info |
---|
| 141 | |
---|
[1764] | 142 | USE pmc_interface, & |
---|
[1797] | 143 | ONLY: nested_run, nesting_datatransfer_mode, nesting_mode |
---|
[4444] | 144 | #endif |
---|
[1764] | 145 | |
---|
[2232] | 146 | USE surface_mod, & |
---|
[4168] | 147 | ONLY: surf_def_h |
---|
[2232] | 148 | |
---|
[3083] | 149 | USE turbulence_closure_mod, & |
---|
| 150 | ONLY: rans_const_c, rans_const_sigma |
---|
| 151 | |
---|
[1] | 152 | IMPLICIT NONE |
---|
| 153 | |
---|
[4586] | 154 | |
---|
[3552] | 155 | CHARACTER (LEN=2) :: do2d_mode !< mode of 2D data output (xy, xz, yz) |
---|
[4586] | 156 | |
---|
[3552] | 157 | CHARACTER (LEN=5) :: section_chr !< string indicating grid information where to output 2D slices |
---|
[4586] | 158 | |
---|
[3552] | 159 | CHARACTER (LEN=10) :: host_chr !< string for hostname |
---|
[4586] | 160 | |
---|
[3552] | 161 | CHARACTER (LEN=16) :: begin_chr !< string indication start time for the data output |
---|
[4339] | 162 | CHARACTER (LEN=16) :: coor_chr !< dummy string |
---|
[4586] | 163 | |
---|
[3552] | 164 | CHARACTER (LEN=26) :: ver_rev !< string for run identification |
---|
[1791] | 165 | |
---|
[4444] | 166 | #if defined( __parallel ) |
---|
[4586] | 167 | CHARACTER (LEN=32) :: cpl_name !< name of child domain (nesting mode only) |
---|
[4444] | 168 | #endif |
---|
[4586] | 169 | |
---|
[3552] | 170 | CHARACTER (LEN=40) :: output_format !< netcdf format |
---|
[4586] | 171 | |
---|
[3552] | 172 | CHARACTER (LEN=70) :: char1 !< dummy varialbe used for various strings |
---|
| 173 | CHARACTER (LEN=70) :: char2 !< string containing informating about the advected distance in case of Galilei transformation |
---|
[4227] | 174 | CHARACTER (LEN=23) :: date_time_str !< string for date and time information |
---|
[3552] | 175 | CHARACTER (LEN=70) :: dopr_chr !< string indicating profile output variables |
---|
| 176 | CHARACTER (LEN=70) :: do2d_xy !< string indicating 2D-xy output variables |
---|
| 177 | CHARACTER (LEN=70) :: do2d_xz !< string indicating 2D-xz output variables |
---|
| 178 | CHARACTER (LEN=70) :: do2d_yz !< string indicating 2D-yz output variables |
---|
| 179 | CHARACTER (LEN=70) :: do3d_chr !< string indicating 3D output variables |
---|
| 180 | CHARACTER (LEN=70) :: domask_chr !< string indicating masked output variables |
---|
[4586] | 181 | CHARACTER (LEN=70) :: run_classification !< string classifying type of run, e.g. nested, coupled, etc. |
---|
| 182 | |
---|
[3552] | 183 | CHARACTER (LEN=85) :: r_upper !< string indicating model top boundary condition for various quantities |
---|
| 184 | CHARACTER (LEN=85) :: r_lower !< string indicating bottom boundary condition for various quantities |
---|
[4586] | 185 | |
---|
[3552] | 186 | CHARACTER (LEN=86) :: coordinates !< string indicating height coordinates for profile-prescribed variables |
---|
| 187 | CHARACTER (LEN=86) :: gradients !< string indicating gradients of profile-prescribed variables between the prescribed height coordinates |
---|
| 188 | CHARACTER (LEN=86) :: slices !< string indicating grid coordinates of profile-prescribed subsidence velocity |
---|
| 189 | CHARACTER (LEN=86) :: temperatures !< string indicating profile-prescribed subsidence velocities |
---|
| 190 | CHARACTER (LEN=86) :: ugcomponent !< string indicating profile-prescribed geostrophic u-component |
---|
| 191 | CHARACTER (LEN=86) :: vgcomponent !< string indicating profile-prescribed geostrophic v-component |
---|
[1] | 192 | |
---|
[3552] | 193 | CHARACTER (LEN=1), DIMENSION(1:3) :: dir = (/ 'x', 'y', 'z' /) !< string indicating masking steps along certain direction |
---|
[410] | 194 | |
---|
[3552] | 195 | INTEGER(iwp) :: av !< index indicating average output quantities |
---|
| 196 | INTEGER(iwp) :: bh !< building height in generic single-building setup |
---|
| 197 | INTEGER(iwp) :: blx !< building width in grid points along x in generic single-building setup |
---|
| 198 | INTEGER(iwp) :: bly !< building width in grid points along y in generic single-building setup |
---|
| 199 | INTEGER(iwp) :: bxl !< index for left building wall in generic single-building setup |
---|
| 200 | INTEGER(iwp) :: bxr !< index for right building wall in generic single-building setup |
---|
| 201 | INTEGER(iwp) :: byn !< index for north building wall in generic single-building setup |
---|
| 202 | INTEGER(iwp) :: bys !< index for south building wall in generic single-building setup |
---|
| 203 | INTEGER(iwp) :: ch !< canyon depth in generic street-canyon setup |
---|
| 204 | INTEGER(iwp) :: count !< number of masked output locations |
---|
| 205 | INTEGER(iwp) :: cwx !< canyon width along x in generic street-canyon setup |
---|
| 206 | INTEGER(iwp) :: cwy !< canyon width along y in generic street-canyon setup |
---|
| 207 | INTEGER(iwp) :: cxl !< index for left canyon wall in generic street-canyon setup |
---|
| 208 | INTEGER(iwp) :: cxr !< index for right canyon wall in generic street-canyon setup |
---|
| 209 | INTEGER(iwp) :: cyn !< index for north canyon wall in generic street-canyon setup |
---|
| 210 | INTEGER(iwp) :: cys !< index for south canyon wall in generic street-canyon setup |
---|
| 211 | INTEGER(iwp) :: dim !< running index for masking output locations |
---|
| 212 | INTEGER(iwp) :: i !< running index for various loops |
---|
| 213 | INTEGER(iwp) :: io !< file unit of HEADER file |
---|
| 214 | INTEGER(iwp) :: l !< substring length |
---|
| 215 | INTEGER(iwp) :: ll !< substring length |
---|
[4069] | 216 | INTEGER(iwp) :: mid !< masked output running index |
---|
[4444] | 217 | #if defined( __parallel ) |
---|
| 218 | INTEGER(iwp) :: cpl_parent_id !< parent ID for the respective child model |
---|
[3552] | 219 | INTEGER(iwp) :: my_cpl_id !< run id in a nested model setup |
---|
| 220 | INTEGER(iwp) :: n !< running index over number of couplers in a nested model setup |
---|
| 221 | INTEGER(iwp) :: ncpl !< number of coupler in a nested model setup |
---|
| 222 | INTEGER(iwp) :: npe_total !< number of total PEs in a coupler (parent + child) |
---|
[4444] | 223 | #endif |
---|
[1826] | 224 | |
---|
[4586] | 225 | |
---|
[3552] | 226 | REAL(wp) :: cpuseconds_per_simulated_second !< CPU time (in s) per simulated second |
---|
[4444] | 227 | #if defined( __parallel ) |
---|
[1791] | 228 | REAL(wp) :: lower_left_coord_x !< x-coordinate of nest domain |
---|
| 229 | REAL(wp) :: lower_left_coord_y !< y-coordinate of nest domain |
---|
[4444] | 230 | #endif |
---|
[1] | 231 | |
---|
| 232 | ! |
---|
| 233 | !-- Open the output file. At the end of the simulation, output is directed |
---|
| 234 | !-- to unit 19. |
---|
| 235 | IF ( ( runnr == 0 .OR. force_print_header ) .AND. & |
---|
| 236 | .NOT. simulated_time_at_begin /= simulated_time ) THEN |
---|
| 237 | io = 15 ! header output on file RUN_CONTROL |
---|
| 238 | ELSE |
---|
| 239 | io = 19 ! header output on file HEADER |
---|
| 240 | ENDIF |
---|
| 241 | CALL check_open( io ) |
---|
| 242 | |
---|
| 243 | ! |
---|
| 244 | !-- At the end of the run, output file (HEADER) will be rewritten with |
---|
[1551] | 245 | !-- new information |
---|
[1] | 246 | IF ( io == 19 .AND. simulated_time_at_begin /= simulated_time ) REWIND( 19 ) |
---|
| 247 | |
---|
| 248 | ! |
---|
| 249 | !-- Determine kind of model run |
---|
| 250 | IF ( TRIM( initializing_actions ) == 'read_restart_data' ) THEN |
---|
[1764] | 251 | run_classification = 'restart run' |
---|
[328] | 252 | ELSEIF ( TRIM( initializing_actions ) == 'cyclic_fill' ) THEN |
---|
[1764] | 253 | run_classification = 'run with cyclic fill of 3D - prerun data' |
---|
[147] | 254 | ELSEIF ( INDEX( initializing_actions, 'set_constant_profiles' ) /= 0 ) THEN |
---|
[1764] | 255 | run_classification = 'run without 1D - prerun' |
---|
[197] | 256 | ELSEIF ( INDEX( initializing_actions, 'set_1d-model_profiles' ) /= 0 ) THEN |
---|
[1764] | 257 | run_classification = 'run with 1D - prerun' |
---|
[2696] | 258 | ELSEIF ( INDEX( initializing_actions, 'inifor' ) /= 0 ) THEN |
---|
| 259 | run_classification = 'run initialized with COSMO data' |
---|
[197] | 260 | ELSEIF ( INDEX( initializing_actions, 'by_user' ) /=0 ) THEN |
---|
[1764] | 261 | run_classification = 'run initialized by user' |
---|
[3045] | 262 | ELSEIF ( INDEX( initializing_actions, 'initialize_vortex' ) /=0 ) THEN |
---|
| 263 | run_classification = 'run additionally initialized by a Rankine-vortex' |
---|
| 264 | ELSEIF ( INDEX( initializing_actions, 'initialize_ptanom' ) /=0 ) THEN |
---|
| 265 | run_classification = 'run additionally initialized by temperature anomaly' |
---|
[1] | 266 | ELSE |
---|
[254] | 267 | message_string = ' unknown action(s): ' // TRIM( initializing_actions ) |
---|
| 268 | CALL message( 'header', 'PA0191', 0, 0, 0, 6, 0 ) |
---|
[1] | 269 | ENDIF |
---|
[4444] | 270 | #if defined( __parallel ) |
---|
[3241] | 271 | IF ( nested_run ) run_classification = 'nested ' // run_classification(1:63) |
---|
[4444] | 272 | #endif |
---|
[3294] | 273 | IF ( ocean_mode ) THEN |
---|
[3241] | 274 | run_classification = 'ocean - ' // run_classification(1:61) |
---|
[97] | 275 | ELSE |
---|
[3241] | 276 | run_classification = 'atmosphere - ' // run_classification(1:57) |
---|
[97] | 277 | ENDIF |
---|
[1] | 278 | |
---|
| 279 | ! |
---|
| 280 | !-- Run-identification, date, time, host |
---|
| 281 | host_chr = host(1:10) |
---|
[75] | 282 | ver_rev = TRIM( version ) // ' ' // TRIM( revision ) |
---|
[102] | 283 | WRITE ( io, 100 ) ver_rev, TRIM( run_classification ) |
---|
[291] | 284 | IF ( TRIM( coupling_mode ) /= 'uncoupled' ) THEN |
---|
[2298] | 285 | WRITE ( io, 101 ) coupling_mode |
---|
[291] | 286 | ENDIF |
---|
[1108] | 287 | #if defined( __parallel ) |
---|
[2299] | 288 | IF ( coupling_start_time /= 0.0_wp .AND. .NOT. spinup ) THEN |
---|
[1106] | 289 | IF ( coupling_start_time > simulated_time_at_begin ) THEN |
---|
| 290 | WRITE ( io, 109 ) |
---|
| 291 | ELSE |
---|
| 292 | WRITE ( io, 114 ) |
---|
| 293 | ENDIF |
---|
| 294 | ENDIF |
---|
[1108] | 295 | #endif |
---|
[1429] | 296 | IF ( ensemble_member_nr /= 0 ) THEN |
---|
| 297 | WRITE ( io, 512 ) run_date, run_identifier, run_time, runnr, & |
---|
| 298 | ADJUSTR( host_chr ), ensemble_member_nr |
---|
| 299 | ELSE |
---|
| 300 | WRITE ( io, 102 ) run_date, run_identifier, run_time, runnr, & |
---|
[102] | 301 | ADJUSTR( host_chr ) |
---|
[1429] | 302 | ENDIF |
---|
[1] | 303 | #if defined( __parallel ) |
---|
[1482] | 304 | IF ( npex == -1 .AND. npey == -1 ) THEN |
---|
[1] | 305 | char1 = 'calculated' |
---|
| 306 | ELSE |
---|
| 307 | char1 = 'predefined' |
---|
| 308 | ENDIF |
---|
| 309 | IF ( threads_per_task == 1 ) THEN |
---|
[102] | 310 | WRITE ( io, 103 ) numprocs, pdims(1), pdims(2), TRIM( char1 ) |
---|
[1] | 311 | ELSE |
---|
[102] | 312 | WRITE ( io, 104 ) numprocs*threads_per_task, numprocs, & |
---|
[1] | 313 | threads_per_task, pdims(1), pdims(2), TRIM( char1 ) |
---|
| 314 | ENDIF |
---|
[2300] | 315 | |
---|
| 316 | IF ( pdims(2) == 1 ) THEN |
---|
[102] | 317 | WRITE ( io, 107 ) 'x' |
---|
[1] | 318 | ELSEIF ( pdims(1) == 1 ) THEN |
---|
[102] | 319 | WRITE ( io, 107 ) 'y' |
---|
[1] | 320 | ENDIF |
---|
[759] | 321 | IF ( numprocs /= maximum_parallel_io_streams ) THEN |
---|
| 322 | WRITE ( io, 108 ) maximum_parallel_io_streams |
---|
| 323 | ENDIF |
---|
[1] | 324 | #endif |
---|
[1764] | 325 | |
---|
[4444] | 326 | #if defined( __parallel ) |
---|
[1764] | 327 | ! |
---|
| 328 | !-- Nesting informations |
---|
| 329 | IF ( nested_run ) THEN |
---|
[1791] | 330 | |
---|
[1797] | 331 | WRITE ( io, 600 ) TRIM( nesting_mode ), & |
---|
| 332 | TRIM( nesting_datatransfer_mode ) |
---|
[1791] | 333 | CALL pmc_get_model_info( ncpl = ncpl, cpl_id = my_cpl_id ) |
---|
| 334 | |
---|
| 335 | DO n = 1, ncpl |
---|
| 336 | CALL pmc_get_model_info( request_for_cpl_id = n, cpl_name = cpl_name,& |
---|
| 337 | cpl_parent_id = cpl_parent_id, & |
---|
| 338 | lower_left_x = lower_left_coord_x, & |
---|
| 339 | lower_left_y = lower_left_coord_y, & |
---|
| 340 | npe_total = npe_total ) |
---|
| 341 | IF ( n == my_cpl_id ) THEN |
---|
| 342 | char1 = '*' |
---|
| 343 | ELSE |
---|
| 344 | char1 = ' ' |
---|
| 345 | ENDIF |
---|
| 346 | WRITE ( io, 601 ) TRIM( char1 ), n, cpl_parent_id, npe_total, & |
---|
| 347 | lower_left_coord_x, lower_left_coord_y, & |
---|
| 348 | TRIM( cpl_name ) |
---|
| 349 | ENDDO |
---|
[4444] | 350 | |
---|
| 351 | ENDIF |
---|
[2967] | 352 | #endif |
---|
| 353 | |
---|
[1] | 354 | WRITE ( io, 99 ) |
---|
| 355 | |
---|
| 356 | ! |
---|
| 357 | !-- Numerical schemes |
---|
| 358 | WRITE ( io, 110 ) |
---|
[2696] | 359 | IF ( rans_mode ) THEN |
---|
| 360 | WRITE ( io, 124 ) TRIM( turbulence_closure ), 'RANS' |
---|
| 361 | ELSE |
---|
| 362 | WRITE ( io, 124 ) TRIM( turbulence_closure ), 'LES' |
---|
| 363 | ENDIF |
---|
[2037] | 364 | WRITE ( io, 121 ) TRIM( approximation ) |
---|
[1] | 365 | IF ( psolver(1:7) == 'poisfft' ) THEN |
---|
| 366 | WRITE ( io, 111 ) TRIM( fft_method ) |
---|
[1216] | 367 | IF ( transpose_compute_overlap ) WRITE( io, 115 ) |
---|
[1] | 368 | ELSEIF ( psolver == 'sor' ) THEN |
---|
| 369 | WRITE ( io, 112 ) nsor_ini, nsor, omega_sor |
---|
[1575] | 370 | ELSEIF ( psolver(1:9) == 'multigrid' ) THEN |
---|
| 371 | WRITE ( io, 135 ) TRIM(psolver), cycle_mg, maximum_grid_level, ngsrb |
---|
[1] | 372 | IF ( mg_cycles == -1 ) THEN |
---|
| 373 | WRITE ( io, 140 ) residual_limit |
---|
| 374 | ELSE |
---|
| 375 | WRITE ( io, 141 ) mg_cycles |
---|
| 376 | ENDIF |
---|
| 377 | IF ( mg_switch_to_pe0_level == 0 ) THEN |
---|
| 378 | WRITE ( io, 136 ) nxr_mg(1)-nxl_mg(1)+1, nyn_mg(1)-nys_mg(1)+1, & |
---|
| 379 | nzt_mg(1) |
---|
[197] | 380 | ELSEIF ( mg_switch_to_pe0_level /= -1 ) THEN |
---|
[1] | 381 | WRITE ( io, 137 ) mg_switch_to_pe0_level, & |
---|
| 382 | mg_loc_ind(2,0)-mg_loc_ind(1,0)+1, & |
---|
| 383 | mg_loc_ind(4,0)-mg_loc_ind(3,0)+1, & |
---|
| 384 | nzt_mg(mg_switch_to_pe0_level), & |
---|
| 385 | nxr_mg(1)-nxl_mg(1)+1, nyn_mg(1)-nys_mg(1)+1, & |
---|
| 386 | nzt_mg(1) |
---|
| 387 | ENDIF |
---|
[1931] | 388 | IF ( psolver == 'multigrid_noopt' .AND. masking_method ) WRITE ( io, 144 ) |
---|
[1] | 389 | ENDIF |
---|
| 390 | IF ( call_psolver_at_all_substeps .AND. timestep_scheme(1:5) == 'runge' ) & |
---|
| 391 | THEN |
---|
| 392 | WRITE ( io, 142 ) |
---|
| 393 | ENDIF |
---|
| 394 | |
---|
| 395 | IF ( momentum_advec == 'pw-scheme' ) THEN |
---|
| 396 | WRITE ( io, 113 ) |
---|
[1299] | 397 | ELSEIF (momentum_advec == 'ws-scheme' ) THEN |
---|
[667] | 398 | WRITE ( io, 503 ) |
---|
[1] | 399 | ENDIF |
---|
| 400 | IF ( scalar_advec == 'pw-scheme' ) THEN |
---|
| 401 | WRITE ( io, 116 ) |
---|
[667] | 402 | ELSEIF ( scalar_advec == 'ws-scheme' ) THEN |
---|
| 403 | WRITE ( io, 504 ) |
---|
[1] | 404 | ELSE |
---|
| 405 | WRITE ( io, 118 ) |
---|
| 406 | ENDIF |
---|
[63] | 407 | |
---|
| 408 | WRITE ( io, 139 ) TRIM( loop_optimization ) |
---|
| 409 | |
---|
[1] | 410 | IF ( galilei_transformation ) THEN |
---|
| 411 | IF ( use_ug_for_galilei_tr ) THEN |
---|
[868] | 412 | char1 = '0.6 * geostrophic wind' |
---|
[1] | 413 | ELSE |
---|
| 414 | char1 = 'mean wind in model domain' |
---|
| 415 | ENDIF |
---|
| 416 | IF ( simulated_time_at_begin == simulated_time ) THEN |
---|
| 417 | char2 = 'at the start of the run' |
---|
| 418 | ELSE |
---|
| 419 | char2 = 'at the end of the run' |
---|
| 420 | ENDIF |
---|
[1353] | 421 | WRITE ( io, 119 ) TRIM( char1 ), TRIM( char2 ), & |
---|
| 422 | advected_distance_x/1000.0_wp, & |
---|
| 423 | advected_distance_y/1000.0_wp |
---|
[1] | 424 | ENDIF |
---|
[1001] | 425 | WRITE ( io, 122 ) timestep_scheme |
---|
[87] | 426 | IF ( use_upstream_for_tke ) WRITE ( io, 143 ) |
---|
[1353] | 427 | IF ( rayleigh_damping_factor /= 0.0_wp ) THEN |
---|
[3294] | 428 | IF ( .NOT. ocean_mode ) THEN |
---|
[108] | 429 | WRITE ( io, 123 ) 'above', rayleigh_damping_height, & |
---|
| 430 | rayleigh_damping_factor |
---|
| 431 | ELSE |
---|
| 432 | WRITE ( io, 123 ) 'below', rayleigh_damping_height, & |
---|
| 433 | rayleigh_damping_factor |
---|
| 434 | ENDIF |
---|
[1] | 435 | ENDIF |
---|
[940] | 436 | IF ( neutral ) WRITE ( io, 131 ) pt_surface |
---|
[75] | 437 | IF ( humidity ) THEN |
---|
[3274] | 438 | IF ( .NOT. bulk_cloud_model ) THEN |
---|
[1] | 439 | WRITE ( io, 129 ) |
---|
| 440 | ELSE |
---|
| 441 | WRITE ( io, 130 ) |
---|
| 442 | ENDIF |
---|
| 443 | ENDIF |
---|
| 444 | IF ( passive_scalar ) WRITE ( io, 134 ) |
---|
[240] | 445 | IF ( conserve_volume_flow ) THEN |
---|
[241] | 446 | WRITE ( io, 150 ) conserve_volume_flow_mode |
---|
| 447 | IF ( TRIM( conserve_volume_flow_mode ) == 'bulk_velocity' ) THEN |
---|
| 448 | WRITE ( io, 151 ) u_bulk, v_bulk |
---|
| 449 | ENDIF |
---|
[240] | 450 | ELSEIF ( dp_external ) THEN |
---|
| 451 | IF ( dp_smooth ) THEN |
---|
[241] | 452 | WRITE ( io, 152 ) dpdxy, dp_level_b, ', vertically smoothed.' |
---|
[240] | 453 | ELSE |
---|
[241] | 454 | WRITE ( io, 152 ) dpdxy, dp_level_b, '.' |
---|
[240] | 455 | ENDIF |
---|
| 456 | ENDIF |
---|
[1] | 457 | WRITE ( io, 99 ) |
---|
| 458 | |
---|
| 459 | ! |
---|
[1551] | 460 | !-- Runtime and timestep information |
---|
[1] | 461 | WRITE ( io, 200 ) |
---|
| 462 | IF ( .NOT. dt_fixed ) THEN |
---|
| 463 | WRITE ( io, 201 ) dt_max, cfl_factor |
---|
| 464 | ELSE |
---|
| 465 | WRITE ( io, 202 ) dt |
---|
| 466 | ENDIF |
---|
| 467 | WRITE ( io, 203 ) simulated_time_at_begin, end_time |
---|
| 468 | |
---|
[1322] | 469 | IF ( time_restart /= 9999999.9_wp .AND. & |
---|
[1] | 470 | simulated_time_at_begin == simulated_time ) THEN |
---|
[1322] | 471 | IF ( dt_restart == 9999999.9_wp ) THEN |
---|
[1] | 472 | WRITE ( io, 204 ) ' Restart at: ',time_restart |
---|
| 473 | ELSE |
---|
| 474 | WRITE ( io, 205 ) ' Restart at: ',time_restart, dt_restart |
---|
| 475 | ENDIF |
---|
| 476 | ENDIF |
---|
| 477 | |
---|
| 478 | IF ( simulated_time_at_begin /= simulated_time ) THEN |
---|
| 479 | i = MAX ( log_point_s(10)%counts, 1 ) |
---|
[1353] | 480 | IF ( ( simulated_time - simulated_time_at_begin ) == 0.0_wp ) THEN |
---|
| 481 | cpuseconds_per_simulated_second = 0.0_wp |
---|
[1] | 482 | ELSE |
---|
| 483 | cpuseconds_per_simulated_second = log_point_s(10)%sum / & |
---|
| 484 | ( simulated_time - & |
---|
| 485 | simulated_time_at_begin ) |
---|
| 486 | ENDIF |
---|
[1322] | 487 | WRITE ( io, 206 ) simulated_time, log_point_s(10)%sum, & |
---|
| 488 | log_point_s(10)%sum / REAL( i, KIND=wp ), & |
---|
[1] | 489 | cpuseconds_per_simulated_second |
---|
[1322] | 490 | IF ( time_restart /= 9999999.9_wp .AND. time_restart < end_time ) THEN |
---|
| 491 | IF ( dt_restart == 9999999.9_wp ) THEN |
---|
[1106] | 492 | WRITE ( io, 204 ) ' Next restart at: ',time_restart |
---|
[1] | 493 | ELSE |
---|
[1106] | 494 | WRITE ( io, 205 ) ' Next restart at: ',time_restart, dt_restart |
---|
[1] | 495 | ENDIF |
---|
| 496 | ENDIF |
---|
| 497 | ENDIF |
---|
| 498 | |
---|
[1324] | 499 | |
---|
[1] | 500 | ! |
---|
[291] | 501 | !-- Start time for coupled runs, if independent precursor runs for atmosphere |
---|
[1106] | 502 | !-- and ocean are used or have been used. In this case, coupling_start_time |
---|
| 503 | !-- defines the time when the coupling is switched on. |
---|
[1353] | 504 | IF ( coupling_start_time /= 0.0_wp ) THEN |
---|
[1106] | 505 | WRITE ( io, 207 ) coupling_start_time |
---|
[291] | 506 | ENDIF |
---|
| 507 | |
---|
| 508 | ! |
---|
[1] | 509 | !-- Computational grid |
---|
[3294] | 510 | IF ( .NOT. ocean_mode ) THEN |
---|
[3065] | 511 | WRITE ( io, 250 ) dx, dy |
---|
[4586] | 512 | |
---|
[3065] | 513 | DO i = 1, number_stretch_level_start+1 |
---|
| 514 | WRITE ( io, 253 ) i, dz(i) |
---|
| 515 | ENDDO |
---|
[4586] | 516 | |
---|
[3065] | 517 | WRITE( io, 251 ) (nx+1)*dx, (ny+1)*dy, zu(nzt+1) |
---|
[4586] | 518 | |
---|
[3065] | 519 | IF ( ANY( dz_stretch_level_start_index < nzt+1 ) ) THEN |
---|
| 520 | WRITE( io, '(A)', advance='no') ' Vertical stretching starts at height:' |
---|
| 521 | DO i = 1, number_stretch_level_start |
---|
| 522 | WRITE ( io, '(F10.1,A3)', advance='no' ) dz_stretch_level_start(i), ' m,' |
---|
| 523 | ENDDO |
---|
| 524 | WRITE( io, '(/,A)', advance='no') ' Vertical stretching starts at index: ' |
---|
| 525 | DO i = 1, number_stretch_level_start |
---|
| 526 | WRITE ( io, '(I12,A1)', advance='no' ) dz_stretch_level_start_index(i), ',' |
---|
| 527 | ENDDO |
---|
| 528 | WRITE( io, '(/,A)', advance='no') ' Vertical stretching ends at height: ' |
---|
| 529 | DO i = 1, number_stretch_level_start |
---|
| 530 | WRITE ( io, '(F10.1,A3)', advance='no' ) dz_stretch_level_end(i), ' m,' |
---|
| 531 | ENDDO |
---|
| 532 | WRITE( io, '(/,A)', advance='no') ' Vertical stretching ends at index: ' |
---|
| 533 | DO i = 1, number_stretch_level_start |
---|
| 534 | WRITE ( io, '(I12,A1)', advance='no' ) dz_stretch_level_end_index(i), ',' |
---|
| 535 | ENDDO |
---|
| 536 | WRITE( io, '(/,A)', advance='no') ' Factor used for stretching: ' |
---|
| 537 | DO i = 1, number_stretch_level_start |
---|
| 538 | WRITE ( io, '(F12.3,A1)', advance='no' ) dz_stretch_factor_array(i), ',' |
---|
| 539 | ENDDO |
---|
[94] | 540 | ENDIF |
---|
[4586] | 541 | |
---|
[94] | 542 | ELSE |
---|
[3065] | 543 | WRITE ( io, 250 ) dx, dy |
---|
| 544 | DO i = 1, number_stretch_level_start+1 |
---|
| 545 | WRITE ( io, 253 ) i, dz(i) |
---|
| 546 | ENDDO |
---|
[4586] | 547 | |
---|
[3065] | 548 | WRITE ( io, 251 ) (nx+1)*dx, (ny+1)*dy, zu(0) |
---|
[4586] | 549 | |
---|
[3065] | 550 | IF ( ANY( dz_stretch_level_start_index > 0 ) ) THEN |
---|
| 551 | WRITE( io, '(A)', advance='no') ' Vertical stretching starts at height:' |
---|
| 552 | DO i = 1, number_stretch_level_start |
---|
| 553 | WRITE ( io, '(F10.1,A3)', advance='no' ) dz_stretch_level_start(i), ' m,' |
---|
| 554 | ENDDO |
---|
| 555 | WRITE( io, '(/,A)', advance='no') ' Vertical stretching starts at index: ' |
---|
| 556 | DO i = 1, number_stretch_level_start |
---|
| 557 | WRITE ( io, '(I12,A1)', advance='no' ) dz_stretch_level_start_index(i), ',' |
---|
| 558 | ENDDO |
---|
| 559 | WRITE( io, '(/,A)', advance='no') ' Vertical stretching ends at height: ' |
---|
| 560 | DO i = 1, number_stretch_level_start |
---|
| 561 | WRITE ( io, '(F10.1,A3)', advance='no' ) dz_stretch_level_end(i), ' m,' |
---|
| 562 | ENDDO |
---|
| 563 | WRITE( io, '(/,A)', advance='no') ' Vertical stretching ends at index: ' |
---|
| 564 | DO i = 1, number_stretch_level_start |
---|
| 565 | WRITE ( io, '(I12,A1)', advance='no' ) dz_stretch_level_end_index(i), ',' |
---|
| 566 | ENDDO |
---|
| 567 | WRITE( io, '(/,A)', advance='no') ' Factor used for stretching: ' |
---|
| 568 | DO i = 1, number_stretch_level_start |
---|
| 569 | WRITE ( io, '(F12.3,A1)', advance='no' ) dz_stretch_factor_array(i), ',' |
---|
| 570 | ENDDO |
---|
[94] | 571 | ENDIF |
---|
[1] | 572 | ENDIF |
---|
[3065] | 573 | WRITE ( io, 254 ) nx, ny, nzt+1, MIN( nnx, nx+1 ), MIN( nny, ny+1 ), & |
---|
[1] | 574 | MIN( nnz+2, nzt+2 ) |
---|
| 575 | IF ( sloping_surface ) WRITE ( io, 260 ) alpha_surface |
---|
| 576 | |
---|
| 577 | ! |
---|
[1365] | 578 | !-- Profile for the large scale vertial velocity |
---|
| 579 | !-- Building output strings, starting with surface value |
---|
| 580 | IF ( large_scale_subsidence ) THEN |
---|
| 581 | temperatures = ' 0.0' |
---|
| 582 | gradients = '------' |
---|
| 583 | slices = ' 0' |
---|
| 584 | coordinates = ' 0.0' |
---|
| 585 | i = 1 |
---|
| 586 | DO WHILE ( subs_vertical_gradient_level_i(i) /= -9999 ) |
---|
| 587 | |
---|
| 588 | WRITE (coor_chr,'(E10.2,7X)') & |
---|
| 589 | w_subs(subs_vertical_gradient_level_i(i)) |
---|
| 590 | temperatures = TRIM( temperatures ) // ' ' // TRIM( coor_chr ) |
---|
| 591 | |
---|
| 592 | WRITE (coor_chr,'(E10.2,7X)') subs_vertical_gradient(i) |
---|
| 593 | gradients = TRIM( gradients ) // ' ' // TRIM( coor_chr ) |
---|
| 594 | |
---|
| 595 | WRITE (coor_chr,'(I10,7X)') subs_vertical_gradient_level_i(i) |
---|
| 596 | slices = TRIM( slices ) // ' ' // TRIM( coor_chr ) |
---|
| 597 | |
---|
| 598 | WRITE (coor_chr,'(F10.2,7X)') subs_vertical_gradient_level(i) |
---|
| 599 | coordinates = TRIM( coordinates ) // ' ' // TRIM( coor_chr ) |
---|
| 600 | |
---|
| 601 | IF ( i == 10 ) THEN |
---|
| 602 | EXIT |
---|
| 603 | ELSE |
---|
| 604 | i = i + 1 |
---|
| 605 | ENDIF |
---|
| 606 | |
---|
| 607 | ENDDO |
---|
| 608 | |
---|
[4586] | 609 | |
---|
[1365] | 610 | IF ( .NOT. large_scale_forcing ) THEN |
---|
| 611 | WRITE ( io, 426 ) TRIM( coordinates ), TRIM( temperatures ), & |
---|
| 612 | TRIM( gradients ), TRIM( slices ) |
---|
| 613 | ENDIF |
---|
| 614 | |
---|
| 615 | |
---|
| 616 | ENDIF |
---|
| 617 | |
---|
| 618 | !-- Profile of the geostrophic wind (component ug) |
---|
| 619 | !-- Building output strings |
---|
| 620 | WRITE ( ugcomponent, '(F6.2)' ) ug_surface |
---|
| 621 | gradients = '------' |
---|
| 622 | slices = ' 0' |
---|
| 623 | coordinates = ' 0.0' |
---|
| 624 | i = 1 |
---|
| 625 | DO WHILE ( ug_vertical_gradient_level_ind(i) /= -9999 ) |
---|
[4586] | 626 | |
---|
[1365] | 627 | WRITE (coor_chr,'(F6.2,1X)') ug(ug_vertical_gradient_level_ind(i)) |
---|
| 628 | ugcomponent = TRIM( ugcomponent ) // ' ' // TRIM( coor_chr ) |
---|
| 629 | |
---|
| 630 | WRITE (coor_chr,'(F6.2,1X)') ug_vertical_gradient(i) |
---|
| 631 | gradients = TRIM( gradients ) // ' ' // TRIM( coor_chr ) |
---|
| 632 | |
---|
| 633 | WRITE (coor_chr,'(I6,1X)') ug_vertical_gradient_level_ind(i) |
---|
| 634 | slices = TRIM( slices ) // ' ' // TRIM( coor_chr ) |
---|
| 635 | |
---|
| 636 | WRITE (coor_chr,'(F6.1,1X)') ug_vertical_gradient_level(i) |
---|
| 637 | coordinates = TRIM( coordinates ) // ' ' // TRIM( coor_chr ) |
---|
| 638 | |
---|
| 639 | IF ( i == 10 ) THEN |
---|
| 640 | EXIT |
---|
| 641 | ELSE |
---|
| 642 | i = i + 1 |
---|
| 643 | ENDIF |
---|
| 644 | |
---|
| 645 | ENDDO |
---|
| 646 | |
---|
| 647 | IF ( .NOT. large_scale_forcing ) THEN |
---|
| 648 | WRITE ( io, 423 ) TRIM( coordinates ), TRIM( ugcomponent ), & |
---|
| 649 | TRIM( gradients ), TRIM( slices ) |
---|
| 650 | ENDIF |
---|
| 651 | |
---|
| 652 | !-- Profile of the geostrophic wind (component vg) |
---|
| 653 | !-- Building output strings |
---|
| 654 | WRITE ( vgcomponent, '(F6.2)' ) vg_surface |
---|
| 655 | gradients = '------' |
---|
| 656 | slices = ' 0' |
---|
| 657 | coordinates = ' 0.0' |
---|
| 658 | i = 1 |
---|
| 659 | DO WHILE ( vg_vertical_gradient_level_ind(i) /= -9999 ) |
---|
| 660 | |
---|
| 661 | WRITE (coor_chr,'(F6.2,1X)') vg(vg_vertical_gradient_level_ind(i)) |
---|
| 662 | vgcomponent = TRIM( vgcomponent ) // ' ' // TRIM( coor_chr ) |
---|
| 663 | |
---|
| 664 | WRITE (coor_chr,'(F6.2,1X)') vg_vertical_gradient(i) |
---|
| 665 | gradients = TRIM( gradients ) // ' ' // TRIM( coor_chr ) |
---|
| 666 | |
---|
| 667 | WRITE (coor_chr,'(I6,1X)') vg_vertical_gradient_level_ind(i) |
---|
| 668 | slices = TRIM( slices ) // ' ' // TRIM( coor_chr ) |
---|
| 669 | |
---|
| 670 | WRITE (coor_chr,'(F6.1,1X)') vg_vertical_gradient_level(i) |
---|
| 671 | coordinates = TRIM( coordinates ) // ' ' // TRIM( coor_chr ) |
---|
| 672 | |
---|
| 673 | IF ( i == 10 ) THEN |
---|
| 674 | EXIT |
---|
| 675 | ELSE |
---|
| 676 | i = i + 1 |
---|
| 677 | ENDIF |
---|
[4586] | 678 | |
---|
[1365] | 679 | ENDDO |
---|
| 680 | |
---|
| 681 | IF ( .NOT. large_scale_forcing ) THEN |
---|
| 682 | WRITE ( io, 424 ) TRIM( coordinates ), TRIM( vgcomponent ), & |
---|
| 683 | TRIM( gradients ), TRIM( slices ) |
---|
| 684 | ENDIF |
---|
| 685 | |
---|
| 686 | ! |
---|
[1] | 687 | !-- Topography |
---|
| 688 | WRITE ( io, 270 ) topography |
---|
| 689 | SELECT CASE ( TRIM( topography ) ) |
---|
| 690 | |
---|
| 691 | CASE ( 'flat' ) |
---|
| 692 | ! no actions necessary |
---|
| 693 | |
---|
| 694 | CASE ( 'single_building' ) |
---|
| 695 | blx = INT( building_length_x / dx ) |
---|
| 696 | bly = INT( building_length_y / dy ) |
---|
[1675] | 697 | bh = MINLOC( ABS( zw - building_height ), 1 ) - 1 |
---|
| 698 | IF ( ABS( zw(bh ) - building_height ) == & |
---|
| 699 | ABS( zw(bh+1) - building_height ) ) bh = bh + 1 |
---|
[1] | 700 | |
---|
[1322] | 701 | IF ( building_wall_left == 9999999.9_wp ) THEN |
---|
[1] | 702 | building_wall_left = ( nx + 1 - blx ) / 2 * dx |
---|
| 703 | ENDIF |
---|
[1353] | 704 | bxl = INT ( building_wall_left / dx + 0.5_wp ) |
---|
[1] | 705 | bxr = bxl + blx |
---|
| 706 | |
---|
[1322] | 707 | IF ( building_wall_south == 9999999.9_wp ) THEN |
---|
[1] | 708 | building_wall_south = ( ny + 1 - bly ) / 2 * dy |
---|
| 709 | ENDIF |
---|
[1353] | 710 | bys = INT ( building_wall_south / dy + 0.5_wp ) |
---|
[1] | 711 | byn = bys + bly |
---|
| 712 | |
---|
| 713 | WRITE ( io, 271 ) building_length_x, building_length_y, & |
---|
| 714 | building_height, bxl, bxr, bys, byn |
---|
| 715 | |
---|
[240] | 716 | CASE ( 'single_street_canyon' ) |
---|
[1675] | 717 | ch = MINLOC( ABS( zw - canyon_height ), 1 ) - 1 |
---|
| 718 | IF ( ABS( zw(ch ) - canyon_height ) == & |
---|
| 719 | ABS( zw(ch+1) - canyon_height ) ) ch = ch + 1 |
---|
[1322] | 720 | IF ( canyon_width_x /= 9999999.9_wp ) THEN |
---|
[240] | 721 | ! |
---|
| 722 | !-- Street canyon in y direction |
---|
| 723 | cwx = NINT( canyon_width_x / dx ) |
---|
[1322] | 724 | IF ( canyon_wall_left == 9999999.9_wp ) THEN |
---|
[240] | 725 | canyon_wall_left = ( nx + 1 - cwx ) / 2 * dx |
---|
| 726 | ENDIF |
---|
| 727 | cxl = NINT( canyon_wall_left / dx ) |
---|
| 728 | cxr = cxl + cwx |
---|
| 729 | WRITE ( io, 272 ) 'y', canyon_height, ch, 'u', cxl, cxr |
---|
| 730 | |
---|
[1322] | 731 | ELSEIF ( canyon_width_y /= 9999999.9_wp ) THEN |
---|
[240] | 732 | ! |
---|
| 733 | !-- Street canyon in x direction |
---|
| 734 | cwy = NINT( canyon_width_y / dy ) |
---|
[1322] | 735 | IF ( canyon_wall_south == 9999999.9_wp ) THEN |
---|
[240] | 736 | canyon_wall_south = ( ny + 1 - cwy ) / 2 * dy |
---|
| 737 | ENDIF |
---|
| 738 | cys = NINT( canyon_wall_south / dy ) |
---|
| 739 | cyn = cys + cwy |
---|
| 740 | WRITE ( io, 272 ) 'x', canyon_height, ch, 'v', cys, cyn |
---|
| 741 | ENDIF |
---|
| 742 | |
---|
[2232] | 743 | CASE ( 'tunnel' ) |
---|
| 744 | IF ( tunnel_width_x /= 9999999.9_wp ) THEN |
---|
| 745 | ! |
---|
| 746 | !-- Tunnel axis in y direction |
---|
| 747 | IF ( tunnel_length == 9999999.9_wp .OR. & |
---|
| 748 | tunnel_length >= ( nx + 1 ) * dx ) THEN |
---|
| 749 | WRITE ( io, 273 ) 'y', tunnel_height, tunnel_wall_depth, & |
---|
| 750 | tunnel_width_x |
---|
| 751 | ELSE |
---|
| 752 | WRITE ( io, 274 ) 'y', tunnel_height, tunnel_wall_depth, & |
---|
| 753 | tunnel_width_x, tunnel_length |
---|
| 754 | ENDIF |
---|
| 755 | |
---|
| 756 | ELSEIF ( tunnel_width_y /= 9999999.9_wp ) THEN |
---|
| 757 | ! |
---|
| 758 | !-- Tunnel axis in x direction |
---|
| 759 | IF ( tunnel_length == 9999999.9_wp .OR. & |
---|
| 760 | tunnel_length >= ( ny + 1 ) * dy ) THEN |
---|
| 761 | WRITE ( io, 273 ) 'x', tunnel_height, tunnel_wall_depth, & |
---|
| 762 | tunnel_width_y |
---|
| 763 | ELSE |
---|
| 764 | WRITE ( io, 274 ) 'x', tunnel_height, tunnel_wall_depth, & |
---|
| 765 | tunnel_width_y, tunnel_length |
---|
| 766 | ENDIF |
---|
| 767 | ENDIF |
---|
| 768 | |
---|
[1] | 769 | END SELECT |
---|
| 770 | |
---|
[256] | 771 | IF ( TRIM( topography ) /= 'flat' ) THEN |
---|
| 772 | IF ( TRIM( topography_grid_convention ) == ' ' ) THEN |
---|
| 773 | IF ( TRIM( topography ) == 'single_building' .OR. & |
---|
| 774 | TRIM( topography ) == 'single_street_canyon' ) THEN |
---|
| 775 | WRITE ( io, 278 ) |
---|
| 776 | ELSEIF ( TRIM( topography ) == 'read_from_file' ) THEN |
---|
| 777 | WRITE ( io, 279 ) |
---|
| 778 | ENDIF |
---|
| 779 | ELSEIF ( TRIM( topography_grid_convention ) == 'cell_edge' ) THEN |
---|
| 780 | WRITE ( io, 278 ) |
---|
| 781 | ELSEIF ( TRIM( topography_grid_convention ) == 'cell_center' ) THEN |
---|
| 782 | WRITE ( io, 279 ) |
---|
| 783 | ENDIF |
---|
| 784 | ENDIF |
---|
| 785 | |
---|
[2550] | 786 | !-- Complex terrain |
---|
| 787 | IF ( complex_terrain ) THEN |
---|
[4586] | 788 | WRITE( io, 280 ) |
---|
[2550] | 789 | IF ( turbulent_inflow ) THEN |
---|
[4168] | 790 | WRITE( io, 281 ) zu(topo_top_ind(0,0,0)) |
---|
[2550] | 791 | ENDIF |
---|
| 792 | IF ( TRIM( initializing_actions ) == 'cyclic_fill' ) THEN |
---|
| 793 | WRITE( io, 282 ) |
---|
| 794 | ENDIF |
---|
| 795 | ENDIF |
---|
[3302] | 796 | ! |
---|
[1] | 797 | !-- Boundary conditions |
---|
| 798 | IF ( ibc_p_b == 0 ) THEN |
---|
[1826] | 799 | r_lower = 'p(0) = 0 |' |
---|
[1] | 800 | ELSEIF ( ibc_p_b == 1 ) THEN |
---|
[1826] | 801 | r_lower = 'p(0) = p(1) |' |
---|
[1] | 802 | ENDIF |
---|
| 803 | IF ( ibc_p_t == 0 ) THEN |
---|
[1826] | 804 | r_upper = 'p(nzt+1) = 0 |' |
---|
[1] | 805 | ELSE |
---|
[1826] | 806 | r_upper = 'p(nzt+1) = p(nzt) |' |
---|
[1] | 807 | ENDIF |
---|
| 808 | |
---|
| 809 | IF ( ibc_uv_b == 0 ) THEN |
---|
[1826] | 810 | r_lower = TRIM( r_lower ) // ' uv(0) = -uv(1) |' |
---|
[1] | 811 | ELSE |
---|
[1826] | 812 | r_lower = TRIM( r_lower ) // ' uv(0) = uv(1) |' |
---|
[1] | 813 | ENDIF |
---|
[132] | 814 | IF ( TRIM( bc_uv_t ) == 'dirichlet_0' ) THEN |
---|
[1826] | 815 | r_upper = TRIM( r_upper ) // ' uv(nzt+1) = 0 |' |
---|
[132] | 816 | ELSEIF ( ibc_uv_t == 0 ) THEN |
---|
[1826] | 817 | r_upper = TRIM( r_upper ) // ' uv(nzt+1) = ug(nzt+1), vg(nzt+1) |' |
---|
[1] | 818 | ELSE |
---|
[1826] | 819 | r_upper = TRIM( r_upper ) // ' uv(nzt+1) = uv(nzt) |' |
---|
[1] | 820 | ENDIF |
---|
| 821 | |
---|
| 822 | IF ( ibc_pt_b == 0 ) THEN |
---|
[1551] | 823 | IF ( land_surface ) THEN |
---|
[1826] | 824 | r_lower = TRIM( r_lower ) // ' pt(0) = from soil model' |
---|
[1551] | 825 | ELSE |
---|
[1826] | 826 | r_lower = TRIM( r_lower ) // ' pt(0) = pt_surface' |
---|
[1551] | 827 | ENDIF |
---|
[102] | 828 | ELSEIF ( ibc_pt_b == 1 ) THEN |
---|
[1826] | 829 | r_lower = TRIM( r_lower ) // ' pt(0) = pt(1)' |
---|
[102] | 830 | ELSEIF ( ibc_pt_b == 2 ) THEN |
---|
[1826] | 831 | r_lower = TRIM( r_lower ) // ' pt(0) = from coupled model' |
---|
[1] | 832 | ENDIF |
---|
| 833 | IF ( ibc_pt_t == 0 ) THEN |
---|
[1826] | 834 | r_upper = TRIM( r_upper ) // ' pt(nzt+1) = pt_top' |
---|
[19] | 835 | ELSEIF( ibc_pt_t == 1 ) THEN |
---|
[1826] | 836 | r_upper = TRIM( r_upper ) // ' pt(nzt+1) = pt(nzt)' |
---|
[19] | 837 | ELSEIF( ibc_pt_t == 2 ) THEN |
---|
[1826] | 838 | r_upper = TRIM( r_upper ) // ' pt(nzt+1) = pt(nzt) + dpt/dz_ini' |
---|
[667] | 839 | |
---|
[1] | 840 | ENDIF |
---|
| 841 | |
---|
[1826] | 842 | WRITE ( io, 300 ) r_lower, r_upper |
---|
[1] | 843 | |
---|
| 844 | IF ( .NOT. constant_diffusion ) THEN |
---|
| 845 | IF ( ibc_e_b == 1 ) THEN |
---|
[1826] | 846 | r_lower = 'e(0) = e(1)' |
---|
[1] | 847 | ELSE |
---|
[1826] | 848 | r_lower = 'e(0) = e(1) = (u*/0.1)**2' |
---|
[1] | 849 | ENDIF |
---|
[1826] | 850 | r_upper = 'e(nzt+1) = e(nzt) = e(nzt-1)' |
---|
[1] | 851 | |
---|
[4586] | 852 | WRITE ( io, 301 ) 'e', r_lower, r_upper |
---|
[1] | 853 | |
---|
| 854 | ENDIF |
---|
| 855 | |
---|
[3294] | 856 | IF ( ocean_mode ) THEN |
---|
[1826] | 857 | r_lower = 'sa(0) = sa(1)' |
---|
[97] | 858 | IF ( ibc_sa_t == 0 ) THEN |
---|
[1826] | 859 | r_upper = 'sa(nzt+1) = sa_surface' |
---|
[1] | 860 | ELSE |
---|
[1826] | 861 | r_upper = 'sa(nzt+1) = sa(nzt)' |
---|
[1] | 862 | ENDIF |
---|
[1826] | 863 | WRITE ( io, 301 ) 'sa', r_lower, r_upper |
---|
[97] | 864 | ENDIF |
---|
[1] | 865 | |
---|
[97] | 866 | IF ( humidity ) THEN |
---|
| 867 | IF ( ibc_q_b == 0 ) THEN |
---|
[1551] | 868 | IF ( land_surface ) THEN |
---|
[1826] | 869 | r_lower = 'q(0) = from soil model' |
---|
[1551] | 870 | ELSE |
---|
[1826] | 871 | r_lower = 'q(0) = q_surface' |
---|
[1551] | 872 | ENDIF |
---|
| 873 | |
---|
[97] | 874 | ELSE |
---|
[1992] | 875 | r_lower = 'q(0) = q(1)' |
---|
[97] | 876 | ENDIF |
---|
| 877 | IF ( ibc_q_t == 0 ) THEN |
---|
[1992] | 878 | r_upper = 'q(nzt+1) = q_top' |
---|
[97] | 879 | ELSE |
---|
[1992] | 880 | r_upper = 'q(nzt+1) = q(nzt) + dq/dz' |
---|
[97] | 881 | ENDIF |
---|
[1826] | 882 | WRITE ( io, 301 ) 'q', r_lower, r_upper |
---|
[97] | 883 | ENDIF |
---|
[1] | 884 | |
---|
[97] | 885 | IF ( passive_scalar ) THEN |
---|
[1960] | 886 | IF ( ibc_s_b == 0 ) THEN |
---|
[1992] | 887 | r_lower = 's(0) = s_surface' |
---|
[97] | 888 | ELSE |
---|
[1992] | 889 | r_lower = 's(0) = s(1)' |
---|
[97] | 890 | ENDIF |
---|
[1960] | 891 | IF ( ibc_s_t == 0 ) THEN |
---|
[1992] | 892 | r_upper = 's(nzt+1) = s_top' |
---|
| 893 | ELSEIF ( ibc_s_t == 1 ) THEN |
---|
| 894 | r_upper = 's(nzt+1) = s(nzt)' |
---|
| 895 | ELSEIF ( ibc_s_t == 2 ) THEN |
---|
| 896 | r_upper = 's(nzt+1) = s(nzt) + ds/dz' |
---|
[97] | 897 | ENDIF |
---|
[1826] | 898 | WRITE ( io, 301 ) 's', r_lower, r_upper |
---|
[1] | 899 | ENDIF |
---|
| 900 | |
---|
| 901 | IF ( use_surface_fluxes ) THEN |
---|
| 902 | WRITE ( io, 303 ) |
---|
| 903 | IF ( constant_heatflux ) THEN |
---|
[1299] | 904 | IF ( large_scale_forcing .AND. lsf_surf ) THEN |
---|
[2232] | 905 | IF ( surf_def_h(0)%ns >= 1 ) WRITE ( io, 306 ) surf_def_h(0)%shf(1) |
---|
[1241] | 906 | ELSE |
---|
| 907 | WRITE ( io, 306 ) surface_heatflux |
---|
| 908 | ENDIF |
---|
[1] | 909 | IF ( random_heatflux ) WRITE ( io, 307 ) |
---|
| 910 | ENDIF |
---|
[75] | 911 | IF ( humidity .AND. constant_waterflux ) THEN |
---|
[1299] | 912 | IF ( large_scale_forcing .AND. lsf_surf ) THEN |
---|
[2232] | 913 | WRITE ( io, 311 ) surf_def_h(0)%qsws(1) |
---|
[1241] | 914 | ELSE |
---|
| 915 | WRITE ( io, 311 ) surface_waterflux |
---|
| 916 | ENDIF |
---|
[1] | 917 | ENDIF |
---|
[1960] | 918 | IF ( passive_scalar .AND. constant_scalarflux ) THEN |
---|
| 919 | WRITE ( io, 313 ) surface_scalarflux |
---|
[1] | 920 | ENDIF |
---|
| 921 | ENDIF |
---|
| 922 | |
---|
[19] | 923 | IF ( use_top_fluxes ) THEN |
---|
| 924 | WRITE ( io, 304 ) |
---|
[102] | 925 | IF ( coupling_mode == 'uncoupled' ) THEN |
---|
[151] | 926 | WRITE ( io, 320 ) top_momentumflux_u, top_momentumflux_v |
---|
[102] | 927 | IF ( constant_top_heatflux ) THEN |
---|
| 928 | WRITE ( io, 306 ) top_heatflux |
---|
| 929 | ENDIF |
---|
| 930 | ELSEIF ( coupling_mode == 'ocean_to_atmosphere' ) THEN |
---|
| 931 | WRITE ( io, 316 ) |
---|
[19] | 932 | ENDIF |
---|
[3294] | 933 | IF ( ocean_mode .AND. constant_top_salinityflux ) & |
---|
[97] | 934 | WRITE ( io, 309 ) top_salinityflux |
---|
[1960] | 935 | IF ( humidity ) WRITE ( io, 315 ) |
---|
[1992] | 936 | IF ( passive_scalar .AND. constant_top_scalarflux ) & |
---|
| 937 | WRITE ( io, 302 ) top_scalarflux |
---|
[19] | 938 | ENDIF |
---|
| 939 | |
---|
[1691] | 940 | IF ( constant_flux_layer ) THEN |
---|
| 941 | WRITE ( io, 305 ) (zu(1)-zu(0)), roughness_length, & |
---|
| 942 | z0h_factor*roughness_length, kappa, & |
---|
| 943 | zeta_min, zeta_max |
---|
[1] | 944 | IF ( .NOT. constant_heatflux ) WRITE ( io, 308 ) |
---|
[75] | 945 | IF ( humidity .AND. .NOT. constant_waterflux ) THEN |
---|
[1] | 946 | WRITE ( io, 312 ) |
---|
| 947 | ENDIF |
---|
[1960] | 948 | IF ( passive_scalar .AND. .NOT. constant_scalarflux ) THEN |
---|
[1] | 949 | WRITE ( io, 314 ) |
---|
| 950 | ENDIF |
---|
| 951 | ELSE |
---|
| 952 | IF ( INDEX(initializing_actions, 'set_1d-model_profiles') /= 0 ) THEN |
---|
[1691] | 953 | WRITE ( io, 310 ) zeta_min, zeta_max |
---|
[1] | 954 | ENDIF |
---|
| 955 | ENDIF |
---|
| 956 | |
---|
| 957 | WRITE ( io, 317 ) bc_lr, bc_ns |
---|
[707] | 958 | IF ( .NOT. bc_lr_cyc .OR. .NOT. bc_ns_cyc ) THEN |
---|
[4586] | 959 | WRITE ( io, 318 ) use_cmax, pt_damping_width, pt_damping_factor |
---|
[151] | 960 | IF ( turbulent_inflow ) THEN |
---|
[4301] | 961 | IF ( y_shift == 0 ) THEN |
---|
[1560] | 962 | WRITE ( io, 319 ) recycling_width, recycling_plane, & |
---|
| 963 | inflow_damping_height, inflow_damping_width |
---|
| 964 | ELSE |
---|
[4301] | 965 | WRITE ( io, 322 ) y_shift, recycling_width, recycling_plane, & |
---|
[1560] | 966 | inflow_damping_height, inflow_damping_width |
---|
| 967 | END IF |
---|
[151] | 968 | ENDIF |
---|
[2050] | 969 | IF ( turbulent_outflow ) THEN |
---|
| 970 | WRITE ( io, 323 ) outflow_source_plane, INT(outflow_source_plane/dx) |
---|
| 971 | ENDIF |
---|
[1] | 972 | ENDIF |
---|
| 973 | |
---|
| 974 | ! |
---|
[1365] | 975 | !-- Initial Profiles |
---|
| 976 | WRITE ( io, 321 ) |
---|
| 977 | ! |
---|
| 978 | !-- Initial wind profiles |
---|
| 979 | IF ( u_profile(1) /= 9999999.9_wp ) WRITE ( io, 427 ) |
---|
| 980 | |
---|
| 981 | ! |
---|
| 982 | !-- Initial temperature profile |
---|
| 983 | !-- Building output strings, starting with surface temperature |
---|
| 984 | WRITE ( temperatures, '(F6.2)' ) pt_surface |
---|
| 985 | gradients = '------' |
---|
| 986 | slices = ' 0' |
---|
| 987 | coordinates = ' 0.0' |
---|
| 988 | i = 1 |
---|
| 989 | DO WHILE ( pt_vertical_gradient_level_ind(i) /= -9999 ) |
---|
| 990 | |
---|
| 991 | WRITE (coor_chr,'(F7.2)') pt_init(pt_vertical_gradient_level_ind(i)) |
---|
| 992 | temperatures = TRIM( temperatures ) // ' ' // TRIM( coor_chr ) |
---|
| 993 | |
---|
| 994 | WRITE (coor_chr,'(F7.2)') pt_vertical_gradient(i) |
---|
| 995 | gradients = TRIM( gradients ) // ' ' // TRIM( coor_chr ) |
---|
| 996 | |
---|
| 997 | WRITE (coor_chr,'(I7)') pt_vertical_gradient_level_ind(i) |
---|
| 998 | slices = TRIM( slices ) // ' ' // TRIM( coor_chr ) |
---|
| 999 | |
---|
| 1000 | WRITE (coor_chr,'(F7.1)') pt_vertical_gradient_level(i) |
---|
| 1001 | coordinates = TRIM( coordinates ) // ' ' // TRIM( coor_chr ) |
---|
| 1002 | |
---|
| 1003 | IF ( i == 10 ) THEN |
---|
| 1004 | EXIT |
---|
| 1005 | ELSE |
---|
| 1006 | i = i + 1 |
---|
| 1007 | ENDIF |
---|
| 1008 | |
---|
| 1009 | ENDDO |
---|
| 1010 | |
---|
| 1011 | IF ( .NOT. nudging ) THEN |
---|
| 1012 | WRITE ( io, 420 ) TRIM( coordinates ), TRIM( temperatures ), & |
---|
| 1013 | TRIM( gradients ), TRIM( slices ) |
---|
| 1014 | ELSE |
---|
[4586] | 1015 | WRITE ( io, 428 ) |
---|
[1365] | 1016 | ENDIF |
---|
| 1017 | |
---|
| 1018 | ! |
---|
| 1019 | !-- Initial humidity profile |
---|
| 1020 | !-- Building output strings, starting with surface humidity |
---|
[1960] | 1021 | IF ( humidity ) THEN |
---|
[1365] | 1022 | WRITE ( temperatures, '(E8.1)' ) q_surface |
---|
| 1023 | gradients = '--------' |
---|
| 1024 | slices = ' 0' |
---|
| 1025 | coordinates = ' 0.0' |
---|
| 1026 | i = 1 |
---|
| 1027 | DO WHILE ( q_vertical_gradient_level_ind(i) /= -9999 ) |
---|
[4586] | 1028 | |
---|
[1365] | 1029 | WRITE (coor_chr,'(E8.1,4X)') q_init(q_vertical_gradient_level_ind(i)) |
---|
| 1030 | temperatures = TRIM( temperatures ) // ' ' // TRIM( coor_chr ) |
---|
| 1031 | |
---|
| 1032 | WRITE (coor_chr,'(E8.1,4X)') q_vertical_gradient(i) |
---|
| 1033 | gradients = TRIM( gradients ) // ' ' // TRIM( coor_chr ) |
---|
[4586] | 1034 | |
---|
[1365] | 1035 | WRITE (coor_chr,'(I8,4X)') q_vertical_gradient_level_ind(i) |
---|
| 1036 | slices = TRIM( slices ) // ' ' // TRIM( coor_chr ) |
---|
[4586] | 1037 | |
---|
[1365] | 1038 | WRITE (coor_chr,'(F8.1,4X)') q_vertical_gradient_level(i) |
---|
| 1039 | coordinates = TRIM( coordinates ) // ' ' // TRIM( coor_chr ) |
---|
| 1040 | |
---|
| 1041 | IF ( i == 10 ) THEN |
---|
| 1042 | EXIT |
---|
| 1043 | ELSE |
---|
| 1044 | i = i + 1 |
---|
| 1045 | ENDIF |
---|
| 1046 | |
---|
| 1047 | ENDDO |
---|
| 1048 | |
---|
[1960] | 1049 | IF ( .NOT. nudging ) THEN |
---|
| 1050 | WRITE ( io, 421 ) TRIM( coordinates ), TRIM( temperatures ), & |
---|
[1365] | 1051 | TRIM( gradients ), TRIM( slices ) |
---|
| 1052 | ENDIF |
---|
| 1053 | ENDIF |
---|
[1960] | 1054 | ! |
---|
| 1055 | !-- Initial scalar profile |
---|
| 1056 | !-- Building output strings, starting with surface humidity |
---|
| 1057 | IF ( passive_scalar ) THEN |
---|
| 1058 | WRITE ( temperatures, '(E8.1)' ) s_surface |
---|
| 1059 | gradients = '--------' |
---|
| 1060 | slices = ' 0' |
---|
| 1061 | coordinates = ' 0.0' |
---|
| 1062 | i = 1 |
---|
| 1063 | DO WHILE ( s_vertical_gradient_level_ind(i) /= -9999 ) |
---|
[4586] | 1064 | |
---|
[2073] | 1065 | WRITE (coor_chr,'(E8.1,4X)') s_init(s_vertical_gradient_level_ind(i)) |
---|
[1960] | 1066 | temperatures = TRIM( temperatures ) // ' ' // TRIM( coor_chr ) |
---|
[1365] | 1067 | |
---|
[1960] | 1068 | WRITE (coor_chr,'(E8.1,4X)') s_vertical_gradient(i) |
---|
| 1069 | gradients = TRIM( gradients ) // ' ' // TRIM( coor_chr ) |
---|
[4586] | 1070 | |
---|
[1960] | 1071 | WRITE (coor_chr,'(I8,4X)') s_vertical_gradient_level_ind(i) |
---|
| 1072 | slices = TRIM( slices ) // ' ' // TRIM( coor_chr ) |
---|
[4586] | 1073 | |
---|
[1960] | 1074 | WRITE (coor_chr,'(F8.1,4X)') s_vertical_gradient_level(i) |
---|
| 1075 | coordinates = TRIM( coordinates ) // ' ' // TRIM( coor_chr ) |
---|
| 1076 | |
---|
| 1077 | IF ( i == 10 ) THEN |
---|
| 1078 | EXIT |
---|
| 1079 | ELSE |
---|
| 1080 | i = i + 1 |
---|
| 1081 | ENDIF |
---|
| 1082 | |
---|
| 1083 | ENDDO |
---|
| 1084 | |
---|
| 1085 | WRITE ( io, 422 ) TRIM( coordinates ), TRIM( temperatures ), & |
---|
| 1086 | TRIM( gradients ), TRIM( slices ) |
---|
[4586] | 1087 | ENDIF |
---|
[1960] | 1088 | |
---|
[1365] | 1089 | ! |
---|
| 1090 | !-- Initial salinity profile |
---|
| 1091 | !-- Building output strings, starting with surface salinity |
---|
[3294] | 1092 | IF ( ocean_mode ) THEN |
---|
[1365] | 1093 | WRITE ( temperatures, '(F6.2)' ) sa_surface |
---|
| 1094 | gradients = '------' |
---|
| 1095 | slices = ' 0' |
---|
| 1096 | coordinates = ' 0.0' |
---|
| 1097 | i = 1 |
---|
| 1098 | DO WHILE ( sa_vertical_gradient_level_ind(i) /= -9999 ) |
---|
| 1099 | |
---|
| 1100 | WRITE (coor_chr,'(F7.2)') sa_init(sa_vertical_gradient_level_ind(i)) |
---|
| 1101 | temperatures = TRIM( temperatures ) // ' ' // TRIM( coor_chr ) |
---|
| 1102 | |
---|
| 1103 | WRITE (coor_chr,'(F7.2)') sa_vertical_gradient(i) |
---|
| 1104 | gradients = TRIM( gradients ) // ' ' // TRIM( coor_chr ) |
---|
| 1105 | |
---|
| 1106 | WRITE (coor_chr,'(I7)') sa_vertical_gradient_level_ind(i) |
---|
| 1107 | slices = TRIM( slices ) // ' ' // TRIM( coor_chr ) |
---|
| 1108 | |
---|
| 1109 | WRITE (coor_chr,'(F7.1)') sa_vertical_gradient_level(i) |
---|
| 1110 | coordinates = TRIM( coordinates ) // ' ' // TRIM( coor_chr ) |
---|
| 1111 | |
---|
| 1112 | IF ( i == 10 ) THEN |
---|
| 1113 | EXIT |
---|
| 1114 | ELSE |
---|
| 1115 | i = i + 1 |
---|
| 1116 | ENDIF |
---|
| 1117 | |
---|
| 1118 | ENDDO |
---|
| 1119 | |
---|
| 1120 | WRITE ( io, 425 ) TRIM( coordinates ), TRIM( temperatures ), & |
---|
| 1121 | TRIM( gradients ), TRIM( slices ) |
---|
| 1122 | ENDIF |
---|
| 1123 | |
---|
| 1124 | |
---|
| 1125 | ! |
---|
[1] | 1126 | !-- Listing of 1D-profiles |
---|
[151] | 1127 | WRITE ( io, 325 ) dt_dopr_listing |
---|
[1353] | 1128 | IF ( averaging_interval_pr /= 0.0_wp ) THEN |
---|
[151] | 1129 | WRITE ( io, 326 ) averaging_interval_pr, dt_averaging_input_pr |
---|
[1] | 1130 | ENDIF |
---|
| 1131 | |
---|
| 1132 | ! |
---|
| 1133 | !-- DATA output |
---|
| 1134 | WRITE ( io, 330 ) |
---|
[1353] | 1135 | IF ( averaging_interval_pr /= 0.0_wp ) THEN |
---|
[151] | 1136 | WRITE ( io, 326 ) averaging_interval_pr, dt_averaging_input_pr |
---|
[1] | 1137 | ENDIF |
---|
| 1138 | |
---|
| 1139 | ! |
---|
| 1140 | !-- 1D-profiles |
---|
[346] | 1141 | dopr_chr = 'Profile:' |
---|
[1] | 1142 | IF ( dopr_n /= 0 ) THEN |
---|
| 1143 | WRITE ( io, 331 ) |
---|
| 1144 | |
---|
| 1145 | output_format = '' |
---|
[1783] | 1146 | output_format = netcdf_data_format_string |
---|
| 1147 | IF ( netcdf_deflate == 0 ) THEN |
---|
| 1148 | WRITE ( io, 344 ) output_format |
---|
| 1149 | ELSE |
---|
| 1150 | WRITE ( io, 354 ) TRIM( output_format ), netcdf_deflate |
---|
| 1151 | ENDIF |
---|
[1] | 1152 | |
---|
| 1153 | DO i = 1, dopr_n |
---|
| 1154 | dopr_chr = TRIM( dopr_chr ) // ' ' // TRIM( data_output_pr(i) ) // ',' |
---|
| 1155 | IF ( LEN_TRIM( dopr_chr ) >= 60 ) THEN |
---|
| 1156 | WRITE ( io, 332 ) dopr_chr |
---|
| 1157 | dopr_chr = ' :' |
---|
| 1158 | ENDIF |
---|
| 1159 | ENDDO |
---|
| 1160 | |
---|
| 1161 | IF ( dopr_chr /= '' ) THEN |
---|
| 1162 | WRITE ( io, 332 ) dopr_chr |
---|
| 1163 | ENDIF |
---|
| 1164 | WRITE ( io, 333 ) dt_dopr, averaging_interval_pr, dt_averaging_input_pr |
---|
[1353] | 1165 | IF ( skip_time_dopr /= 0.0_wp ) WRITE ( io, 339 ) skip_time_dopr |
---|
[1] | 1166 | ENDIF |
---|
| 1167 | |
---|
| 1168 | ! |
---|
| 1169 | !-- 2D-arrays |
---|
| 1170 | DO av = 0, 1 |
---|
| 1171 | |
---|
| 1172 | i = 1 |
---|
| 1173 | do2d_xy = '' |
---|
| 1174 | do2d_xz = '' |
---|
| 1175 | do2d_yz = '' |
---|
| 1176 | DO WHILE ( do2d(av,i) /= ' ' ) |
---|
| 1177 | |
---|
| 1178 | l = MAX( 2, LEN_TRIM( do2d(av,i) ) ) |
---|
| 1179 | do2d_mode = do2d(av,i)(l-1:l) |
---|
| 1180 | |
---|
| 1181 | SELECT CASE ( do2d_mode ) |
---|
| 1182 | CASE ( 'xy' ) |
---|
| 1183 | ll = LEN_TRIM( do2d_xy ) |
---|
| 1184 | do2d_xy = do2d_xy(1:ll) // ' ' // do2d(av,i)(1:l-3) // ',' |
---|
| 1185 | CASE ( 'xz' ) |
---|
| 1186 | ll = LEN_TRIM( do2d_xz ) |
---|
| 1187 | do2d_xz = do2d_xz(1:ll) // ' ' // do2d(av,i)(1:l-3) // ',' |
---|
| 1188 | CASE ( 'yz' ) |
---|
| 1189 | ll = LEN_TRIM( do2d_yz ) |
---|
| 1190 | do2d_yz = do2d_yz(1:ll) // ' ' // do2d(av,i)(1:l-3) // ',' |
---|
| 1191 | END SELECT |
---|
| 1192 | |
---|
| 1193 | i = i + 1 |
---|
| 1194 | |
---|
| 1195 | ENDDO |
---|
| 1196 | |
---|
| 1197 | IF ( ( ( do2d_xy /= '' .AND. section(1,1) /= -9999 ) .OR. & |
---|
| 1198 | ( do2d_xz /= '' .AND. section(1,2) /= -9999 ) .OR. & |
---|
[1327] | 1199 | ( do2d_yz /= '' .AND. section(1,3) /= -9999 ) ) ) THEN |
---|
[1] | 1200 | |
---|
| 1201 | IF ( av == 0 ) THEN |
---|
| 1202 | WRITE ( io, 334 ) '' |
---|
| 1203 | ELSE |
---|
| 1204 | WRITE ( io, 334 ) '(time-averaged)' |
---|
| 1205 | ENDIF |
---|
| 1206 | |
---|
| 1207 | IF ( do2d_at_begin ) THEN |
---|
| 1208 | begin_chr = 'and at the start' |
---|
| 1209 | ELSE |
---|
| 1210 | begin_chr = '' |
---|
| 1211 | ENDIF |
---|
| 1212 | |
---|
| 1213 | output_format = '' |
---|
[1783] | 1214 | output_format = netcdf_data_format_string |
---|
| 1215 | IF ( netcdf_deflate == 0 ) THEN |
---|
| 1216 | WRITE ( io, 344 ) output_format |
---|
| 1217 | ELSE |
---|
| 1218 | WRITE ( io, 354 ) TRIM( output_format ), netcdf_deflate |
---|
| 1219 | ENDIF |
---|
[1] | 1220 | |
---|
| 1221 | IF ( do2d_xy /= '' .AND. section(1,1) /= -9999 ) THEN |
---|
| 1222 | i = 1 |
---|
| 1223 | slices = '/' |
---|
| 1224 | coordinates = '/' |
---|
| 1225 | ! |
---|
[1551] | 1226 | !-- Building strings with index and coordinate information of the |
---|
[1] | 1227 | !-- slices |
---|
| 1228 | DO WHILE ( section(i,1) /= -9999 ) |
---|
| 1229 | |
---|
| 1230 | WRITE (section_chr,'(I5)') section(i,1) |
---|
| 1231 | section_chr = ADJUSTL( section_chr ) |
---|
| 1232 | slices = TRIM( slices ) // TRIM( section_chr ) // '/' |
---|
| 1233 | |
---|
[206] | 1234 | IF ( section(i,1) == -1 ) THEN |
---|
[1353] | 1235 | WRITE (coor_chr,'(F10.1)') -1.0_wp |
---|
[206] | 1236 | ELSE |
---|
| 1237 | WRITE (coor_chr,'(F10.1)') zu(section(i,1)) |
---|
| 1238 | ENDIF |
---|
[1] | 1239 | coor_chr = ADJUSTL( coor_chr ) |
---|
| 1240 | coordinates = TRIM( coordinates ) // TRIM( coor_chr ) // '/' |
---|
| 1241 | |
---|
| 1242 | i = i + 1 |
---|
| 1243 | ENDDO |
---|
| 1244 | IF ( av == 0 ) THEN |
---|
| 1245 | WRITE ( io, 335 ) 'XY', do2d_xy, dt_do2d_xy, & |
---|
| 1246 | TRIM( begin_chr ), 'k', TRIM( slices ), & |
---|
| 1247 | TRIM( coordinates ) |
---|
[1353] | 1248 | IF ( skip_time_do2d_xy /= 0.0_wp ) THEN |
---|
[1] | 1249 | WRITE ( io, 339 ) skip_time_do2d_xy |
---|
| 1250 | ENDIF |
---|
| 1251 | ELSE |
---|
| 1252 | WRITE ( io, 342 ) 'XY', do2d_xy, dt_data_output_av, & |
---|
| 1253 | TRIM( begin_chr ), averaging_interval, & |
---|
| 1254 | dt_averaging_input, 'k', TRIM( slices ), & |
---|
| 1255 | TRIM( coordinates ) |
---|
[1353] | 1256 | IF ( skip_time_data_output_av /= 0.0_wp ) THEN |
---|
[1] | 1257 | WRITE ( io, 339 ) skip_time_data_output_av |
---|
| 1258 | ENDIF |
---|
| 1259 | ENDIF |
---|
[1308] | 1260 | IF ( netcdf_data_format > 4 ) THEN |
---|
| 1261 | WRITE ( io, 352 ) ntdim_2d_xy(av) |
---|
| 1262 | ELSE |
---|
| 1263 | WRITE ( io, 353 ) |
---|
| 1264 | ENDIF |
---|
[1] | 1265 | ENDIF |
---|
| 1266 | |
---|
| 1267 | IF ( do2d_xz /= '' .AND. section(1,2) /= -9999 ) THEN |
---|
| 1268 | i = 1 |
---|
| 1269 | slices = '/' |
---|
| 1270 | coordinates = '/' |
---|
| 1271 | ! |
---|
[1551] | 1272 | !-- Building strings with index and coordinate information of the |
---|
[1] | 1273 | !-- slices |
---|
| 1274 | DO WHILE ( section(i,2) /= -9999 ) |
---|
| 1275 | |
---|
| 1276 | WRITE (section_chr,'(I5)') section(i,2) |
---|
| 1277 | section_chr = ADJUSTL( section_chr ) |
---|
| 1278 | slices = TRIM( slices ) // TRIM( section_chr ) // '/' |
---|
| 1279 | |
---|
| 1280 | WRITE (coor_chr,'(F10.1)') section(i,2) * dy |
---|
| 1281 | coor_chr = ADJUSTL( coor_chr ) |
---|
| 1282 | coordinates = TRIM( coordinates ) // TRIM( coor_chr ) // '/' |
---|
| 1283 | |
---|
| 1284 | i = i + 1 |
---|
| 1285 | ENDDO |
---|
| 1286 | IF ( av == 0 ) THEN |
---|
| 1287 | WRITE ( io, 335 ) 'XZ', do2d_xz, dt_do2d_xz, & |
---|
| 1288 | TRIM( begin_chr ), 'j', TRIM( slices ), & |
---|
| 1289 | TRIM( coordinates ) |
---|
[1353] | 1290 | IF ( skip_time_do2d_xz /= 0.0_wp ) THEN |
---|
[1] | 1291 | WRITE ( io, 339 ) skip_time_do2d_xz |
---|
| 1292 | ENDIF |
---|
| 1293 | ELSE |
---|
| 1294 | WRITE ( io, 342 ) 'XZ', do2d_xz, dt_data_output_av, & |
---|
| 1295 | TRIM( begin_chr ), averaging_interval, & |
---|
| 1296 | dt_averaging_input, 'j', TRIM( slices ), & |
---|
| 1297 | TRIM( coordinates ) |
---|
[1353] | 1298 | IF ( skip_time_data_output_av /= 0.0_wp ) THEN |
---|
[1] | 1299 | WRITE ( io, 339 ) skip_time_data_output_av |
---|
| 1300 | ENDIF |
---|
| 1301 | ENDIF |
---|
[1308] | 1302 | IF ( netcdf_data_format > 4 ) THEN |
---|
| 1303 | WRITE ( io, 352 ) ntdim_2d_xz(av) |
---|
| 1304 | ELSE |
---|
| 1305 | WRITE ( io, 353 ) |
---|
| 1306 | ENDIF |
---|
[1] | 1307 | ENDIF |
---|
| 1308 | |
---|
| 1309 | IF ( do2d_yz /= '' .AND. section(1,3) /= -9999 ) THEN |
---|
| 1310 | i = 1 |
---|
| 1311 | slices = '/' |
---|
| 1312 | coordinates = '/' |
---|
| 1313 | ! |
---|
[1551] | 1314 | !-- Building strings with index and coordinate information of the |
---|
[1] | 1315 | !-- slices |
---|
| 1316 | DO WHILE ( section(i,3) /= -9999 ) |
---|
| 1317 | |
---|
| 1318 | WRITE (section_chr,'(I5)') section(i,3) |
---|
| 1319 | section_chr = ADJUSTL( section_chr ) |
---|
| 1320 | slices = TRIM( slices ) // TRIM( section_chr ) // '/' |
---|
| 1321 | |
---|
| 1322 | WRITE (coor_chr,'(F10.1)') section(i,3) * dx |
---|
| 1323 | coor_chr = ADJUSTL( coor_chr ) |
---|
| 1324 | coordinates = TRIM( coordinates ) // TRIM( coor_chr ) // '/' |
---|
| 1325 | |
---|
| 1326 | i = i + 1 |
---|
| 1327 | ENDDO |
---|
| 1328 | IF ( av == 0 ) THEN |
---|
| 1329 | WRITE ( io, 335 ) 'YZ', do2d_yz, dt_do2d_yz, & |
---|
| 1330 | TRIM( begin_chr ), 'i', TRIM( slices ), & |
---|
| 1331 | TRIM( coordinates ) |
---|
[1353] | 1332 | IF ( skip_time_do2d_yz /= 0.0_wp ) THEN |
---|
[1] | 1333 | WRITE ( io, 339 ) skip_time_do2d_yz |
---|
| 1334 | ENDIF |
---|
| 1335 | ELSE |
---|
| 1336 | WRITE ( io, 342 ) 'YZ', do2d_yz, dt_data_output_av, & |
---|
| 1337 | TRIM( begin_chr ), averaging_interval, & |
---|
| 1338 | dt_averaging_input, 'i', TRIM( slices ), & |
---|
| 1339 | TRIM( coordinates ) |
---|
[1353] | 1340 | IF ( skip_time_data_output_av /= 0.0_wp ) THEN |
---|
[1] | 1341 | WRITE ( io, 339 ) skip_time_data_output_av |
---|
| 1342 | ENDIF |
---|
| 1343 | ENDIF |
---|
[1308] | 1344 | IF ( netcdf_data_format > 4 ) THEN |
---|
| 1345 | WRITE ( io, 352 ) ntdim_2d_yz(av) |
---|
| 1346 | ELSE |
---|
| 1347 | WRITE ( io, 353 ) |
---|
| 1348 | ENDIF |
---|
[1] | 1349 | ENDIF |
---|
| 1350 | |
---|
| 1351 | ENDIF |
---|
| 1352 | |
---|
| 1353 | ENDDO |
---|
| 1354 | |
---|
| 1355 | ! |
---|
| 1356 | !-- 3d-arrays |
---|
| 1357 | DO av = 0, 1 |
---|
| 1358 | |
---|
| 1359 | i = 1 |
---|
| 1360 | do3d_chr = '' |
---|
| 1361 | DO WHILE ( do3d(av,i) /= ' ' ) |
---|
| 1362 | |
---|
| 1363 | do3d_chr = TRIM( do3d_chr ) // ' ' // TRIM( do3d(av,i) ) // ',' |
---|
| 1364 | i = i + 1 |
---|
| 1365 | |
---|
| 1366 | ENDDO |
---|
| 1367 | |
---|
| 1368 | IF ( do3d_chr /= '' ) THEN |
---|
| 1369 | IF ( av == 0 ) THEN |
---|
| 1370 | WRITE ( io, 336 ) '' |
---|
| 1371 | ELSE |
---|
| 1372 | WRITE ( io, 336 ) '(time-averaged)' |
---|
| 1373 | ENDIF |
---|
| 1374 | |
---|
[1783] | 1375 | output_format = netcdf_data_format_string |
---|
| 1376 | IF ( netcdf_deflate == 0 ) THEN |
---|
| 1377 | WRITE ( io, 344 ) output_format |
---|
| 1378 | ELSE |
---|
| 1379 | WRITE ( io, 354 ) TRIM( output_format ), netcdf_deflate |
---|
| 1380 | ENDIF |
---|
[1] | 1381 | |
---|
| 1382 | IF ( do3d_at_begin ) THEN |
---|
| 1383 | begin_chr = 'and at the start' |
---|
| 1384 | ELSE |
---|
| 1385 | begin_chr = '' |
---|
| 1386 | ENDIF |
---|
| 1387 | IF ( av == 0 ) THEN |
---|
| 1388 | WRITE ( io, 337 ) do3d_chr, dt_do3d, TRIM( begin_chr ), & |
---|
| 1389 | zu(nz_do3d), nz_do3d |
---|
| 1390 | ELSE |
---|
| 1391 | WRITE ( io, 343 ) do3d_chr, dt_data_output_av, & |
---|
| 1392 | TRIM( begin_chr ), averaging_interval, & |
---|
| 1393 | dt_averaging_input, zu(nz_do3d), nz_do3d |
---|
| 1394 | ENDIF |
---|
| 1395 | |
---|
[1308] | 1396 | IF ( netcdf_data_format > 4 ) THEN |
---|
| 1397 | WRITE ( io, 352 ) ntdim_3d(av) |
---|
| 1398 | ELSE |
---|
| 1399 | WRITE ( io, 353 ) |
---|
| 1400 | ENDIF |
---|
| 1401 | |
---|
[1] | 1402 | IF ( av == 0 ) THEN |
---|
[1353] | 1403 | IF ( skip_time_do3d /= 0.0_wp ) THEN |
---|
[1] | 1404 | WRITE ( io, 339 ) skip_time_do3d |
---|
| 1405 | ENDIF |
---|
| 1406 | ELSE |
---|
[1353] | 1407 | IF ( skip_time_data_output_av /= 0.0_wp ) THEN |
---|
[1] | 1408 | WRITE ( io, 339 ) skip_time_data_output_av |
---|
| 1409 | ENDIF |
---|
| 1410 | ENDIF |
---|
| 1411 | |
---|
| 1412 | ENDIF |
---|
| 1413 | |
---|
| 1414 | ENDDO |
---|
| 1415 | |
---|
| 1416 | ! |
---|
[410] | 1417 | !-- masked arrays |
---|
| 1418 | IF ( masks > 0 ) WRITE ( io, 345 ) & |
---|
| 1419 | mask_scale_x, mask_scale_y, mask_scale_z |
---|
| 1420 | DO mid = 1, masks |
---|
| 1421 | DO av = 0, 1 |
---|
| 1422 | |
---|
| 1423 | i = 1 |
---|
| 1424 | domask_chr = '' |
---|
| 1425 | DO WHILE ( domask(mid,av,i) /= ' ' ) |
---|
| 1426 | domask_chr = TRIM( domask_chr ) // ' ' // & |
---|
| 1427 | TRIM( domask(mid,av,i) ) // ',' |
---|
| 1428 | i = i + 1 |
---|
| 1429 | ENDDO |
---|
| 1430 | |
---|
| 1431 | IF ( domask_chr /= '' ) THEN |
---|
| 1432 | IF ( av == 0 ) THEN |
---|
| 1433 | WRITE ( io, 346 ) '', mid |
---|
| 1434 | ELSE |
---|
| 1435 | WRITE ( io, 346 ) ' (time-averaged)', mid |
---|
| 1436 | ENDIF |
---|
| 1437 | |
---|
[1783] | 1438 | output_format = netcdf_data_format_string |
---|
[1308] | 1439 | !-- Parallel output not implemented for mask data, hence |
---|
| 1440 | !-- output_format must be adjusted. |
---|
| 1441 | IF ( netcdf_data_format == 5 ) output_format = 'netCDF4/HDF5' |
---|
| 1442 | IF ( netcdf_data_format == 6 ) output_format = 'netCDF4/HDF5 classic' |
---|
[1783] | 1443 | IF ( netcdf_deflate == 0 ) THEN |
---|
| 1444 | WRITE ( io, 344 ) output_format |
---|
| 1445 | ELSE |
---|
| 1446 | WRITE ( io, 354 ) TRIM( output_format ), netcdf_deflate |
---|
| 1447 | ENDIF |
---|
[410] | 1448 | |
---|
| 1449 | IF ( av == 0 ) THEN |
---|
| 1450 | WRITE ( io, 347 ) domask_chr, dt_domask(mid) |
---|
| 1451 | ELSE |
---|
| 1452 | WRITE ( io, 348 ) domask_chr, dt_data_output_av, & |
---|
| 1453 | averaging_interval, dt_averaging_input |
---|
| 1454 | ENDIF |
---|
| 1455 | |
---|
| 1456 | IF ( av == 0 ) THEN |
---|
[1353] | 1457 | IF ( skip_time_domask(mid) /= 0.0_wp ) THEN |
---|
[410] | 1458 | WRITE ( io, 339 ) skip_time_domask(mid) |
---|
| 1459 | ENDIF |
---|
| 1460 | ELSE |
---|
[1353] | 1461 | IF ( skip_time_data_output_av /= 0.0_wp ) THEN |
---|
[410] | 1462 | WRITE ( io, 339 ) skip_time_data_output_av |
---|
| 1463 | ENDIF |
---|
| 1464 | ENDIF |
---|
| 1465 | ! |
---|
| 1466 | !-- output locations |
---|
| 1467 | DO dim = 1, 3 |
---|
[1353] | 1468 | IF ( mask(mid,dim,1) >= 0.0_wp ) THEN |
---|
[410] | 1469 | count = 0 |
---|
[1353] | 1470 | DO WHILE ( mask(mid,dim,count+1) >= 0.0_wp ) |
---|
[410] | 1471 | count = count + 1 |
---|
| 1472 | ENDDO |
---|
| 1473 | WRITE ( io, 349 ) dir(dim), dir(dim), mid, dir(dim), & |
---|
| 1474 | mask(mid,dim,:count) |
---|
[1353] | 1475 | ELSEIF ( mask_loop(mid,dim,1) < 0.0_wp .AND. & |
---|
| 1476 | mask_loop(mid,dim,2) < 0.0_wp .AND. & |
---|
| 1477 | mask_loop(mid,dim,3) == 0.0_wp ) THEN |
---|
[410] | 1478 | WRITE ( io, 350 ) dir(dim), dir(dim) |
---|
[1353] | 1479 | ELSEIF ( mask_loop(mid,dim,3) == 0.0_wp ) THEN |
---|
[410] | 1480 | WRITE ( io, 351 ) dir(dim), dir(dim), mid, dir(dim), & |
---|
| 1481 | mask_loop(mid,dim,1:2) |
---|
| 1482 | ELSE |
---|
| 1483 | WRITE ( io, 351 ) dir(dim), dir(dim), mid, dir(dim), & |
---|
| 1484 | mask_loop(mid,dim,1:3) |
---|
| 1485 | ENDIF |
---|
| 1486 | ENDDO |
---|
| 1487 | ENDIF |
---|
| 1488 | |
---|
| 1489 | ENDDO |
---|
| 1490 | ENDDO |
---|
| 1491 | |
---|
| 1492 | ! |
---|
[1] | 1493 | !-- Timeseries |
---|
[1322] | 1494 | IF ( dt_dots /= 9999999.9_wp ) THEN |
---|
[1] | 1495 | WRITE ( io, 340 ) |
---|
| 1496 | |
---|
[1783] | 1497 | output_format = netcdf_data_format_string |
---|
| 1498 | IF ( netcdf_deflate == 0 ) THEN |
---|
| 1499 | WRITE ( io, 344 ) output_format |
---|
| 1500 | ELSE |
---|
| 1501 | WRITE ( io, 354 ) TRIM( output_format ), netcdf_deflate |
---|
| 1502 | ENDIF |
---|
[1] | 1503 | WRITE ( io, 341 ) dt_dots |
---|
| 1504 | ENDIF |
---|
| 1505 | |
---|
[4536] | 1506 | ! |
---|
| 1507 | !-- Restart data formats |
---|
| 1508 | IF ( TRIM( initializing_actions ) == 'read_restart_data' .OR. write_binary ) THEN |
---|
| 1509 | WRITE ( io, 355 ) |
---|
| 1510 | IF ( TRIM( initializing_actions ) == 'read_restart_data' ) THEN |
---|
| 1511 | WRITE ( io, 356 ) TRIM( restart_data_format_input ) |
---|
| 1512 | ENDIF |
---|
| 1513 | IF ( write_binary ) THEN |
---|
| 1514 | WRITE ( io, 357 ) TRIM( restart_data_format_output ) |
---|
| 1515 | ENDIF |
---|
| 1516 | ENDIF |
---|
| 1517 | |
---|
[1] | 1518 | WRITE ( io, 99 ) |
---|
| 1519 | |
---|
| 1520 | ! |
---|
| 1521 | !-- Physical quantities |
---|
| 1522 | WRITE ( io, 400 ) |
---|
| 1523 | |
---|
| 1524 | ! |
---|
| 1525 | !-- Geostrophic parameters |
---|
[4196] | 1526 | WRITE ( io, 410 ) latitude, longitude, rotation_angle, omega, f, fs |
---|
[1] | 1527 | |
---|
[3241] | 1528 | ! |
---|
[4227] | 1529 | !-- Day and time during model start |
---|
| 1530 | CALL get_date_time( 0.0_wp, date_time_str=date_time_str ) |
---|
| 1531 | WRITE ( io, 456 ) TRIM( date_time_str ) |
---|
| 1532 | |
---|
[1] | 1533 | ! |
---|
| 1534 | !-- Other quantities |
---|
| 1535 | WRITE ( io, 411 ) g |
---|
[1551] | 1536 | |
---|
[1179] | 1537 | WRITE ( io, 412 ) TRIM( reference_state ) |
---|
| 1538 | IF ( use_single_reference_value ) THEN |
---|
[3294] | 1539 | IF ( ocean_mode ) THEN |
---|
[1179] | 1540 | WRITE ( io, 413 ) prho_reference |
---|
[97] | 1541 | ELSE |
---|
[1179] | 1542 | WRITE ( io, 414 ) pt_reference |
---|
[97] | 1543 | ENDIF |
---|
| 1544 | ENDIF |
---|
[1] | 1545 | |
---|
| 1546 | ! |
---|
[824] | 1547 | !-- Cloud physcis parameters / quantities / numerical methods |
---|
| 1548 | WRITE ( io, 430 ) |
---|
[3274] | 1549 | IF ( humidity .AND. .NOT. bulk_cloud_model .AND. .NOT. cloud_droplets) THEN |
---|
[824] | 1550 | WRITE ( io, 431 ) |
---|
[3274] | 1551 | ENDIF |
---|
[824] | 1552 | ! |
---|
[1] | 1553 | !-- LES / turbulence parameters |
---|
| 1554 | WRITE ( io, 450 ) |
---|
| 1555 | |
---|
| 1556 | !-- |
---|
| 1557 | ! ... LES-constants used must still be added here |
---|
| 1558 | !-- |
---|
| 1559 | IF ( constant_diffusion ) THEN |
---|
| 1560 | WRITE ( io, 451 ) km_constant, km_constant/prandtl_number, & |
---|
| 1561 | prandtl_number |
---|
| 1562 | ENDIF |
---|
| 1563 | IF ( .NOT. constant_diffusion) THEN |
---|
[1353] | 1564 | IF ( e_init > 0.0_wp ) WRITE ( io, 455 ) e_init |
---|
| 1565 | IF ( e_min > 0.0_wp ) WRITE ( io, 454 ) e_min |
---|
[4473] | 1566 | IF ( wall_adjustment ) WRITE ( io, 453 ) |
---|
[1] | 1567 | ENDIF |
---|
[3083] | 1568 | IF ( rans_mode ) THEN |
---|
| 1569 | WRITE ( io, 457 ) rans_const_c, rans_const_sigma |
---|
| 1570 | ENDIF |
---|
[1] | 1571 | ! |
---|
| 1572 | !-- Special actions during the run |
---|
| 1573 | WRITE ( io, 470 ) |
---|
| 1574 | IF ( create_disturbances ) THEN |
---|
| 1575 | WRITE ( io, 471 ) dt_disturb, disturbance_amplitude, & |
---|
| 1576 | zu(disturbance_level_ind_b), disturbance_level_ind_b,& |
---|
| 1577 | zu(disturbance_level_ind_t), disturbance_level_ind_t |
---|
[707] | 1578 | IF ( .NOT. bc_lr_cyc .OR. .NOT. bc_ns_cyc ) THEN |
---|
[1] | 1579 | WRITE ( io, 472 ) inflow_disturbance_begin, inflow_disturbance_end |
---|
| 1580 | ELSE |
---|
| 1581 | WRITE ( io, 473 ) disturbance_energy_limit |
---|
| 1582 | ENDIF |
---|
| 1583 | WRITE ( io, 474 ) TRIM( random_generator ) |
---|
| 1584 | ENDIF |
---|
[1353] | 1585 | IF ( pt_surface_initial_change /= 0.0_wp ) THEN |
---|
[1] | 1586 | WRITE ( io, 475 ) pt_surface_initial_change |
---|
| 1587 | ENDIF |
---|
[4573] | 1588 | IF ( pt_surface_heating_rate /= 0.0_wp ) THEN |
---|
| 1589 | WRITE ( io, 476 ) pt_surface_heating_rate |
---|
| 1590 | ENDIF |
---|
[1353] | 1591 | IF ( humidity .AND. q_surface_initial_change /= 0.0_wp ) THEN |
---|
[4586] | 1592 | WRITE ( io, 477 ) q_surface_initial_change |
---|
[1] | 1593 | ENDIF |
---|
[1353] | 1594 | IF ( passive_scalar .AND. q_surface_initial_change /= 0.0_wp ) THEN |
---|
[4586] | 1595 | WRITE ( io, 478 ) q_surface_initial_change |
---|
[1] | 1596 | ENDIF |
---|
| 1597 | |
---|
| 1598 | ! |
---|
| 1599 | !-- Parameters of 1D-model |
---|
| 1600 | IF ( INDEX( initializing_actions, 'set_1d-model_profiles' ) /= 0 ) THEN |
---|
| 1601 | WRITE ( io, 500 ) end_time_1d, dt_run_control_1d, dt_pr_1d, & |
---|
| 1602 | mixing_length_1d, dissipation_1d |
---|
| 1603 | IF ( damp_level_ind_1d /= nzt+1 ) THEN |
---|
| 1604 | WRITE ( io, 502 ) zu(damp_level_ind_1d), damp_level_ind_1d |
---|
| 1605 | ENDIF |
---|
| 1606 | ENDIF |
---|
| 1607 | |
---|
| 1608 | ! |
---|
[3637] | 1609 | !-- Header information from other modules |
---|
| 1610 | CALL module_interface_header( io ) |
---|
[1] | 1611 | |
---|
[3637] | 1612 | |
---|
[1] | 1613 | WRITE ( io, 99 ) |
---|
| 1614 | |
---|
| 1615 | ! |
---|
| 1616 | !-- Write buffer contents to disc immediately |
---|
[1808] | 1617 | FLUSH( io ) |
---|
[1] | 1618 | |
---|
| 1619 | ! |
---|
| 1620 | !-- Here the FORMATs start |
---|
| 1621 | |
---|
| 1622 | 99 FORMAT (1X,78('-')) |
---|
[1468] | 1623 | 100 FORMAT (/1X,'******************************',4X,44('-')/ & |
---|
| 1624 | 1X,'* ',A,' *',4X,A/ & |
---|
| 1625 | 1X,'******************************',4X,44('-')) |
---|
[2298] | 1626 | 101 FORMAT (35X,'coupled run: ',A/ & |
---|
[1468] | 1627 | 35X,42('-')) |
---|
[3529] | 1628 | 102 FORMAT (/' Date: ',A10,4X,'Run: ',A34/ & |
---|
[1468] | 1629 | ' Time: ',A8,4X,'Run-No.: ',I2.2/ & |
---|
[1106] | 1630 | ' Run on host: ',A10) |
---|
[1] | 1631 | #if defined( __parallel ) |
---|
[1468] | 1632 | 103 FORMAT (' Number of PEs:',10X,I6,4X,'Processor grid (x,y): (',I4,',',I4, & |
---|
[1] | 1633 | ')',1X,A) |
---|
[1468] | 1634 | 104 FORMAT (' Number of PEs:',10X,I6,4X,'Tasks:',I4,' threads per task:',I4/ & |
---|
| 1635 | 35X,'Processor grid (x,y): (',I4,',',I4,')',1X,A) |
---|
| 1636 | 107 FORMAT (35X,'A 1d-decomposition along ',A,' is used') |
---|
| 1637 | 108 FORMAT (35X,'Max. # of parallel I/O streams is ',I5) |
---|
| 1638 | 109 FORMAT (35X,'Precursor run for coupled atmos-ocean run'/ & |
---|
| 1639 | 35X,42('-')) |
---|
| 1640 | 114 FORMAT (35X,'Coupled atmosphere-ocean run following'/ & |
---|
| 1641 | 35X,'independent precursor runs'/ & |
---|
| 1642 | 35X,42('-')) |
---|
[1] | 1643 | #endif |
---|
| 1644 | 110 FORMAT (/' Numerical Schemes:'/ & |
---|
| 1645 | ' -----------------'/) |
---|
[2696] | 1646 | 124 FORMAT (' --> Use the ',A,' turbulence closure (',A,' mode).') |
---|
[2037] | 1647 | 121 FORMAT (' --> Use the ',A,' approximation for the model equations.') |
---|
[1] | 1648 | 111 FORMAT (' --> Solve perturbation pressure via FFT using ',A,' routines') |
---|
| 1649 | 112 FORMAT (' --> Solve perturbation pressure via SOR-Red/Black-Schema'/ & |
---|
[1697] | 1650 | ' Iterations (initial/other): ',I3,'/',I3,' omega =',F6.3) |
---|
[1] | 1651 | 113 FORMAT (' --> Momentum advection via Piascek-Williams-Scheme (Form C3)', & |
---|
| 1652 | ' or Upstream') |
---|
[1216] | 1653 | 115 FORMAT (' FFT and transpositions are overlapping') |
---|
[1] | 1654 | 116 FORMAT (' --> Scalar advection via Piascek-Williams-Scheme (Form C3)', & |
---|
| 1655 | ' or Upstream') |
---|
| 1656 | 118 FORMAT (' --> Scalar advection via Bott-Chlond-Scheme') |
---|
[1106] | 1657 | 119 FORMAT (' --> Galilei-Transform applied to horizontal advection:'/ & |
---|
| 1658 | ' translation velocity = ',A/ & |
---|
[1] | 1659 | ' distance advected ',A,': ',F8.3,' km(x) ',F8.3,' km(y)') |
---|
| 1660 | 122 FORMAT (' --> Time differencing scheme: ',A) |
---|
[108] | 1661 | 123 FORMAT (' --> Rayleigh-Damping active, starts ',A,' z = ',F8.2,' m'/ & |
---|
[1697] | 1662 | ' maximum damping coefficient:',F6.3, ' 1/s') |
---|
[1] | 1663 | 129 FORMAT (' --> Additional prognostic equation for the specific humidity') |
---|
| 1664 | 130 FORMAT (' --> Additional prognostic equation for the total water content') |
---|
[940] | 1665 | 131 FORMAT (' --> No pt-equation solved. Neutral stratification with pt = ', & |
---|
| 1666 | F6.2, ' K assumed') |
---|
[1] | 1667 | 134 FORMAT (' --> Additional prognostic equation for a passive scalar') |
---|
[1575] | 1668 | 135 FORMAT (' --> Solve perturbation pressure via ',A,' method (', & |
---|
[1] | 1669 | A,'-cycle)'/ & |
---|
| 1670 | ' number of grid levels: ',I2/ & |
---|
| 1671 | ' Gauss-Seidel red/black iterations: ',I2) |
---|
| 1672 | 136 FORMAT (' gridpoints of coarsest subdomain (x,y,z): (',I3,',',I3,',', & |
---|
| 1673 | I3,')') |
---|
| 1674 | 137 FORMAT (' level data gathered on PE0 at level: ',I2/ & |
---|
| 1675 | ' gridpoints of coarsest subdomain (x,y,z): (',I3,',',I3,',', & |
---|
| 1676 | I3,')'/ & |
---|
| 1677 | ' gridpoints of coarsest domain (x,y,z): (',I3,',',I3,',', & |
---|
| 1678 | I3,')') |
---|
[63] | 1679 | 139 FORMAT (' --> Loop optimization method: ',A) |
---|
[1] | 1680 | 140 FORMAT (' maximum residual allowed: ',E10.3) |
---|
| 1681 | 141 FORMAT (' fixed number of multigrid cycles: ',I4) |
---|
| 1682 | 142 FORMAT (' perturbation pressure is calculated at every Runge-Kutta ', & |
---|
| 1683 | 'step') |
---|
[87] | 1684 | 143 FORMAT (' Euler/upstream scheme is used for the SGS turbulent ', & |
---|
| 1685 | 'kinetic energy') |
---|
[927] | 1686 | 144 FORMAT (' masking method is used') |
---|
[1] | 1687 | 150 FORMAT (' --> Volume flow at the right and north boundary will be ', & |
---|
[241] | 1688 | 'conserved'/ & |
---|
| 1689 | ' using the ',A,' mode') |
---|
| 1690 | 151 FORMAT (' with u_bulk = ',F7.3,' m/s and v_bulk = ',F7.3,' m/s') |
---|
[306] | 1691 | 152 FORMAT (' --> External pressure gradient directly prescribed by the user:',& |
---|
| 1692 | /' ',2(1X,E12.5),'Pa/m in x/y direction', & |
---|
| 1693 | /' starting from dp_level_b =', F8.3, 'm', A /) |
---|
[1] | 1694 | 200 FORMAT (//' Run time and time step information:'/ & |
---|
| 1695 | ' ----------------------------------'/) |
---|
[1106] | 1696 | 201 FORMAT ( ' Timestep: variable maximum value: ',F6.3,' s', & |
---|
[1697] | 1697 | ' CFL-factor:',F5.2) |
---|
[1106] | 1698 | 202 FORMAT ( ' Timestep: dt = ',F6.3,' s'/) |
---|
[4300] | 1699 | 203 FORMAT ( ' Start time: ',F11.3,' s'/ & |
---|
| 1700 | ' End time: ',F11.3,' s') |
---|
| 1701 | 204 FORMAT ( A,F11.3,' s') |
---|
| 1702 | 205 FORMAT ( A,F11.3,' s',5X,'restart every',17X,F11.3,' s') |
---|
| 1703 | 206 FORMAT (/' Time reached: ',F11.3,' s'/ & |
---|
| 1704 | ' CPU-time used: ',F9.3,' s per timestep: ',F9.3,' s'/ & |
---|
| 1705 | ' per second of simulated time: ',F9.3,' s') |
---|
| 1706 | 207 FORMAT ( ' Spinup time: ',F11.3,' s') |
---|
[1] | 1707 | 250 FORMAT (//' Computational grid and domain size:'/ & |
---|
| 1708 | ' ----------------------------------'// & |
---|
[3065] | 1709 | ' Grid length: dx = ',F8.3,' m dy = ',F8.3, ' m') |
---|
| 1710 | 251 FORMAT ( /' Domain size: x = ',F10.3,' m y = ',F10.3, & |
---|
[1] | 1711 | ' m z(u) = ',F10.3,' m'/) |
---|
[3065] | 1712 | 253 FORMAT ( ' dz(',I1,') = ', F8.3, ' m') |
---|
| 1713 | 254 FORMAT (//' Number of gridpoints (x,y,z): (0:',I4,', 0:',I4,', 0:',I4,')'/ & |
---|
[1] | 1714 | ' Subdomain size (x,y,z): ( ',I4,', ',I4,', ',I4,')'/) |
---|
| 1715 | 260 FORMAT (/' The model has a slope in x-direction. Inclination angle: ',F6.2,& |
---|
| 1716 | ' degrees') |
---|
[1551] | 1717 | 270 FORMAT (//' Topography information:'/ & |
---|
| 1718 | ' ----------------------'// & |
---|
[1] | 1719 | 1X,'Topography: ',A) |
---|
| 1720 | 271 FORMAT ( ' Building size (x/y/z) in m: ',F5.1,' / ',F5.1,' / ',F5.1/ & |
---|
| 1721 | ' Horizontal index bounds (l/r/s/n): ',I4,' / ',I4,' / ',I4, & |
---|
| 1722 | ' / ',I4) |
---|
[240] | 1723 | 272 FORMAT ( ' Single quasi-2D street canyon of infinite length in ',A, & |
---|
| 1724 | ' direction' / & |
---|
| 1725 | ' Canyon height: ', F6.2, 'm, ch = ', I4, '.' / & |
---|
| 1726 | ' Canyon position (',A,'-walls): cxl = ', I4,', cxr = ', I4, '.') |
---|
[2232] | 1727 | 273 FORMAT ( ' Tunnel of infinite length in ',A, & |
---|
| 1728 | ' direction' / & |
---|
| 1729 | ' Tunnel height: ', F6.2, / & |
---|
| 1730 | ' Tunnel-wall depth: ', F6.2 / & |
---|
| 1731 | ' Tunnel width: ', F6.2 ) |
---|
| 1732 | 274 FORMAT ( ' Tunnel in ', A, ' direction.' / & |
---|
[4586] | 1733 | ' Tunnel height: ', F6.2, / & |
---|
[2232] | 1734 | ' Tunnel-wall depth: ', F6.2 / & |
---|
| 1735 | ' Tunnel width: ', F6.2, / & |
---|
| 1736 | ' Tunnel length: ', F6.2 ) |
---|
[256] | 1737 | 278 FORMAT (' Topography grid definition convention:'/ & |
---|
| 1738 | ' cell edge (staggered grid points'/ & |
---|
| 1739 | ' (u in x-direction, v in y-direction))' /) |
---|
| 1740 | 279 FORMAT (' Topography grid definition convention:'/ & |
---|
| 1741 | ' cell center (scalar grid points)' /) |
---|
[2550] | 1742 | 280 FORMAT (' Complex terrain simulation is activated.') |
---|
| 1743 | 281 FORMAT (' --> Mean inflow profiles are adjusted.' / & |
---|
| 1744 | ' --> Elevation of inflow boundary: ', F7.1, ' m' ) |
---|
| 1745 | 282 FORMAT (' --> Initial data from 3D-precursor run is shifted' / & |
---|
| 1746 | ' vertically depending on local surface height.') |
---|
[1] | 1747 | 300 FORMAT (//' Boundary conditions:'/ & |
---|
| 1748 | ' -------------------'// & |
---|
| 1749 | ' p uv ', & |
---|
[1551] | 1750 | ' pt'// & |
---|
[1] | 1751 | ' B. bound.: ',A/ & |
---|
| 1752 | ' T. bound.: ',A) |
---|
[97] | 1753 | 301 FORMAT (/' ',A// & |
---|
[1] | 1754 | ' B. bound.: ',A/ & |
---|
| 1755 | ' T. bound.: ',A) |
---|
[19] | 1756 | 303 FORMAT (/' Bottom surface fluxes are used in diffusion terms at k=1') |
---|
| 1757 | 304 FORMAT (/' Top surface fluxes are used in diffusion terms at k=nzt') |
---|
[2270] | 1758 | 305 FORMAT (//' Constant flux layer between bottom surface and first ', & |
---|
| 1759 | 'computational u,v-level:'// & |
---|
| 1760 | ' z_mo = ',F6.2,' m z0 =',F7.4,' m z0h =',F8.5,& |
---|
[1697] | 1761 | ' m kappa =',F5.2/ & |
---|
[4586] | 1762 | ' zeta value range: ',F8.2,' <= zeta <=',F6.2) |
---|
[97] | 1763 | 306 FORMAT (' Predefined constant heatflux: ',F9.6,' K m/s') |
---|
[1] | 1764 | 307 FORMAT (' Heatflux has a random normal distribution') |
---|
| 1765 | 308 FORMAT (' Predefined surface temperature') |
---|
[97] | 1766 | 309 FORMAT (' Predefined constant salinityflux: ',F9.6,' psu m/s') |
---|
[1] | 1767 | 310 FORMAT (//' 1D-Model:'// & |
---|
[4586] | 1768 | ' Ri value range: ',F6.2,' <= Ri <=',F6.2) |
---|
[1960] | 1769 | 311 FORMAT (' Predefined constant humidity flux: ',E10.3,' kg/kg m/s') |
---|
[1] | 1770 | 312 FORMAT (' Predefined surface humidity') |
---|
| 1771 | 313 FORMAT (' Predefined constant scalar flux: ',E10.3,' kg/(m**2 s)') |
---|
| 1772 | 314 FORMAT (' Predefined scalar value at the surface') |
---|
[1992] | 1773 | 302 FORMAT (' Predefined constant scalarflux: ',F9.6,' kg/(m**2 s)') |
---|
| 1774 | 315 FORMAT (' Humidity flux at top surface is 0.0') |
---|
[102] | 1775 | 316 FORMAT (' Sensible heatflux and momentum flux from coupled ', & |
---|
| 1776 | 'atmosphere model') |
---|
[1] | 1777 | 317 FORMAT (//' Lateral boundaries:'/ & |
---|
| 1778 | ' left/right: ',A/ & |
---|
| 1779 | ' north/south: ',A) |
---|
[1159] | 1780 | 318 FORMAT (/' use_cmax: ',L1 / & |
---|
| 1781 | ' pt damping layer width = ',F8.2,' m, pt ', & |
---|
[1697] | 1782 | 'damping factor =',F7.4) |
---|
[151] | 1783 | 319 FORMAT (' turbulence recycling at inflow switched on'/ & |
---|
| 1784 | ' width of recycling domain: ',F7.1,' m grid index: ',I4/ & |
---|
| 1785 | ' inflow damping height: ',F6.1,' m width: ',F6.1,' m') |
---|
| 1786 | 320 FORMAT (' Predefined constant momentumflux: u: ',F9.6,' m**2/s**2'/ & |
---|
[103] | 1787 | ' v: ',F9.6,' m**2/s**2') |
---|
[1365] | 1788 | 321 FORMAT (//' Initial profiles:'/ & |
---|
| 1789 | ' ----------------') |
---|
[1560] | 1790 | 322 FORMAT (' turbulence recycling at inflow switched on'/ & |
---|
[4301] | 1791 | ' y-shift of the recycled inflow turbulence is',I3,' PE'/ & |
---|
[1560] | 1792 | ' width of recycling domain: ',F7.1,' m grid index: ',I4/ & |
---|
[1592] | 1793 | ' inflow damping height: ',F6.1,' m width: ',F6.1,' m'/) |
---|
[2050] | 1794 | 323 FORMAT (' turbulent outflow conditon switched on'/ & |
---|
| 1795 | ' position of outflow source plane: ',F7.1,' m ', & |
---|
| 1796 | 'grid index: ', I4) |
---|
[151] | 1797 | 325 FORMAT (//' List output:'/ & |
---|
[1] | 1798 | ' -----------'// & |
---|
| 1799 | ' 1D-Profiles:'/ & |
---|
[2883] | 1800 | ' Output every ',F10.2,' s') |
---|
[151] | 1801 | 326 FORMAT (' Time averaged over ',F8.2,' s'/ & |
---|
[1] | 1802 | ' Averaging input every ',F8.2,' s') |
---|
| 1803 | 330 FORMAT (//' Data output:'/ & |
---|
| 1804 | ' -----------'/) |
---|
| 1805 | 331 FORMAT (/' 1D-Profiles:') |
---|
| 1806 | 332 FORMAT (/' ',A) |
---|
| 1807 | 333 FORMAT (' Output every ',F8.2,' s',/ & |
---|
| 1808 | ' Time averaged over ',F8.2,' s'/ & |
---|
| 1809 | ' Averaging input every ',F8.2,' s') |
---|
| 1810 | 334 FORMAT (/' 2D-Arrays',A,':') |
---|
| 1811 | 335 FORMAT (/' ',A2,'-cross-section Arrays: ',A/ & |
---|
| 1812 | ' Output every ',F8.2,' s ',A/ & |
---|
| 1813 | ' Cross sections at ',A1,' = ',A/ & |
---|
| 1814 | ' scalar-coordinates: ',A,' m'/) |
---|
| 1815 | 336 FORMAT (/' 3D-Arrays',A,':') |
---|
| 1816 | 337 FORMAT (/' Arrays: ',A/ & |
---|
| 1817 | ' Output every ',F8.2,' s ',A/ & |
---|
| 1818 | ' Upper output limit at ',F8.2,' m (GP ',I4,')'/) |
---|
| 1819 | 339 FORMAT (' No output during initial ',F8.2,' s') |
---|
| 1820 | 340 FORMAT (/' Time series:') |
---|
| 1821 | 341 FORMAT (' Output every ',F8.2,' s'/) |
---|
| 1822 | 342 FORMAT (/' ',A2,'-cross-section Arrays: ',A/ & |
---|
| 1823 | ' Output every ',F8.2,' s ',A/ & |
---|
| 1824 | ' Time averaged over ',F8.2,' s'/ & |
---|
| 1825 | ' Averaging input every ',F8.2,' s'/ & |
---|
| 1826 | ' Cross sections at ',A1,' = ',A/ & |
---|
| 1827 | ' scalar-coordinates: ',A,' m'/) |
---|
| 1828 | 343 FORMAT (/' Arrays: ',A/ & |
---|
| 1829 | ' Output every ',F8.2,' s ',A/ & |
---|
| 1830 | ' Time averaged over ',F8.2,' s'/ & |
---|
| 1831 | ' Averaging input every ',F8.2,' s'/ & |
---|
| 1832 | ' Upper output limit at ',F8.2,' m (GP ',I4,')'/) |
---|
[292] | 1833 | 344 FORMAT (' Output format: ',A/) |
---|
[410] | 1834 | 345 FORMAT (/' Scaling lengths for output locations of all subsequent mask IDs:',/ & |
---|
| 1835 | ' mask_scale_x (in x-direction): ',F9.3, ' m',/ & |
---|
| 1836 | ' mask_scale_y (in y-direction): ',F9.3, ' m',/ & |
---|
| 1837 | ' mask_scale_z (in z-direction): ',F9.3, ' m' ) |
---|
| 1838 | 346 FORMAT (/' Masked data output',A,' for mask ID ',I2, ':') |
---|
| 1839 | 347 FORMAT (' Variables: ',A/ & |
---|
| 1840 | ' Output every ',F8.2,' s') |
---|
| 1841 | 348 FORMAT (' Variables: ',A/ & |
---|
| 1842 | ' Output every ',F8.2,' s'/ & |
---|
| 1843 | ' Time averaged over ',F8.2,' s'/ & |
---|
| 1844 | ' Averaging input every ',F8.2,' s') |
---|
| 1845 | 349 FORMAT (/' Output locations in ',A,'-direction in multiples of ', & |
---|
| 1846 | 'mask_scale_',A,' predefined by array mask_',I2.2,'_',A,':'/ & |
---|
| 1847 | 13(' ',8(F8.2,',')/) ) |
---|
| 1848 | 350 FORMAT (/' Output locations in ',A,'-direction: ', & |
---|
| 1849 | 'all gridpoints along ',A,'-direction (default).' ) |
---|
| 1850 | 351 FORMAT (/' Output locations in ',A,'-direction in multiples of ', & |
---|
| 1851 | 'mask_scale_',A,' constructed from array mask_',I2.2,'_',A,'_loop:'/ & |
---|
| 1852 | ' loop begin:',F8.2,', end:',F8.2,', stride:',F8.2 ) |
---|
[1313] | 1853 | 352 FORMAT (/' Number of output time levels allowed: ',I3 /) |
---|
| 1854 | 353 FORMAT (/' Number of output time levels allowed: unlimited' /) |
---|
[1783] | 1855 | 354 FORMAT (' Output format: ',A, ' compressed with level: ',I1/) |
---|
[4536] | 1856 | 355 FORMAT (/' Restart data format(s):') |
---|
| 1857 | 356 FORMAT (' Input format: ',A) |
---|
| 1858 | 357 FORMAT (' Output format: ',A) |
---|
[1] | 1859 | 400 FORMAT (//' Physical quantities:'/ & |
---|
| 1860 | ' -------------------'/) |
---|
[4196] | 1861 | 410 FORMAT (' Geograph. latitude : latitude = ',F5.1,' degr'/ & |
---|
| 1862 | ' Geograph. longitude : longitude = ',F5.1,' degr'/ & |
---|
| 1863 | ' Rotation angle : rotation_angle = ',F5.1,' degr'/ & |
---|
[1697] | 1864 | ' Angular velocity : omega =',E10.3,' rad/s'/ & |
---|
[1551] | 1865 | ' Coriolis parameter : f = ',F9.6,' 1/s'/ & |
---|
| 1866 | ' f* = ',F9.6,' 1/s') |
---|
| 1867 | 411 FORMAT (/' Gravity : g = ',F4.1,' m/s**2') |
---|
[1179] | 1868 | 412 FORMAT (/' Reference state used in buoyancy terms: ',A) |
---|
| 1869 | 413 FORMAT (' Reference density in buoyancy terms: ',F8.3,' kg/m**3') |
---|
| 1870 | 414 FORMAT (' Reference temperature in buoyancy terms: ',F8.4,' K') |
---|
[1] | 1871 | 420 FORMAT (/' Characteristic levels of the initial temperature profile:'// & |
---|
| 1872 | ' Height: ',A,' m'/ & |
---|
| 1873 | ' Temperature: ',A,' K'/ & |
---|
| 1874 | ' Gradient: ',A,' K/100m'/ & |
---|
| 1875 | ' Gridpoint: ',A) |
---|
| 1876 | 421 FORMAT (/' Characteristic levels of the initial humidity profile:'// & |
---|
| 1877 | ' Height: ',A,' m'/ & |
---|
| 1878 | ' Humidity: ',A,' kg/kg'/ & |
---|
| 1879 | ' Gradient: ',A,' (kg/kg)/100m'/ & |
---|
| 1880 | ' Gridpoint: ',A) |
---|
| 1881 | 422 FORMAT (/' Characteristic levels of the initial scalar profile:'// & |
---|
| 1882 | ' Height: ',A,' m'/ & |
---|
| 1883 | ' Scalar concentration: ',A,' kg/m**3'/ & |
---|
| 1884 | ' Gradient: ',A,' (kg/m**3)/100m'/ & |
---|
| 1885 | ' Gridpoint: ',A) |
---|
| 1886 | 423 FORMAT (/' Characteristic levels of the geo. wind component ug:'// & |
---|
| 1887 | ' Height: ',A,' m'/ & |
---|
| 1888 | ' ug: ',A,' m/s'/ & |
---|
| 1889 | ' Gradient: ',A,' 1/100s'/ & |
---|
| 1890 | ' Gridpoint: ',A) |
---|
| 1891 | 424 FORMAT (/' Characteristic levels of the geo. wind component vg:'// & |
---|
| 1892 | ' Height: ',A,' m'/ & |
---|
[97] | 1893 | ' vg: ',A,' m/s'/ & |
---|
[1] | 1894 | ' Gradient: ',A,' 1/100s'/ & |
---|
| 1895 | ' Gridpoint: ',A) |
---|
[97] | 1896 | 425 FORMAT (/' Characteristic levels of the initial salinity profile:'// & |
---|
| 1897 | ' Height: ',A,' m'/ & |
---|
| 1898 | ' Salinity: ',A,' psu'/ & |
---|
| 1899 | ' Gradient: ',A,' psu/100m'/ & |
---|
| 1900 | ' Gridpoint: ',A) |
---|
[411] | 1901 | 426 FORMAT (/' Characteristic levels of the subsidence/ascent profile:'// & |
---|
| 1902 | ' Height: ',A,' m'/ & |
---|
| 1903 | ' w_subs: ',A,' m/s'/ & |
---|
| 1904 | ' Gradient: ',A,' (m/s)/100m'/ & |
---|
| 1905 | ' Gridpoint: ',A) |
---|
[767] | 1906 | 427 FORMAT (/' Initial wind profiles (u,v) are interpolated from given'// & |
---|
| 1907 | ' profiles') |
---|
[1241] | 1908 | 428 FORMAT (/' Initial profiles (u, v, pt, q) are taken from file '/ & |
---|
| 1909 | ' NUDGING_DATA') |
---|
[824] | 1910 | 430 FORMAT (//' Cloud physics quantities / methods:'/ & |
---|
| 1911 | ' ----------------------------------'/) |
---|
[1960] | 1912 | 431 FORMAT (' Humidity is considered, bu no condensation') |
---|
[1] | 1913 | 450 FORMAT (//' LES / Turbulence quantities:'/ & |
---|
| 1914 | ' ---------------------------'/) |
---|
[824] | 1915 | 451 FORMAT (' Diffusion coefficients are constant:'/ & |
---|
| 1916 | ' Km = ',F6.2,' m**2/s Kh = ',F6.2,' m**2/s Pr = ',F5.2) |
---|
[4473] | 1917 | 453 FORMAT (' Mixing length is limited close to surfaces') |
---|
[824] | 1918 | 454 FORMAT (' TKE is not allowed to fall below ',E9.2,' (m/s)**2') |
---|
| 1919 | 455 FORMAT (' initial TKE is prescribed as ',E9.2,' (m/s)**2') |
---|
[4227] | 1920 | 456 FORMAT (/' Date and time at model start : ',A) |
---|
[3083] | 1921 | 457 FORMAT (' RANS-mode constants: c_0 = ',F9.5/ & |
---|
| 1922 | ' c_1 = ',F9.5/ & |
---|
| 1923 | ' c_2 = ',F9.5/ & |
---|
| 1924 | ' c_3 = ',F9.5/ & |
---|
| 1925 | ' c_4 = ',F9.5/ & |
---|
| 1926 | ' sigma_e = ',F9.5/ & |
---|
| 1927 | ' sigma_diss = ',F9.5) |
---|
[1] | 1928 | 470 FORMAT (//' Actions during the simulation:'/ & |
---|
| 1929 | ' -----------------------------'/) |
---|
[94] | 1930 | 471 FORMAT (' Disturbance impulse (u,v) every : ',F6.2,' s'/ & |
---|
[1697] | 1931 | ' Disturbance amplitude : ',F5.2, ' m/s'/ & |
---|
[94] | 1932 | ' Lower disturbance level : ',F8.2,' m (GP ',I4,')'/ & |
---|
| 1933 | ' Upper disturbance level : ',F8.2,' m (GP ',I4,')') |
---|
[1] | 1934 | 472 FORMAT (' Disturbances continued during the run from i/j =',I4, & |
---|
| 1935 | ' to i/j =',I4) |
---|
| 1936 | 473 FORMAT (' Disturbances cease as soon as the disturbance energy exceeds',& |
---|
[1697] | 1937 | F6.3, ' m**2/s**2') |
---|
[1] | 1938 | 474 FORMAT (' Random number generator used : ',A/) |
---|
| 1939 | 475 FORMAT (' The surface temperature is increased (or decreased, ', & |
---|
| 1940 | 'respectively, if'/ & |
---|
| 1941 | ' the value is negative) by ',F5.2,' K at the beginning of the',& |
---|
| 1942 | ' 3D-simulation'/) |
---|
[4573] | 1943 | 476 FORMAT (' The surface temperature increases (or decreases, ', & |
---|
| 1944 | 'respectively, if'/ & |
---|
| 1945 | ' the value is negative) by ',F8.4,' K/h during the', & |
---|
| 1946 | ' 3D-simulation'/) |
---|
| 1947 | 477 FORMAT (' The surface humidity is increased (or decreased, ',& |
---|
[1] | 1948 | 'respectively, if the'/ & |
---|
| 1949 | ' value is negative) by ',E8.1,' kg/kg at the beginning of', & |
---|
| 1950 | ' the 3D-simulation'/) |
---|
[4573] | 1951 | 478 FORMAT (' The scalar value is increased at the surface (or decreased, ',& |
---|
[1] | 1952 | 'respectively, if the'/ & |
---|
| 1953 | ' value is negative) by ',E8.1,' kg/m**3 at the beginning of', & |
---|
| 1954 | ' the 3D-simulation'/) |
---|
| 1955 | 500 FORMAT (//' 1D-Model parameters:'/ & |
---|
| 1956 | ' -------------------'// & |
---|
| 1957 | ' Simulation time: ',F8.1,' s'/ & |
---|
| 1958 | ' Run-controll output every: ',F8.1,' s'/ & |
---|
| 1959 | ' Vertical profile output every: ',F8.1,' s'/ & |
---|
| 1960 | ' Mixing length calculation: ',A/ & |
---|
| 1961 | ' Dissipation calculation: ',A/) |
---|
| 1962 | 502 FORMAT (' Damping layer starts from ',F7.1,' m (GP ',I4,')'/) |
---|
[667] | 1963 | 503 FORMAT (' --> Momentum advection via Wicker-Skamarock-Scheme 5th order') |
---|
| 1964 | 504 FORMAT (' --> Scalar advection via Wicker-Skamarock-Scheme 5th order') |
---|
[3529] | 1965 | 512 FORMAT (/' Date: ',A10,6X,'Run: ',A34/ & |
---|
[1429] | 1966 | ' Time: ',A8,6X,'Run-No.: ',I2.2/ & |
---|
| 1967 | ' Run on host: ',A10,6X,'En-No.: ',I2.2) |
---|
[4444] | 1968 | #if defined( __parallel ) |
---|
[1791] | 1969 | 600 FORMAT (/' Nesting informations:'/ & |
---|
| 1970 | ' --------------------'/ & |
---|
[1797] | 1971 | ' Nesting mode: ',A/ & |
---|
| 1972 | ' Nesting-datatransfer mode: ',A// & |
---|
[1791] | 1973 | ' Nest id parent number lower left coordinates name'/ & |
---|
| 1974 | ' (*=me) id of PEs x (m) y (m)' ) |
---|
| 1975 | 601 FORMAT (2X,A1,1X,I2.2,6X,I2.2,5X,I5,5X,F8.2,2X,F8.2,5X,A) |
---|
[4444] | 1976 | #endif |
---|
[1] | 1977 | |
---|
| 1978 | END SUBROUTINE header |
---|