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