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