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