[1] | 1 | SUBROUTINE header |
---|
| 2 | |
---|
| 3 | !------------------------------------------------------------------------------! |
---|
| 4 | ! Actual revisions: |
---|
| 5 | ! ----------------- |
---|
[46] | 6 | ! Output of netcdf_64bit_3d |
---|
[1] | 7 | ! |
---|
| 8 | ! Former revisions: |
---|
| 9 | ! ----------------- |
---|
[3] | 10 | ! $Id: header.f90 46 2007-03-05 06:00:47Z raasch $ |
---|
[39] | 11 | ! |
---|
| 12 | ! 19 2007-02-23 04:53:48Z raasch |
---|
| 13 | ! Output of scalar flux applied at top boundary |
---|
| 14 | ! |
---|
[3] | 15 | ! RCS Log replace by Id keyword, revision history cleaned up |
---|
| 16 | ! |
---|
[1] | 17 | ! Revision 1.63 2006/08/22 13:53:13 raasch |
---|
| 18 | ! Output of dz_max |
---|
| 19 | ! |
---|
| 20 | ! Revision 1.1 1997/08/11 06:17:20 raasch |
---|
| 21 | ! Initial revision |
---|
| 22 | ! |
---|
| 23 | ! |
---|
| 24 | ! Description: |
---|
| 25 | ! ------------ |
---|
| 26 | ! Writing a header with all important informations about the actual run. |
---|
| 27 | ! This subroutine is called three times, two times at the beginning |
---|
| 28 | ! (writing information on files RUN_CONTROL and HEADER) and one time at the |
---|
| 29 | ! end of the run, then writing additional information about CPU-usage on file |
---|
| 30 | ! header. |
---|
| 31 | !------------------------------------------------------------------------------! |
---|
| 32 | |
---|
| 33 | USE arrays_3d |
---|
| 34 | USE control_parameters |
---|
| 35 | USE cloud_parameters |
---|
| 36 | USE cpulog |
---|
| 37 | USE dvrp_variables |
---|
| 38 | USE grid_variables |
---|
| 39 | USE indices |
---|
| 40 | USE model_1d |
---|
| 41 | USE particle_attributes |
---|
| 42 | USE pegrid |
---|
| 43 | USE spectrum |
---|
| 44 | |
---|
| 45 | IMPLICIT NONE |
---|
| 46 | |
---|
| 47 | CHARACTER (LEN=1) :: prec |
---|
| 48 | CHARACTER (LEN=2) :: do2d_mode |
---|
| 49 | CHARACTER (LEN=5) :: section_chr |
---|
| 50 | CHARACTER (LEN=9) :: time_to_string |
---|
| 51 | CHARACTER (LEN=10) :: coor_chr, host_chr |
---|
| 52 | CHARACTER (LEN=16) :: begin_chr |
---|
| 53 | CHARACTER (LEN=40) :: output_format |
---|
| 54 | CHARACTER (LEN=70) :: char1, char2, coordinates, gradients, dopr_chr, & |
---|
| 55 | do2d_xy, do2d_xz, do2d_yz, do3d_chr, & |
---|
| 56 | run_classification, slices, temperatures, & |
---|
| 57 | ugcomponent, vgcomponent |
---|
| 58 | CHARACTER (LEN=85) :: roben, runten |
---|
| 59 | |
---|
| 60 | INTEGER :: av, bh, blx, bly, bxl, bxr, byn, bys, i, ihost, io, j, l, ll |
---|
| 61 | REAL :: cpuseconds_per_simulated_second |
---|
| 62 | |
---|
| 63 | ! |
---|
| 64 | !-- Open the output file. At the end of the simulation, output is directed |
---|
| 65 | !-- to unit 19. |
---|
| 66 | IF ( ( runnr == 0 .OR. force_print_header ) .AND. & |
---|
| 67 | .NOT. simulated_time_at_begin /= simulated_time ) THEN |
---|
| 68 | io = 15 ! header output on file RUN_CONTROL |
---|
| 69 | ELSE |
---|
| 70 | io = 19 ! header output on file HEADER |
---|
| 71 | ENDIF |
---|
| 72 | CALL check_open( io ) |
---|
| 73 | |
---|
| 74 | ! |
---|
| 75 | !-- At the end of the run, output file (HEADER) will be rewritten with |
---|
| 76 | !-- new informations |
---|
| 77 | IF ( io == 19 .AND. simulated_time_at_begin /= simulated_time ) REWIND( 19 ) |
---|
| 78 | |
---|
| 79 | ! |
---|
| 80 | !-- Determine kind of model run |
---|
| 81 | IF ( TRIM( initializing_actions ) == 'read_restart_data' ) THEN |
---|
| 82 | run_classification = '3D - restart run' |
---|
| 83 | ELSE |
---|
| 84 | IF ( INDEX( initializing_actions, 'set_constant_profiles' ) /= 0 ) THEN |
---|
| 85 | run_classification = '3D - run without 1D - prerun' |
---|
| 86 | ELSEIF ( INDEX(initializing_actions, 'set_1d-model_profiles') /= 0 ) THEN |
---|
| 87 | run_classification = '3D - run with 1D - prerun' |
---|
| 88 | ELSE |
---|
| 89 | PRINT*,'+++ header: unknown action(s): ',initializing_actions |
---|
| 90 | ENDIF |
---|
| 91 | ENDIF |
---|
| 92 | |
---|
| 93 | ! |
---|
| 94 | !-- Run-identification, date, time, host |
---|
| 95 | host_chr = host(1:10) |
---|
| 96 | WRITE ( io, 100 ) version, TRIM( run_classification ), run_date, & |
---|
| 97 | run_identifier, run_time, runnr, ADJUSTR( host_chr ) |
---|
| 98 | #if defined( __parallel ) |
---|
| 99 | IF ( npex == -1 .AND. pdims(2) /= 1 ) THEN |
---|
| 100 | char1 = 'calculated' |
---|
| 101 | ELSEIF ( ( host(1:3) == 'ibm' .OR. host(1:3) == 'nec' .OR. & |
---|
| 102 | host(1:2) == 'lc' ) .AND. & |
---|
| 103 | npex == -1 .AND. pdims(2) == 1 ) THEN |
---|
| 104 | char1 = 'forced' |
---|
| 105 | ELSE |
---|
| 106 | char1 = 'predefined' |
---|
| 107 | ENDIF |
---|
| 108 | IF ( threads_per_task == 1 ) THEN |
---|
| 109 | WRITE ( io, 101 ) numprocs, pdims(1), pdims(2), TRIM( char1 ) |
---|
| 110 | ELSE |
---|
| 111 | WRITE ( io, 102 ) numprocs*threads_per_task, numprocs, & |
---|
| 112 | threads_per_task, pdims(1), pdims(2), TRIM( char1 ) |
---|
| 113 | ENDIF |
---|
| 114 | IF ( ( host(1:3) == 'ibm' .OR. host(1:3) == 'nec' .OR. & |
---|
| 115 | host(1:2) == 'lc' .OR. host(1:3) == 'dec' ) .AND. & |
---|
| 116 | npex == -1 .AND. pdims(2) == 1 ) & |
---|
| 117 | THEN |
---|
| 118 | WRITE ( io, 104 ) |
---|
| 119 | ELSEIF ( pdims(2) == 1 ) THEN |
---|
| 120 | WRITE ( io, 105 ) 'x' |
---|
| 121 | ELSEIF ( pdims(1) == 1 ) THEN |
---|
| 122 | WRITE ( io, 105 ) 'y' |
---|
| 123 | ENDIF |
---|
| 124 | IF ( use_seperate_pe_for_dvrp_output ) WRITE ( io, 103 ) |
---|
| 125 | #endif |
---|
| 126 | WRITE ( io, 99 ) |
---|
| 127 | |
---|
| 128 | ! |
---|
| 129 | !-- Numerical schemes |
---|
| 130 | WRITE ( io, 110 ) |
---|
| 131 | IF ( psolver(1:7) == 'poisfft' ) THEN |
---|
| 132 | WRITE ( io, 111 ) TRIM( fft_method ) |
---|
| 133 | IF ( psolver == 'poisfft_hybrid' ) WRITE ( io, 138 ) |
---|
| 134 | ELSEIF ( psolver == 'sor' ) THEN |
---|
| 135 | WRITE ( io, 112 ) nsor_ini, nsor, omega_sor |
---|
| 136 | ELSEIF ( psolver == 'multigrid' ) THEN |
---|
| 137 | WRITE ( io, 135 ) cycle_mg, maximum_grid_level, ngsrb |
---|
| 138 | IF ( mg_cycles == -1 ) THEN |
---|
| 139 | WRITE ( io, 140 ) residual_limit |
---|
| 140 | ELSE |
---|
| 141 | WRITE ( io, 141 ) mg_cycles |
---|
| 142 | ENDIF |
---|
| 143 | IF ( mg_switch_to_pe0_level == 0 ) THEN |
---|
| 144 | WRITE ( io, 136 ) nxr_mg(1)-nxl_mg(1)+1, nyn_mg(1)-nys_mg(1)+1, & |
---|
| 145 | nzt_mg(1) |
---|
| 146 | ELSE |
---|
| 147 | WRITE ( io, 137 ) mg_switch_to_pe0_level, & |
---|
| 148 | mg_loc_ind(2,0)-mg_loc_ind(1,0)+1, & |
---|
| 149 | mg_loc_ind(4,0)-mg_loc_ind(3,0)+1, & |
---|
| 150 | nzt_mg(mg_switch_to_pe0_level), & |
---|
| 151 | nxr_mg(1)-nxl_mg(1)+1, nyn_mg(1)-nys_mg(1)+1, & |
---|
| 152 | nzt_mg(1) |
---|
| 153 | ENDIF |
---|
| 154 | ENDIF |
---|
| 155 | IF ( call_psolver_at_all_substeps .AND. timestep_scheme(1:5) == 'runge' ) & |
---|
| 156 | THEN |
---|
| 157 | WRITE ( io, 142 ) |
---|
| 158 | ENDIF |
---|
| 159 | |
---|
| 160 | IF ( momentum_advec == 'pw-scheme' ) THEN |
---|
| 161 | WRITE ( io, 113 ) |
---|
| 162 | ELSE |
---|
| 163 | WRITE ( io, 114 ) |
---|
| 164 | IF ( cut_spline_overshoot ) WRITE ( io, 124 ) |
---|
| 165 | IF ( overshoot_limit_u /= 0.0 .OR. overshoot_limit_v /= 0.0 .OR. & |
---|
| 166 | overshoot_limit_w /= 0.0 ) THEN |
---|
| 167 | WRITE ( io, 127 ) overshoot_limit_u, overshoot_limit_v, & |
---|
| 168 | overshoot_limit_w |
---|
| 169 | ENDIF |
---|
| 170 | IF ( ups_limit_u /= 0.0 .OR. ups_limit_v /= 0.0 .OR. & |
---|
| 171 | ups_limit_w /= 0.0 ) & |
---|
| 172 | THEN |
---|
| 173 | WRITE ( io, 125 ) ups_limit_u, ups_limit_v, ups_limit_w |
---|
| 174 | ENDIF |
---|
| 175 | IF ( long_filter_factor /= 0.0 ) WRITE ( io, 115 ) long_filter_factor |
---|
| 176 | ENDIF |
---|
| 177 | IF ( scalar_advec == 'pw-scheme' ) THEN |
---|
| 178 | WRITE ( io, 116 ) |
---|
| 179 | ELSEIF ( scalar_advec == 'ups-scheme' ) THEN |
---|
| 180 | WRITE ( io, 117 ) |
---|
| 181 | IF ( cut_spline_overshoot ) WRITE ( io, 124 ) |
---|
| 182 | IF ( overshoot_limit_e /= 0.0 .OR. overshoot_limit_pt /= 0.0 ) THEN |
---|
| 183 | WRITE ( io, 128 ) overshoot_limit_e, overshoot_limit_pt |
---|
| 184 | ENDIF |
---|
| 185 | IF ( ups_limit_e /= 0.0 .OR. ups_limit_pt /= 0.0 ) THEN |
---|
| 186 | WRITE ( io, 126 ) ups_limit_e, ups_limit_pt |
---|
| 187 | ENDIF |
---|
| 188 | ELSE |
---|
| 189 | WRITE ( io, 118 ) |
---|
| 190 | ENDIF |
---|
| 191 | IF ( momentum_advec /= 'ups-scheme' .AND. scalar_advec /= 'ups-scheme' & |
---|
| 192 | .AND. scalar_advec /= 'bc-scheme' .AND. host(1:3) /= 'nec' ) THEN |
---|
| 193 | WRITE ( io, 139 ) |
---|
| 194 | ENDIF |
---|
| 195 | IF ( galilei_transformation ) THEN |
---|
| 196 | IF ( use_ug_for_galilei_tr ) THEN |
---|
| 197 | char1 = 'geostrophic wind' |
---|
| 198 | ELSE |
---|
| 199 | char1 = 'mean wind in model domain' |
---|
| 200 | ENDIF |
---|
| 201 | IF ( simulated_time_at_begin == simulated_time ) THEN |
---|
| 202 | char2 = 'at the start of the run' |
---|
| 203 | ELSE |
---|
| 204 | char2 = 'at the end of the run' |
---|
| 205 | ENDIF |
---|
| 206 | WRITE ( io, 119 ) TRIM( char1 ), TRIM( char2 ), & |
---|
| 207 | advected_distance_x/1000.0, advected_distance_y/1000.0 |
---|
| 208 | ENDIF |
---|
| 209 | IF ( timestep_scheme == 'leapfrog' ) THEN |
---|
| 210 | WRITE ( io, 120 ) |
---|
| 211 | ELSEIF ( timestep_scheme == 'leapfrog+euler' ) THEN |
---|
| 212 | WRITE ( io, 121 ) |
---|
| 213 | ELSE |
---|
| 214 | WRITE ( io, 122 ) timestep_scheme |
---|
| 215 | ENDIF |
---|
| 216 | IF ( rayleigh_damping_factor /= 0.0 ) THEN |
---|
| 217 | WRITE ( io, 123 ) rayleigh_damping_height, rayleigh_damping_factor |
---|
| 218 | ENDIF |
---|
| 219 | IF ( moisture ) THEN |
---|
| 220 | IF ( .NOT. cloud_physics ) THEN |
---|
| 221 | WRITE ( io, 129 ) |
---|
| 222 | ELSE |
---|
| 223 | WRITE ( io, 130 ) |
---|
| 224 | WRITE ( io, 131 ) |
---|
| 225 | IF ( radiation ) WRITE ( io, 132 ) |
---|
| 226 | IF ( precipitation ) WRITE ( io, 133 ) |
---|
| 227 | ENDIF |
---|
| 228 | ENDIF |
---|
| 229 | IF ( passive_scalar ) WRITE ( io, 134 ) |
---|
| 230 | IF ( conserve_volume_flow ) WRITE ( io, 150 ) |
---|
| 231 | WRITE ( io, 99 ) |
---|
| 232 | |
---|
| 233 | ! |
---|
| 234 | !-- Runtime and timestep informations |
---|
| 235 | WRITE ( io, 200 ) |
---|
| 236 | IF ( .NOT. dt_fixed ) THEN |
---|
| 237 | WRITE ( io, 201 ) dt_max, cfl_factor |
---|
| 238 | ELSE |
---|
| 239 | WRITE ( io, 202 ) dt |
---|
| 240 | ENDIF |
---|
| 241 | WRITE ( io, 203 ) simulated_time_at_begin, end_time |
---|
| 242 | |
---|
| 243 | IF ( time_restart /= 9999999.9 .AND. & |
---|
| 244 | simulated_time_at_begin == simulated_time ) THEN |
---|
| 245 | IF ( dt_restart == 9999999.9 ) THEN |
---|
| 246 | WRITE ( io, 204 ) ' Restart at: ',time_restart |
---|
| 247 | ELSE |
---|
| 248 | WRITE ( io, 205 ) ' Restart at: ',time_restart, dt_restart |
---|
| 249 | ENDIF |
---|
| 250 | ENDIF |
---|
| 251 | |
---|
| 252 | IF ( simulated_time_at_begin /= simulated_time ) THEN |
---|
| 253 | i = MAX ( log_point_s(10)%counts, 1 ) |
---|
| 254 | IF ( ( simulated_time - simulated_time_at_begin ) == 0.0 ) THEN |
---|
| 255 | cpuseconds_per_simulated_second = 0.0 |
---|
| 256 | ELSE |
---|
| 257 | cpuseconds_per_simulated_second = log_point_s(10)%sum / & |
---|
| 258 | ( simulated_time - & |
---|
| 259 | simulated_time_at_begin ) |
---|
| 260 | ENDIF |
---|
| 261 | WRITE ( io, 206 ) simulated_time, log_point_s(10)%sum, & |
---|
| 262 | log_point_s(10)%sum / REAL( i ), & |
---|
| 263 | cpuseconds_per_simulated_second |
---|
| 264 | IF ( time_restart /= 9999999.9 .AND. time_restart < end_time ) THEN |
---|
| 265 | IF ( dt_restart == 9999999.9 ) THEN |
---|
| 266 | WRITE ( io, 204 ) ' Next restart at: ',time_restart |
---|
| 267 | ELSE |
---|
| 268 | WRITE ( io, 205 ) ' Next restart at: ',time_restart, dt_restart |
---|
| 269 | ENDIF |
---|
| 270 | ENDIF |
---|
| 271 | ENDIF |
---|
| 272 | |
---|
| 273 | ! |
---|
| 274 | !-- Computational grid |
---|
| 275 | WRITE ( io, 250 ) dx, dy, dz, (nx+1)*dx, (ny+1)*dy, zu(nzt+1) |
---|
| 276 | IF ( dz_stretch_level_index < nzt+1 ) THEN |
---|
| 277 | WRITE ( io, 252 ) dz_stretch_level, dz_stretch_level_index, & |
---|
| 278 | dz_stretch_factor, dz_max |
---|
| 279 | ENDIF |
---|
| 280 | WRITE ( io, 254 ) nx, ny, nzt+1, MIN( nnx, nx+1 ), MIN( nny, ny+1 ), & |
---|
| 281 | MIN( nnz+2, nzt+2 ) |
---|
| 282 | IF ( nxa == nx .AND. nya == ny .AND. nza == nz ) THEN |
---|
| 283 | WRITE ( io, 255 ) |
---|
| 284 | ELSE |
---|
| 285 | WRITE ( io, 256 ) nnx-(nxa-nx), nny-(nya-ny), nzt+2 |
---|
| 286 | ENDIF |
---|
| 287 | IF ( sloping_surface ) WRITE ( io, 260 ) alpha_surface |
---|
| 288 | |
---|
| 289 | ! |
---|
| 290 | !-- Topography |
---|
| 291 | WRITE ( io, 270 ) topography |
---|
| 292 | SELECT CASE ( TRIM( topography ) ) |
---|
| 293 | |
---|
| 294 | CASE ( 'flat' ) |
---|
| 295 | ! no actions necessary |
---|
| 296 | |
---|
| 297 | CASE ( 'single_building' ) |
---|
| 298 | blx = INT( building_length_x / dx ) |
---|
| 299 | bly = INT( building_length_y / dy ) |
---|
| 300 | bh = INT( building_height / dz ) |
---|
| 301 | |
---|
| 302 | IF ( building_wall_left == 9999999.9 ) THEN |
---|
| 303 | building_wall_left = ( nx + 1 - blx ) / 2 * dx |
---|
| 304 | ENDIF |
---|
| 305 | bxl = INT ( building_wall_left / dx + 0.5 ) |
---|
| 306 | bxr = bxl + blx |
---|
| 307 | |
---|
| 308 | IF ( building_wall_south == 9999999.9 ) THEN |
---|
| 309 | building_wall_south = ( ny + 1 - bly ) / 2 * dy |
---|
| 310 | ENDIF |
---|
| 311 | bys = INT ( building_wall_south / dy + 0.5 ) |
---|
| 312 | byn = bys + bly |
---|
| 313 | |
---|
| 314 | WRITE ( io, 271 ) building_length_x, building_length_y, & |
---|
| 315 | building_height, bxl, bxr, bys, byn |
---|
| 316 | |
---|
| 317 | END SELECT |
---|
| 318 | |
---|
| 319 | ! |
---|
| 320 | !-- Boundary conditions |
---|
| 321 | IF ( ibc_p_b == 0 ) THEN |
---|
| 322 | runten = 'p(0) = 0 |' |
---|
| 323 | ELSEIF ( ibc_p_b == 1 ) THEN |
---|
| 324 | runten = 'p(0) = p(1) |' |
---|
| 325 | ELSE |
---|
| 326 | runten = 'p(0) = p(1) +R|' |
---|
| 327 | ENDIF |
---|
| 328 | IF ( ibc_p_t == 0 ) THEN |
---|
| 329 | roben = 'p(nzt+1) = 0 |' |
---|
| 330 | ELSE |
---|
| 331 | roben = 'p(nzt+1) = p(nzt) |' |
---|
| 332 | ENDIF |
---|
| 333 | |
---|
| 334 | IF ( ibc_uv_b == 0 ) THEN |
---|
| 335 | runten = TRIM( runten ) // ' uv(0) = -uv(1) |' |
---|
| 336 | ELSE |
---|
| 337 | runten = TRIM( runten ) // ' uv(0) = uv(1) |' |
---|
| 338 | ENDIF |
---|
| 339 | IF ( ibc_uv_t == 0 ) THEN |
---|
| 340 | roben = TRIM( roben ) // ' uv(nzt+1) = ug(nzt+1), vg(nzt+1) |' |
---|
| 341 | ELSE |
---|
| 342 | roben = TRIM( roben ) // ' uv(nzt+1) = uv(nzt) |' |
---|
| 343 | ENDIF |
---|
| 344 | |
---|
| 345 | IF ( ibc_pt_b == 0 ) THEN |
---|
| 346 | runten = TRIM( runten ) // ' pt(0) = pt_surface' |
---|
| 347 | ELSE |
---|
| 348 | runten = TRIM( runten ) // ' pt(0) = pt(1)' |
---|
| 349 | ENDIF |
---|
| 350 | IF ( ibc_pt_t == 0 ) THEN |
---|
[19] | 351 | roben = TRIM( roben ) // ' pt(nzt+1) = pt_top' |
---|
| 352 | ELSEIF( ibc_pt_t == 1 ) THEN |
---|
| 353 | roben = TRIM( roben ) // ' pt(nzt+1) = pt(nzt)' |
---|
| 354 | ELSEIF( ibc_pt_t == 2 ) THEN |
---|
| 355 | roben = TRIM( roben ) // ' pt(nzt+1) = pt(nzt) + dpt/dz_ini' |
---|
[1] | 356 | ENDIF |
---|
| 357 | |
---|
| 358 | WRITE ( io, 300 ) runten, roben |
---|
| 359 | |
---|
| 360 | IF ( .NOT. constant_diffusion ) THEN |
---|
| 361 | IF ( ibc_e_b == 1 ) THEN |
---|
| 362 | runten = 'e(0) = e(1)' |
---|
| 363 | ELSE |
---|
| 364 | runten = 'e(0) = e(1) = (u*/0.1)**2' |
---|
| 365 | ENDIF |
---|
| 366 | roben = 'e(nzt+1) = e(nzt) = e(nzt-1)' |
---|
| 367 | |
---|
| 368 | WRITE ( io, 301 ) runten, roben |
---|
| 369 | |
---|
| 370 | ENDIF |
---|
| 371 | |
---|
| 372 | IF ( moisture .OR. passive_scalar ) THEN |
---|
| 373 | IF ( moisture ) THEN |
---|
| 374 | IF ( ibc_q_b == 0 ) THEN |
---|
| 375 | runten = 'q(0) = q_surface' |
---|
| 376 | ELSE |
---|
| 377 | runten = 'q(0) = q(1)' |
---|
| 378 | ENDIF |
---|
| 379 | IF ( ibc_q_t == 0 ) THEN |
---|
| 380 | roben = 'q(nzt) = q_top' |
---|
| 381 | ELSE |
---|
| 382 | roben = 'q(nzt) = q(nzt-1) + dq/dz' |
---|
| 383 | ENDIF |
---|
| 384 | ELSE |
---|
| 385 | IF ( ibc_q_b == 0 ) THEN |
---|
| 386 | runten = 's(0) = s_surface' |
---|
| 387 | ELSE |
---|
| 388 | runten = 's(0) = s(1)' |
---|
| 389 | ENDIF |
---|
| 390 | IF ( ibc_q_t == 0 ) THEN |
---|
| 391 | roben = 's(nzt) = s_top' |
---|
| 392 | ELSE |
---|
| 393 | roben = 's(nzt) = s(nzt-1) + ds/dz' |
---|
| 394 | ENDIF |
---|
| 395 | ENDIF |
---|
| 396 | |
---|
| 397 | WRITE ( io, 302 ) runten, roben |
---|
| 398 | |
---|
| 399 | ENDIF |
---|
| 400 | |
---|
| 401 | IF ( use_surface_fluxes ) THEN |
---|
| 402 | WRITE ( io, 303 ) |
---|
| 403 | IF ( constant_heatflux ) THEN |
---|
| 404 | WRITE ( io, 306 ) surface_heatflux |
---|
| 405 | IF ( random_heatflux ) WRITE ( io, 307 ) |
---|
| 406 | ENDIF |
---|
| 407 | IF ( moisture .AND. constant_waterflux ) THEN |
---|
| 408 | WRITE ( io, 311 ) surface_waterflux |
---|
| 409 | ENDIF |
---|
| 410 | IF ( passive_scalar .AND. constant_waterflux ) THEN |
---|
| 411 | WRITE ( io, 313 ) surface_waterflux |
---|
| 412 | ENDIF |
---|
| 413 | ENDIF |
---|
| 414 | |
---|
[19] | 415 | IF ( use_top_fluxes ) THEN |
---|
| 416 | WRITE ( io, 304 ) |
---|
| 417 | IF ( constant_top_heatflux ) THEN |
---|
| 418 | WRITE ( io, 306 ) top_heatflux |
---|
| 419 | ENDIF |
---|
| 420 | IF ( moisture .OR. passive_scalar ) THEN |
---|
| 421 | WRITE ( io, 315 ) |
---|
| 422 | ENDIF |
---|
| 423 | ENDIF |
---|
| 424 | |
---|
[1] | 425 | IF ( prandtl_layer ) THEN |
---|
| 426 | WRITE ( io, 305 ) zu(1), roughness_length, kappa, rif_min, rif_max |
---|
| 427 | IF ( .NOT. constant_heatflux ) WRITE ( io, 308 ) |
---|
| 428 | IF ( moisture .AND. .NOT. constant_waterflux ) THEN |
---|
| 429 | WRITE ( io, 312 ) |
---|
| 430 | ENDIF |
---|
| 431 | IF ( passive_scalar .AND. .NOT. constant_waterflux ) THEN |
---|
| 432 | WRITE ( io, 314 ) |
---|
| 433 | ENDIF |
---|
| 434 | ELSE |
---|
| 435 | IF ( INDEX(initializing_actions, 'set_1d-model_profiles') /= 0 ) THEN |
---|
| 436 | WRITE ( io, 310 ) rif_min, rif_max |
---|
| 437 | ENDIF |
---|
| 438 | ENDIF |
---|
| 439 | |
---|
| 440 | WRITE ( io, 317 ) bc_lr, bc_ns |
---|
| 441 | IF ( bc_lr /= 'cyclic' .OR. bc_ns /= 'cyclic' ) THEN |
---|
| 442 | WRITE ( io, 318 ) outflow_damping_width, km_damp_max |
---|
| 443 | ENDIF |
---|
| 444 | |
---|
| 445 | ! |
---|
| 446 | !-- Listing of 1D-profiles |
---|
| 447 | WRITE ( io, 320 ) dt_dopr_listing |
---|
| 448 | IF ( averaging_interval_pr /= 0.0 ) THEN |
---|
| 449 | WRITE ( io, 321 ) averaging_interval_pr, dt_averaging_input_pr |
---|
| 450 | ENDIF |
---|
| 451 | |
---|
| 452 | ! |
---|
| 453 | !-- DATA output |
---|
| 454 | WRITE ( io, 330 ) |
---|
| 455 | IF ( averaging_interval_pr /= 0.0 ) THEN |
---|
| 456 | WRITE ( io, 321 ) averaging_interval_pr, dt_averaging_input_pr |
---|
| 457 | ENDIF |
---|
| 458 | |
---|
| 459 | ! |
---|
| 460 | !-- 1D-profiles |
---|
| 461 | dopr_chr = 'Profile:' |
---|
| 462 | IF ( dopr_n /= 0 ) THEN |
---|
| 463 | WRITE ( io, 331 ) |
---|
| 464 | |
---|
| 465 | output_format = '' |
---|
| 466 | IF ( netcdf_output ) THEN |
---|
| 467 | IF ( netcdf_64bit ) THEN |
---|
| 468 | output_format = 'netcdf (64 bit offset)' |
---|
| 469 | ELSE |
---|
| 470 | output_format = 'netcdf' |
---|
| 471 | ENDIF |
---|
| 472 | ENDIF |
---|
| 473 | IF ( profil_output ) THEN |
---|
| 474 | IF ( netcdf_output ) THEN |
---|
| 475 | output_format = TRIM( output_format ) // ' and profil' |
---|
| 476 | ELSE |
---|
| 477 | output_format = 'profil' |
---|
| 478 | ENDIF |
---|
| 479 | ENDIF |
---|
| 480 | WRITE ( io, 345 ) output_format |
---|
| 481 | |
---|
| 482 | DO i = 1, dopr_n |
---|
| 483 | dopr_chr = TRIM( dopr_chr ) // ' ' // TRIM( data_output_pr(i) ) // ',' |
---|
| 484 | IF ( LEN_TRIM( dopr_chr ) >= 60 ) THEN |
---|
| 485 | WRITE ( io, 332 ) dopr_chr |
---|
| 486 | dopr_chr = ' :' |
---|
| 487 | ENDIF |
---|
| 488 | ENDDO |
---|
| 489 | |
---|
| 490 | IF ( dopr_chr /= '' ) THEN |
---|
| 491 | WRITE ( io, 332 ) dopr_chr |
---|
| 492 | ENDIF |
---|
| 493 | WRITE ( io, 333 ) dt_dopr, averaging_interval_pr, dt_averaging_input_pr |
---|
| 494 | IF ( skip_time_dopr /= 0.0 ) WRITE ( io, 339 ) skip_time_dopr |
---|
| 495 | ENDIF |
---|
| 496 | |
---|
| 497 | ! |
---|
| 498 | !-- 2D-arrays |
---|
| 499 | DO av = 0, 1 |
---|
| 500 | |
---|
| 501 | i = 1 |
---|
| 502 | do2d_xy = '' |
---|
| 503 | do2d_xz = '' |
---|
| 504 | do2d_yz = '' |
---|
| 505 | DO WHILE ( do2d(av,i) /= ' ' ) |
---|
| 506 | |
---|
| 507 | l = MAX( 2, LEN_TRIM( do2d(av,i) ) ) |
---|
| 508 | do2d_mode = do2d(av,i)(l-1:l) |
---|
| 509 | |
---|
| 510 | SELECT CASE ( do2d_mode ) |
---|
| 511 | CASE ( 'xy' ) |
---|
| 512 | ll = LEN_TRIM( do2d_xy ) |
---|
| 513 | do2d_xy = do2d_xy(1:ll) // ' ' // do2d(av,i)(1:l-3) // ',' |
---|
| 514 | CASE ( 'xz' ) |
---|
| 515 | ll = LEN_TRIM( do2d_xz ) |
---|
| 516 | do2d_xz = do2d_xz(1:ll) // ' ' // do2d(av,i)(1:l-3) // ',' |
---|
| 517 | CASE ( 'yz' ) |
---|
| 518 | ll = LEN_TRIM( do2d_yz ) |
---|
| 519 | do2d_yz = do2d_yz(1:ll) // ' ' // do2d(av,i)(1:l-3) // ',' |
---|
| 520 | END SELECT |
---|
| 521 | |
---|
| 522 | i = i + 1 |
---|
| 523 | |
---|
| 524 | ENDDO |
---|
| 525 | |
---|
| 526 | IF ( ( ( do2d_xy /= '' .AND. section(1,1) /= -9999 ) .OR. & |
---|
| 527 | ( do2d_xz /= '' .AND. section(1,2) /= -9999 ) .OR. & |
---|
| 528 | ( do2d_yz /= '' .AND. section(1,3) /= -9999 ) ) .AND. & |
---|
| 529 | ( netcdf_output .OR. iso2d_output ) ) THEN |
---|
| 530 | |
---|
| 531 | IF ( av == 0 ) THEN |
---|
| 532 | WRITE ( io, 334 ) '' |
---|
| 533 | ELSE |
---|
| 534 | WRITE ( io, 334 ) '(time-averaged)' |
---|
| 535 | ENDIF |
---|
| 536 | |
---|
| 537 | IF ( do2d_at_begin ) THEN |
---|
| 538 | begin_chr = 'and at the start' |
---|
| 539 | ELSE |
---|
| 540 | begin_chr = '' |
---|
| 541 | ENDIF |
---|
| 542 | |
---|
| 543 | output_format = '' |
---|
| 544 | IF ( netcdf_output ) THEN |
---|
| 545 | IF ( netcdf_64bit ) THEN |
---|
| 546 | output_format = 'netcdf (64 bit offset)' |
---|
| 547 | ELSE |
---|
| 548 | output_format = 'netcdf' |
---|
| 549 | ENDIF |
---|
| 550 | ENDIF |
---|
| 551 | IF ( iso2d_output ) THEN |
---|
| 552 | IF ( netcdf_output ) THEN |
---|
| 553 | output_format = TRIM( output_format ) // ' and iso2d' |
---|
| 554 | ELSE |
---|
| 555 | output_format = 'iso2d' |
---|
| 556 | ENDIF |
---|
| 557 | ENDIF |
---|
| 558 | WRITE ( io, 345 ) output_format |
---|
| 559 | |
---|
| 560 | IF ( do2d_xy /= '' .AND. section(1,1) /= -9999 ) THEN |
---|
| 561 | i = 1 |
---|
| 562 | slices = '/' |
---|
| 563 | coordinates = '/' |
---|
| 564 | ! |
---|
| 565 | !-- Building strings with index and coordinate informations of the |
---|
| 566 | !-- slices |
---|
| 567 | DO WHILE ( section(i,1) /= -9999 ) |
---|
| 568 | |
---|
| 569 | WRITE (section_chr,'(I5)') section(i,1) |
---|
| 570 | section_chr = ADJUSTL( section_chr ) |
---|
| 571 | slices = TRIM( slices ) // TRIM( section_chr ) // '/' |
---|
| 572 | |
---|
| 573 | WRITE (coor_chr,'(F10.1)') zu(section(i,1)) |
---|
| 574 | coor_chr = ADJUSTL( coor_chr ) |
---|
| 575 | coordinates = TRIM( coordinates ) // TRIM( coor_chr ) // '/' |
---|
| 576 | |
---|
| 577 | i = i + 1 |
---|
| 578 | ENDDO |
---|
| 579 | IF ( av == 0 ) THEN |
---|
| 580 | WRITE ( io, 335 ) 'XY', do2d_xy, dt_do2d_xy, & |
---|
| 581 | TRIM( begin_chr ), 'k', TRIM( slices ), & |
---|
| 582 | TRIM( coordinates ) |
---|
| 583 | IF ( skip_time_do2d_xy /= 0.0 ) THEN |
---|
| 584 | WRITE ( io, 339 ) skip_time_do2d_xy |
---|
| 585 | ENDIF |
---|
| 586 | ELSE |
---|
| 587 | WRITE ( io, 342 ) 'XY', do2d_xy, dt_data_output_av, & |
---|
| 588 | TRIM( begin_chr ), averaging_interval, & |
---|
| 589 | dt_averaging_input, 'k', TRIM( slices ), & |
---|
| 590 | TRIM( coordinates ) |
---|
| 591 | IF ( skip_time_data_output_av /= 0.0 ) THEN |
---|
| 592 | WRITE ( io, 339 ) skip_time_data_output_av |
---|
| 593 | ENDIF |
---|
| 594 | ENDIF |
---|
| 595 | |
---|
| 596 | ENDIF |
---|
| 597 | |
---|
| 598 | IF ( do2d_xz /= '' .AND. section(1,2) /= -9999 ) THEN |
---|
| 599 | i = 1 |
---|
| 600 | slices = '/' |
---|
| 601 | coordinates = '/' |
---|
| 602 | ! |
---|
| 603 | !-- Building strings with index and coordinate informations of the |
---|
| 604 | !-- slices |
---|
| 605 | DO WHILE ( section(i,2) /= -9999 ) |
---|
| 606 | |
---|
| 607 | WRITE (section_chr,'(I5)') section(i,2) |
---|
| 608 | section_chr = ADJUSTL( section_chr ) |
---|
| 609 | slices = TRIM( slices ) // TRIM( section_chr ) // '/' |
---|
| 610 | |
---|
| 611 | WRITE (coor_chr,'(F10.1)') section(i,2) * dy |
---|
| 612 | coor_chr = ADJUSTL( coor_chr ) |
---|
| 613 | coordinates = TRIM( coordinates ) // TRIM( coor_chr ) // '/' |
---|
| 614 | |
---|
| 615 | i = i + 1 |
---|
| 616 | ENDDO |
---|
| 617 | IF ( av == 0 ) THEN |
---|
| 618 | WRITE ( io, 335 ) 'XZ', do2d_xz, dt_do2d_xz, & |
---|
| 619 | TRIM( begin_chr ), 'j', TRIM( slices ), & |
---|
| 620 | TRIM( coordinates ) |
---|
| 621 | IF ( skip_time_do2d_xz /= 0.0 ) THEN |
---|
| 622 | WRITE ( io, 339 ) skip_time_do2d_xz |
---|
| 623 | ENDIF |
---|
| 624 | ELSE |
---|
| 625 | WRITE ( io, 342 ) 'XZ', do2d_xz, dt_data_output_av, & |
---|
| 626 | TRIM( begin_chr ), averaging_interval, & |
---|
| 627 | dt_averaging_input, 'j', TRIM( slices ), & |
---|
| 628 | TRIM( coordinates ) |
---|
| 629 | IF ( skip_time_data_output_av /= 0.0 ) THEN |
---|
| 630 | WRITE ( io, 339 ) skip_time_data_output_av |
---|
| 631 | ENDIF |
---|
| 632 | ENDIF |
---|
| 633 | ENDIF |
---|
| 634 | |
---|
| 635 | IF ( do2d_yz /= '' .AND. section(1,3) /= -9999 ) THEN |
---|
| 636 | i = 1 |
---|
| 637 | slices = '/' |
---|
| 638 | coordinates = '/' |
---|
| 639 | ! |
---|
| 640 | !-- Building strings with index and coordinate informations of the |
---|
| 641 | !-- slices |
---|
| 642 | DO WHILE ( section(i,3) /= -9999 ) |
---|
| 643 | |
---|
| 644 | WRITE (section_chr,'(I5)') section(i,3) |
---|
| 645 | section_chr = ADJUSTL( section_chr ) |
---|
| 646 | slices = TRIM( slices ) // TRIM( section_chr ) // '/' |
---|
| 647 | |
---|
| 648 | WRITE (coor_chr,'(F10.1)') section(i,3) * dx |
---|
| 649 | coor_chr = ADJUSTL( coor_chr ) |
---|
| 650 | coordinates = TRIM( coordinates ) // TRIM( coor_chr ) // '/' |
---|
| 651 | |
---|
| 652 | i = i + 1 |
---|
| 653 | ENDDO |
---|
| 654 | IF ( av == 0 ) THEN |
---|
| 655 | WRITE ( io, 335 ) 'YZ', do2d_yz, dt_do2d_yz, & |
---|
| 656 | TRIM( begin_chr ), 'i', TRIM( slices ), & |
---|
| 657 | TRIM( coordinates ) |
---|
| 658 | IF ( skip_time_do2d_yz /= 0.0 ) THEN |
---|
| 659 | WRITE ( io, 339 ) skip_time_do2d_yz |
---|
| 660 | ENDIF |
---|
| 661 | ELSE |
---|
| 662 | WRITE ( io, 342 ) 'YZ', do2d_yz, dt_data_output_av, & |
---|
| 663 | TRIM( begin_chr ), averaging_interval, & |
---|
| 664 | dt_averaging_input, 'i', TRIM( slices ), & |
---|
| 665 | TRIM( coordinates ) |
---|
| 666 | IF ( skip_time_data_output_av /= 0.0 ) THEN |
---|
| 667 | WRITE ( io, 339 ) skip_time_data_output_av |
---|
| 668 | ENDIF |
---|
| 669 | ENDIF |
---|
| 670 | ENDIF |
---|
| 671 | |
---|
| 672 | ENDIF |
---|
| 673 | |
---|
| 674 | ENDDO |
---|
| 675 | |
---|
| 676 | ! |
---|
| 677 | !-- 3d-arrays |
---|
| 678 | DO av = 0, 1 |
---|
| 679 | |
---|
| 680 | i = 1 |
---|
| 681 | do3d_chr = '' |
---|
| 682 | DO WHILE ( do3d(av,i) /= ' ' ) |
---|
| 683 | |
---|
| 684 | do3d_chr = TRIM( do3d_chr ) // ' ' // TRIM( do3d(av,i) ) // ',' |
---|
| 685 | i = i + 1 |
---|
| 686 | |
---|
| 687 | ENDDO |
---|
| 688 | |
---|
| 689 | IF ( do3d_chr /= '' ) THEN |
---|
| 690 | IF ( av == 0 ) THEN |
---|
| 691 | WRITE ( io, 336 ) '' |
---|
| 692 | ELSE |
---|
| 693 | WRITE ( io, 336 ) '(time-averaged)' |
---|
| 694 | ENDIF |
---|
| 695 | |
---|
| 696 | output_format = '' |
---|
| 697 | IF ( netcdf_output ) THEN |
---|
[46] | 698 | IF ( netcdf_64bit .AND. netcdf_64bit_3d ) THEN |
---|
[1] | 699 | output_format = 'netcdf (64 bit offset)' |
---|
| 700 | ELSE |
---|
| 701 | output_format = 'netcdf' |
---|
| 702 | ENDIF |
---|
| 703 | ENDIF |
---|
| 704 | IF ( avs_output ) THEN |
---|
| 705 | IF ( netcdf_output ) THEN |
---|
| 706 | output_format = TRIM( output_format ) // ' and avs' |
---|
| 707 | ELSE |
---|
| 708 | output_format = 'avs' |
---|
| 709 | ENDIF |
---|
| 710 | ENDIF |
---|
| 711 | WRITE ( io, 345 ) output_format |
---|
| 712 | |
---|
| 713 | IF ( do3d_at_begin ) THEN |
---|
| 714 | begin_chr = 'and at the start' |
---|
| 715 | ELSE |
---|
| 716 | begin_chr = '' |
---|
| 717 | ENDIF |
---|
| 718 | IF ( av == 0 ) THEN |
---|
| 719 | WRITE ( io, 337 ) do3d_chr, dt_do3d, TRIM( begin_chr ), & |
---|
| 720 | zu(nz_do3d), nz_do3d |
---|
| 721 | ELSE |
---|
| 722 | WRITE ( io, 343 ) do3d_chr, dt_data_output_av, & |
---|
| 723 | TRIM( begin_chr ), averaging_interval, & |
---|
| 724 | dt_averaging_input, zu(nz_do3d), nz_do3d |
---|
| 725 | ENDIF |
---|
| 726 | |
---|
| 727 | IF ( do3d_compress ) THEN |
---|
| 728 | do3d_chr = '' |
---|
| 729 | i = 1 |
---|
| 730 | DO WHILE ( do3d(av,i) /= ' ' ) |
---|
| 731 | |
---|
| 732 | SELECT CASE ( do3d(av,i) ) |
---|
| 733 | CASE ( 'u' ) |
---|
| 734 | j = 1 |
---|
| 735 | CASE ( 'v' ) |
---|
| 736 | j = 2 |
---|
| 737 | CASE ( 'w' ) |
---|
| 738 | j = 3 |
---|
| 739 | CASE ( 'p' ) |
---|
| 740 | j = 4 |
---|
| 741 | CASE ( 'pt' ) |
---|
| 742 | j = 5 |
---|
| 743 | END SELECT |
---|
| 744 | WRITE ( prec, '(I1)' ) plot_3d_precision(j)%precision |
---|
| 745 | do3d_chr = TRIM( do3d_chr ) // ' ' // TRIM( do3d(av,i) ) // & |
---|
| 746 | ':' // prec // ',' |
---|
| 747 | i = i + 1 |
---|
| 748 | |
---|
| 749 | ENDDO |
---|
| 750 | WRITE ( io, 338 ) do3d_chr |
---|
| 751 | |
---|
| 752 | ENDIF |
---|
| 753 | |
---|
| 754 | IF ( av == 0 ) THEN |
---|
| 755 | IF ( skip_time_do3d /= 0.0 ) THEN |
---|
| 756 | WRITE ( io, 339 ) skip_time_do3d |
---|
| 757 | ENDIF |
---|
| 758 | ELSE |
---|
| 759 | IF ( skip_time_data_output_av /= 0.0 ) THEN |
---|
| 760 | WRITE ( io, 339 ) skip_time_data_output_av |
---|
| 761 | ENDIF |
---|
| 762 | ENDIF |
---|
| 763 | |
---|
| 764 | ENDIF |
---|
| 765 | |
---|
| 766 | ENDDO |
---|
| 767 | |
---|
| 768 | ! |
---|
| 769 | !-- Timeseries |
---|
| 770 | IF ( dt_dots /= 9999999.9 ) THEN |
---|
| 771 | WRITE ( io, 340 ) |
---|
| 772 | |
---|
| 773 | output_format = '' |
---|
| 774 | IF ( netcdf_output ) THEN |
---|
| 775 | IF ( netcdf_64bit ) THEN |
---|
| 776 | output_format = 'netcdf (64 bit offset)' |
---|
| 777 | ELSE |
---|
| 778 | output_format = 'netcdf' |
---|
| 779 | ENDIF |
---|
| 780 | ENDIF |
---|
| 781 | IF ( profil_output ) THEN |
---|
| 782 | IF ( netcdf_output ) THEN |
---|
| 783 | output_format = TRIM( output_format ) // ' and profil' |
---|
| 784 | ELSE |
---|
| 785 | output_format = 'profil' |
---|
| 786 | ENDIF |
---|
| 787 | ENDIF |
---|
| 788 | WRITE ( io, 345 ) output_format |
---|
| 789 | WRITE ( io, 341 ) dt_dots |
---|
| 790 | ENDIF |
---|
| 791 | |
---|
| 792 | #if defined( __dvrp_graphics ) |
---|
| 793 | ! |
---|
| 794 | !-- Dvrp-output |
---|
| 795 | IF ( dt_dvrp /= 9999999.9 ) THEN |
---|
| 796 | WRITE ( io, 360 ) dt_dvrp, TRIM( dvrp_output ), TRIM( dvrp_host ), & |
---|
| 797 | TRIM( dvrp_username ), TRIM( dvrp_directory ) |
---|
| 798 | i = 1 |
---|
| 799 | l = 0 |
---|
| 800 | DO WHILE ( mode_dvrp(i) /= ' ' ) |
---|
| 801 | IF ( mode_dvrp(i)(1:10) == 'isosurface' ) THEN |
---|
| 802 | READ ( mode_dvrp(i), '(10X,I1)' ) j |
---|
| 803 | l = l + 1 |
---|
| 804 | IF ( do3d(0,j) /= ' ' ) THEN |
---|
| 805 | WRITE ( io, 361 ) TRIM( do3d(0,j) ), threshold(l) |
---|
| 806 | ENDIF |
---|
| 807 | ELSEIF ( mode_dvrp(i)(1:6) == 'slicer' ) THEN |
---|
| 808 | READ ( mode_dvrp(i), '(6X,I1)' ) j |
---|
| 809 | IF ( do2d(0,j) /= ' ' ) WRITE ( io, 362 ) TRIM( do2d(0,j) ) |
---|
| 810 | ELSEIF ( mode_dvrp(i)(1:9) == 'particles' ) THEN |
---|
| 811 | WRITE ( io, 363 ) |
---|
| 812 | ENDIF |
---|
| 813 | i = i + 1 |
---|
| 814 | ENDDO |
---|
| 815 | ENDIF |
---|
| 816 | #endif |
---|
| 817 | |
---|
| 818 | #if defined( __spectra ) |
---|
| 819 | ! |
---|
| 820 | !-- Spectra output |
---|
| 821 | IF ( dt_dosp /= 9999999.9 ) THEN |
---|
| 822 | WRITE ( io, 370 ) |
---|
| 823 | |
---|
| 824 | output_format = '' |
---|
| 825 | IF ( netcdf_output ) THEN |
---|
| 826 | IF ( netcdf_64bit ) THEN |
---|
| 827 | output_format = 'netcdf (64 bit offset)' |
---|
| 828 | ELSE |
---|
| 829 | output_format = 'netcdf' |
---|
| 830 | ENDIF |
---|
| 831 | ENDIF |
---|
| 832 | IF ( profil_output ) THEN |
---|
| 833 | IF ( netcdf_output ) THEN |
---|
| 834 | output_format = TRIM( output_format ) // ' and profil' |
---|
| 835 | ELSE |
---|
| 836 | output_format = 'profil' |
---|
| 837 | ENDIF |
---|
| 838 | ENDIF |
---|
| 839 | WRITE ( io, 345 ) output_format |
---|
| 840 | WRITE ( io, 371 ) dt_dosp |
---|
| 841 | IF ( skip_time_dosp /= 0.0 ) WRITE ( io, 339 ) skip_time_dosp |
---|
| 842 | WRITE ( io, 372 ) ( data_output_sp(i), i = 1,10 ), & |
---|
| 843 | ( spectra_direction(i), i = 1,10 ), & |
---|
| 844 | ( comp_spectra_level(i), i = 1,10 ), & |
---|
| 845 | ( plot_spectra_level(i), i = 1,10 ), & |
---|
| 846 | averaging_interval_sp, dt_averaging_input_pr |
---|
| 847 | ENDIF |
---|
| 848 | #endif |
---|
| 849 | |
---|
| 850 | WRITE ( io, 99 ) |
---|
| 851 | |
---|
| 852 | ! |
---|
| 853 | !-- Physical quantities |
---|
| 854 | WRITE ( io, 400 ) |
---|
| 855 | |
---|
| 856 | ! |
---|
| 857 | !-- Geostrophic parameters |
---|
| 858 | WRITE ( io, 410 ) omega, phi, f, fs |
---|
| 859 | |
---|
| 860 | ! |
---|
| 861 | !-- Other quantities |
---|
| 862 | WRITE ( io, 411 ) g |
---|
| 863 | |
---|
| 864 | ! |
---|
| 865 | !-- Cloud physics parameters |
---|
| 866 | IF ( cloud_physics ) THEN |
---|
| 867 | WRITE ( io, 412 ) |
---|
| 868 | WRITE ( io, 413 ) surface_pressure, r_d, rho_surface, cp, l_v |
---|
| 869 | ENDIF |
---|
| 870 | |
---|
| 871 | !-- Profile of the geostrophic wind (component ug) |
---|
| 872 | !-- Building output strings |
---|
| 873 | WRITE ( ugcomponent, '(F6.2)' ) ug_surface |
---|
| 874 | gradients = '------' |
---|
| 875 | slices = ' 0' |
---|
| 876 | coordinates = ' 0.0' |
---|
| 877 | i = 1 |
---|
| 878 | DO WHILE ( ug_vertical_gradient_level_ind(i) /= -9999 ) |
---|
| 879 | |
---|
| 880 | WRITE (coor_chr,'(F6.2,4X)') ug(ug_vertical_gradient_level_ind(i)) |
---|
| 881 | ugcomponent = TRIM( ugcomponent ) // ' ' // TRIM( coor_chr ) |
---|
| 882 | |
---|
| 883 | WRITE (coor_chr,'(F6.2,4X)') ug_vertical_gradient(i) |
---|
| 884 | gradients = TRIM( gradients ) // ' ' // TRIM( coor_chr ) |
---|
| 885 | |
---|
| 886 | WRITE (coor_chr,'(I6,4X)') ug_vertical_gradient_level_ind(i) |
---|
| 887 | slices = TRIM( slices ) // ' ' // TRIM( coor_chr ) |
---|
| 888 | |
---|
| 889 | WRITE (coor_chr,'(F6.1,4X)') ug_vertical_gradient_level(i) |
---|
| 890 | coordinates = TRIM( coordinates ) // ' ' // TRIM( coor_chr ) |
---|
| 891 | |
---|
| 892 | i = i + 1 |
---|
| 893 | ENDDO |
---|
| 894 | |
---|
| 895 | WRITE ( io, 423 ) TRIM( coordinates ), TRIM( ugcomponent ), & |
---|
| 896 | TRIM( gradients ), TRIM( slices ) |
---|
| 897 | |
---|
| 898 | !-- Profile of the geostrophic wind (component vg) |
---|
| 899 | !-- Building output strings |
---|
| 900 | WRITE ( vgcomponent, '(F6.2)' ) vg_surface |
---|
| 901 | gradients = '------' |
---|
| 902 | slices = ' 0' |
---|
| 903 | coordinates = ' 0.0' |
---|
| 904 | i = 1 |
---|
| 905 | DO WHILE ( vg_vertical_gradient_level_ind(i) /= -9999 ) |
---|
| 906 | |
---|
| 907 | WRITE (coor_chr,'(F6.2,4X)') vg(vg_vertical_gradient_level_ind(i)) |
---|
| 908 | vgcomponent = TRIM( vgcomponent ) // ' ' // TRIM( coor_chr ) |
---|
| 909 | |
---|
| 910 | WRITE (coor_chr,'(F6.2,4X)') vg_vertical_gradient(i) |
---|
| 911 | gradients = TRIM( gradients ) // ' ' // TRIM( coor_chr ) |
---|
| 912 | |
---|
| 913 | WRITE (coor_chr,'(I6,4X)') vg_vertical_gradient_level_ind(i) |
---|
| 914 | slices = TRIM( slices ) // ' ' // TRIM( coor_chr ) |
---|
| 915 | |
---|
| 916 | WRITE (coor_chr,'(F6.1,4X)') vg_vertical_gradient_level(i) |
---|
| 917 | coordinates = TRIM( coordinates ) // ' ' // TRIM( coor_chr ) |
---|
| 918 | |
---|
| 919 | i = i + 1 |
---|
| 920 | ENDDO |
---|
| 921 | |
---|
| 922 | WRITE ( io, 424 ) TRIM( coordinates ), TRIM( vgcomponent ), & |
---|
| 923 | TRIM( gradients ), TRIM( slices ) |
---|
| 924 | |
---|
| 925 | ! |
---|
| 926 | !-- Initial temperature profile |
---|
| 927 | !-- Building output strings, starting with surface temperature |
---|
| 928 | WRITE ( temperatures, '(F6.2)' ) pt_surface |
---|
| 929 | gradients = '------' |
---|
| 930 | slices = ' 0' |
---|
| 931 | coordinates = ' 0.0' |
---|
| 932 | i = 1 |
---|
| 933 | DO WHILE ( pt_vertical_gradient_level_ind(i) /= -9999 ) |
---|
| 934 | |
---|
| 935 | WRITE (coor_chr,'(F6.2,4X)') pt_init(pt_vertical_gradient_level_ind(i)) |
---|
| 936 | temperatures = TRIM( temperatures ) // ' ' // TRIM( coor_chr ) |
---|
| 937 | |
---|
| 938 | WRITE (coor_chr,'(F6.2,4X)') pt_vertical_gradient(i) |
---|
| 939 | gradients = TRIM( gradients ) // ' ' // TRIM( coor_chr ) |
---|
| 940 | |
---|
| 941 | WRITE (coor_chr,'(I6,4X)') pt_vertical_gradient_level_ind(i) |
---|
| 942 | slices = TRIM( slices ) // ' ' // TRIM( coor_chr ) |
---|
| 943 | |
---|
| 944 | WRITE (coor_chr,'(F6.1,4X)') pt_vertical_gradient_level(i) |
---|
| 945 | coordinates = TRIM( coordinates ) // ' ' // TRIM( coor_chr ) |
---|
| 946 | |
---|
| 947 | i = i + 1 |
---|
| 948 | ENDDO |
---|
| 949 | |
---|
| 950 | WRITE ( io, 420 ) TRIM( coordinates ), TRIM( temperatures ), & |
---|
| 951 | TRIM( gradients ), TRIM( slices ) |
---|
| 952 | |
---|
| 953 | ! |
---|
| 954 | !-- Initial humidity profile |
---|
| 955 | !-- Building output strings, starting with surface humidity |
---|
| 956 | IF ( moisture .OR. passive_scalar ) THEN |
---|
| 957 | WRITE ( temperatures, '(E8.1)' ) q_surface |
---|
| 958 | gradients = '--------' |
---|
| 959 | slices = ' 0' |
---|
| 960 | coordinates = ' 0.0' |
---|
| 961 | i = 1 |
---|
| 962 | DO WHILE ( q_vertical_gradient_level_ind(i) /= -9999 ) |
---|
| 963 | |
---|
| 964 | WRITE (coor_chr,'(E8.1,4X)') q_init(q_vertical_gradient_level_ind(i)) |
---|
| 965 | temperatures = TRIM( temperatures ) // ' ' // TRIM( coor_chr ) |
---|
| 966 | |
---|
| 967 | WRITE (coor_chr,'(E8.1,4X)') q_vertical_gradient(i) |
---|
| 968 | gradients = TRIM( gradients ) // ' ' // TRIM( coor_chr ) |
---|
| 969 | |
---|
| 970 | WRITE (coor_chr,'(I8,4X)') q_vertical_gradient_level_ind(i) |
---|
| 971 | slices = TRIM( slices ) // ' ' // TRIM( coor_chr ) |
---|
| 972 | |
---|
| 973 | WRITE (coor_chr,'(F8.1,4X)') q_vertical_gradient_level(i) |
---|
| 974 | coordinates = TRIM( coordinates ) // ' ' // TRIM( coor_chr ) |
---|
| 975 | |
---|
| 976 | i = i + 1 |
---|
| 977 | ENDDO |
---|
| 978 | |
---|
| 979 | IF ( moisture ) THEN |
---|
| 980 | WRITE ( io, 421 ) TRIM( coordinates ), TRIM( temperatures ), & |
---|
| 981 | TRIM( gradients ), TRIM( slices ) |
---|
| 982 | ELSE |
---|
| 983 | WRITE ( io, 422 ) TRIM( coordinates ), TRIM( temperatures ), & |
---|
| 984 | TRIM( gradients ), TRIM( slices ) |
---|
| 985 | ENDIF |
---|
| 986 | ENDIF |
---|
| 987 | |
---|
| 988 | ! |
---|
| 989 | !-- LES / turbulence parameters |
---|
| 990 | WRITE ( io, 450 ) |
---|
| 991 | |
---|
| 992 | !-- |
---|
| 993 | ! ... LES-constants used must still be added here |
---|
| 994 | !-- |
---|
| 995 | IF ( constant_diffusion ) THEN |
---|
| 996 | WRITE ( io, 451 ) km_constant, km_constant/prandtl_number, & |
---|
| 997 | prandtl_number |
---|
| 998 | ENDIF |
---|
| 999 | IF ( .NOT. constant_diffusion) THEN |
---|
| 1000 | IF ( e_min > 0.0 ) WRITE ( io, 454 ) e_min |
---|
| 1001 | IF ( wall_adjustment ) WRITE ( io, 453 ) wall_adjustment_factor |
---|
| 1002 | IF ( adjust_mixing_length .AND. prandtl_layer ) WRITE ( io, 452 ) |
---|
| 1003 | ENDIF |
---|
| 1004 | |
---|
| 1005 | ! |
---|
| 1006 | !-- Special actions during the run |
---|
| 1007 | WRITE ( io, 470 ) |
---|
| 1008 | IF ( create_disturbances ) THEN |
---|
| 1009 | WRITE ( io, 471 ) dt_disturb, disturbance_amplitude, & |
---|
| 1010 | zu(disturbance_level_ind_b), disturbance_level_ind_b,& |
---|
| 1011 | zu(disturbance_level_ind_t), disturbance_level_ind_t |
---|
| 1012 | IF ( bc_lr /= 'cyclic' .OR. bc_ns /= 'cyclic' ) THEN |
---|
| 1013 | WRITE ( io, 472 ) inflow_disturbance_begin, inflow_disturbance_end |
---|
| 1014 | ELSE |
---|
| 1015 | WRITE ( io, 473 ) disturbance_energy_limit |
---|
| 1016 | ENDIF |
---|
| 1017 | WRITE ( io, 474 ) TRIM( random_generator ) |
---|
| 1018 | ENDIF |
---|
| 1019 | IF ( pt_surface_initial_change /= 0.0 ) THEN |
---|
| 1020 | WRITE ( io, 475 ) pt_surface_initial_change |
---|
| 1021 | ENDIF |
---|
| 1022 | IF ( moisture .AND. q_surface_initial_change /= 0.0 ) THEN |
---|
| 1023 | WRITE ( io, 476 ) q_surface_initial_change |
---|
| 1024 | ENDIF |
---|
| 1025 | IF ( passive_scalar .AND. q_surface_initial_change /= 0.0 ) THEN |
---|
| 1026 | WRITE ( io, 477 ) q_surface_initial_change |
---|
| 1027 | ENDIF |
---|
| 1028 | |
---|
| 1029 | #if defined( __particles ) |
---|
| 1030 | ! |
---|
| 1031 | !-- Particle attributes |
---|
| 1032 | WRITE ( io, 480 ) particle_advection_start, dt_prel, bc_par_lr, & |
---|
| 1033 | bc_par_ns, bc_par_b, bc_par_t, particle_maximum_age, & |
---|
| 1034 | end_time_prel |
---|
| 1035 | IF ( use_sgs_for_particles ) WRITE ( io, 488 ) dt_min_part |
---|
| 1036 | IF ( random_start_position ) WRITE ( io, 481 ) |
---|
| 1037 | IF ( particles_per_point > 1 ) WRITE ( io, 489 ) particles_per_point |
---|
| 1038 | WRITE ( io, 495 ) total_number_of_particles |
---|
| 1039 | IF ( .NOT. vertical_particle_advection ) WRITE ( io, 482 ) |
---|
| 1040 | IF ( maximum_number_of_tailpoints /= 0 ) THEN |
---|
| 1041 | WRITE ( io, 483 ) maximum_number_of_tailpoints |
---|
| 1042 | IF ( minimum_tailpoint_distance /= 0 ) THEN |
---|
| 1043 | WRITE ( io, 484 ) total_number_of_tails, minimum_tailpoint_distance,& |
---|
| 1044 | maximum_tailpoint_age |
---|
| 1045 | ENDIF |
---|
| 1046 | ENDIF |
---|
| 1047 | IF ( dt_write_particle_data /= 9999999.9 ) THEN |
---|
| 1048 | WRITE ( io, 485 ) dt_write_particle_data |
---|
| 1049 | output_format = '' |
---|
| 1050 | IF ( netcdf_output ) THEN |
---|
| 1051 | IF ( netcdf_64bit ) THEN |
---|
| 1052 | output_format = 'netcdf (64 bit offset) and binary' |
---|
| 1053 | ELSE |
---|
| 1054 | output_format = 'netcdf and binary' |
---|
| 1055 | ENDIF |
---|
| 1056 | ELSE |
---|
| 1057 | output_format = 'binary' |
---|
| 1058 | ENDIF |
---|
| 1059 | WRITE ( io, 345 ) output_format |
---|
| 1060 | ENDIF |
---|
| 1061 | IF ( dt_dopts /= 9999999.9 ) WRITE ( io, 494 ) dt_dopts |
---|
| 1062 | IF ( write_particle_statistics ) WRITE ( io, 486 ) |
---|
| 1063 | |
---|
| 1064 | WRITE ( io, 487 ) number_of_particle_groups |
---|
| 1065 | |
---|
| 1066 | DO i = 1, number_of_particle_groups |
---|
| 1067 | IF ( i == 1 .AND. density_ratio(i) == 9999999.9 ) THEN |
---|
| 1068 | WRITE ( io, 490 ) i, 0.0 |
---|
| 1069 | WRITE ( io, 492 ) |
---|
| 1070 | ELSE |
---|
| 1071 | WRITE ( io, 490 ) i, radius(i) |
---|
| 1072 | IF ( density_ratio(i) /= 0.0 ) THEN |
---|
| 1073 | WRITE ( io, 491 ) density_ratio(i) |
---|
| 1074 | ELSE |
---|
| 1075 | WRITE ( io, 492 ) |
---|
| 1076 | ENDIF |
---|
| 1077 | ENDIF |
---|
| 1078 | WRITE ( io, 493 ) psl(i), psr(i), pss(i), psn(i), psb(i), pst(i), & |
---|
| 1079 | pdx(i), pdy(i), pdz(i) |
---|
| 1080 | ENDDO |
---|
| 1081 | |
---|
| 1082 | #endif |
---|
| 1083 | |
---|
| 1084 | ! |
---|
| 1085 | !-- Parameters of 1D-model |
---|
| 1086 | IF ( INDEX( initializing_actions, 'set_1d-model_profiles' ) /= 0 ) THEN |
---|
| 1087 | WRITE ( io, 500 ) end_time_1d, dt_run_control_1d, dt_pr_1d, & |
---|
| 1088 | mixing_length_1d, dissipation_1d |
---|
| 1089 | IF ( damp_level_ind_1d /= nzt+1 ) THEN |
---|
| 1090 | WRITE ( io, 502 ) zu(damp_level_ind_1d), damp_level_ind_1d |
---|
| 1091 | ENDIF |
---|
| 1092 | ENDIF |
---|
| 1093 | |
---|
| 1094 | ! |
---|
| 1095 | !-- User-defined informations |
---|
| 1096 | CALL user_header( io ) |
---|
| 1097 | |
---|
| 1098 | WRITE ( io, 99 ) |
---|
| 1099 | |
---|
| 1100 | #if defined( __ibm ) |
---|
| 1101 | ! |
---|
| 1102 | !-- Write buffer contents to disc immediately |
---|
| 1103 | CALL FLUSH_( io ) |
---|
| 1104 | #elif defined( __lcmuk ) || defined( __nec ) |
---|
| 1105 | CALL FLUSH( io ) |
---|
| 1106 | #endif |
---|
| 1107 | |
---|
| 1108 | ! |
---|
| 1109 | !-- Here the FORMATs start |
---|
| 1110 | |
---|
| 1111 | 99 FORMAT (1X,78('-')) |
---|
| 1112 | 100 FORMAT (/10X,'****************',11X,28('-')/ & |
---|
| 1113 | 10X,'* ',A12,'*',11X,A/ & |
---|
| 1114 | 10X,'****************',11X,28('-')// & |
---|
| 1115 | ' Date: ',A8,11X,'Run: ',A20/ & |
---|
| 1116 | ' Time: ',A8,11X,'Run-No.: ',I2.2/ & |
---|
| 1117 | ' Run on host: ',A10) |
---|
| 1118 | #if defined( __parallel ) |
---|
| 1119 | 101 FORMAT (' Number of PEs:',7X,I4,11X,'Processor grid (x,y): (',I3,',',I3, & |
---|
| 1120 | ')',1X,A) |
---|
| 1121 | 102 FORMAT (' Number of PEs:',7X,I4,11X,'Tasks:',I4,' threads per task:',I4/ & |
---|
| 1122 | 37X,'Processor grid (x,y): (',I3,',',I3,')',1X,A) |
---|
| 1123 | 103 FORMAT (37X,'One additional PE is used to handle'/37X,'the dvrp output!') |
---|
| 1124 | 104 FORMAT (37X,'A 1d-decomposition along x is forced'/ & |
---|
| 1125 | 37X,'because the job is running on an SMP-cluster') |
---|
| 1126 | 105 FORMAT (37X,'A 1d-decomposition along ',A,' is used') |
---|
| 1127 | #endif |
---|
| 1128 | 110 FORMAT (/' Numerical Schemes:'/ & |
---|
| 1129 | ' -----------------'/) |
---|
| 1130 | 111 FORMAT (' --> Solve perturbation pressure via FFT using ',A,' routines') |
---|
| 1131 | 112 FORMAT (' --> Solve perturbation pressure via SOR-Red/Black-Schema'/ & |
---|
| 1132 | ' Iterations (initial/other): ',I3,'/',I3,' omega = ',F5.3) |
---|
| 1133 | 113 FORMAT (' --> Momentum advection via Piascek-Williams-Scheme (Form C3)', & |
---|
| 1134 | ' or Upstream') |
---|
| 1135 | 114 FORMAT (' --> Momentum advection via Upstream-Spline-Scheme') |
---|
| 1136 | 115 FORMAT (' Tendencies are smoothed via Long-Filter with factor ',F5.3) |
---|
| 1137 | 116 FORMAT (' --> Scalar advection via Piascek-Williams-Scheme (Form C3)', & |
---|
| 1138 | ' or Upstream') |
---|
| 1139 | 117 FORMAT (' --> Scalar advection via Upstream-Spline-Scheme') |
---|
| 1140 | 118 FORMAT (' --> Scalar advection via Bott-Chlond-Scheme') |
---|
| 1141 | 119 FORMAT (' --> Galilei-Transform applied to horizontal advection', & |
---|
| 1142 | ' Translation velocity = ',A/ & |
---|
| 1143 | ' distance advected ',A,': ',F8.3,' km(x) ',F8.3,' km(y)') |
---|
| 1144 | 120 FORMAT (' --> Time differencing scheme: leapfrog only (no euler in case', & |
---|
| 1145 | ' of timestep changes)') |
---|
| 1146 | 121 FORMAT (' --> Time differencing scheme: leapfrog + euler in case of', & |
---|
| 1147 | ' timestep changes') |
---|
| 1148 | 122 FORMAT (' --> Time differencing scheme: ',A) |
---|
| 1149 | 123 FORMAT (' --> Rayleigh-Damping active, starts above z = ',F8.2,' m'/ & |
---|
| 1150 | ' maximum damping coefficient: ',F5.3, ' 1/s') |
---|
| 1151 | 124 FORMAT (' Spline-overshoots are being suppressed') |
---|
| 1152 | 125 FORMAT (' Upstream-Scheme is used if Upstream-differences fall short', & |
---|
| 1153 | ' of'/ & |
---|
| 1154 | ' delta_u = ',F6.4,4X,'delta_v = ',F6.4,4X,'delta_w = ',F6.4) |
---|
| 1155 | 126 FORMAT (' Upstream-Scheme is used if Upstream-differences fall short', & |
---|
| 1156 | ' of'/ & |
---|
| 1157 | ' delta_e = ',F6.4,4X,'delta_pt = ',F6.4) |
---|
| 1158 | 127 FORMAT (' The following absolute overshoot differences are tolerated:'/& |
---|
| 1159 | ' delta_u = ',F6.4,4X,'delta_v = ',F6.4,4X,'delta_w = ',F6.4) |
---|
| 1160 | 128 FORMAT (' The following absolute overshoot differences are tolerated:'/& |
---|
| 1161 | ' delta_e = ',F6.4,4X,'delta_pt = ',F6.4) |
---|
| 1162 | 129 FORMAT (' --> Additional prognostic equation for the specific humidity') |
---|
| 1163 | 130 FORMAT (' --> Additional prognostic equation for the total water content') |
---|
| 1164 | 131 FORMAT (' --> Parameterization of condensation processes via (0%-or100%)') |
---|
| 1165 | 132 FORMAT (' --> Parameterization of long-wave radiation processes via'/ & |
---|
| 1166 | ' effective emissivity scheme') |
---|
| 1167 | 133 FORMAT (' --> Precipitation parameterization via Kessler-Scheme') |
---|
| 1168 | 134 FORMAT (' --> Additional prognostic equation for a passive scalar') |
---|
| 1169 | 135 FORMAT (' --> Solve perturbation pressure via multigrid method (', & |
---|
| 1170 | A,'-cycle)'/ & |
---|
| 1171 | ' number of grid levels: ',I2/ & |
---|
| 1172 | ' Gauss-Seidel red/black iterations: ',I2) |
---|
| 1173 | 136 FORMAT (' gridpoints of coarsest subdomain (x,y,z): (',I3,',',I3,',', & |
---|
| 1174 | I3,')') |
---|
| 1175 | 137 FORMAT (' level data gathered on PE0 at level: ',I2/ & |
---|
| 1176 | ' gridpoints of coarsest subdomain (x,y,z): (',I3,',',I3,',', & |
---|
| 1177 | I3,')'/ & |
---|
| 1178 | ' gridpoints of coarsest domain (x,y,z): (',I3,',',I3,',', & |
---|
| 1179 | I3,')') |
---|
| 1180 | 138 FORMAT (' Using hybrid version for 1d-domain-decomposition') |
---|
| 1181 | 139 FORMAT (' --> Prognostic equations are solved in one single loop (fast', & |
---|
| 1182 | ' method)') |
---|
| 1183 | 140 FORMAT (' maximum residual allowed: ',E10.3) |
---|
| 1184 | 141 FORMAT (' fixed number of multigrid cycles: ',I4) |
---|
| 1185 | 142 FORMAT (' perturbation pressure is calculated at every Runge-Kutta ', & |
---|
| 1186 | 'step') |
---|
| 1187 | 150 FORMAT (' --> Volume flow at the right and north boundary will be ', & |
---|
| 1188 | 'conserved') |
---|
| 1189 | 200 FORMAT (//' Run time and time step information:'/ & |
---|
| 1190 | ' ----------------------------------'/) |
---|
| 1191 | 201 FORMAT ( ' Timestep: variable maximum value: ',F6.3,' s', & |
---|
| 1192 | ' CFL-factor: ',F4.2) |
---|
| 1193 | 202 FORMAT ( ' Timestep: dt = ',F6.3,' s'/) |
---|
| 1194 | 203 FORMAT ( ' Start time: ',F9.3,' s'/ & |
---|
| 1195 | ' End time: ',F9.3,' s') |
---|
| 1196 | 204 FORMAT ( A,F9.3,' s') |
---|
| 1197 | 205 FORMAT ( A,F9.3,' s',5X,'restart every',17X,F9.3,' s') |
---|
| 1198 | 206 FORMAT (/' Time reached: ',F9.3,' s'/ & |
---|
| 1199 | ' CPU-time used: ',F9.3,' s per timestep: ', & |
---|
| 1200 | ' ',F9.3,' s'/ & |
---|
| 1201 | ' per second of simulated tim', & |
---|
| 1202 | 'e: ',F9.3,' s') |
---|
| 1203 | 250 FORMAT (//' Computational grid and domain size:'/ & |
---|
| 1204 | ' ----------------------------------'// & |
---|
| 1205 | ' Grid length: dx = ',F7.3,' m dy = ',F7.3, & |
---|
| 1206 | ' m dz = ',F7.3,' m'/ & |
---|
| 1207 | ' Domain size: x = ',F10.3,' m y = ',F10.3, & |
---|
| 1208 | ' m z(u) = ',F10.3,' m'/) |
---|
| 1209 | 252 FORMAT (' dz constant up to ',F10.3,' m (k=',I4,'), then stretched by', & |
---|
| 1210 | ' factor: ',F5.3/ & |
---|
| 1211 | ' maximum dz not to be exceeded is dz_max = ',F10.3,' m'/) |
---|
| 1212 | 254 FORMAT (' Number of gridpoints (x,y,z): (0:',I4,', 0:',I4,', 0:',I4,')'/ & |
---|
| 1213 | ' Subdomain size (x,y,z): ( ',I4,', ',I4,', ',I4,')'/) |
---|
| 1214 | 255 FORMAT (' Subdomains have equal size') |
---|
| 1215 | 256 FORMAT (' Subdomains at the upper edges of the virtual processor grid ', & |
---|
| 1216 | 'have smaller sizes'/ & |
---|
| 1217 | ' Size of smallest subdomain: ( ',I4,', ',I4,', ',I4,')') |
---|
| 1218 | 260 FORMAT (/' The model has a slope in x-direction. Inclination angle: ',F6.2,& |
---|
| 1219 | ' degrees') |
---|
| 1220 | 270 FORMAT (//' Topography informations:'/ & |
---|
| 1221 | ' -----------------------'// & |
---|
| 1222 | 1X,'Topography: ',A) |
---|
| 1223 | 271 FORMAT ( ' Building size (x/y/z) in m: ',F5.1,' / ',F5.1,' / ',F5.1/ & |
---|
| 1224 | ' Horizontal index bounds (l/r/s/n): ',I4,' / ',I4,' / ',I4, & |
---|
| 1225 | ' / ',I4) |
---|
| 1226 | 300 FORMAT (//' Boundary conditions:'/ & |
---|
| 1227 | ' -------------------'// & |
---|
| 1228 | ' p uv ', & |
---|
| 1229 | ' pt'// & |
---|
| 1230 | ' B. bound.: ',A/ & |
---|
| 1231 | ' T. bound.: ',A) |
---|
| 1232 | 301 FORMAT (/' e'// & |
---|
| 1233 | ' B. bound.: ',A/ & |
---|
| 1234 | ' T. bound.: ',A) |
---|
| 1235 | 302 FORMAT (/' q'// & |
---|
| 1236 | ' B. bound.: ',A/ & |
---|
| 1237 | ' T. bound.: ',A) |
---|
[19] | 1238 | 303 FORMAT (/' Bottom surface fluxes are used in diffusion terms at k=1') |
---|
| 1239 | 304 FORMAT (/' Top surface fluxes are used in diffusion terms at k=nzt') |
---|
| 1240 | 305 FORMAT (//' Prandtl-Layer between bottom surface and first ', & |
---|
| 1241 | 'computational u,v-level:'// & |
---|
[1] | 1242 | ' zp = ',F6.2,' m z0 = ',F6.4,' m kappa = ',F4.2/ & |
---|
| 1243 | ' Rif value range: ',F6.2,' <= rif <=',F6.2) |
---|
| 1244 | 306 FORMAT (' Predefined constant heatflux: ',F6.3,' K m/s') |
---|
| 1245 | 307 FORMAT (' Heatflux has a random normal distribution') |
---|
| 1246 | 308 FORMAT (' Predefined surface temperature') |
---|
| 1247 | 310 FORMAT (//' 1D-Model:'// & |
---|
| 1248 | ' Rif value range: ',F6.2,' <= rif <=',F6.2) |
---|
| 1249 | 311 FORMAT (' Predefined constant humidity flux: ',E10.3,' m/s') |
---|
| 1250 | 312 FORMAT (' Predefined surface humidity') |
---|
| 1251 | 313 FORMAT (' Predefined constant scalar flux: ',E10.3,' kg/(m**2 s)') |
---|
| 1252 | 314 FORMAT (' Predefined scalar value at the surface') |
---|
[19] | 1253 | 315 FORMAT (' Humidity / scalar flux at top surface is 0.0') |
---|
[1] | 1254 | 317 FORMAT (//' Lateral boundaries:'/ & |
---|
| 1255 | ' left/right: ',A/ & |
---|
| 1256 | ' north/south: ',A) |
---|
| 1257 | 318 FORMAT (/' outflow damping layer width: ',I3,' gridpoints with km_', & |
---|
| 1258 | 'max =',F5.1,' m**2/s') |
---|
| 1259 | 320 FORMAT (//' List output:'/ & |
---|
| 1260 | ' -----------'// & |
---|
| 1261 | ' 1D-Profiles:'/ & |
---|
| 1262 | ' Output every ',F8.2,' s') |
---|
| 1263 | 321 FORMAT (' Time averaged over ',F8.2,' s'/ & |
---|
| 1264 | ' Averaging input every ',F8.2,' s') |
---|
| 1265 | 330 FORMAT (//' Data output:'/ & |
---|
| 1266 | ' -----------'/) |
---|
| 1267 | 331 FORMAT (/' 1D-Profiles:') |
---|
| 1268 | 332 FORMAT (/' ',A) |
---|
| 1269 | 333 FORMAT (' Output every ',F8.2,' s',/ & |
---|
| 1270 | ' Time averaged over ',F8.2,' s'/ & |
---|
| 1271 | ' Averaging input every ',F8.2,' s') |
---|
| 1272 | 334 FORMAT (/' 2D-Arrays',A,':') |
---|
| 1273 | 335 FORMAT (/' ',A2,'-cross-section Arrays: ',A/ & |
---|
| 1274 | ' Output every ',F8.2,' s ',A/ & |
---|
| 1275 | ' Cross sections at ',A1,' = ',A/ & |
---|
| 1276 | ' scalar-coordinates: ',A,' m'/) |
---|
| 1277 | 336 FORMAT (/' 3D-Arrays',A,':') |
---|
| 1278 | 337 FORMAT (/' Arrays: ',A/ & |
---|
| 1279 | ' Output every ',F8.2,' s ',A/ & |
---|
| 1280 | ' Upper output limit at ',F8.2,' m (GP ',I4,')'/) |
---|
| 1281 | 338 FORMAT (' Compressed data output'/ & |
---|
| 1282 | ' Decimal precision: ',A/) |
---|
| 1283 | 339 FORMAT (' No output during initial ',F8.2,' s') |
---|
| 1284 | 340 FORMAT (/' Time series:') |
---|
| 1285 | 341 FORMAT (' Output every ',F8.2,' s'/) |
---|
| 1286 | 342 FORMAT (/' ',A2,'-cross-section Arrays: ',A/ & |
---|
| 1287 | ' Output every ',F8.2,' s ',A/ & |
---|
| 1288 | ' Time averaged over ',F8.2,' s'/ & |
---|
| 1289 | ' Averaging input every ',F8.2,' s'/ & |
---|
| 1290 | ' Cross sections at ',A1,' = ',A/ & |
---|
| 1291 | ' scalar-coordinates: ',A,' m'/) |
---|
| 1292 | 343 FORMAT (/' Arrays: ',A/ & |
---|
| 1293 | ' Output every ',F8.2,' s ',A/ & |
---|
| 1294 | ' Time averaged over ',F8.2,' s'/ & |
---|
| 1295 | ' Averaging input every ',F8.2,' s'/ & |
---|
| 1296 | ' Upper output limit at ',F8.2,' m (GP ',I4,')'/) |
---|
| 1297 | 345 FORMAT (' Output format: ',A/) |
---|
| 1298 | #if defined( __dvrp_graphics ) |
---|
| 1299 | 360 FORMAT (' Plot-Sequence with dvrp-software:'/ & |
---|
| 1300 | ' Output every ',F7.1,' s'/ & |
---|
| 1301 | ' Output mode: ',A/ & |
---|
| 1302 | ' Host / User: ',A,' / ',A/ & |
---|
| 1303 | ' Directory: ',A// & |
---|
| 1304 | ' The sequence contains:') |
---|
| 1305 | 361 FORMAT (' Isosurface of ',A,' Threshold value: ', E12.3) |
---|
| 1306 | 362 FORMAT (' Sectional plane ',A) |
---|
| 1307 | 363 FORMAT (' Particles') |
---|
| 1308 | #endif |
---|
| 1309 | #if defined( __spectra ) |
---|
| 1310 | 370 FORMAT (' Spectra:') |
---|
| 1311 | 371 FORMAT (' Output every ',F7.1,' s'/) |
---|
| 1312 | 372 FORMAT (' Arrays: ', 10(A5,',')/ & |
---|
| 1313 | ' Directions: ', 10(A5,',')/ & |
---|
| 1314 | ' height levels k = ', 9(I3,','),I3,'.'/ & |
---|
| 1315 | ' height levels selected for standard plot:'/ & |
---|
| 1316 | ' k = ', 9(I3,','),I3,'.'/ & |
---|
| 1317 | ' Time averaged over ', F7.1, ' s,' / & |
---|
| 1318 | ' Profiles for the time averaging are taken every ', & |
---|
| 1319 | F6.1,' s') |
---|
| 1320 | #endif |
---|
| 1321 | 400 FORMAT (//' Physical quantities:'/ & |
---|
| 1322 | ' -------------------'/) |
---|
| 1323 | 410 FORMAT (' Angular velocity : omega = ',E9.3,' rad/s'/ & |
---|
| 1324 | ' Geograph. latitude : phi = ',F4.1,' degr'/ & |
---|
| 1325 | ' Coriolis parameter : f = ',F9.6,' 1/s'/ & |
---|
| 1326 | ' f* = ',F9.6,' 1/s') |
---|
| 1327 | 411 FORMAT (/' Gravity : g = ',F4.1,' m/s**2') |
---|
| 1328 | 412 FORMAT (/' Cloud physics parameters:'/ & |
---|
| 1329 | ' ------------------------'/) |
---|
| 1330 | 413 FORMAT (' Surface pressure : p_0 = ',F7.2,' hPa'/ & |
---|
| 1331 | ' Gas constant : R = ',F5.1,' J/(kg K)'/ & |
---|
| 1332 | ' Density of air : rho_0 = ',F5.3,' kg/m**3'/ & |
---|
| 1333 | ' Specific heat cap. : c_p = ',F6.1,' J/(kg K)'/ & |
---|
| 1334 | ' Vapourization heat : L_v = ',E8.2,' J/kg') |
---|
| 1335 | 420 FORMAT (/' Characteristic levels of the initial temperature profile:'// & |
---|
| 1336 | ' Height: ',A,' m'/ & |
---|
| 1337 | ' Temperature: ',A,' K'/ & |
---|
| 1338 | ' Gradient: ',A,' K/100m'/ & |
---|
| 1339 | ' Gridpoint: ',A) |
---|
| 1340 | 421 FORMAT (/' Characteristic levels of the initial humidity profile:'// & |
---|
| 1341 | ' Height: ',A,' m'/ & |
---|
| 1342 | ' Humidity: ',A,' kg/kg'/ & |
---|
| 1343 | ' Gradient: ',A,' (kg/kg)/100m'/ & |
---|
| 1344 | ' Gridpoint: ',A) |
---|
| 1345 | 422 FORMAT (/' Characteristic levels of the initial scalar profile:'// & |
---|
| 1346 | ' Height: ',A,' m'/ & |
---|
| 1347 | ' Scalar concentration: ',A,' kg/m**3'/ & |
---|
| 1348 | ' Gradient: ',A,' (kg/m**3)/100m'/ & |
---|
| 1349 | ' Gridpoint: ',A) |
---|
| 1350 | 423 FORMAT (/' Characteristic levels of the geo. wind component ug:'// & |
---|
| 1351 | ' Height: ',A,' m'/ & |
---|
| 1352 | ' ug: ',A,' m/s'/ & |
---|
| 1353 | ' Gradient: ',A,' 1/100s'/ & |
---|
| 1354 | ' Gridpoint: ',A) |
---|
| 1355 | 424 FORMAT (/' Characteristic levels of the geo. wind component vg:'// & |
---|
| 1356 | ' Height: ',A,' m'/ & |
---|
| 1357 | ' vg: ',A,' m/S'/ & |
---|
| 1358 | ' Gradient: ',A,' 1/100s'/ & |
---|
| 1359 | ' Gridpoint: ',A) |
---|
| 1360 | 450 FORMAT (//' LES / Turbulence quantities:'/ & |
---|
| 1361 | ' ---------------------------'/) |
---|
| 1362 | 451 FORMAT (' Diffusion coefficients are constant:'/ & |
---|
| 1363 | ' Km = ',F6.2,' m**2/s Kh = ',F6.2,' m**2/s Pr = ',F5.2) |
---|
| 1364 | 452 FORMAT (' Mixing length is limited to the Prandtl mixing lenth.') |
---|
| 1365 | 453 FORMAT (' Mixing length is limited to ',F4.2,' * z') |
---|
| 1366 | 454 FORMAT (' TKE is not allowed to fall below ',E9.2,' (m/s)**2') |
---|
| 1367 | 470 FORMAT (//' Actions during the simulation:'/ & |
---|
| 1368 | ' -----------------------------'/) |
---|
| 1369 | 471 FORMAT (' Disturbance impulse (u,v) every : ',F6.2,' s'/ & |
---|
| 1370 | ' Disturbance amplitude : ',F4.2, ' m/s'/ & |
---|
| 1371 | ' Lower disturbance level : ',F7.2,' m (GP ',I4,')'/ & |
---|
| 1372 | ' Upper disturbance level : ',F7.2,' m (GP ',I4,')') |
---|
| 1373 | 472 FORMAT (' Disturbances continued during the run from i/j =',I4, & |
---|
| 1374 | ' to i/j =',I4) |
---|
| 1375 | 473 FORMAT (' Disturbances cease as soon as the disturbance energy exceeds',& |
---|
| 1376 | 1X,F5.3, ' m**2/s**2') |
---|
| 1377 | 474 FORMAT (' Random number generator used : ',A/) |
---|
| 1378 | 475 FORMAT (' The surface temperature is increased (or decreased, ', & |
---|
| 1379 | 'respectively, if'/ & |
---|
| 1380 | ' the value is negative) by ',F5.2,' K at the beginning of the',& |
---|
| 1381 | ' 3D-simulation'/) |
---|
| 1382 | 476 FORMAT (' The surface humidity is increased (or decreased, ',& |
---|
| 1383 | 'respectively, if the'/ & |
---|
| 1384 | ' value is negative) by ',E8.1,' kg/kg at the beginning of', & |
---|
| 1385 | ' the 3D-simulation'/) |
---|
| 1386 | 477 FORMAT (' The scalar value is increased at the surface (or decreased, ',& |
---|
| 1387 | 'respectively, if the'/ & |
---|
| 1388 | ' value is negative) by ',E8.1,' kg/m**3 at the beginning of', & |
---|
| 1389 | ' the 3D-simulation'/) |
---|
| 1390 | #if defined( __particles ) |
---|
| 1391 | 480 FORMAT (' Particles:'/ & |
---|
| 1392 | ' ---------'// & |
---|
| 1393 | ' Particle advection is active (switched on at t = ', F7.1, & |
---|
| 1394 | ' s)'/ & |
---|
| 1395 | ' Start of new particle generations every ',F6.1,' s'/ & |
---|
| 1396 | ' Boundary conditions: left/right: ', A, ' north/south: ', A/& |
---|
| 1397 | ' bottom: ', A, ' top: ', A/& |
---|
| 1398 | ' Maximum particle age: ',F9.1,' s'/ & |
---|
| 1399 | ' Advection stopped at t = ',F9.1,' s'/) |
---|
| 1400 | 481 FORMAT (' Particles have random start positions'/) |
---|
| 1401 | 482 FORMAT (' Particles are advected only horizontally'/) |
---|
| 1402 | 483 FORMAT (' Particles have tails with a maximum of ',I3,' points') |
---|
| 1403 | 484 FORMAT (' Number of tails of the total domain: ',I10/ & |
---|
| 1404 | ' Minimum distance between tailpoints: ',F8.2,' m'/ & |
---|
| 1405 | ' Maximum age of the end of the tail: ',F8.2,' s') |
---|
| 1406 | 485 FORMAT (' Particle data are written on file every ', F9.1, ' s') |
---|
| 1407 | 486 FORMAT (' Particle statistics are written on file'/) |
---|
| 1408 | 487 FORMAT (' Number of particle groups: ',I2/) |
---|
| 1409 | 488 FORMAT (' SGS velocity components are used for particle advection'/ & |
---|
| 1410 | ' minimum timestep for advection: ', F7.5/) |
---|
| 1411 | 489 FORMAT (' Number of particles simultaneously released at each ', & |
---|
| 1412 | 'point: ', I5/) |
---|
| 1413 | 490 FORMAT (' Particle group ',I2,':'/ & |
---|
| 1414 | ' Particle radius: ',E10.3, 'm') |
---|
| 1415 | 491 FORMAT (' Particle inertia is activated'/ & |
---|
| 1416 | ' density_ratio (rho_fluid/rho_particle) = ',F5.3/) |
---|
| 1417 | 492 FORMAT (' Particles are advected only passively (no inertia)'/) |
---|
| 1418 | 493 FORMAT (' Boundaries of particle source: x:',F8.1,' - ',F8.1,' m'/& |
---|
| 1419 | ' y:',F8.1,' - ',F8.1,' m'/& |
---|
| 1420 | ' z:',F8.1,' - ',F8.1,' m'/& |
---|
| 1421 | ' Particle distances: dx = ',F8.1,' m dy = ',F8.1, & |
---|
| 1422 | ' m dz = ',F8.1,' m'/) |
---|
| 1423 | 494 FORMAT (' Output of particle time series in NetCDF format every ', & |
---|
| 1424 | F8.2,' s'/) |
---|
| 1425 | 495 FORMAT (' Number of particles in total domain: ',I10/) |
---|
| 1426 | #endif |
---|
| 1427 | 500 FORMAT (//' 1D-Model parameters:'/ & |
---|
| 1428 | ' -------------------'// & |
---|
| 1429 | ' Simulation time: ',F8.1,' s'/ & |
---|
| 1430 | ' Run-controll output every: ',F8.1,' s'/ & |
---|
| 1431 | ' Vertical profile output every: ',F8.1,' s'/ & |
---|
| 1432 | ' Mixing length calculation: ',A/ & |
---|
| 1433 | ' Dissipation calculation: ',A/) |
---|
| 1434 | 502 FORMAT (' Damping layer starts from ',F7.1,' m (GP ',I4,')'/) |
---|
| 1435 | |
---|
| 1436 | |
---|
| 1437 | END SUBROUTINE header |
---|