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