source: palm/tags/release-3.2b/SOURCE/header.f90 @ 237

Last change on this file since 237 was 90, checked in by raasch, 17 years ago

New:
---
Calculation and output of user-defined profiles. New &userpar parameters data_output_pr_user and max_pr_user.

check_parameters, flow_statistics, modules, parin, read_var_list, user_interface, write_var_list

Changed:


Division through dt_3d replaced by multiplication of the inverse. For performance optimisation, this is done in the loop calculating the divergence instead of using a seperate loop. (pres.f90) var_hom and var_sum renamed pr_palm.

data_output_profiles, flow_statistics, init_3d_model, modules, parin, pres, read_var_list, run_control, time_integration

Errors:


Bugfix: work_fft*_vec removed from some PRIVATE-declarations (poisfft).

Bugfix: field_chr renamed field_char (user_interface).

Bugfix: output of use_upstream_for_tke (header).

header, poisfft, user_interface

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