[1] | 1 | SUBROUTINE header |
---|
| 2 | |
---|
| 3 | !------------------------------------------------------------------------------! |
---|
| 4 | ! Actual revisions: |
---|
| 5 | ! ----------------- |
---|
[63] | 6 | ! Output of netcdf_64bit_3d, particles-package is now part of the default code, |
---|
| 7 | ! output of the loop optimization method. |
---|
[1] | 8 | ! |
---|
| 9 | ! Former revisions: |
---|
| 10 | ! ----------------- |
---|
[3] | 11 | ! $Id: header.f90 63 2007-03-13 03:52:49Z raasch $ |
---|
[39] | 12 | ! |
---|
| 13 | ! 19 2007-02-23 04:53:48Z raasch |
---|
| 14 | ! Output of scalar flux applied at top boundary |
---|
| 15 | ! |
---|
[3] | 16 | ! RCS Log replace by Id keyword, revision history cleaned up |
---|
| 17 | ! |
---|
[1] | 18 | ! Revision 1.63 2006/08/22 13:53:13 raasch |
---|
| 19 | ! Output of dz_max |
---|
| 20 | ! |
---|
| 21 | ! Revision 1.1 1997/08/11 06:17:20 raasch |
---|
| 22 | ! Initial revision |
---|
| 23 | ! |
---|
| 24 | ! |
---|
| 25 | ! Description: |
---|
| 26 | ! ------------ |
---|
| 27 | ! Writing a header with all important informations about the actual run. |
---|
| 28 | ! This subroutine is called three times, two times at the beginning |
---|
| 29 | ! (writing information on files RUN_CONTROL and HEADER) and one time at the |
---|
| 30 | ! end of the run, then writing additional information about CPU-usage on file |
---|
| 31 | ! header. |
---|
| 32 | !------------------------------------------------------------------------------! |
---|
| 33 | |
---|
| 34 | USE arrays_3d |
---|
| 35 | USE control_parameters |
---|
| 36 | USE cloud_parameters |
---|
| 37 | USE cpulog |
---|
| 38 | USE dvrp_variables |
---|
| 39 | USE grid_variables |
---|
| 40 | USE indices |
---|
| 41 | USE model_1d |
---|
| 42 | USE particle_attributes |
---|
| 43 | USE pegrid |
---|
| 44 | USE spectrum |
---|
| 45 | |
---|
| 46 | IMPLICIT NONE |
---|
| 47 | |
---|
| 48 | CHARACTER (LEN=1) :: prec |
---|
| 49 | CHARACTER (LEN=2) :: do2d_mode |
---|
| 50 | CHARACTER (LEN=5) :: section_chr |
---|
| 51 | CHARACTER (LEN=9) :: time_to_string |
---|
| 52 | CHARACTER (LEN=10) :: coor_chr, host_chr |
---|
| 53 | CHARACTER (LEN=16) :: begin_chr |
---|
| 54 | CHARACTER (LEN=40) :: output_format |
---|
| 55 | CHARACTER (LEN=70) :: char1, char2, coordinates, gradients, dopr_chr, & |
---|
| 56 | do2d_xy, do2d_xz, do2d_yz, do3d_chr, & |
---|
| 57 | run_classification, slices, temperatures, & |
---|
| 58 | ugcomponent, vgcomponent |
---|
| 59 | CHARACTER (LEN=85) :: roben, runten |
---|
| 60 | |
---|
| 61 | INTEGER :: av, bh, blx, bly, bxl, bxr, byn, bys, i, ihost, io, j, l, ll |
---|
| 62 | REAL :: cpuseconds_per_simulated_second |
---|
| 63 | |
---|
| 64 | ! |
---|
| 65 | !-- Open the output file. At the end of the simulation, output is directed |
---|
| 66 | !-- to unit 19. |
---|
| 67 | IF ( ( runnr == 0 .OR. force_print_header ) .AND. & |
---|
| 68 | .NOT. simulated_time_at_begin /= simulated_time ) THEN |
---|
| 69 | io = 15 ! header output on file RUN_CONTROL |
---|
| 70 | ELSE |
---|
| 71 | io = 19 ! header output on file HEADER |
---|
| 72 | ENDIF |
---|
| 73 | CALL check_open( io ) |
---|
| 74 | |
---|
| 75 | ! |
---|
| 76 | !-- At the end of the run, output file (HEADER) will be rewritten with |
---|
| 77 | !-- new informations |
---|
| 78 | IF ( io == 19 .AND. simulated_time_at_begin /= simulated_time ) REWIND( 19 ) |
---|
| 79 | |
---|
| 80 | ! |
---|
| 81 | !-- Determine kind of model run |
---|
| 82 | IF ( TRIM( initializing_actions ) == 'read_restart_data' ) THEN |
---|
| 83 | run_classification = '3D - restart run' |
---|
| 84 | ELSE |
---|
| 85 | IF ( INDEX( initializing_actions, 'set_constant_profiles' ) /= 0 ) THEN |
---|
| 86 | run_classification = '3D - run without 1D - prerun' |
---|
| 87 | ELSEIF ( INDEX(initializing_actions, 'set_1d-model_profiles') /= 0 ) THEN |
---|
| 88 | run_classification = '3D - run with 1D - prerun' |
---|
| 89 | ELSE |
---|
| 90 | PRINT*,'+++ header: unknown action(s): ',initializing_actions |
---|
| 91 | ENDIF |
---|
| 92 | ENDIF |
---|
| 93 | |
---|
| 94 | ! |
---|
| 95 | !-- Run-identification, date, time, host |
---|
| 96 | host_chr = host(1:10) |
---|
| 97 | WRITE ( io, 100 ) version, TRIM( run_classification ), run_date, & |
---|
| 98 | run_identifier, run_time, runnr, ADJUSTR( host_chr ) |
---|
| 99 | #if defined( __parallel ) |
---|
| 100 | IF ( npex == -1 .AND. pdims(2) /= 1 ) THEN |
---|
| 101 | char1 = 'calculated' |
---|
| 102 | ELSEIF ( ( host(1:3) == 'ibm' .OR. host(1:3) == 'nec' .OR. & |
---|
| 103 | host(1:2) == 'lc' ) .AND. & |
---|
| 104 | npex == -1 .AND. pdims(2) == 1 ) THEN |
---|
| 105 | char1 = 'forced' |
---|
| 106 | ELSE |
---|
| 107 | char1 = 'predefined' |
---|
| 108 | ENDIF |
---|
| 109 | IF ( threads_per_task == 1 ) THEN |
---|
| 110 | WRITE ( io, 101 ) numprocs, pdims(1), pdims(2), TRIM( char1 ) |
---|
| 111 | ELSE |
---|
| 112 | WRITE ( io, 102 ) numprocs*threads_per_task, numprocs, & |
---|
| 113 | threads_per_task, pdims(1), pdims(2), TRIM( char1 ) |
---|
| 114 | ENDIF |
---|
| 115 | IF ( ( host(1:3) == 'ibm' .OR. host(1:3) == 'nec' .OR. & |
---|
| 116 | host(1:2) == 'lc' .OR. host(1:3) == 'dec' ) .AND. & |
---|
| 117 | npex == -1 .AND. pdims(2) == 1 ) & |
---|
| 118 | THEN |
---|
| 119 | WRITE ( io, 104 ) |
---|
| 120 | ELSEIF ( pdims(2) == 1 ) THEN |
---|
| 121 | WRITE ( io, 105 ) 'x' |
---|
| 122 | ELSEIF ( pdims(1) == 1 ) THEN |
---|
| 123 | WRITE ( io, 105 ) 'y' |
---|
| 124 | ENDIF |
---|
| 125 | IF ( use_seperate_pe_for_dvrp_output ) WRITE ( io, 103 ) |
---|
| 126 | #endif |
---|
| 127 | WRITE ( io, 99 ) |
---|
| 128 | |
---|
| 129 | ! |
---|
| 130 | !-- Numerical schemes |
---|
| 131 | WRITE ( io, 110 ) |
---|
| 132 | IF ( psolver(1:7) == 'poisfft' ) THEN |
---|
| 133 | WRITE ( io, 111 ) TRIM( fft_method ) |
---|
| 134 | IF ( psolver == 'poisfft_hybrid' ) WRITE ( io, 138 ) |
---|
| 135 | ELSEIF ( psolver == 'sor' ) THEN |
---|
| 136 | WRITE ( io, 112 ) nsor_ini, nsor, omega_sor |
---|
| 137 | ELSEIF ( psolver == 'multigrid' ) THEN |
---|
| 138 | WRITE ( io, 135 ) cycle_mg, maximum_grid_level, ngsrb |
---|
| 139 | IF ( mg_cycles == -1 ) THEN |
---|
| 140 | WRITE ( io, 140 ) residual_limit |
---|
| 141 | ELSE |
---|
| 142 | WRITE ( io, 141 ) mg_cycles |
---|
| 143 | ENDIF |
---|
| 144 | IF ( mg_switch_to_pe0_level == 0 ) THEN |
---|
| 145 | WRITE ( io, 136 ) nxr_mg(1)-nxl_mg(1)+1, nyn_mg(1)-nys_mg(1)+1, & |
---|
| 146 | nzt_mg(1) |
---|
| 147 | ELSE |
---|
| 148 | WRITE ( io, 137 ) mg_switch_to_pe0_level, & |
---|
| 149 | mg_loc_ind(2,0)-mg_loc_ind(1,0)+1, & |
---|
| 150 | mg_loc_ind(4,0)-mg_loc_ind(3,0)+1, & |
---|
| 151 | nzt_mg(mg_switch_to_pe0_level), & |
---|
| 152 | nxr_mg(1)-nxl_mg(1)+1, nyn_mg(1)-nys_mg(1)+1, & |
---|
| 153 | nzt_mg(1) |
---|
| 154 | ENDIF |
---|
| 155 | ENDIF |
---|
| 156 | IF ( call_psolver_at_all_substeps .AND. timestep_scheme(1:5) == 'runge' ) & |
---|
| 157 | THEN |
---|
| 158 | WRITE ( io, 142 ) |
---|
| 159 | ENDIF |
---|
| 160 | |
---|
| 161 | IF ( momentum_advec == 'pw-scheme' ) THEN |
---|
| 162 | WRITE ( io, 113 ) |
---|
| 163 | ELSE |
---|
| 164 | WRITE ( io, 114 ) |
---|
| 165 | IF ( cut_spline_overshoot ) WRITE ( io, 124 ) |
---|
| 166 | IF ( overshoot_limit_u /= 0.0 .OR. overshoot_limit_v /= 0.0 .OR. & |
---|
| 167 | overshoot_limit_w /= 0.0 ) THEN |
---|
| 168 | WRITE ( io, 127 ) overshoot_limit_u, overshoot_limit_v, & |
---|
| 169 | overshoot_limit_w |
---|
| 170 | ENDIF |
---|
| 171 | IF ( ups_limit_u /= 0.0 .OR. ups_limit_v /= 0.0 .OR. & |
---|
| 172 | ups_limit_w /= 0.0 ) & |
---|
| 173 | THEN |
---|
| 174 | WRITE ( io, 125 ) ups_limit_u, ups_limit_v, ups_limit_w |
---|
| 175 | ENDIF |
---|
| 176 | IF ( long_filter_factor /= 0.0 ) WRITE ( io, 115 ) long_filter_factor |
---|
| 177 | ENDIF |
---|
| 178 | IF ( scalar_advec == 'pw-scheme' ) THEN |
---|
| 179 | WRITE ( io, 116 ) |
---|
| 180 | ELSEIF ( scalar_advec == 'ups-scheme' ) THEN |
---|
| 181 | WRITE ( io, 117 ) |
---|
| 182 | IF ( cut_spline_overshoot ) WRITE ( io, 124 ) |
---|
| 183 | IF ( overshoot_limit_e /= 0.0 .OR. overshoot_limit_pt /= 0.0 ) THEN |
---|
| 184 | WRITE ( io, 128 ) overshoot_limit_e, overshoot_limit_pt |
---|
| 185 | ENDIF |
---|
| 186 | IF ( ups_limit_e /= 0.0 .OR. ups_limit_pt /= 0.0 ) THEN |
---|
| 187 | WRITE ( io, 126 ) ups_limit_e, ups_limit_pt |
---|
| 188 | ENDIF |
---|
| 189 | ELSE |
---|
| 190 | WRITE ( io, 118 ) |
---|
| 191 | ENDIF |
---|
[63] | 192 | |
---|
| 193 | WRITE ( io, 139 ) TRIM( loop_optimization ) |
---|
| 194 | |
---|
[1] | 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 |
---|
[57] | 863 | IF ( use_pt_reference ) WRITE ( io, 412 ) pt_reference |
---|
[1] | 864 | |
---|
| 865 | ! |
---|
| 866 | !-- Cloud physics parameters |
---|
| 867 | IF ( cloud_physics ) THEN |
---|
[57] | 868 | WRITE ( io, 415 ) |
---|
| 869 | WRITE ( io, 416 ) surface_pressure, r_d, rho_surface, cp, l_v |
---|
[1] | 870 | ENDIF |
---|
| 871 | |
---|
| 872 | !-- Profile of the geostrophic wind (component ug) |
---|
| 873 | !-- Building output strings |
---|
| 874 | WRITE ( ugcomponent, '(F6.2)' ) ug_surface |
---|
| 875 | gradients = '------' |
---|
| 876 | slices = ' 0' |
---|
| 877 | coordinates = ' 0.0' |
---|
| 878 | i = 1 |
---|
| 879 | DO WHILE ( ug_vertical_gradient_level_ind(i) /= -9999 ) |
---|
| 880 | |
---|
| 881 | WRITE (coor_chr,'(F6.2,4X)') ug(ug_vertical_gradient_level_ind(i)) |
---|
| 882 | ugcomponent = TRIM( ugcomponent ) // ' ' // TRIM( coor_chr ) |
---|
| 883 | |
---|
| 884 | WRITE (coor_chr,'(F6.2,4X)') ug_vertical_gradient(i) |
---|
| 885 | gradients = TRIM( gradients ) // ' ' // TRIM( coor_chr ) |
---|
| 886 | |
---|
| 887 | WRITE (coor_chr,'(I6,4X)') ug_vertical_gradient_level_ind(i) |
---|
| 888 | slices = TRIM( slices ) // ' ' // TRIM( coor_chr ) |
---|
| 889 | |
---|
| 890 | WRITE (coor_chr,'(F6.1,4X)') ug_vertical_gradient_level(i) |
---|
| 891 | coordinates = TRIM( coordinates ) // ' ' // TRIM( coor_chr ) |
---|
| 892 | |
---|
| 893 | i = i + 1 |
---|
| 894 | ENDDO |
---|
| 895 | |
---|
| 896 | WRITE ( io, 423 ) TRIM( coordinates ), TRIM( ugcomponent ), & |
---|
| 897 | TRIM( gradients ), TRIM( slices ) |
---|
| 898 | |
---|
| 899 | !-- Profile of the geostrophic wind (component vg) |
---|
| 900 | !-- Building output strings |
---|
| 901 | WRITE ( vgcomponent, '(F6.2)' ) vg_surface |
---|
| 902 | gradients = '------' |
---|
| 903 | slices = ' 0' |
---|
| 904 | coordinates = ' 0.0' |
---|
| 905 | i = 1 |
---|
| 906 | DO WHILE ( vg_vertical_gradient_level_ind(i) /= -9999 ) |
---|
| 907 | |
---|
| 908 | WRITE (coor_chr,'(F6.2,4X)') vg(vg_vertical_gradient_level_ind(i)) |
---|
| 909 | vgcomponent = TRIM( vgcomponent ) // ' ' // TRIM( coor_chr ) |
---|
| 910 | |
---|
| 911 | WRITE (coor_chr,'(F6.2,4X)') vg_vertical_gradient(i) |
---|
| 912 | gradients = TRIM( gradients ) // ' ' // TRIM( coor_chr ) |
---|
| 913 | |
---|
| 914 | WRITE (coor_chr,'(I6,4X)') vg_vertical_gradient_level_ind(i) |
---|
| 915 | slices = TRIM( slices ) // ' ' // TRIM( coor_chr ) |
---|
| 916 | |
---|
| 917 | WRITE (coor_chr,'(F6.1,4X)') vg_vertical_gradient_level(i) |
---|
| 918 | coordinates = TRIM( coordinates ) // ' ' // TRIM( coor_chr ) |
---|
| 919 | |
---|
| 920 | i = i + 1 |
---|
| 921 | ENDDO |
---|
| 922 | |
---|
| 923 | WRITE ( io, 424 ) TRIM( coordinates ), TRIM( vgcomponent ), & |
---|
| 924 | TRIM( gradients ), TRIM( slices ) |
---|
| 925 | |
---|
| 926 | ! |
---|
| 927 | !-- Initial temperature profile |
---|
| 928 | !-- Building output strings, starting with surface temperature |
---|
| 929 | WRITE ( temperatures, '(F6.2)' ) pt_surface |
---|
| 930 | gradients = '------' |
---|
| 931 | slices = ' 0' |
---|
| 932 | coordinates = ' 0.0' |
---|
| 933 | i = 1 |
---|
| 934 | DO WHILE ( pt_vertical_gradient_level_ind(i) /= -9999 ) |
---|
| 935 | |
---|
| 936 | WRITE (coor_chr,'(F6.2,4X)') pt_init(pt_vertical_gradient_level_ind(i)) |
---|
| 937 | temperatures = TRIM( temperatures ) // ' ' // TRIM( coor_chr ) |
---|
| 938 | |
---|
| 939 | WRITE (coor_chr,'(F6.2,4X)') pt_vertical_gradient(i) |
---|
| 940 | gradients = TRIM( gradients ) // ' ' // TRIM( coor_chr ) |
---|
| 941 | |
---|
| 942 | WRITE (coor_chr,'(I6,4X)') pt_vertical_gradient_level_ind(i) |
---|
| 943 | slices = TRIM( slices ) // ' ' // TRIM( coor_chr ) |
---|
| 944 | |
---|
| 945 | WRITE (coor_chr,'(F6.1,4X)') pt_vertical_gradient_level(i) |
---|
| 946 | coordinates = TRIM( coordinates ) // ' ' // TRIM( coor_chr ) |
---|
| 947 | |
---|
| 948 | i = i + 1 |
---|
| 949 | ENDDO |
---|
| 950 | |
---|
| 951 | WRITE ( io, 420 ) TRIM( coordinates ), TRIM( temperatures ), & |
---|
| 952 | TRIM( gradients ), TRIM( slices ) |
---|
| 953 | |
---|
| 954 | ! |
---|
| 955 | !-- Initial humidity profile |
---|
| 956 | !-- Building output strings, starting with surface humidity |
---|
| 957 | IF ( moisture .OR. passive_scalar ) THEN |
---|
| 958 | WRITE ( temperatures, '(E8.1)' ) q_surface |
---|
| 959 | gradients = '--------' |
---|
| 960 | slices = ' 0' |
---|
| 961 | coordinates = ' 0.0' |
---|
| 962 | i = 1 |
---|
| 963 | DO WHILE ( q_vertical_gradient_level_ind(i) /= -9999 ) |
---|
| 964 | |
---|
| 965 | WRITE (coor_chr,'(E8.1,4X)') q_init(q_vertical_gradient_level_ind(i)) |
---|
| 966 | temperatures = TRIM( temperatures ) // ' ' // TRIM( coor_chr ) |
---|
| 967 | |
---|
| 968 | WRITE (coor_chr,'(E8.1,4X)') q_vertical_gradient(i) |
---|
| 969 | gradients = TRIM( gradients ) // ' ' // TRIM( coor_chr ) |
---|
| 970 | |
---|
| 971 | WRITE (coor_chr,'(I8,4X)') q_vertical_gradient_level_ind(i) |
---|
| 972 | slices = TRIM( slices ) // ' ' // TRIM( coor_chr ) |
---|
| 973 | |
---|
| 974 | WRITE (coor_chr,'(F8.1,4X)') q_vertical_gradient_level(i) |
---|
| 975 | coordinates = TRIM( coordinates ) // ' ' // TRIM( coor_chr ) |
---|
| 976 | |
---|
| 977 | i = i + 1 |
---|
| 978 | ENDDO |
---|
| 979 | |
---|
| 980 | IF ( moisture ) THEN |
---|
| 981 | WRITE ( io, 421 ) TRIM( coordinates ), TRIM( temperatures ), & |
---|
| 982 | TRIM( gradients ), TRIM( slices ) |
---|
| 983 | ELSE |
---|
| 984 | WRITE ( io, 422 ) TRIM( coordinates ), TRIM( temperatures ), & |
---|
| 985 | TRIM( gradients ), TRIM( slices ) |
---|
| 986 | ENDIF |
---|
| 987 | ENDIF |
---|
| 988 | |
---|
| 989 | ! |
---|
| 990 | !-- LES / turbulence parameters |
---|
| 991 | WRITE ( io, 450 ) |
---|
| 992 | |
---|
| 993 | !-- |
---|
| 994 | ! ... LES-constants used must still be added here |
---|
| 995 | !-- |
---|
| 996 | IF ( constant_diffusion ) THEN |
---|
| 997 | WRITE ( io, 451 ) km_constant, km_constant/prandtl_number, & |
---|
| 998 | prandtl_number |
---|
| 999 | ENDIF |
---|
| 1000 | IF ( .NOT. constant_diffusion) THEN |
---|
| 1001 | IF ( e_min > 0.0 ) WRITE ( io, 454 ) e_min |
---|
| 1002 | IF ( wall_adjustment ) WRITE ( io, 453 ) wall_adjustment_factor |
---|
| 1003 | IF ( adjust_mixing_length .AND. prandtl_layer ) WRITE ( io, 452 ) |
---|
| 1004 | ENDIF |
---|
| 1005 | |
---|
| 1006 | ! |
---|
| 1007 | !-- Special actions during the run |
---|
| 1008 | WRITE ( io, 470 ) |
---|
| 1009 | IF ( create_disturbances ) THEN |
---|
| 1010 | WRITE ( io, 471 ) dt_disturb, disturbance_amplitude, & |
---|
| 1011 | zu(disturbance_level_ind_b), disturbance_level_ind_b,& |
---|
| 1012 | zu(disturbance_level_ind_t), disturbance_level_ind_t |
---|
| 1013 | IF ( bc_lr /= 'cyclic' .OR. bc_ns /= 'cyclic' ) THEN |
---|
| 1014 | WRITE ( io, 472 ) inflow_disturbance_begin, inflow_disturbance_end |
---|
| 1015 | ELSE |
---|
| 1016 | WRITE ( io, 473 ) disturbance_energy_limit |
---|
| 1017 | ENDIF |
---|
| 1018 | WRITE ( io, 474 ) TRIM( random_generator ) |
---|
| 1019 | ENDIF |
---|
| 1020 | IF ( pt_surface_initial_change /= 0.0 ) THEN |
---|
| 1021 | WRITE ( io, 475 ) pt_surface_initial_change |
---|
| 1022 | ENDIF |
---|
| 1023 | IF ( moisture .AND. q_surface_initial_change /= 0.0 ) THEN |
---|
| 1024 | WRITE ( io, 476 ) q_surface_initial_change |
---|
| 1025 | ENDIF |
---|
| 1026 | IF ( passive_scalar .AND. q_surface_initial_change /= 0.0 ) THEN |
---|
| 1027 | WRITE ( io, 477 ) q_surface_initial_change |
---|
| 1028 | ENDIF |
---|
| 1029 | |
---|
[60] | 1030 | IF ( particle_advection ) THEN |
---|
[1] | 1031 | ! |
---|
[60] | 1032 | !-- Particle attributes |
---|
| 1033 | WRITE ( io, 480 ) particle_advection_start, dt_prel, bc_par_lr, & |
---|
| 1034 | bc_par_ns, bc_par_b, bc_par_t, particle_maximum_age, & |
---|
| 1035 | end_time_prel |
---|
| 1036 | IF ( use_sgs_for_particles ) WRITE ( io, 488 ) dt_min_part |
---|
| 1037 | IF ( random_start_position ) WRITE ( io, 481 ) |
---|
| 1038 | IF ( particles_per_point > 1 ) WRITE ( io, 489 ) particles_per_point |
---|
| 1039 | WRITE ( io, 495 ) total_number_of_particles |
---|
| 1040 | IF ( .NOT. vertical_particle_advection ) WRITE ( io, 482 ) |
---|
| 1041 | IF ( maximum_number_of_tailpoints /= 0 ) THEN |
---|
| 1042 | WRITE ( io, 483 ) maximum_number_of_tailpoints |
---|
| 1043 | IF ( minimum_tailpoint_distance /= 0 ) THEN |
---|
| 1044 | WRITE ( io, 484 ) total_number_of_tails, & |
---|
| 1045 | minimum_tailpoint_distance, & |
---|
| 1046 | maximum_tailpoint_age |
---|
| 1047 | ENDIF |
---|
[1] | 1048 | ENDIF |
---|
[60] | 1049 | IF ( dt_write_particle_data /= 9999999.9 ) THEN |
---|
| 1050 | WRITE ( io, 485 ) dt_write_particle_data |
---|
| 1051 | output_format = '' |
---|
| 1052 | IF ( netcdf_output ) THEN |
---|
| 1053 | IF ( netcdf_64bit ) THEN |
---|
| 1054 | output_format = 'netcdf (64 bit offset) and binary' |
---|
| 1055 | ELSE |
---|
| 1056 | output_format = 'netcdf and binary' |
---|
| 1057 | ENDIF |
---|
[1] | 1058 | ELSE |
---|
[60] | 1059 | output_format = 'binary' |
---|
[1] | 1060 | ENDIF |
---|
[60] | 1061 | WRITE ( io, 345 ) output_format |
---|
[1] | 1062 | ENDIF |
---|
[60] | 1063 | IF ( dt_dopts /= 9999999.9 ) WRITE ( io, 494 ) dt_dopts |
---|
| 1064 | IF ( write_particle_statistics ) WRITE ( io, 486 ) |
---|
[1] | 1065 | |
---|
[60] | 1066 | WRITE ( io, 487 ) number_of_particle_groups |
---|
[1] | 1067 | |
---|
[60] | 1068 | DO i = 1, number_of_particle_groups |
---|
| 1069 | IF ( i == 1 .AND. density_ratio(i) == 9999999.9 ) THEN |
---|
| 1070 | WRITE ( io, 490 ) i, 0.0 |
---|
| 1071 | WRITE ( io, 492 ) |
---|
[1] | 1072 | ELSE |
---|
[60] | 1073 | WRITE ( io, 490 ) i, radius(i) |
---|
| 1074 | IF ( density_ratio(i) /= 0.0 ) THEN |
---|
| 1075 | WRITE ( io, 491 ) density_ratio(i) |
---|
| 1076 | ELSE |
---|
| 1077 | WRITE ( io, 492 ) |
---|
| 1078 | ENDIF |
---|
[1] | 1079 | ENDIF |
---|
[60] | 1080 | WRITE ( io, 493 ) psl(i), psr(i), pss(i), psn(i), psb(i), pst(i), & |
---|
| 1081 | pdx(i), pdy(i), pdz(i) |
---|
| 1082 | ENDDO |
---|
[1] | 1083 | |
---|
[60] | 1084 | ENDIF |
---|
[1] | 1085 | |
---|
[60] | 1086 | |
---|
[1] | 1087 | ! |
---|
| 1088 | !-- Parameters of 1D-model |
---|
| 1089 | IF ( INDEX( initializing_actions, 'set_1d-model_profiles' ) /= 0 ) THEN |
---|
| 1090 | WRITE ( io, 500 ) end_time_1d, dt_run_control_1d, dt_pr_1d, & |
---|
| 1091 | mixing_length_1d, dissipation_1d |
---|
| 1092 | IF ( damp_level_ind_1d /= nzt+1 ) THEN |
---|
| 1093 | WRITE ( io, 502 ) zu(damp_level_ind_1d), damp_level_ind_1d |
---|
| 1094 | ENDIF |
---|
| 1095 | ENDIF |
---|
| 1096 | |
---|
| 1097 | ! |
---|
| 1098 | !-- User-defined informations |
---|
| 1099 | CALL user_header( io ) |
---|
| 1100 | |
---|
| 1101 | WRITE ( io, 99 ) |
---|
| 1102 | |
---|
| 1103 | #if defined( __ibm ) |
---|
| 1104 | ! |
---|
| 1105 | !-- Write buffer contents to disc immediately |
---|
| 1106 | CALL FLUSH_( io ) |
---|
| 1107 | #elif defined( __lcmuk ) || defined( __nec ) |
---|
| 1108 | CALL FLUSH( io ) |
---|
| 1109 | #endif |
---|
| 1110 | |
---|
| 1111 | ! |
---|
| 1112 | !-- Here the FORMATs start |
---|
| 1113 | |
---|
| 1114 | 99 FORMAT (1X,78('-')) |
---|
| 1115 | 100 FORMAT (/10X,'****************',11X,28('-')/ & |
---|
| 1116 | 10X,'* ',A12,'*',11X,A/ & |
---|
| 1117 | 10X,'****************',11X,28('-')// & |
---|
| 1118 | ' Date: ',A8,11X,'Run: ',A20/ & |
---|
| 1119 | ' Time: ',A8,11X,'Run-No.: ',I2.2/ & |
---|
| 1120 | ' Run on host: ',A10) |
---|
| 1121 | #if defined( __parallel ) |
---|
| 1122 | 101 FORMAT (' Number of PEs:',7X,I4,11X,'Processor grid (x,y): (',I3,',',I3, & |
---|
| 1123 | ')',1X,A) |
---|
| 1124 | 102 FORMAT (' Number of PEs:',7X,I4,11X,'Tasks:',I4,' threads per task:',I4/ & |
---|
| 1125 | 37X,'Processor grid (x,y): (',I3,',',I3,')',1X,A) |
---|
| 1126 | 103 FORMAT (37X,'One additional PE is used to handle'/37X,'the dvrp output!') |
---|
| 1127 | 104 FORMAT (37X,'A 1d-decomposition along x is forced'/ & |
---|
| 1128 | 37X,'because the job is running on an SMP-cluster') |
---|
| 1129 | 105 FORMAT (37X,'A 1d-decomposition along ',A,' is used') |
---|
| 1130 | #endif |
---|
| 1131 | 110 FORMAT (/' Numerical Schemes:'/ & |
---|
| 1132 | ' -----------------'/) |
---|
| 1133 | 111 FORMAT (' --> Solve perturbation pressure via FFT using ',A,' routines') |
---|
| 1134 | 112 FORMAT (' --> Solve perturbation pressure via SOR-Red/Black-Schema'/ & |
---|
| 1135 | ' Iterations (initial/other): ',I3,'/',I3,' omega = ',F5.3) |
---|
| 1136 | 113 FORMAT (' --> Momentum advection via Piascek-Williams-Scheme (Form C3)', & |
---|
| 1137 | ' or Upstream') |
---|
| 1138 | 114 FORMAT (' --> Momentum advection via Upstream-Spline-Scheme') |
---|
| 1139 | 115 FORMAT (' Tendencies are smoothed via Long-Filter with factor ',F5.3) |
---|
| 1140 | 116 FORMAT (' --> Scalar advection via Piascek-Williams-Scheme (Form C3)', & |
---|
| 1141 | ' or Upstream') |
---|
| 1142 | 117 FORMAT (' --> Scalar advection via Upstream-Spline-Scheme') |
---|
| 1143 | 118 FORMAT (' --> Scalar advection via Bott-Chlond-Scheme') |
---|
| 1144 | 119 FORMAT (' --> Galilei-Transform applied to horizontal advection', & |
---|
| 1145 | ' Translation velocity = ',A/ & |
---|
| 1146 | ' distance advected ',A,': ',F8.3,' km(x) ',F8.3,' km(y)') |
---|
| 1147 | 120 FORMAT (' --> Time differencing scheme: leapfrog only (no euler in case', & |
---|
| 1148 | ' of timestep changes)') |
---|
| 1149 | 121 FORMAT (' --> Time differencing scheme: leapfrog + euler in case of', & |
---|
| 1150 | ' timestep changes') |
---|
| 1151 | 122 FORMAT (' --> Time differencing scheme: ',A) |
---|
| 1152 | 123 FORMAT (' --> Rayleigh-Damping active, starts above z = ',F8.2,' m'/ & |
---|
| 1153 | ' maximum damping coefficient: ',F5.3, ' 1/s') |
---|
| 1154 | 124 FORMAT (' Spline-overshoots are being suppressed') |
---|
| 1155 | 125 FORMAT (' Upstream-Scheme is used if Upstream-differences fall short', & |
---|
| 1156 | ' of'/ & |
---|
| 1157 | ' delta_u = ',F6.4,4X,'delta_v = ',F6.4,4X,'delta_w = ',F6.4) |
---|
| 1158 | 126 FORMAT (' Upstream-Scheme is used if Upstream-differences fall short', & |
---|
| 1159 | ' of'/ & |
---|
| 1160 | ' delta_e = ',F6.4,4X,'delta_pt = ',F6.4) |
---|
| 1161 | 127 FORMAT (' The following absolute overshoot differences are tolerated:'/& |
---|
| 1162 | ' delta_u = ',F6.4,4X,'delta_v = ',F6.4,4X,'delta_w = ',F6.4) |
---|
| 1163 | 128 FORMAT (' The following absolute overshoot differences are tolerated:'/& |
---|
| 1164 | ' delta_e = ',F6.4,4X,'delta_pt = ',F6.4) |
---|
| 1165 | 129 FORMAT (' --> Additional prognostic equation for the specific humidity') |
---|
| 1166 | 130 FORMAT (' --> Additional prognostic equation for the total water content') |
---|
| 1167 | 131 FORMAT (' --> Parameterization of condensation processes via (0%-or100%)') |
---|
| 1168 | 132 FORMAT (' --> Parameterization of long-wave radiation processes via'/ & |
---|
| 1169 | ' effective emissivity scheme') |
---|
| 1170 | 133 FORMAT (' --> Precipitation parameterization via Kessler-Scheme') |
---|
| 1171 | 134 FORMAT (' --> Additional prognostic equation for a passive scalar') |
---|
| 1172 | 135 FORMAT (' --> Solve perturbation pressure via multigrid method (', & |
---|
| 1173 | A,'-cycle)'/ & |
---|
| 1174 | ' number of grid levels: ',I2/ & |
---|
| 1175 | ' Gauss-Seidel red/black iterations: ',I2) |
---|
| 1176 | 136 FORMAT (' gridpoints of coarsest subdomain (x,y,z): (',I3,',',I3,',', & |
---|
| 1177 | I3,')') |
---|
| 1178 | 137 FORMAT (' level data gathered on PE0 at level: ',I2/ & |
---|
| 1179 | ' gridpoints of coarsest subdomain (x,y,z): (',I3,',',I3,',', & |
---|
| 1180 | I3,')'/ & |
---|
| 1181 | ' gridpoints of coarsest domain (x,y,z): (',I3,',',I3,',', & |
---|
| 1182 | I3,')') |
---|
| 1183 | 138 FORMAT (' Using hybrid version for 1d-domain-decomposition') |
---|
[63] | 1184 | 139 FORMAT (' --> Loop optimization method: ',A) |
---|
[1] | 1185 | 140 FORMAT (' maximum residual allowed: ',E10.3) |
---|
| 1186 | 141 FORMAT (' fixed number of multigrid cycles: ',I4) |
---|
| 1187 | 142 FORMAT (' perturbation pressure is calculated at every Runge-Kutta ', & |
---|
| 1188 | 'step') |
---|
| 1189 | 150 FORMAT (' --> Volume flow at the right and north boundary will be ', & |
---|
| 1190 | 'conserved') |
---|
| 1191 | 200 FORMAT (//' Run time and time step information:'/ & |
---|
| 1192 | ' ----------------------------------'/) |
---|
| 1193 | 201 FORMAT ( ' Timestep: variable maximum value: ',F6.3,' s', & |
---|
| 1194 | ' CFL-factor: ',F4.2) |
---|
| 1195 | 202 FORMAT ( ' Timestep: dt = ',F6.3,' s'/) |
---|
| 1196 | 203 FORMAT ( ' Start time: ',F9.3,' s'/ & |
---|
| 1197 | ' End time: ',F9.3,' s') |
---|
| 1198 | 204 FORMAT ( A,F9.3,' s') |
---|
| 1199 | 205 FORMAT ( A,F9.3,' s',5X,'restart every',17X,F9.3,' s') |
---|
| 1200 | 206 FORMAT (/' Time reached: ',F9.3,' s'/ & |
---|
| 1201 | ' CPU-time used: ',F9.3,' s per timestep: ', & |
---|
| 1202 | ' ',F9.3,' s'/ & |
---|
| 1203 | ' per second of simulated tim', & |
---|
| 1204 | 'e: ',F9.3,' s') |
---|
| 1205 | 250 FORMAT (//' Computational grid and domain size:'/ & |
---|
| 1206 | ' ----------------------------------'// & |
---|
| 1207 | ' Grid length: dx = ',F7.3,' m dy = ',F7.3, & |
---|
| 1208 | ' m dz = ',F7.3,' m'/ & |
---|
| 1209 | ' Domain size: x = ',F10.3,' m y = ',F10.3, & |
---|
| 1210 | ' m z(u) = ',F10.3,' m'/) |
---|
| 1211 | 252 FORMAT (' dz constant up to ',F10.3,' m (k=',I4,'), then stretched by', & |
---|
| 1212 | ' factor: ',F5.3/ & |
---|
| 1213 | ' maximum dz not to be exceeded is dz_max = ',F10.3,' m'/) |
---|
| 1214 | 254 FORMAT (' Number of gridpoints (x,y,z): (0:',I4,', 0:',I4,', 0:',I4,')'/ & |
---|
| 1215 | ' Subdomain size (x,y,z): ( ',I4,', ',I4,', ',I4,')'/) |
---|
| 1216 | 255 FORMAT (' Subdomains have equal size') |
---|
| 1217 | 256 FORMAT (' Subdomains at the upper edges of the virtual processor grid ', & |
---|
| 1218 | 'have smaller sizes'/ & |
---|
| 1219 | ' Size of smallest subdomain: ( ',I4,', ',I4,', ',I4,')') |
---|
| 1220 | 260 FORMAT (/' The model has a slope in x-direction. Inclination angle: ',F6.2,& |
---|
| 1221 | ' degrees') |
---|
| 1222 | 270 FORMAT (//' Topography informations:'/ & |
---|
| 1223 | ' -----------------------'// & |
---|
| 1224 | 1X,'Topography: ',A) |
---|
| 1225 | 271 FORMAT ( ' Building size (x/y/z) in m: ',F5.1,' / ',F5.1,' / ',F5.1/ & |
---|
| 1226 | ' Horizontal index bounds (l/r/s/n): ',I4,' / ',I4,' / ',I4, & |
---|
| 1227 | ' / ',I4) |
---|
| 1228 | 300 FORMAT (//' Boundary conditions:'/ & |
---|
| 1229 | ' -------------------'// & |
---|
| 1230 | ' p uv ', & |
---|
| 1231 | ' pt'// & |
---|
| 1232 | ' B. bound.: ',A/ & |
---|
| 1233 | ' T. bound.: ',A) |
---|
| 1234 | 301 FORMAT (/' e'// & |
---|
| 1235 | ' B. bound.: ',A/ & |
---|
| 1236 | ' T. bound.: ',A) |
---|
| 1237 | 302 FORMAT (/' q'// & |
---|
| 1238 | ' B. bound.: ',A/ & |
---|
| 1239 | ' T. bound.: ',A) |
---|
[19] | 1240 | 303 FORMAT (/' Bottom surface fluxes are used in diffusion terms at k=1') |
---|
| 1241 | 304 FORMAT (/' Top surface fluxes are used in diffusion terms at k=nzt') |
---|
| 1242 | 305 FORMAT (//' Prandtl-Layer between bottom surface and first ', & |
---|
| 1243 | 'computational u,v-level:'// & |
---|
[1] | 1244 | ' zp = ',F6.2,' m z0 = ',F6.4,' m kappa = ',F4.2/ & |
---|
| 1245 | ' Rif value range: ',F6.2,' <= rif <=',F6.2) |
---|
| 1246 | 306 FORMAT (' Predefined constant heatflux: ',F6.3,' K m/s') |
---|
| 1247 | 307 FORMAT (' Heatflux has a random normal distribution') |
---|
| 1248 | 308 FORMAT (' Predefined surface temperature') |
---|
| 1249 | 310 FORMAT (//' 1D-Model:'// & |
---|
| 1250 | ' Rif value range: ',F6.2,' <= rif <=',F6.2) |
---|
| 1251 | 311 FORMAT (' Predefined constant humidity flux: ',E10.3,' m/s') |
---|
| 1252 | 312 FORMAT (' Predefined surface humidity') |
---|
| 1253 | 313 FORMAT (' Predefined constant scalar flux: ',E10.3,' kg/(m**2 s)') |
---|
| 1254 | 314 FORMAT (' Predefined scalar value at the surface') |
---|
[19] | 1255 | 315 FORMAT (' Humidity / scalar flux at top surface is 0.0') |
---|
[1] | 1256 | 317 FORMAT (//' Lateral boundaries:'/ & |
---|
| 1257 | ' left/right: ',A/ & |
---|
| 1258 | ' north/south: ',A) |
---|
| 1259 | 318 FORMAT (/' outflow damping layer width: ',I3,' gridpoints with km_', & |
---|
| 1260 | 'max =',F5.1,' m**2/s') |
---|
| 1261 | 320 FORMAT (//' List output:'/ & |
---|
| 1262 | ' -----------'// & |
---|
| 1263 | ' 1D-Profiles:'/ & |
---|
| 1264 | ' Output every ',F8.2,' s') |
---|
| 1265 | 321 FORMAT (' Time averaged over ',F8.2,' s'/ & |
---|
| 1266 | ' Averaging input every ',F8.2,' s') |
---|
| 1267 | 330 FORMAT (//' Data output:'/ & |
---|
| 1268 | ' -----------'/) |
---|
| 1269 | 331 FORMAT (/' 1D-Profiles:') |
---|
| 1270 | 332 FORMAT (/' ',A) |
---|
| 1271 | 333 FORMAT (' Output every ',F8.2,' s',/ & |
---|
| 1272 | ' Time averaged over ',F8.2,' s'/ & |
---|
| 1273 | ' Averaging input every ',F8.2,' s') |
---|
| 1274 | 334 FORMAT (/' 2D-Arrays',A,':') |
---|
| 1275 | 335 FORMAT (/' ',A2,'-cross-section Arrays: ',A/ & |
---|
| 1276 | ' Output every ',F8.2,' s ',A/ & |
---|
| 1277 | ' Cross sections at ',A1,' = ',A/ & |
---|
| 1278 | ' scalar-coordinates: ',A,' m'/) |
---|
| 1279 | 336 FORMAT (/' 3D-Arrays',A,':') |
---|
| 1280 | 337 FORMAT (/' Arrays: ',A/ & |
---|
| 1281 | ' Output every ',F8.2,' s ',A/ & |
---|
| 1282 | ' Upper output limit at ',F8.2,' m (GP ',I4,')'/) |
---|
| 1283 | 338 FORMAT (' Compressed data output'/ & |
---|
| 1284 | ' Decimal precision: ',A/) |
---|
| 1285 | 339 FORMAT (' No output during initial ',F8.2,' s') |
---|
| 1286 | 340 FORMAT (/' Time series:') |
---|
| 1287 | 341 FORMAT (' Output every ',F8.2,' s'/) |
---|
| 1288 | 342 FORMAT (/' ',A2,'-cross-section Arrays: ',A/ & |
---|
| 1289 | ' Output every ',F8.2,' s ',A/ & |
---|
| 1290 | ' Time averaged over ',F8.2,' s'/ & |
---|
| 1291 | ' Averaging input every ',F8.2,' s'/ & |
---|
| 1292 | ' Cross sections at ',A1,' = ',A/ & |
---|
| 1293 | ' scalar-coordinates: ',A,' m'/) |
---|
| 1294 | 343 FORMAT (/' Arrays: ',A/ & |
---|
| 1295 | ' Output every ',F8.2,' s ',A/ & |
---|
| 1296 | ' Time averaged over ',F8.2,' s'/ & |
---|
| 1297 | ' Averaging input every ',F8.2,' s'/ & |
---|
| 1298 | ' Upper output limit at ',F8.2,' m (GP ',I4,')'/) |
---|
| 1299 | 345 FORMAT (' Output format: ',A/) |
---|
| 1300 | #if defined( __dvrp_graphics ) |
---|
| 1301 | 360 FORMAT (' Plot-Sequence with dvrp-software:'/ & |
---|
| 1302 | ' Output every ',F7.1,' s'/ & |
---|
| 1303 | ' Output mode: ',A/ & |
---|
| 1304 | ' Host / User: ',A,' / ',A/ & |
---|
| 1305 | ' Directory: ',A// & |
---|
| 1306 | ' The sequence contains:') |
---|
| 1307 | 361 FORMAT (' Isosurface of ',A,' Threshold value: ', E12.3) |
---|
| 1308 | 362 FORMAT (' Sectional plane ',A) |
---|
| 1309 | 363 FORMAT (' Particles') |
---|
| 1310 | #endif |
---|
| 1311 | #if defined( __spectra ) |
---|
| 1312 | 370 FORMAT (' Spectra:') |
---|
| 1313 | 371 FORMAT (' Output every ',F7.1,' s'/) |
---|
| 1314 | 372 FORMAT (' Arrays: ', 10(A5,',')/ & |
---|
| 1315 | ' Directions: ', 10(A5,',')/ & |
---|
| 1316 | ' height levels k = ', 9(I3,','),I3,'.'/ & |
---|
| 1317 | ' height levels selected for standard plot:'/ & |
---|
| 1318 | ' k = ', 9(I3,','),I3,'.'/ & |
---|
| 1319 | ' Time averaged over ', F7.1, ' s,' / & |
---|
| 1320 | ' Profiles for the time averaging are taken every ', & |
---|
| 1321 | F6.1,' s') |
---|
| 1322 | #endif |
---|
| 1323 | 400 FORMAT (//' Physical quantities:'/ & |
---|
| 1324 | ' -------------------'/) |
---|
| 1325 | 410 FORMAT (' Angular velocity : omega = ',E9.3,' rad/s'/ & |
---|
| 1326 | ' Geograph. latitude : phi = ',F4.1,' degr'/ & |
---|
| 1327 | ' Coriolis parameter : f = ',F9.6,' 1/s'/ & |
---|
| 1328 | ' f* = ',F9.6,' 1/s') |
---|
| 1329 | 411 FORMAT (/' Gravity : g = ',F4.1,' m/s**2') |
---|
[57] | 1330 | 412 FORMAT (/' Reference temperature in buoyancy terms: ',F8.4,' K') |
---|
| 1331 | 415 FORMAT (/' Cloud physics parameters:'/ & |
---|
[1] | 1332 | ' ------------------------'/) |
---|
[57] | 1333 | 416 FORMAT (' Surface pressure : p_0 = ',F7.2,' hPa'/ & |
---|
[1] | 1334 | ' Gas constant : R = ',F5.1,' J/(kg K)'/ & |
---|
| 1335 | ' Density of air : rho_0 = ',F5.3,' kg/m**3'/ & |
---|
| 1336 | ' Specific heat cap. : c_p = ',F6.1,' J/(kg K)'/ & |
---|
| 1337 | ' Vapourization heat : L_v = ',E8.2,' J/kg') |
---|
| 1338 | 420 FORMAT (/' Characteristic levels of the initial temperature profile:'// & |
---|
| 1339 | ' Height: ',A,' m'/ & |
---|
| 1340 | ' Temperature: ',A,' K'/ & |
---|
| 1341 | ' Gradient: ',A,' K/100m'/ & |
---|
| 1342 | ' Gridpoint: ',A) |
---|
| 1343 | 421 FORMAT (/' Characteristic levels of the initial humidity profile:'// & |
---|
| 1344 | ' Height: ',A,' m'/ & |
---|
| 1345 | ' Humidity: ',A,' kg/kg'/ & |
---|
| 1346 | ' Gradient: ',A,' (kg/kg)/100m'/ & |
---|
| 1347 | ' Gridpoint: ',A) |
---|
| 1348 | 422 FORMAT (/' Characteristic levels of the initial scalar profile:'// & |
---|
| 1349 | ' Height: ',A,' m'/ & |
---|
| 1350 | ' Scalar concentration: ',A,' kg/m**3'/ & |
---|
| 1351 | ' Gradient: ',A,' (kg/m**3)/100m'/ & |
---|
| 1352 | ' Gridpoint: ',A) |
---|
| 1353 | 423 FORMAT (/' Characteristic levels of the geo. wind component ug:'// & |
---|
| 1354 | ' Height: ',A,' m'/ & |
---|
| 1355 | ' ug: ',A,' m/s'/ & |
---|
| 1356 | ' Gradient: ',A,' 1/100s'/ & |
---|
| 1357 | ' Gridpoint: ',A) |
---|
| 1358 | 424 FORMAT (/' Characteristic levels of the geo. wind component vg:'// & |
---|
| 1359 | ' Height: ',A,' m'/ & |
---|
| 1360 | ' vg: ',A,' m/S'/ & |
---|
| 1361 | ' Gradient: ',A,' 1/100s'/ & |
---|
| 1362 | ' Gridpoint: ',A) |
---|
| 1363 | 450 FORMAT (//' LES / Turbulence quantities:'/ & |
---|
| 1364 | ' ---------------------------'/) |
---|
| 1365 | 451 FORMAT (' Diffusion coefficients are constant:'/ & |
---|
| 1366 | ' Km = ',F6.2,' m**2/s Kh = ',F6.2,' m**2/s Pr = ',F5.2) |
---|
| 1367 | 452 FORMAT (' Mixing length is limited to the Prandtl mixing lenth.') |
---|
| 1368 | 453 FORMAT (' Mixing length is limited to ',F4.2,' * z') |
---|
| 1369 | 454 FORMAT (' TKE is not allowed to fall below ',E9.2,' (m/s)**2') |
---|
| 1370 | 470 FORMAT (//' Actions during the simulation:'/ & |
---|
| 1371 | ' -----------------------------'/) |
---|
| 1372 | 471 FORMAT (' Disturbance impulse (u,v) every : ',F6.2,' s'/ & |
---|
| 1373 | ' Disturbance amplitude : ',F4.2, ' m/s'/ & |
---|
| 1374 | ' Lower disturbance level : ',F7.2,' m (GP ',I4,')'/ & |
---|
| 1375 | ' Upper disturbance level : ',F7.2,' m (GP ',I4,')') |
---|
| 1376 | 472 FORMAT (' Disturbances continued during the run from i/j =',I4, & |
---|
| 1377 | ' to i/j =',I4) |
---|
| 1378 | 473 FORMAT (' Disturbances cease as soon as the disturbance energy exceeds',& |
---|
| 1379 | 1X,F5.3, ' m**2/s**2') |
---|
| 1380 | 474 FORMAT (' Random number generator used : ',A/) |
---|
| 1381 | 475 FORMAT (' The surface temperature is increased (or decreased, ', & |
---|
| 1382 | 'respectively, if'/ & |
---|
| 1383 | ' the value is negative) by ',F5.2,' K at the beginning of the',& |
---|
| 1384 | ' 3D-simulation'/) |
---|
| 1385 | 476 FORMAT (' The surface humidity is increased (or decreased, ',& |
---|
| 1386 | 'respectively, if the'/ & |
---|
| 1387 | ' value is negative) by ',E8.1,' kg/kg at the beginning of', & |
---|
| 1388 | ' the 3D-simulation'/) |
---|
| 1389 | 477 FORMAT (' The scalar value is increased at the surface (or decreased, ',& |
---|
| 1390 | 'respectively, if the'/ & |
---|
| 1391 | ' value is negative) by ',E8.1,' kg/m**3 at the beginning of', & |
---|
| 1392 | ' the 3D-simulation'/) |
---|
| 1393 | 480 FORMAT (' Particles:'/ & |
---|
| 1394 | ' ---------'// & |
---|
| 1395 | ' Particle advection is active (switched on at t = ', F7.1, & |
---|
| 1396 | ' s)'/ & |
---|
| 1397 | ' Start of new particle generations every ',F6.1,' s'/ & |
---|
| 1398 | ' Boundary conditions: left/right: ', A, ' north/south: ', A/& |
---|
| 1399 | ' bottom: ', A, ' top: ', A/& |
---|
| 1400 | ' Maximum particle age: ',F9.1,' s'/ & |
---|
| 1401 | ' Advection stopped at t = ',F9.1,' s'/) |
---|
| 1402 | 481 FORMAT (' Particles have random start positions'/) |
---|
| 1403 | 482 FORMAT (' Particles are advected only horizontally'/) |
---|
| 1404 | 483 FORMAT (' Particles have tails with a maximum of ',I3,' points') |
---|
| 1405 | 484 FORMAT (' Number of tails of the total domain: ',I10/ & |
---|
| 1406 | ' Minimum distance between tailpoints: ',F8.2,' m'/ & |
---|
| 1407 | ' Maximum age of the end of the tail: ',F8.2,' s') |
---|
| 1408 | 485 FORMAT (' Particle data are written on file every ', F9.1, ' s') |
---|
| 1409 | 486 FORMAT (' Particle statistics are written on file'/) |
---|
| 1410 | 487 FORMAT (' Number of particle groups: ',I2/) |
---|
| 1411 | 488 FORMAT (' SGS velocity components are used for particle advection'/ & |
---|
| 1412 | ' minimum timestep for advection: ', F7.5/) |
---|
| 1413 | 489 FORMAT (' Number of particles simultaneously released at each ', & |
---|
| 1414 | 'point: ', I5/) |
---|
| 1415 | 490 FORMAT (' Particle group ',I2,':'/ & |
---|
| 1416 | ' Particle radius: ',E10.3, 'm') |
---|
| 1417 | 491 FORMAT (' Particle inertia is activated'/ & |
---|
| 1418 | ' density_ratio (rho_fluid/rho_particle) = ',F5.3/) |
---|
| 1419 | 492 FORMAT (' Particles are advected only passively (no inertia)'/) |
---|
| 1420 | 493 FORMAT (' Boundaries of particle source: x:',F8.1,' - ',F8.1,' m'/& |
---|
| 1421 | ' y:',F8.1,' - ',F8.1,' m'/& |
---|
| 1422 | ' z:',F8.1,' - ',F8.1,' m'/& |
---|
| 1423 | ' Particle distances: dx = ',F8.1,' m dy = ',F8.1, & |
---|
| 1424 | ' m dz = ',F8.1,' m'/) |
---|
| 1425 | 494 FORMAT (' Output of particle time series in NetCDF format every ', & |
---|
| 1426 | F8.2,' s'/) |
---|
| 1427 | 495 FORMAT (' Number of particles in total domain: ',I10/) |
---|
| 1428 | 500 FORMAT (//' 1D-Model parameters:'/ & |
---|
| 1429 | ' -------------------'// & |
---|
| 1430 | ' Simulation time: ',F8.1,' s'/ & |
---|
| 1431 | ' Run-controll output every: ',F8.1,' s'/ & |
---|
| 1432 | ' Vertical profile output every: ',F8.1,' s'/ & |
---|
| 1433 | ' Mixing length calculation: ',A/ & |
---|
| 1434 | ' Dissipation calculation: ',A/) |
---|
| 1435 | 502 FORMAT (' Damping layer starts from ',F7.1,' m (GP ',I4,')'/) |
---|
| 1436 | |
---|
| 1437 | |
---|
| 1438 | END SUBROUTINE header |
---|