source: palm/trunk/SOURCE/header.f90 @ 826

Last change on this file since 826 was 826, checked in by raasch, 13 years ago

last commit documented

  • Property svn:keywords set to Id
File size: 78.9 KB
RevLine 
[1]1 SUBROUTINE header
2
3!------------------------------------------------------------------------------!
[254]4! Current revisions:
[1]5! -----------------
[392]6!
[826]7!
[392]8! Former revisions:
9! -----------------
10! $Id: header.f90 826 2012-02-19 03:41:34Z raasch $
11!
[826]12! 825 2012-02-19 03:03:44Z raasch
13! Output of cloud physics parameters/quantities complemented and restructured
14!
[768]15! 767 2011-10-14 06:39:12Z raasch
16! Output of given initial u,v-profiles
17!
[760]18! 759 2011-09-15 13:58:31Z raasch
19! output of maximum number of parallel io streams
20!
[708]21! 707 2011-03-29 11:39:40Z raasch
22! bc_lr/ns replaced by bc_lr/ns_cyc
23!
[668]24! 667 2010-12-23 12:06:00Z suehring/gryschka
25! Output of advection scheme.
26! Modified output of Prandtl-layer height.
27!
[581]28! 580 2010-10-05 13:59:11Z heinze
29! Renaming of ws_vertical_gradient to subs_vertical_gradient,
30! ws_vertical_gradient_level to subs_vertical_gradient_level and
31! ws_vertical_gradient_level_ind to subs_vertical_gradient_level_i
32!
[494]33! 493 2010-03-01 08:30:24Z raasch
34! NetCDF data output format extendend for NetCDF4/HDF5
35!
[482]36! 449 2010-02-02 11:23:59Z raasch
37! +large scale vertical motion (subsidence/ascent)
38! Bugfix: index problem concerning gradient_level indices removed
39!
[449]40! 410 2009-12-04 17:05:40Z letzel
41! Masked data output: + dt_domask, mask_01~20_x|y|z, mask_01~20_x|y|z_loop,
[493]42! mask_scale|_x|y|z, masks, skip_time_domask
[449]43!
[392]44! 346 2009-07-06 10:13:41Z raasch
[328]45! initializing_actions='read_data_for_recycling' renamed to 'cyclic_fill'
[291]46! Coupling with independent precursor runs.
[254]47! Output of messages replaced by message handling routine.
[336]48! Output of several additional dvr parameters
[240]49! +canyon_height, canyon_width_x, canyon_width_y, canyon_wall_left,
[241]50! canyon_wall_south, conserve_volume_flow_mode, dp_external, dp_level_b,
51! dp_smooth, dpdxy, u_bulk, v_bulk
[256]52! topography_grid_convention moved from user_header
[292]53! small bugfix concerning 3d 64bit netcdf output format
[1]54!
[226]55! 206 2008-10-13 14:59:11Z raasch
56! Bugfix: error in zu index in case of section_xy = -1
57!
[200]58! 198 2008-09-17 08:55:28Z raasch
59! Format adjustments allowing output of larger revision numbers
60!
[198]61! 197 2008-09-16 15:29:03Z raasch
62! allow 100 spectra levels instead of 10 for consistency with
63! define_netcdf_header,
64! bugfix in the output of the characteristic levels of potential temperature,
65! geostrophic wind, scalar concentration, humidity and leaf area density,
66! output of turbulence recycling informations
67!
[139]68! 138 2007-11-28 10:03:58Z letzel
69! Allow new case bc_uv_t = 'dirichlet_0' for channel flow.
70! Allow two instead of one digit to specify isosurface and slicer variables.
71! Output of sorting frequency of particles
72!
[110]73! 108 2007-08-24 15:10:38Z letzel
74! Output of informations for coupled model runs (boundary conditions etc.)
75! + output of momentumfluxes at the top boundary
76! Rayleigh damping for ocean, e_init
77!
[98]78! 97 2007-06-21 08:23:15Z raasch
79! Adjustments for the ocean version.
80! use_pt_reference renamed use_reference
81!
[90]82! 87 2007-05-22 15:46:47Z raasch
83! Bugfix: output of use_upstream_for_tke
84!
[83]85! 82 2007-04-16 15:40:52Z raasch
86! Preprocessor strings for different linux clusters changed to "lc",
87! routine local_flush is used for buffer flushing
88!
[77]89! 76 2007-03-29 00:58:32Z raasch
90! Output of netcdf_64bit_3d, particles-package is now part of the default code,
91! output of the loop optimization method, moisture renamed humidity,
92! output of subversion revision number
93!
[39]94! 19 2007-02-23 04:53:48Z raasch
95! Output of scalar flux applied at top boundary
96!
[3]97! RCS Log replace by Id keyword, revision history cleaned up
98!
[1]99! Revision 1.63  2006/08/22 13:53:13  raasch
100! Output of dz_max
101!
102! Revision 1.1  1997/08/11 06:17:20  raasch
103! Initial revision
104!
105!
106! Description:
107! ------------
108! Writing a header with all important informations about the actual run.
109! This subroutine is called three times, two times at the beginning
110! (writing information on files RUN_CONTROL and HEADER) and one time at the
111! end of the run, then writing additional information about CPU-usage on file
112! header.
[411]113!-----------------------------------------------------------------------------!
[1]114
115    USE arrays_3d
116    USE control_parameters
117    USE cloud_parameters
118    USE cpulog
119    USE dvrp_variables
120    USE grid_variables
121    USE indices
122    USE model_1d
123    USE particle_attributes
124    USE pegrid
[411]125    USE subsidence_mod
[1]126    USE spectrum
127
128    IMPLICIT NONE
129
130    CHARACTER (LEN=1)  ::  prec
131    CHARACTER (LEN=2)  ::  do2d_mode
132    CHARACTER (LEN=5)  ::  section_chr
133    CHARACTER (LEN=9)  ::  time_to_string
134    CHARACTER (LEN=10) ::  coor_chr, host_chr
135    CHARACTER (LEN=16) ::  begin_chr
[200]136    CHARACTER (LEN=23) ::  ver_rev
[1]137    CHARACTER (LEN=40) ::  output_format
[167]138    CHARACTER (LEN=70) ::  char1, char2, dopr_chr, &
[1]139                           do2d_xy, do2d_xz, do2d_yz, do3d_chr, &
[410]140                           domask_chr, run_classification
[167]141    CHARACTER (LEN=86) ::  coordinates, gradients, learde, slices,  &
142                           temperatures, ugcomponent, vgcomponent
[1]143    CHARACTER (LEN=85) ::  roben, runten
144
[410]145    CHARACTER (LEN=1), DIMENSION(1:3) ::  dir = (/ 'x', 'y', 'z' /)
146
147    INTEGER ::  av, bh, blx, bly, bxl, bxr, byn, bys, ch, count, cwx, cwy,  &
148         cxl, cxr, cyn, cys, dim, i, ihost, io, j, l, ll, m, mpi_type
[1]149    REAL    ::  cpuseconds_per_simulated_second
150
151!
152!-- Open the output file. At the end of the simulation, output is directed
153!-- to unit 19.
154    IF ( ( runnr == 0 .OR. force_print_header )  .AND. &
155         .NOT. simulated_time_at_begin /= simulated_time )  THEN
156       io = 15   !  header output on file RUN_CONTROL
157    ELSE
158       io = 19   !  header output on file HEADER
159    ENDIF
160    CALL check_open( io )
161
162!
163!-- At the end of the run, output file (HEADER) will be rewritten with
164!-- new informations
165    IF ( io == 19 .AND. simulated_time_at_begin /= simulated_time ) REWIND( 19 )
166
167!
168!-- Determine kind of model run
169    IF ( TRIM( initializing_actions ) == 'read_restart_data' )  THEN
170       run_classification = '3D - restart run'
[328]171    ELSEIF ( TRIM( initializing_actions ) == 'cyclic_fill' )  THEN
172       run_classification = '3D - run with cyclic fill of 3D - prerun data'
[147]173    ELSEIF ( INDEX( initializing_actions, 'set_constant_profiles' ) /= 0 )  THEN
174       run_classification = '3D - run without 1D - prerun'
[197]175    ELSEIF ( INDEX( initializing_actions, 'set_1d-model_profiles' ) /= 0 )  THEN
[147]176       run_classification = '3D - run with 1D - prerun'
[197]177    ELSEIF ( INDEX( initializing_actions, 'by_user' ) /=0 )  THEN
178       run_classification = '3D - run initialized by user'
[1]179    ELSE
[254]180       message_string = ' unknown action(s): ' // TRIM( initializing_actions )
181       CALL message( 'header', 'PA0191', 0, 0, 0, 6, 0 )
[1]182    ENDIF
[97]183    IF ( ocean )  THEN
184       run_classification = 'ocean - ' // run_classification
185    ELSE
186       run_classification = 'atmosphere - ' // run_classification
187    ENDIF
[1]188
189!
190!-- Run-identification, date, time, host
191    host_chr = host(1:10)
[75]192    ver_rev = TRIM( version ) // '  ' // TRIM( revision )
[102]193    WRITE ( io, 100 )  ver_rev, TRIM( run_classification )
[291]194    IF ( TRIM( coupling_mode ) /= 'uncoupled' )  THEN
195#if defined( __mpi2 )
196       mpi_type = 2
197#else
198       mpi_type = 1
199#endif
200       WRITE ( io, 101 )  mpi_type, coupling_mode
201    ENDIF
[102]202    WRITE ( io, 102 )  run_date, run_identifier, run_time, runnr, &
203                       ADJUSTR( host_chr )
[1]204#if defined( __parallel )
205    IF ( npex == -1  .AND.  pdims(2) /= 1 )  THEN
206       char1 = 'calculated'
207    ELSEIF ( ( host(1:3) == 'ibm'  .OR.  host(1:3) == 'nec'  .OR.  &
208               host(1:2) == 'lc' )  .AND.                          &
209             npex == -1  .AND.  pdims(2) == 1 )  THEN
210       char1 = 'forced'
211    ELSE
212       char1 = 'predefined'
213    ENDIF
214    IF ( threads_per_task == 1 )  THEN
[102]215       WRITE ( io, 103 )  numprocs, pdims(1), pdims(2), TRIM( char1 )
[1]216    ELSE
[102]217       WRITE ( io, 104 )  numprocs*threads_per_task, numprocs, &
[1]218                          threads_per_task, pdims(1), pdims(2), TRIM( char1 )
219    ENDIF
220    IF ( ( host(1:3) == 'ibm'  .OR.  host(1:3) == 'nec'  .OR.    &
221           host(1:2) == 'lc'   .OR.  host(1:3) == 'dec' )  .AND. &
222         npex == -1  .AND.  pdims(2) == 1 )                      &
223    THEN
[102]224       WRITE ( io, 106 )
[1]225    ELSEIF ( pdims(2) == 1 )  THEN
[102]226       WRITE ( io, 107 )  'x'
[1]227    ELSEIF ( pdims(1) == 1 )  THEN
[102]228       WRITE ( io, 107 )  'y'
[1]229    ENDIF
[102]230    IF ( use_seperate_pe_for_dvrp_output )  WRITE ( io, 105 )
[759]231    IF ( numprocs /= maximum_parallel_io_streams )  THEN
232       WRITE ( io, 108 )  maximum_parallel_io_streams
233    ENDIF
[1]234#endif
235    WRITE ( io, 99 )
236
237!
238!-- Numerical schemes
239    WRITE ( io, 110 )
240    IF ( psolver(1:7) == 'poisfft' )  THEN
241       WRITE ( io, 111 )  TRIM( fft_method )
242       IF ( psolver == 'poisfft_hybrid' )  WRITE ( io, 138 )
243    ELSEIF ( psolver == 'sor' )  THEN
244       WRITE ( io, 112 )  nsor_ini, nsor, omega_sor
245    ELSEIF ( psolver == 'multigrid' )  THEN
246       WRITE ( io, 135 )  cycle_mg, maximum_grid_level, ngsrb
247       IF ( mg_cycles == -1 )  THEN
248          WRITE ( io, 140 )  residual_limit
249       ELSE
250          WRITE ( io, 141 )  mg_cycles
251       ENDIF
252       IF ( mg_switch_to_pe0_level == 0 )  THEN
253          WRITE ( io, 136 )  nxr_mg(1)-nxl_mg(1)+1, nyn_mg(1)-nys_mg(1)+1, &
254                             nzt_mg(1)
[197]255       ELSEIF (  mg_switch_to_pe0_level /= -1 )  THEN
[1]256          WRITE ( io, 137 )  mg_switch_to_pe0_level,            &
257                             mg_loc_ind(2,0)-mg_loc_ind(1,0)+1, &
258                             mg_loc_ind(4,0)-mg_loc_ind(3,0)+1, &
259                             nzt_mg(mg_switch_to_pe0_level),    &
260                             nxr_mg(1)-nxl_mg(1)+1, nyn_mg(1)-nys_mg(1)+1, &
261                             nzt_mg(1)
262       ENDIF
263    ENDIF
264    IF ( call_psolver_at_all_substeps  .AND. timestep_scheme(1:5) == 'runge' ) &
265    THEN
266       WRITE ( io, 142 )
267    ENDIF
268
269    IF ( momentum_advec == 'pw-scheme' )  THEN
270       WRITE ( io, 113 )
[667]271    ELSEIF (momentum_advec == 'ws-scheme' ) THEN
272       WRITE ( io, 503 )
273    ELSEIF (momentum_advec == 'ups-scheme' ) THEN
[1]274       WRITE ( io, 114 )
275       IF ( cut_spline_overshoot )  WRITE ( io, 124 )
276       IF ( overshoot_limit_u /= 0.0  .OR.  overshoot_limit_v /= 0.0  .OR. &
277            overshoot_limit_w /= 0.0 )  THEN
278          WRITE ( io, 127 )  overshoot_limit_u, overshoot_limit_v, &
279                             overshoot_limit_w
280       ENDIF
281       IF ( ups_limit_u /= 0.0  .OR.  ups_limit_v /= 0.0  .OR. &
282            ups_limit_w /= 0.0 )                               &
283       THEN
284          WRITE ( io, 125 )  ups_limit_u, ups_limit_v, ups_limit_w
285       ENDIF
286       IF ( long_filter_factor /= 0.0 )  WRITE ( io, 115 )  long_filter_factor
287    ENDIF
288    IF ( scalar_advec == 'pw-scheme' )  THEN
289       WRITE ( io, 116 )
[667]290    ELSEIF ( scalar_advec == 'ws-scheme' )  THEN
291       WRITE ( io, 504 )
[1]292    ELSEIF ( scalar_advec == 'ups-scheme' )  THEN
293       WRITE ( io, 117 )
294       IF ( cut_spline_overshoot )  WRITE ( io, 124 )
295       IF ( overshoot_limit_e /= 0.0  .OR.  overshoot_limit_pt /= 0.0 )  THEN
296          WRITE ( io, 128 )  overshoot_limit_e, overshoot_limit_pt
297       ENDIF
298       IF ( ups_limit_e /= 0.0  .OR.  ups_limit_pt /= 0.0 )  THEN
299          WRITE ( io, 126 )  ups_limit_e, ups_limit_pt
300       ENDIF
301    ELSE
302       WRITE ( io, 118 )
303    ENDIF
[63]304
305    WRITE ( io, 139 )  TRIM( loop_optimization )
306
[1]307    IF ( galilei_transformation )  THEN
308       IF ( use_ug_for_galilei_tr )  THEN
309          char1 = 'geostrophic wind'
310       ELSE
311          char1 = 'mean wind in model domain'
312       ENDIF
313       IF ( simulated_time_at_begin == simulated_time )  THEN
314          char2 = 'at the start of the run'
315       ELSE
316          char2 = 'at the end of the run'
317       ENDIF
318       WRITE ( io, 119 )  TRIM( char1 ), TRIM( char2 ), &
319                          advected_distance_x/1000.0, advected_distance_y/1000.0
320    ENDIF
321    IF ( timestep_scheme == 'leapfrog' )  THEN
322       WRITE ( io, 120 )
323    ELSEIF ( timestep_scheme == 'leapfrog+euler' )  THEN
324       WRITE ( io, 121 )
325    ELSE
326       WRITE ( io, 122 )  timestep_scheme
327    ENDIF
[87]328    IF ( use_upstream_for_tke )  WRITE ( io, 143 )
[1]329    IF ( rayleigh_damping_factor /= 0.0 )  THEN
[108]330       IF ( .NOT. ocean )  THEN
331          WRITE ( io, 123 )  'above', rayleigh_damping_height, &
332               rayleigh_damping_factor
333       ELSE
334          WRITE ( io, 123 )  'below', rayleigh_damping_height, &
335               rayleigh_damping_factor
336       ENDIF
[1]337    ENDIF
[75]338    IF ( humidity )  THEN
[1]339       IF ( .NOT. cloud_physics )  THEN
340          WRITE ( io, 129 )
341       ELSE
342          WRITE ( io, 130 )
343       ENDIF
344    ENDIF
345    IF ( passive_scalar )  WRITE ( io, 134 )
[240]346    IF ( conserve_volume_flow )  THEN
[241]347       WRITE ( io, 150 )  conserve_volume_flow_mode
348       IF ( TRIM( conserve_volume_flow_mode ) == 'bulk_velocity' )  THEN
349          WRITE ( io, 151 )  u_bulk, v_bulk
350       ENDIF
[240]351    ELSEIF ( dp_external )  THEN
352       IF ( dp_smooth )  THEN
[241]353          WRITE ( io, 152 )  dpdxy, dp_level_b, ', vertically smoothed.'
[240]354       ELSE
[241]355          WRITE ( io, 152 )  dpdxy, dp_level_b, '.'
[240]356       ENDIF
357    ENDIF
[411]358    IF ( large_scale_subsidence )  THEN
359        WRITE ( io, 153 )
360        WRITE ( io, 154 )
361    ENDIF
[1]362    WRITE ( io, 99 )
363
364!
365!-- Runtime and timestep informations
366    WRITE ( io, 200 )
367    IF ( .NOT. dt_fixed )  THEN
368       WRITE ( io, 201 )  dt_max, cfl_factor
369    ELSE
370       WRITE ( io, 202 )  dt
371    ENDIF
372    WRITE ( io, 203 )  simulated_time_at_begin, end_time
373
374    IF ( time_restart /= 9999999.9  .AND. &
375         simulated_time_at_begin == simulated_time )  THEN
376       IF ( dt_restart == 9999999.9 )  THEN
377          WRITE ( io, 204 )  ' Restart at:       ',time_restart
378       ELSE
379          WRITE ( io, 205 )  ' Restart at:       ',time_restart, dt_restart
380       ENDIF
381    ENDIF
382
383    IF ( simulated_time_at_begin /= simulated_time )  THEN
384       i = MAX ( log_point_s(10)%counts, 1 )
385       IF ( ( simulated_time - simulated_time_at_begin ) == 0.0 )  THEN
386          cpuseconds_per_simulated_second = 0.0
387       ELSE
388          cpuseconds_per_simulated_second = log_point_s(10)%sum / &
389                                            ( simulated_time -    &
390                                              simulated_time_at_begin )
391       ENDIF
392       WRITE ( io, 206 )  simulated_time, log_point_s(10)%sum, &
393                          log_point_s(10)%sum / REAL( i ),     &
394                          cpuseconds_per_simulated_second
395       IF ( time_restart /= 9999999.9  .AND.  time_restart < end_time )  THEN
396          IF ( dt_restart == 9999999.9 )  THEN
397             WRITE ( io, 204 )  ' Next restart at:  ',time_restart
398          ELSE
399             WRITE ( io, 205 )  ' Next restart at:  ',time_restart, dt_restart
400          ENDIF
401       ENDIF
402    ENDIF
403
404!
[291]405!-- Start time for coupled runs, if independent precursor runs for atmosphere
406!-- and ocean are used. In this case, coupling_start_time defines the time
407!-- when the coupling is switched on.
408    IF ( coupling_start_time /= 0.0 )  THEN
409       IF ( coupling_start_time >= simulated_time_at_begin )  THEN
410          char1 = 'Precursor run for a coupled atmosphere-ocean run'
411       ELSE
412          char1 = 'Coupled atmosphere-ocean run following independent ' // &
413                  'precursor runs'
414       ENDIF
415       WRITE ( io, 207 )  char1, coupling_start_time
416    ENDIF
417
418!
[1]419!-- Computational grid
[94]420    IF ( .NOT. ocean )  THEN
421       WRITE ( io, 250 )  dx, dy, dz, (nx+1)*dx, (ny+1)*dy, zu(nzt+1)
422       IF ( dz_stretch_level_index < nzt+1 )  THEN
423          WRITE ( io, 252 )  dz_stretch_level, dz_stretch_level_index, &
424                             dz_stretch_factor, dz_max
425       ENDIF
426    ELSE
427       WRITE ( io, 250 )  dx, dy, dz, (nx+1)*dx, (ny+1)*dy, zu(0)
428       IF ( dz_stretch_level_index > 0 )  THEN
429          WRITE ( io, 252 )  dz_stretch_level, dz_stretch_level_index, &
430                             dz_stretch_factor, dz_max
431       ENDIF
[1]432    ENDIF
433    WRITE ( io, 254 )  nx, ny, nzt+1, MIN( nnx, nx+1 ), MIN( nny, ny+1 ), &
434                       MIN( nnz+2, nzt+2 )
[76]435    IF ( numprocs > 1 )  THEN
436       IF ( nxa == nx  .AND.  nya == ny  .AND.  nza == nz )  THEN
437          WRITE ( io, 255 )
438       ELSE
439          WRITE ( io, 256 )  nnx-(nxa-nx), nny-(nya-ny), nzt+2
440       ENDIF
[1]441    ENDIF
442    IF ( sloping_surface )  WRITE ( io, 260 )  alpha_surface
443
444!
445!-- Topography
446    WRITE ( io, 270 )  topography
447    SELECT CASE ( TRIM( topography ) )
448
449       CASE ( 'flat' )
450          ! no actions necessary
451
452       CASE ( 'single_building' )
453          blx = INT( building_length_x / dx )
454          bly = INT( building_length_y / dy )
455          bh  = INT( building_height / dz )
456
457          IF ( building_wall_left == 9999999.9 )  THEN
458             building_wall_left = ( nx + 1 - blx ) / 2 * dx
459          ENDIF
460          bxl = INT ( building_wall_left / dx + 0.5 )
461          bxr = bxl + blx
462
463          IF ( building_wall_south == 9999999.9 )  THEN
464             building_wall_south = ( ny + 1 - bly ) / 2 * dy
465          ENDIF
466          bys = INT ( building_wall_south / dy + 0.5 )
467          byn = bys + bly
468
469          WRITE ( io, 271 )  building_length_x, building_length_y, &
470                             building_height, bxl, bxr, bys, byn
471
[240]472       CASE ( 'single_street_canyon' )
473          ch  = NINT( canyon_height / dz )
474          IF ( canyon_width_x /= 9999999.9 )  THEN
475!
476!--          Street canyon in y direction
477             cwx = NINT( canyon_width_x / dx )
478             IF ( canyon_wall_left == 9999999.9 )  THEN
479                canyon_wall_left = ( nx + 1 - cwx ) / 2 * dx
480             ENDIF
481             cxl = NINT( canyon_wall_left / dx )
482             cxr = cxl + cwx
483             WRITE ( io, 272 )  'y', canyon_height, ch, 'u', cxl, cxr
484
485          ELSEIF ( canyon_width_y /= 9999999.9 )  THEN
486!
487!--          Street canyon in x direction
488             cwy = NINT( canyon_width_y / dy )
489             IF ( canyon_wall_south == 9999999.9 )  THEN
490                canyon_wall_south = ( ny + 1 - cwy ) / 2 * dy
491             ENDIF
492             cys = NINT( canyon_wall_south / dy )
493             cyn = cys + cwy
494             WRITE ( io, 272 )  'x', canyon_height, ch, 'v', cys, cyn
495          ENDIF
496
[1]497    END SELECT
498
[256]499    IF ( TRIM( topography ) /= 'flat' )  THEN
500       IF ( TRIM( topography_grid_convention ) == ' ' )  THEN
501          IF ( TRIM( topography ) == 'single_building' .OR.  &
502               TRIM( topography ) == 'single_street_canyon' )  THEN
503             WRITE ( io, 278 )
504          ELSEIF ( TRIM( topography ) == 'read_from_file' )  THEN
505             WRITE ( io, 279 )
506          ENDIF
507       ELSEIF ( TRIM( topography_grid_convention ) == 'cell_edge' )  THEN
508          WRITE ( io, 278 )
509       ELSEIF ( TRIM( topography_grid_convention ) == 'cell_center' )  THEN
510          WRITE ( io, 279 )
511       ENDIF
512    ENDIF
513
[138]514    IF ( plant_canopy ) THEN
515
516       WRITE ( io, 280 ) canopy_mode, pch_index, drag_coefficient
[153]517       IF ( passive_scalar ) THEN
518          WRITE ( io, 281 ) scalar_exchange_coefficient,   &
519                            leaf_surface_concentration
520       ENDIF
[138]521
[1]522!
[153]523!--    Heat flux at the top of vegetation
524       WRITE ( io, 282 ) cthf
525
526!
[138]527!--    Leaf area density profile
528!--    Building output strings, starting with surface value
529       WRITE ( learde, '(F6.2)' )  lad_surface
530       gradients = '------'
531       slices = '     0'
532       coordinates = '   0.0'
533       i = 1
534       DO  WHILE ( lad_vertical_gradient_level_ind(i) /= -9999 )
535
536          WRITE (coor_chr,'(F7.2)')  lad(lad_vertical_gradient_level_ind(i))
537          learde = TRIM( learde ) // ' ' // TRIM( coor_chr )
538
539          WRITE (coor_chr,'(F7.2)')  lad_vertical_gradient(i)
540          gradients = TRIM( gradients ) // ' ' // TRIM( coor_chr )
541
542          WRITE (coor_chr,'(I7)')  lad_vertical_gradient_level_ind(i)
543          slices = TRIM( slices ) // ' ' // TRIM( coor_chr )
544
545          WRITE (coor_chr,'(F7.1)')  lad_vertical_gradient_level(i)
546          coordinates = TRIM( coordinates ) // ' '  // TRIM( coor_chr )
547
548          i = i + 1
549       ENDDO
550
[153]551       WRITE ( io, 283 )  TRIM( coordinates ), TRIM( learde ), &
[138]552                          TRIM( gradients ), TRIM( slices )
553
554    ENDIF
555
556!
[1]557!-- Boundary conditions
558    IF ( ibc_p_b == 0 )  THEN
559       runten = 'p(0)     = 0      |'
560    ELSEIF ( ibc_p_b == 1 )  THEN
561       runten = 'p(0)     = p(1)   |'
562    ELSE
563       runten = 'p(0)     = p(1) +R|'
564    ENDIF
565    IF ( ibc_p_t == 0 )  THEN
566       roben  = 'p(nzt+1) = 0      |'
567    ELSE
568       roben  = 'p(nzt+1) = p(nzt) |'
569    ENDIF
570
571    IF ( ibc_uv_b == 0 )  THEN
572       runten = TRIM( runten ) // ' uv(0)     = -uv(1)                |'
573    ELSE
574       runten = TRIM( runten ) // ' uv(0)     = uv(1)                 |'
575    ENDIF
[132]576    IF ( TRIM( bc_uv_t ) == 'dirichlet_0' )  THEN
577       roben  = TRIM( roben  ) // ' uv(nzt+1) = 0                     |'
578    ELSEIF ( ibc_uv_t == 0 )  THEN
[1]579       roben  = TRIM( roben  ) // ' uv(nzt+1) = ug(nzt+1), vg(nzt+1)  |'
580    ELSE
581       roben  = TRIM( roben  ) // ' uv(nzt+1) = uv(nzt)               |'
582    ENDIF
583
584    IF ( ibc_pt_b == 0 )  THEN
585       runten = TRIM( runten ) // ' pt(0)   = pt_surface'
[102]586    ELSEIF ( ibc_pt_b == 1 )  THEN
[1]587       runten = TRIM( runten ) // ' pt(0)   = pt(1)'
[102]588    ELSEIF ( ibc_pt_b == 2 )  THEN
589       runten = TRIM( runten ) // ' pt(0) = from coupled model'
[1]590    ENDIF
591    IF ( ibc_pt_t == 0 )  THEN
[19]592       roben  = TRIM( roben  ) // ' pt(nzt+1) = pt_top'
593    ELSEIF( ibc_pt_t == 1 )  THEN
594       roben  = TRIM( roben  ) // ' pt(nzt+1) = pt(nzt)'
595    ELSEIF( ibc_pt_t == 2 )  THEN
596       roben  = TRIM( roben  ) // ' pt(nzt+1) = pt(nzt) + dpt/dz_ini'
[667]597
[1]598    ENDIF
599
600    WRITE ( io, 300 )  runten, roben
601
602    IF ( .NOT. constant_diffusion )  THEN
603       IF ( ibc_e_b == 1 )  THEN
604          runten = 'e(0)     = e(1)'
605       ELSE
606          runten = 'e(0)     = e(1) = (u*/0.1)**2'
607       ENDIF
608       roben = 'e(nzt+1) = e(nzt) = e(nzt-1)'
609
[97]610       WRITE ( io, 301 )  'e', runten, roben       
[1]611
612    ENDIF
613
[97]614    IF ( ocean )  THEN
615       runten = 'sa(0)    = sa(1)'
616       IF ( ibc_sa_t == 0 )  THEN
617          roben =  'sa(nzt+1) = sa_surface'
[1]618       ELSE
[97]619          roben =  'sa(nzt+1) = sa(nzt)'
[1]620       ENDIF
[97]621       WRITE ( io, 301 ) 'sa', runten, roben
622    ENDIF
[1]623
[97]624    IF ( humidity )  THEN
625       IF ( ibc_q_b == 0 )  THEN
626          runten = 'q(0)     = q_surface'
627       ELSE
628          runten = 'q(0)     = q(1)'
629       ENDIF
630       IF ( ibc_q_t == 0 )  THEN
631          roben =  'q(nzt)   = q_top'
632       ELSE
633          roben =  'q(nzt)   = q(nzt-1) + dq/dz'
634       ENDIF
635       WRITE ( io, 301 ) 'q', runten, roben
636    ENDIF
[1]637
[97]638    IF ( passive_scalar )  THEN
639       IF ( ibc_q_b == 0 )  THEN
640          runten = 's(0)     = s_surface'
641       ELSE
642          runten = 's(0)     = s(1)'
643       ENDIF
644       IF ( ibc_q_t == 0 )  THEN
645          roben =  's(nzt)   = s_top'
646       ELSE
647          roben =  's(nzt)   = s(nzt-1) + ds/dz'
648       ENDIF
649       WRITE ( io, 301 ) 's', runten, roben
[1]650    ENDIF
651
652    IF ( use_surface_fluxes )  THEN
653       WRITE ( io, 303 )
654       IF ( constant_heatflux )  THEN
655          WRITE ( io, 306 )  surface_heatflux
656          IF ( random_heatflux )  WRITE ( io, 307 )
657       ENDIF
[75]658       IF ( humidity  .AND.  constant_waterflux )  THEN
[1]659          WRITE ( io, 311 ) surface_waterflux
660       ENDIF
661       IF ( passive_scalar  .AND.  constant_waterflux )  THEN
662          WRITE ( io, 313 ) surface_waterflux
663       ENDIF
664    ENDIF
665
[19]666    IF ( use_top_fluxes )  THEN
667       WRITE ( io, 304 )
[102]668       IF ( coupling_mode == 'uncoupled' )  THEN
[151]669          WRITE ( io, 320 )  top_momentumflux_u, top_momentumflux_v
[102]670          IF ( constant_top_heatflux )  THEN
671             WRITE ( io, 306 )  top_heatflux
672          ENDIF
673       ELSEIF ( coupling_mode == 'ocean_to_atmosphere' )  THEN
674          WRITE ( io, 316 )
[19]675       ENDIF
[97]676       IF ( ocean  .AND.  constant_top_salinityflux )  THEN
677          WRITE ( io, 309 )  top_salinityflux
678       ENDIF
[75]679       IF ( humidity  .OR.  passive_scalar )  THEN
[19]680          WRITE ( io, 315 )
681       ENDIF
682    ENDIF
683
[1]684    IF ( prandtl_layer )  THEN
[667]685       WRITE ( io, 305 )  (zu(1)-zu(0)), roughness_length, kappa, &
[94]686                          rif_min, rif_max
[1]687       IF ( .NOT. constant_heatflux )  WRITE ( io, 308 )
[75]688       IF ( humidity  .AND.  .NOT. constant_waterflux )  THEN
[1]689          WRITE ( io, 312 )
690       ENDIF
691       IF ( passive_scalar  .AND.  .NOT. constant_waterflux )  THEN
692          WRITE ( io, 314 )
693       ENDIF
694    ELSE
695       IF ( INDEX(initializing_actions, 'set_1d-model_profiles') /= 0 )  THEN
696          WRITE ( io, 310 )  rif_min, rif_max
697       ENDIF
698    ENDIF
699
700    WRITE ( io, 317 )  bc_lr, bc_ns
[707]701    IF ( .NOT. bc_lr_cyc  .OR.  .NOT. bc_ns_cyc )  THEN
[1]702       WRITE ( io, 318 )  outflow_damping_width, km_damp_max
[151]703       IF ( turbulent_inflow )  THEN
704          WRITE ( io, 319 )  recycling_width, recycling_plane, &
705                             inflow_damping_height, inflow_damping_width
706       ENDIF
[1]707    ENDIF
708
709!
710!-- Listing of 1D-profiles
[151]711    WRITE ( io, 325 )  dt_dopr_listing
[1]712    IF ( averaging_interval_pr /= 0.0 )  THEN
[151]713       WRITE ( io, 326 )  averaging_interval_pr, dt_averaging_input_pr
[1]714    ENDIF
715
716!
717!-- DATA output
718    WRITE ( io, 330 )
719    IF ( averaging_interval_pr /= 0.0 )  THEN
[151]720       WRITE ( io, 326 )  averaging_interval_pr, dt_averaging_input_pr
[1]721    ENDIF
722
723!
724!-- 1D-profiles
[346]725    dopr_chr = 'Profile:'
[1]726    IF ( dopr_n /= 0 )  THEN
727       WRITE ( io, 331 )
728
729       output_format = ''
730       IF ( netcdf_output )  THEN
[493]731          IF ( netcdf_data_format == 1 )  THEN
732             output_format = 'NetCDF classic'
[1]733          ELSE
[493]734             output_format = 'NetCDF 64bit offset'
[1]735          ENDIF
736       ENDIF
737       IF ( profil_output )  THEN
738          IF ( netcdf_output )  THEN
739             output_format = TRIM( output_format ) // ' and profil'
740          ELSE
741             output_format = 'profil'
742          ENDIF
743       ENDIF
[292]744       WRITE ( io, 344 )  output_format
[1]745
746       DO  i = 1, dopr_n
747          dopr_chr = TRIM( dopr_chr ) // ' ' // TRIM( data_output_pr(i) ) // ','
748          IF ( LEN_TRIM( dopr_chr ) >= 60 )  THEN
749             WRITE ( io, 332 )  dopr_chr
750             dopr_chr = '       :'
751          ENDIF
752       ENDDO
753
754       IF ( dopr_chr /= '' )  THEN
755          WRITE ( io, 332 )  dopr_chr
756       ENDIF
757       WRITE ( io, 333 )  dt_dopr, averaging_interval_pr, dt_averaging_input_pr
758       IF ( skip_time_dopr /= 0.0 )  WRITE ( io, 339 )  skip_time_dopr
759    ENDIF
760
761!
762!-- 2D-arrays
763    DO  av = 0, 1
764
765       i = 1
766       do2d_xy = ''
767       do2d_xz = ''
768       do2d_yz = ''
769       DO  WHILE ( do2d(av,i) /= ' ' )
770
771          l = MAX( 2, LEN_TRIM( do2d(av,i) ) )
772          do2d_mode = do2d(av,i)(l-1:l)
773
774          SELECT CASE ( do2d_mode )
775             CASE ( 'xy' )
776                ll = LEN_TRIM( do2d_xy )
777                do2d_xy = do2d_xy(1:ll) // ' ' // do2d(av,i)(1:l-3) // ','
778             CASE ( 'xz' )
779                ll = LEN_TRIM( do2d_xz )
780                do2d_xz = do2d_xz(1:ll) // ' ' // do2d(av,i)(1:l-3) // ','
781             CASE ( 'yz' )
782                ll = LEN_TRIM( do2d_yz )
783                do2d_yz = do2d_yz(1:ll) // ' ' // do2d(av,i)(1:l-3) // ','
784          END SELECT
785
786          i = i + 1
787
788       ENDDO
789
790       IF ( ( ( do2d_xy /= ''  .AND.  section(1,1) /= -9999 )  .OR.    &
791              ( do2d_xz /= ''  .AND.  section(1,2) /= -9999 )  .OR.    &
792              ( do2d_yz /= ''  .AND.  section(1,3) /= -9999 ) )  .AND. &
793            ( netcdf_output  .OR.  iso2d_output ) )  THEN
794
795          IF (  av == 0 )  THEN
796             WRITE ( io, 334 )  ''
797          ELSE
798             WRITE ( io, 334 )  '(time-averaged)'
799          ENDIF
800
801          IF ( do2d_at_begin )  THEN
802             begin_chr = 'and at the start'
803          ELSE
804             begin_chr = ''
805          ENDIF
806
807          output_format = ''
808          IF ( netcdf_output )  THEN
[493]809             IF ( netcdf_data_format == 1 )  THEN
810                output_format = 'NetCDF classic'
811             ELSEIF ( netcdf_data_format == 2 )  THEN
812                output_format = 'NetCDF 64bit offset'
813             ELSEIF ( netcdf_data_format == 3 )  THEN
814                output_format = 'NetCDF4/HDF5'
815             ELSEIF ( netcdf_data_format == 4 )  THEN
816                output_format = 'NetCDF4/HDF5 clasic'
[1]817             ENDIF
818          ENDIF
819          IF ( iso2d_output )  THEN
820             IF ( netcdf_output )  THEN
821                output_format = TRIM( output_format ) // ' and iso2d'
822             ELSE
823                output_format = 'iso2d'
824             ENDIF
825          ENDIF
[292]826          WRITE ( io, 344 )  output_format
[1]827
828          IF ( do2d_xy /= ''  .AND.  section(1,1) /= -9999 )  THEN
829             i = 1
830             slices = '/'
831             coordinates = '/'
832!
833!--          Building strings with index and coordinate informations of the
834!--          slices
835             DO  WHILE ( section(i,1) /= -9999 )
836
837                WRITE (section_chr,'(I5)')  section(i,1)
838                section_chr = ADJUSTL( section_chr )
839                slices = TRIM( slices ) // TRIM( section_chr ) // '/'
840
[206]841                IF ( section(i,1) == -1 )  THEN
842                   WRITE (coor_chr,'(F10.1)')  -1.0
843                ELSE
844                   WRITE (coor_chr,'(F10.1)')  zu(section(i,1))
845                ENDIF
[1]846                coor_chr = ADJUSTL( coor_chr )
847                coordinates = TRIM( coordinates ) // TRIM( coor_chr ) // '/'
848
849                i = i + 1
850             ENDDO
851             IF ( av == 0 )  THEN
852                WRITE ( io, 335 )  'XY', do2d_xy, dt_do2d_xy, &
853                                   TRIM( begin_chr ), 'k', TRIM( slices ), &
854                                   TRIM( coordinates )
855                IF ( skip_time_do2d_xy /= 0.0 )  THEN
856                   WRITE ( io, 339 )  skip_time_do2d_xy
857                ENDIF
858             ELSE
859                WRITE ( io, 342 )  'XY', do2d_xy, dt_data_output_av, &
860                                   TRIM( begin_chr ), averaging_interval, &
861                                   dt_averaging_input, 'k', TRIM( slices ), &
862                                   TRIM( coordinates )
863                IF ( skip_time_data_output_av /= 0.0 )  THEN
864                   WRITE ( io, 339 )  skip_time_data_output_av
865                ENDIF
866             ENDIF
867
868          ENDIF
869
870          IF ( do2d_xz /= ''  .AND.  section(1,2) /= -9999 )  THEN
871             i = 1
872             slices = '/'
873             coordinates = '/'
874!
875!--          Building strings with index and coordinate informations of the
876!--          slices
877             DO  WHILE ( section(i,2) /= -9999 )
878
879                WRITE (section_chr,'(I5)')  section(i,2)
880                section_chr = ADJUSTL( section_chr )
881                slices = TRIM( slices ) // TRIM( section_chr ) // '/'
882
883                WRITE (coor_chr,'(F10.1)')  section(i,2) * dy
884                coor_chr = ADJUSTL( coor_chr )
885                coordinates = TRIM( coordinates ) // TRIM( coor_chr ) // '/'
886
887                i = i + 1
888             ENDDO
889             IF ( av == 0 )  THEN
890                WRITE ( io, 335 )  'XZ', do2d_xz, dt_do2d_xz, &
891                                   TRIM( begin_chr ), 'j', TRIM( slices ), &
892                                   TRIM( coordinates )
893                IF ( skip_time_do2d_xz /= 0.0 )  THEN
894                   WRITE ( io, 339 )  skip_time_do2d_xz
895                ENDIF
896             ELSE
897                WRITE ( io, 342 )  'XZ', do2d_xz, dt_data_output_av, &
898                                   TRIM( begin_chr ), averaging_interval, &
899                                   dt_averaging_input, 'j', TRIM( slices ), &
900                                   TRIM( coordinates )
901                IF ( skip_time_data_output_av /= 0.0 )  THEN
902                   WRITE ( io, 339 )  skip_time_data_output_av
903                ENDIF
904             ENDIF
905          ENDIF
906
907          IF ( do2d_yz /= ''  .AND.  section(1,3) /= -9999 )  THEN
908             i = 1
909             slices = '/'
910             coordinates = '/'
911!
912!--          Building strings with index and coordinate informations of the
913!--          slices
914             DO  WHILE ( section(i,3) /= -9999 )
915
916                WRITE (section_chr,'(I5)')  section(i,3)
917                section_chr = ADJUSTL( section_chr )
918                slices = TRIM( slices ) // TRIM( section_chr ) // '/'
919
920                WRITE (coor_chr,'(F10.1)')  section(i,3) * dx
921                coor_chr = ADJUSTL( coor_chr )
922                coordinates = TRIM( coordinates ) // TRIM( coor_chr ) // '/'
923
924                i = i + 1
925             ENDDO
926             IF ( av == 0 )  THEN
927                WRITE ( io, 335 )  'YZ', do2d_yz, dt_do2d_yz, &
928                                   TRIM( begin_chr ), 'i', TRIM( slices ), &
929                                   TRIM( coordinates )
930                IF ( skip_time_do2d_yz /= 0.0 )  THEN
931                   WRITE ( io, 339 )  skip_time_do2d_yz
932                ENDIF
933             ELSE
934                WRITE ( io, 342 )  'YZ', do2d_yz, dt_data_output_av, &
935                                   TRIM( begin_chr ), averaging_interval, &
936                                   dt_averaging_input, 'i', TRIM( slices ), &
937                                   TRIM( coordinates )
938                IF ( skip_time_data_output_av /= 0.0 )  THEN
939                   WRITE ( io, 339 )  skip_time_data_output_av
940                ENDIF
941             ENDIF
942          ENDIF
943
944       ENDIF
945
946    ENDDO
947
948!
949!-- 3d-arrays
950    DO  av = 0, 1
951
952       i = 1
953       do3d_chr = ''
954       DO  WHILE ( do3d(av,i) /= ' ' )
955
956          do3d_chr = TRIM( do3d_chr ) // ' ' // TRIM( do3d(av,i) ) // ','
957          i = i + 1
958
959       ENDDO
960
961       IF ( do3d_chr /= '' )  THEN
962          IF ( av == 0 )  THEN
963             WRITE ( io, 336 )  ''
964          ELSE
965             WRITE ( io, 336 )  '(time-averaged)'
966          ENDIF
967
968          output_format = ''
969          IF ( netcdf_output )  THEN
[493]970             IF ( netcdf_data_format == 1 )  THEN
971                output_format = 'NetCDF classic'
972             ELSEIF ( netcdf_data_format == 2 )  THEN
973                output_format = 'NetCDF 64bit offset'
974             ELSEIF ( netcdf_data_format == 3 )  THEN
975                output_format = 'NetCDF4/HDF5'
976             ELSEIF ( netcdf_data_format == 4 )  THEN
977                output_format = 'NetCDF4/HDF5 clasic'
[1]978             ENDIF
979          ENDIF
980          IF ( avs_output )  THEN
981             IF ( netcdf_output )  THEN
982                output_format = TRIM( output_format ) // ' and avs'
983             ELSE
984                output_format = 'avs'
985             ENDIF
986          ENDIF
[292]987          WRITE ( io, 344 )  output_format
[1]988
989          IF ( do3d_at_begin )  THEN
990             begin_chr = 'and at the start'
991          ELSE
992             begin_chr = ''
993          ENDIF
994          IF ( av == 0 )  THEN
995             WRITE ( io, 337 )  do3d_chr, dt_do3d, TRIM( begin_chr ), &
996                                zu(nz_do3d), nz_do3d
997          ELSE
998             WRITE ( io, 343 )  do3d_chr, dt_data_output_av,           &
999                                TRIM( begin_chr ), averaging_interval, &
1000                                dt_averaging_input, zu(nz_do3d), nz_do3d
1001          ENDIF
1002
1003          IF ( do3d_compress )  THEN
1004             do3d_chr = ''
1005             i = 1
1006             DO WHILE ( do3d(av,i) /= ' ' )
1007
1008                SELECT CASE ( do3d(av,i) )
1009                   CASE ( 'u' )
1010                      j = 1
1011                   CASE ( 'v' )
1012                      j = 2
1013                   CASE ( 'w' )
1014                      j = 3
1015                   CASE ( 'p' )
1016                      j = 4
1017                   CASE ( 'pt' )
1018                      j = 5
1019                END SELECT
1020                WRITE ( prec, '(I1)' )  plot_3d_precision(j)%precision
1021                do3d_chr = TRIM( do3d_chr ) // ' ' // TRIM( do3d(av,i) ) // &
1022                           ':' // prec // ','
1023                i = i + 1
1024
1025             ENDDO
1026             WRITE ( io, 338 )  do3d_chr
1027
1028          ENDIF
1029
1030          IF ( av == 0 )  THEN
1031             IF ( skip_time_do3d /= 0.0 )  THEN
1032                WRITE ( io, 339 )  skip_time_do3d
1033             ENDIF
1034          ELSE
1035             IF ( skip_time_data_output_av /= 0.0 )  THEN
1036                WRITE ( io, 339 )  skip_time_data_output_av
1037             ENDIF
1038          ENDIF
1039
1040       ENDIF
1041
1042    ENDDO
1043
1044!
[410]1045!-- masked arrays
1046    IF ( masks > 0 )  WRITE ( io, 345 )  &
1047         mask_scale_x, mask_scale_y, mask_scale_z
1048    DO  mid = 1, masks
1049       DO  av = 0, 1
1050
1051          i = 1
1052          domask_chr = ''
1053          DO  WHILE ( domask(mid,av,i) /= ' ' )
1054             domask_chr = TRIM( domask_chr ) // ' ' //  &
1055                          TRIM( domask(mid,av,i) ) // ','
1056             i = i + 1
1057          ENDDO
1058
1059          IF ( domask_chr /= '' )  THEN
1060             IF ( av == 0 )  THEN
1061                WRITE ( io, 346 )  '', mid
1062             ELSE
1063                WRITE ( io, 346 )  ' (time-averaged)', mid
1064             ENDIF
1065
1066             output_format = ''
1067             IF ( netcdf_output )  THEN
[493]1068                IF ( netcdf_data_format == 1 )  THEN
1069                   output_format = 'NetCDF classic'
1070                ELSEIF ( netcdf_data_format == 2 )  THEN
1071                   output_format = 'NetCDF 64bit offset'
1072                ELSEIF ( netcdf_data_format == 3 )  THEN
1073                   output_format = 'NetCDF4/HDF5'
1074                ELSEIF ( netcdf_data_format == 4 )  THEN
1075                   output_format = 'NetCDF4/HDF5 clasic'
1076                ENDIF
[410]1077             ENDIF
1078             WRITE ( io, 344 )  output_format
1079
1080             IF ( av == 0 )  THEN
1081                WRITE ( io, 347 )  domask_chr, dt_domask(mid)
1082             ELSE
1083                WRITE ( io, 348 )  domask_chr, dt_data_output_av, &
1084                                   averaging_interval, dt_averaging_input
1085             ENDIF
1086
1087             IF ( av == 0 )  THEN
1088                IF ( skip_time_domask(mid) /= 0.0 )  THEN
1089                   WRITE ( io, 339 )  skip_time_domask(mid)
1090                ENDIF
1091             ELSE
1092                IF ( skip_time_data_output_av /= 0.0 )  THEN
1093                   WRITE ( io, 339 )  skip_time_data_output_av
1094                ENDIF
1095             ENDIF
1096!
1097!--          output locations
1098             DO  dim = 1, 3
1099                IF ( mask(mid,dim,1) >= 0.0 )  THEN
1100                   count = 0
1101                   DO  WHILE ( mask(mid,dim,count+1) >= 0.0 )
1102                      count = count + 1
1103                   ENDDO
1104                   WRITE ( io, 349 )  dir(dim), dir(dim), mid, dir(dim), &
1105                                      mask(mid,dim,:count)
1106                ELSEIF ( mask_loop(mid,dim,1) < 0.0 .AND.  &
1107                         mask_loop(mid,dim,2) < 0.0 .AND.  &
1108                         mask_loop(mid,dim,3) == 0.0 )  THEN
1109                   WRITE ( io, 350 )  dir(dim), dir(dim)
1110                ELSEIF ( mask_loop(mid,dim,3) == 0.0 )  THEN
1111                   WRITE ( io, 351 )  dir(dim), dir(dim), mid, dir(dim), &
1112                                      mask_loop(mid,dim,1:2)
1113                ELSE
1114                   WRITE ( io, 351 )  dir(dim), dir(dim), mid, dir(dim), &
1115                                      mask_loop(mid,dim,1:3)
1116                ENDIF
1117             ENDDO
1118          ENDIF
1119
1120       ENDDO
1121    ENDDO
1122
1123!
[1]1124!-- Timeseries
1125    IF ( dt_dots /= 9999999.9 )  THEN
1126       WRITE ( io, 340 )
1127
1128       output_format = ''
1129       IF ( netcdf_output )  THEN
[493]1130          IF ( netcdf_data_format == 1 )  THEN
1131             output_format = 'NetCDF classic'
[1]1132          ELSE
[493]1133             output_format = 'NetCDF 64bit offset'
[1]1134          ENDIF
1135       ENDIF
1136       IF ( profil_output )  THEN
1137          IF ( netcdf_output )  THEN
1138             output_format = TRIM( output_format ) // ' and profil'
1139          ELSE
1140             output_format = 'profil'
1141          ENDIF
1142       ENDIF
[292]1143       WRITE ( io, 344 )  output_format
[1]1144       WRITE ( io, 341 )  dt_dots
1145    ENDIF
1146
1147#if defined( __dvrp_graphics )
1148!
1149!-- Dvrp-output
1150    IF ( dt_dvrp /= 9999999.9 )  THEN
1151       WRITE ( io, 360 )  dt_dvrp, TRIM( dvrp_output ), TRIM( dvrp_host ), &
1152                          TRIM( dvrp_username ), TRIM( dvrp_directory )
1153       i = 1
1154       l = 0
[336]1155       m = 0
[1]1156       DO WHILE ( mode_dvrp(i) /= ' ' )
1157          IF ( mode_dvrp(i)(1:10) == 'isosurface' )  THEN
[130]1158             READ ( mode_dvrp(i), '(10X,I2)' )  j
[1]1159             l = l + 1
1160             IF ( do3d(0,j) /= ' ' )  THEN
[336]1161                WRITE ( io, 361 )  TRIM( do3d(0,j) ), threshold(l), &
1162                                   isosurface_color(:,l)
[1]1163             ENDIF
1164          ELSEIF ( mode_dvrp(i)(1:6) == 'slicer' )  THEN
[130]1165             READ ( mode_dvrp(i), '(6X,I2)' )  j
[336]1166             m = m + 1
1167             IF ( do2d(0,j) /= ' ' )  THEN
1168                WRITE ( io, 362 )  TRIM( do2d(0,j) ), &
1169                                   slicer_range_limits_dvrp(:,m)
1170             ENDIF
[1]1171          ELSEIF ( mode_dvrp(i)(1:9) == 'particles' )  THEN
[336]1172             WRITE ( io, 363 )  dvrp_psize
1173             IF ( particle_dvrpsize /= 'none' )  THEN
1174                WRITE ( io, 364 )  'size', TRIM( particle_dvrpsize ), &
1175                                   dvrpsize_interval
1176             ENDIF
1177             IF ( particle_color /= 'none' )  THEN
1178                WRITE ( io, 364 )  'color', TRIM( particle_color ), &
1179                                   color_interval
1180             ENDIF
[1]1181          ENDIF
1182          i = i + 1
1183       ENDDO
[237]1184
[336]1185       WRITE ( io, 365 )  groundplate_color, superelevation_x, &
1186                          superelevation_y, superelevation, clip_dvrp_l, &
1187                          clip_dvrp_r, clip_dvrp_s, clip_dvrp_n
1188
1189       IF ( TRIM( topography ) /= 'flat' )  THEN
1190          WRITE ( io, 366 )  topography_color
1191          IF ( cluster_size > 1 )  THEN
1192             WRITE ( io, 367 )  cluster_size
1193          ENDIF
[237]1194       ENDIF
1195
[1]1196    ENDIF
1197#endif
1198
1199#if defined( __spectra )
1200!
1201!-- Spectra output
1202    IF ( dt_dosp /= 9999999.9 ) THEN
1203       WRITE ( io, 370 )
1204
1205       output_format = ''
1206       IF ( netcdf_output )  THEN
[493]1207          IF ( netcdf_data_format == 1 )  THEN
1208             output_format = 'NetCDF classic'
[1]1209          ELSE
[493]1210             output_format = 'NetCDF 64bit offset'
[1]1211          ENDIF
1212       ENDIF
1213       IF ( profil_output )  THEN
1214          IF ( netcdf_output )  THEN
1215             output_format = TRIM( output_format ) // ' and profil'
1216          ELSE
1217             output_format = 'profil'
1218          ENDIF
1219       ENDIF
[292]1220       WRITE ( io, 344 )  output_format
[1]1221       WRITE ( io, 371 )  dt_dosp
1222       IF ( skip_time_dosp /= 0.0 )  WRITE ( io, 339 )  skip_time_dosp
1223       WRITE ( io, 372 )  ( data_output_sp(i), i = 1,10 ),     &
1224                          ( spectra_direction(i), i = 1,10 ),  &
[189]1225                          ( comp_spectra_level(i), i = 1,100 ), &
1226                          ( plot_spectra_level(i), i = 1,100 ), &
[1]1227                          averaging_interval_sp, dt_averaging_input_pr
1228    ENDIF
1229#endif
1230
1231    WRITE ( io, 99 )
1232
1233!
1234!-- Physical quantities
1235    WRITE ( io, 400 )
1236
1237!
1238!-- Geostrophic parameters
1239    WRITE ( io, 410 )  omega, phi, f, fs
1240
1241!
1242!-- Other quantities
1243    WRITE ( io, 411 )  g
[97]1244    IF ( use_reference )  THEN
1245       IF ( ocean )  THEN
1246          WRITE ( io, 412 )  prho_reference
1247       ELSE
1248          WRITE ( io, 413 )  pt_reference
1249       ENDIF
1250    ENDIF
[1]1251
1252!
1253!-- Cloud physics parameters
1254    IF ( cloud_physics ) THEN
[57]1255       WRITE ( io, 415 )
1256       WRITE ( io, 416 ) surface_pressure, r_d, rho_surface, cp, l_v
[1]1257    ENDIF
1258
1259!-- Profile of the geostrophic wind (component ug)
1260!-- Building output strings
1261    WRITE ( ugcomponent, '(F6.2)' )  ug_surface
1262    gradients = '------'
1263    slices = '     0'
1264    coordinates = '   0.0'
1265    i = 1
1266    DO  WHILE ( ug_vertical_gradient_level_ind(i) /= -9999 )
1267     
[167]1268       WRITE (coor_chr,'(F6.2,1X)')  ug(ug_vertical_gradient_level_ind(i))
[1]1269       ugcomponent = TRIM( ugcomponent ) // '  ' // TRIM( coor_chr )
1270
[167]1271       WRITE (coor_chr,'(F6.2,1X)')  ug_vertical_gradient(i)
[1]1272       gradients = TRIM( gradients ) // '  ' // TRIM( coor_chr )
1273
[167]1274       WRITE (coor_chr,'(I6,1X)')  ug_vertical_gradient_level_ind(i)
[1]1275       slices = TRIM( slices ) // '  ' // TRIM( coor_chr )
1276
[167]1277       WRITE (coor_chr,'(F6.1,1X)')  ug_vertical_gradient_level(i)
[1]1278       coordinates = TRIM( coordinates ) // '  ' // TRIM( coor_chr )
1279
[430]1280       IF ( i == 10 )  THEN
1281          EXIT
1282       ELSE
1283          i = i + 1
1284       ENDIF
1285
[1]1286    ENDDO
1287
1288    WRITE ( io, 423 )  TRIM( coordinates ), TRIM( ugcomponent ), &
1289                       TRIM( gradients ), TRIM( slices )
1290
1291!-- Profile of the geostrophic wind (component vg)
1292!-- Building output strings
1293    WRITE ( vgcomponent, '(F6.2)' )  vg_surface
1294    gradients = '------'
1295    slices = '     0'
1296    coordinates = '   0.0'
1297    i = 1
1298    DO  WHILE ( vg_vertical_gradient_level_ind(i) /= -9999 )
1299
[167]1300       WRITE (coor_chr,'(F6.2,1X)')  vg(vg_vertical_gradient_level_ind(i))
[1]1301       vgcomponent = TRIM( vgcomponent ) // '  ' // TRIM( coor_chr )
1302
[167]1303       WRITE (coor_chr,'(F6.2,1X)')  vg_vertical_gradient(i)
[1]1304       gradients = TRIM( gradients ) // '  ' // TRIM( coor_chr )
1305
[167]1306       WRITE (coor_chr,'(I6,1X)')  vg_vertical_gradient_level_ind(i)
[1]1307       slices = TRIM( slices ) // '  ' // TRIM( coor_chr )
1308
[167]1309       WRITE (coor_chr,'(F6.1,1X)')  vg_vertical_gradient_level(i)
[1]1310       coordinates = TRIM( coordinates ) // '  ' // TRIM( coor_chr )
1311
[430]1312       IF ( i == 10 )  THEN
1313          EXIT
1314       ELSE
1315          i = i + 1
1316       ENDIF
1317 
[1]1318    ENDDO
1319
1320    WRITE ( io, 424 )  TRIM( coordinates ), TRIM( vgcomponent ), &
1321                       TRIM( gradients ), TRIM( slices )
1322
1323!
[767]1324!-- Initial wind profiles
1325    IF ( u_profile(1) /= 9999999.9 )  WRITE ( io, 427 )
1326
1327!
[1]1328!-- Initial temperature profile
1329!-- Building output strings, starting with surface temperature
1330    WRITE ( temperatures, '(F6.2)' )  pt_surface
1331    gradients = '------'
1332    slices = '     0'
1333    coordinates = '   0.0'
1334    i = 1
1335    DO  WHILE ( pt_vertical_gradient_level_ind(i) /= -9999 )
1336
[94]1337       WRITE (coor_chr,'(F7.2)')  pt_init(pt_vertical_gradient_level_ind(i))
1338       temperatures = TRIM( temperatures ) // ' ' // TRIM( coor_chr )
[1]1339
[94]1340       WRITE (coor_chr,'(F7.2)')  pt_vertical_gradient(i)
1341       gradients = TRIM( gradients ) // ' ' // TRIM( coor_chr )
[1]1342
[94]1343       WRITE (coor_chr,'(I7)')  pt_vertical_gradient_level_ind(i)
1344       slices = TRIM( slices ) // ' ' // TRIM( coor_chr )
[1]1345
[94]1346       WRITE (coor_chr,'(F7.1)')  pt_vertical_gradient_level(i)
1347       coordinates = TRIM( coordinates ) // ' '  // TRIM( coor_chr )
[1]1348
[430]1349       IF ( i == 10 )  THEN
1350          EXIT
1351       ELSE
1352          i = i + 1
1353       ENDIF
1354
[1]1355    ENDDO
1356
1357    WRITE ( io, 420 )  TRIM( coordinates ), TRIM( temperatures ), &
1358                       TRIM( gradients ), TRIM( slices )
1359
1360!
1361!-- Initial humidity profile
1362!-- Building output strings, starting with surface humidity
[75]1363    IF ( humidity  .OR.  passive_scalar )  THEN
[1]1364       WRITE ( temperatures, '(E8.1)' )  q_surface
1365       gradients = '--------'
1366       slices = '       0'
1367       coordinates = '     0.0'
1368       i = 1
1369       DO  WHILE ( q_vertical_gradient_level_ind(i) /= -9999 )
1370         
1371          WRITE (coor_chr,'(E8.1,4X)')  q_init(q_vertical_gradient_level_ind(i))
1372          temperatures = TRIM( temperatures ) // '  ' // TRIM( coor_chr )
1373
1374          WRITE (coor_chr,'(E8.1,4X)')  q_vertical_gradient(i)
1375          gradients = TRIM( gradients ) // '  ' // TRIM( coor_chr )
1376         
1377          WRITE (coor_chr,'(I8,4X)')  q_vertical_gradient_level_ind(i)
1378          slices = TRIM( slices ) // '  ' // TRIM( coor_chr )
1379         
1380          WRITE (coor_chr,'(F8.1,4X)')  q_vertical_gradient_level(i)
1381          coordinates = TRIM( coordinates ) // '  '  // TRIM( coor_chr )
1382
[430]1383          IF ( i == 10 )  THEN
1384             EXIT
1385          ELSE
1386             i = i + 1
1387          ENDIF
1388
[1]1389       ENDDO
1390
[75]1391       IF ( humidity )  THEN
[1]1392          WRITE ( io, 421 )  TRIM( coordinates ), TRIM( temperatures ), &
1393                             TRIM( gradients ), TRIM( slices )
1394       ELSE
1395          WRITE ( io, 422 )  TRIM( coordinates ), TRIM( temperatures ), &
1396                             TRIM( gradients ), TRIM( slices )
1397       ENDIF
1398    ENDIF
1399
1400!
[97]1401!-- Initial salinity profile
1402!-- Building output strings, starting with surface salinity
1403    IF ( ocean )  THEN
1404       WRITE ( temperatures, '(F6.2)' )  sa_surface
1405       gradients = '------'
1406       slices = '     0'
1407       coordinates = '   0.0'
1408       i = 1
1409       DO  WHILE ( sa_vertical_gradient_level_ind(i) /= -9999 )
1410
1411          WRITE (coor_chr,'(F7.2)')  sa_init(sa_vertical_gradient_level_ind(i))
1412          temperatures = TRIM( temperatures ) // ' ' // TRIM( coor_chr )
1413
1414          WRITE (coor_chr,'(F7.2)')  sa_vertical_gradient(i)
1415          gradients = TRIM( gradients ) // ' ' // TRIM( coor_chr )
1416
1417          WRITE (coor_chr,'(I7)')  sa_vertical_gradient_level_ind(i)
1418          slices = TRIM( slices ) // ' ' // TRIM( coor_chr )
1419
1420          WRITE (coor_chr,'(F7.1)')  sa_vertical_gradient_level(i)
1421          coordinates = TRIM( coordinates ) // ' '  // TRIM( coor_chr )
1422
[430]1423          IF ( i == 10 )  THEN
1424             EXIT
1425          ELSE
1426             i = i + 1
1427          ENDIF
1428
[97]1429       ENDDO
1430
1431       WRITE ( io, 425 )  TRIM( coordinates ), TRIM( temperatures ), &
1432                          TRIM( gradients ), TRIM( slices )
1433    ENDIF
1434
1435!
[411]1436!-- Profile for the large scale vertial velocity
1437!-- Building output strings, starting with surface value
1438    IF ( large_scale_subsidence )  THEN
1439       temperatures = '   0.0'
1440       gradients = '------'
1441       slices = '     0'
1442       coordinates = '   0.0'
1443       i = 1
[580]1444       DO  WHILE ( subs_vertical_gradient_level_i(i) /= -9999 )
[411]1445
1446          WRITE (coor_chr,'(E10.2,7X)')  &
[580]1447                                w_subs(subs_vertical_gradient_level_i(i))
[411]1448          temperatures = TRIM( temperatures ) // ' ' // TRIM( coor_chr )
1449
[580]1450          WRITE (coor_chr,'(E10.2,7X)')  subs_vertical_gradient(i)
[411]1451          gradients = TRIM( gradients ) // ' ' // TRIM( coor_chr )
1452
[580]1453          WRITE (coor_chr,'(I10,7X)')  subs_vertical_gradient_level_i(i)
[411]1454          slices = TRIM( slices ) // ' ' // TRIM( coor_chr )
1455
[580]1456          WRITE (coor_chr,'(F10.2,7X)')  subs_vertical_gradient_level(i)
[411]1457          coordinates = TRIM( coordinates ) // ' '  // TRIM( coor_chr )
1458
[430]1459          IF ( i == 10 )  THEN
1460             EXIT
1461          ELSE
1462             i = i + 1
1463          ENDIF
1464
[411]1465       ENDDO
1466
1467       WRITE ( io, 426 )  TRIM( coordinates ), TRIM( temperatures ), &
1468                          TRIM( gradients ), TRIM( slices )
1469    ENDIF
1470
1471!
[824]1472!-- Cloud physcis parameters / quantities / numerical methods
1473    WRITE ( io, 430 )
1474    IF ( humidity .AND. .NOT. cloud_physics .AND. .NOT. cloud_droplets)  THEN
1475       WRITE ( io, 431 )
1476    ELSEIF ( humidity  .AND.  cloud_physics )  THEN
1477       WRITE ( io, 432 )
1478       IF ( radiation )      WRITE ( io, 132 )
1479       IF ( precipitation )  WRITE ( io, 133 )
1480    ELSEIF ( humidity  .AND.  cloud_droplets )  THEN
1481       WRITE ( io, 433 )
1482       IF ( curvature_solution_effects )  WRITE ( io, 434 )
[825]1483       IF ( collision_kernel /= 'none' )  THEN
1484          WRITE ( io, 435 )  TRIM( collision_kernel )
1485       ELSE
1486          WRITE ( io, 436 )
1487       ENDIF
[824]1488    ENDIF
1489
1490!
[1]1491!-- LES / turbulence parameters
1492    WRITE ( io, 450 )
1493
1494!--
1495! ... LES-constants used must still be added here
1496!--
1497    IF ( constant_diffusion )  THEN
1498       WRITE ( io, 451 )  km_constant, km_constant/prandtl_number, &
1499                          prandtl_number
1500    ENDIF
1501    IF ( .NOT. constant_diffusion)  THEN
[108]1502       IF ( e_init > 0.0 )  WRITE ( io, 455 )  e_init
[1]1503       IF ( e_min > 0.0 )  WRITE ( io, 454 )  e_min
1504       IF ( wall_adjustment )  WRITE ( io, 453 )  wall_adjustment_factor
1505       IF ( adjust_mixing_length  .AND.  prandtl_layer )  WRITE ( io, 452 )
1506    ENDIF
1507
1508!
1509!-- Special actions during the run
1510    WRITE ( io, 470 )
1511    IF ( create_disturbances )  THEN
1512       WRITE ( io, 471 )  dt_disturb, disturbance_amplitude,                   &
1513                          zu(disturbance_level_ind_b), disturbance_level_ind_b,&
1514                          zu(disturbance_level_ind_t), disturbance_level_ind_t
[707]1515       IF ( .NOT. bc_lr_cyc  .OR.  .NOT. bc_ns_cyc )  THEN
[1]1516          WRITE ( io, 472 )  inflow_disturbance_begin, inflow_disturbance_end
1517       ELSE
1518          WRITE ( io, 473 )  disturbance_energy_limit
1519       ENDIF
1520       WRITE ( io, 474 )  TRIM( random_generator )
1521    ENDIF
1522    IF ( pt_surface_initial_change /= 0.0 )  THEN
1523       WRITE ( io, 475 )  pt_surface_initial_change
1524    ENDIF
[75]1525    IF ( humidity  .AND.  q_surface_initial_change /= 0.0 )  THEN
[1]1526       WRITE ( io, 476 )  q_surface_initial_change       
1527    ENDIF
1528    IF ( passive_scalar  .AND.  q_surface_initial_change /= 0.0 )  THEN
1529       WRITE ( io, 477 )  q_surface_initial_change       
1530    ENDIF
1531
[60]1532    IF ( particle_advection )  THEN
[1]1533!
[60]1534!--    Particle attributes
1535       WRITE ( io, 480 )  particle_advection_start, dt_prel, bc_par_lr, &
1536                          bc_par_ns, bc_par_b, bc_par_t, particle_maximum_age, &
[117]1537                          end_time_prel, dt_sort_particles
[60]1538       IF ( use_sgs_for_particles )  WRITE ( io, 488 )  dt_min_part
1539       IF ( random_start_position )  WRITE ( io, 481 )
1540       IF ( particles_per_point > 1 )  WRITE ( io, 489 )  particles_per_point
1541       WRITE ( io, 495 )  total_number_of_particles
[824]1542       IF ( use_particle_tails  .AND.  maximum_number_of_tailpoints /= 0 )  THEN
[60]1543          WRITE ( io, 483 )  maximum_number_of_tailpoints
1544          IF ( minimum_tailpoint_distance /= 0 )  THEN
1545             WRITE ( io, 484 )  total_number_of_tails,      &
1546                                minimum_tailpoint_distance, &
1547                                maximum_tailpoint_age
1548          ENDIF
[1]1549       ENDIF
[60]1550       IF ( dt_write_particle_data /= 9999999.9 )  THEN
1551          WRITE ( io, 485 )  dt_write_particle_data
1552          output_format = ''
1553          IF ( netcdf_output )  THEN
[493]1554             IF ( netcdf_data_format > 1 )  THEN
[60]1555                output_format = 'netcdf (64 bit offset) and binary'
1556             ELSE
1557                output_format = 'netcdf and binary'
1558             ENDIF
[1]1559          ELSE
[60]1560             output_format = 'binary'
[1]1561          ENDIF
[292]1562          WRITE ( io, 344 )  output_format
[1]1563       ENDIF
[60]1564       IF ( dt_dopts /= 9999999.9 )  WRITE ( io, 494 )  dt_dopts
1565       IF ( write_particle_statistics )  WRITE ( io, 486 )
[1]1566
[60]1567       WRITE ( io, 487 )  number_of_particle_groups
[1]1568
[60]1569       DO  i = 1, number_of_particle_groups
1570          IF ( i == 1  .AND.  density_ratio(i) == 9999999.9 )  THEN
1571             WRITE ( io, 490 )  i, 0.0
1572             WRITE ( io, 492 )
[1]1573          ELSE
[60]1574             WRITE ( io, 490 )  i, radius(i)
1575             IF ( density_ratio(i) /= 0.0 )  THEN
1576                WRITE ( io, 491 )  density_ratio(i)
1577             ELSE
1578                WRITE ( io, 492 )
1579             ENDIF
[1]1580          ENDIF
[60]1581          WRITE ( io, 493 )  psl(i), psr(i), pss(i), psn(i), psb(i), pst(i), &
1582                             pdx(i), pdy(i), pdz(i)
[336]1583          IF ( .NOT. vertical_particle_advection(i) )  WRITE ( io, 482 )
[60]1584       ENDDO
[1]1585
[60]1586    ENDIF
[1]1587
[60]1588
[1]1589!
1590!-- Parameters of 1D-model
1591    IF ( INDEX( initializing_actions, 'set_1d-model_profiles' ) /= 0 )  THEN
1592       WRITE ( io, 500 )  end_time_1d, dt_run_control_1d, dt_pr_1d, &
1593                          mixing_length_1d, dissipation_1d
1594       IF ( damp_level_ind_1d /= nzt+1 )  THEN
1595          WRITE ( io, 502 )  zu(damp_level_ind_1d), damp_level_ind_1d
1596       ENDIF
1597    ENDIF
1598
1599!
1600!-- User-defined informations
1601    CALL user_header( io )
1602
1603    WRITE ( io, 99 )
1604
1605!
1606!-- Write buffer contents to disc immediately
[82]1607    CALL local_flush( io )
[1]1608
1609!
1610!-- Here the FORMATs start
1611
1612 99 FORMAT (1X,78('-'))
[200]1613100 FORMAT (/1X,'***************************',9X,42('-')/        &
1614            1X,'* ',A,' *',9X,A/                               &
1615            1X,'***************************',9X,42('-'))
[291]1616101 FORMAT (37X,'coupled run using MPI-',I1,': ',A/ &
[102]1617            37X,42('-'))
[200]1618102 FORMAT (/' Date:              ',A8,9X,'Run:       ',A20/      &
1619            ' Time:              ',A8,9X,'Run-No.:   ',I2.2/     &
1620            ' Run on host:     ',A10)
[1]1621#if defined( __parallel )
[200]1622103 FORMAT (' Number of PEs:',8X,I5,9X,'Processor grid (x,y): (',I3,',',I3, &
[1]1623              ')',1X,A)
[200]1624104 FORMAT (' Number of PEs:',8X,I5,9X,'Tasks:',I4,'   threads per task:',I4/ &
[1]1625              37X,'Processor grid (x,y): (',I3,',',I3,')',1X,A)
[102]1626105 FORMAT (37X,'One additional PE is used to handle'/37X,'the dvrp output!')
1627106 FORMAT (37X,'A 1d-decomposition along x is forced'/ &
[1]1628            37X,'because the job is running on an SMP-cluster')
[102]1629107 FORMAT (37X,'A 1d-decomposition along ',A,' is used')
[759]1630108 FORMAT (37X,'Max. # of parallel I/O streams is ',I5)
[1]1631#endif
1632110 FORMAT (/' Numerical Schemes:'/ &
1633             ' -----------------'/)
1634111 FORMAT (' --> Solve perturbation pressure via FFT using ',A,' routines')
1635112 FORMAT (' --> Solve perturbation pressure via SOR-Red/Black-Schema'/ &
1636            '     Iterations (initial/other): ',I3,'/',I3,'  omega = ',F5.3)
1637113 FORMAT (' --> Momentum advection via Piascek-Williams-Scheme (Form C3)', &
1638                  ' or Upstream')
1639114 FORMAT (' --> Momentum advection via Upstream-Spline-Scheme')
1640115 FORMAT ('     Tendencies are smoothed via Long-Filter with factor ',F5.3) 
1641116 FORMAT (' --> Scalar advection via Piascek-Williams-Scheme (Form C3)', &
1642                  ' or Upstream')
1643117 FORMAT (' --> Scalar advection via Upstream-Spline-Scheme')
1644118 FORMAT (' --> Scalar advection via Bott-Chlond-Scheme')
1645119 FORMAT (' --> Galilei-Transform applied to horizontal advection', &
1646            '     Translation velocity = ',A/ &
1647            '     distance advected ',A,':  ',F8.3,' km(x)  ',F8.3,' km(y)')
1648120 FORMAT (' --> Time differencing scheme: leapfrog only (no euler in case', &
1649                  ' of timestep changes)')
1650121 FORMAT (' --> Time differencing scheme: leapfrog + euler in case of', &
1651                  ' timestep changes')
1652122 FORMAT (' --> Time differencing scheme: ',A)
[108]1653123 FORMAT (' --> Rayleigh-Damping active, starts ',A,' z = ',F8.2,' m'/ &
[1]1654            '     maximum damping coefficient: ',F5.3, ' 1/s')
1655124 FORMAT ('     Spline-overshoots are being suppressed')
1656125 FORMAT ('     Upstream-Scheme is used if Upstream-differences fall short', &
1657                  ' of'/                                                       &
1658            '     delta_u = ',F6.4,4X,'delta_v = ',F6.4,4X,'delta_w = ',F6.4)
1659126 FORMAT ('     Upstream-Scheme is used if Upstream-differences fall short', &
1660                  ' of'/                                                       &
1661            '     delta_e = ',F6.4,4X,'delta_pt = ',F6.4)
1662127 FORMAT ('     The following absolute overshoot differences are tolerated:'/&
1663            '     delta_u = ',F6.4,4X,'delta_v = ',F6.4,4X,'delta_w = ',F6.4)
1664128 FORMAT ('     The following absolute overshoot differences are tolerated:'/&
1665            '     delta_e = ',F6.4,4X,'delta_pt = ',F6.4)
1666129 FORMAT (' --> Additional prognostic equation for the specific humidity')
1667130 FORMAT (' --> Additional prognostic equation for the total water content')
[824]1668132 FORMAT ('     Parameterization of long-wave radiation processes via'/ &
[1]1669            '     effective emissivity scheme')
[824]1670133 FORMAT ('     Precipitation parameterization via Kessler-Scheme')
[1]1671134 FORMAT (' --> Additional prognostic equation for a passive scalar')
1672135 FORMAT (' --> Solve perturbation pressure via multigrid method (', &
1673                  A,'-cycle)'/ &
1674            '     number of grid levels:                   ',I2/ &
1675            '     Gauss-Seidel red/black iterations:       ',I2)
1676136 FORMAT ('     gridpoints of coarsest subdomain (x,y,z): (',I3,',',I3,',', &
1677                  I3,')')
1678137 FORMAT ('     level data gathered on PE0 at level:     ',I2/ &
1679            '     gridpoints of coarsest subdomain (x,y,z): (',I3,',',I3,',', &
1680                  I3,')'/ &
1681            '     gridpoints of coarsest domain (x,y,z):    (',I3,',',I3,',', &
1682                  I3,')')
1683138 FORMAT ('     Using hybrid version for 1d-domain-decomposition')
[63]1684139 FORMAT (' --> Loop optimization method: ',A)
[1]1685140 FORMAT ('     maximum residual allowed:                ',E10.3)
1686141 FORMAT ('     fixed number of multigrid cycles:        ',I4)
1687142 FORMAT ('     perturbation pressure is calculated at every Runge-Kutta ', &
1688                  'step')
[87]1689143 FORMAT ('     Euler/upstream scheme is used for the SGS turbulent ', &
1690                  'kinetic energy')
[1]1691150 FORMAT (' --> Volume flow at the right and north boundary will be ', &
[241]1692                  'conserved'/ &
1693            '     using the ',A,' mode')
1694151 FORMAT ('     with u_bulk = ',F7.3,' m/s and v_bulk = ',F7.3,' m/s')
[306]1695152 FORMAT (' --> External pressure gradient directly prescribed by the user:',&
1696           /'     ',2(1X,E12.5),'Pa/m in x/y direction', &
1697           /'     starting from dp_level_b =', F8.3, 'm', A /)
[411]1698153 FORMAT (' --> Large-scale vertical motion is used in the ', &
1699                  'prognostic equation for')
1700154 FORMAT ('     the potential temperature')
[1]1701200 FORMAT (//' Run time and time step information:'/ &
1702             ' ----------------------------------'/)
1703201 FORMAT ( ' Timestep:          variable     maximum value: ',F6.3,' s', &
1704             '    CFL-factor: ',F4.2)
1705202 FORMAT ( ' Timestep:       dt = ',F6.3,' s'/)
1706203 FORMAT ( ' Start time:       ',F9.3,' s'/ &
1707             ' End time:         ',F9.3,' s')
1708204 FORMAT ( A,F9.3,' s')
1709205 FORMAT ( A,F9.3,' s',5X,'restart every',17X,F9.3,' s')
1710206 FORMAT (/' Time reached:     ',F9.3,' s'/ &
1711             ' CPU-time used:    ',F9.3,' s     per timestep:               ', &
1712               '  ',F9.3,' s'/                                                 &
1713             '                                   per second of simulated tim', &
1714               'e: ',F9.3,' s')
[291]1715207 FORMAT ( A/' Coupling start time:',F9.3,' s')
[1]1716250 FORMAT (//' Computational grid and domain size:'/ &
1717              ' ----------------------------------'// &
1718              ' Grid length:      dx =    ',F7.3,' m    dy =    ',F7.3, &
1719              ' m    dz =    ',F7.3,' m'/ &
1720              ' Domain size:       x = ',F10.3,' m     y = ',F10.3, &
1721              ' m  z(u) = ',F10.3,' m'/)
1722252 FORMAT (' dz constant up to ',F10.3,' m (k=',I4,'), then stretched by', &
1723              ' factor: ',F5.3/ &
1724            ' maximum dz not to be exceeded is dz_max = ',F10.3,' m'/)
1725254 FORMAT (' Number of gridpoints (x,y,z):  (0:',I4,', 0:',I4,', 0:',I4,')'/ &
1726            ' Subdomain size (x,y,z):        (  ',I4,',   ',I4,',   ',I4,')'/)
1727255 FORMAT (' Subdomains have equal size')
1728256 FORMAT (' Subdomains at the upper edges of the virtual processor grid ', &
1729              'have smaller sizes'/                                          &
1730            ' Size of smallest subdomain:    (  ',I4,',   ',I4,',   ',I4,')')
1731260 FORMAT (/' The model has a slope in x-direction. Inclination angle: ',F6.2,&
1732             ' degrees')
1733270 FORMAT (//' Topography informations:'/ &
1734              ' -----------------------'// &
1735              1X,'Topography: ',A)
1736271 FORMAT (  ' Building size (x/y/z) in m: ',F5.1,' / ',F5.1,' / ',F5.1/ &
1737              ' Horizontal index bounds (l/r/s/n): ',I4,' / ',I4,' / ',I4, &
1738                ' / ',I4)
[240]1739272 FORMAT (  ' Single quasi-2D street canyon of infinite length in ',A, &
1740              ' direction' / &
1741              ' Canyon height: ', F6.2, 'm, ch = ', I4, '.'      / &
1742              ' Canyon position (',A,'-walls): cxl = ', I4,', cxr = ', I4, '.')
[256]1743278 FORMAT (' Topography grid definition convention:'/ &
1744            ' cell edge (staggered grid points'/  &
1745            ' (u in x-direction, v in y-direction))' /)
1746279 FORMAT (' Topography grid definition convention:'/ &
1747            ' cell center (scalar grid points)' /)
[138]1748280 FORMAT (//' Vegetation canopy (drag) model:'/ &
1749              ' ------------------------------'// &
1750              ' Canopy mode: ', A / &
1751              ' Canopy top: ',I4 / &
1752              ' Leaf drag coefficient: ',F6.2 /)
[153]1753281 FORMAT (/ ' Scalar_exchange_coefficient: ',F6.2 / &
1754              ' Scalar concentration at leaf surfaces in kg/m**3: ',F6.2 /)
1755282 FORMAT (' Predefined constant heatflux at the top of the vegetation: ',F6.2,' K m/s')
1756283 FORMAT (/ ' Characteristic levels of the leaf area density:'// &
[138]1757              ' Height:              ',A,'  m'/ &
1758              ' Leaf area density:   ',A,'  m**2/m**3'/ &
1759              ' Gradient:            ',A,'  m**2/m**4'/ &
1760              ' Gridpoint:           ',A)
1761               
[1]1762300 FORMAT (//' Boundary conditions:'/ &
1763             ' -------------------'// &
1764             '                     p                    uv             ', &
1765             '                   pt'// &
1766             ' B. bound.: ',A/ &
1767             ' T. bound.: ',A)
[97]1768301 FORMAT (/'                     ',A// &
[1]1769             ' B. bound.: ',A/ &
1770             ' T. bound.: ',A)
[19]1771303 FORMAT (/' Bottom surface fluxes are used in diffusion terms at k=1')
1772304 FORMAT (/' Top surface fluxes are used in diffusion terms at k=nzt')
1773305 FORMAT (//'    Prandtl-Layer between bottom surface and first ', &
1774               'computational u,v-level:'// &
[1]1775             '       zp = ',F6.2,' m   z0 = ',F6.4,' m   kappa = ',F4.2/ &
1776             '       Rif value range:   ',F6.2,' <= rif <=',F6.2)
[97]1777306 FORMAT ('       Predefined constant heatflux:   ',F9.6,' K m/s')
[1]1778307 FORMAT ('       Heatflux has a random normal distribution')
1779308 FORMAT ('       Predefined surface temperature')
[97]1780309 FORMAT ('       Predefined constant salinityflux:   ',F9.6,' psu m/s')
[1]1781310 FORMAT (//'    1D-Model:'// &
1782             '       Rif value range:   ',F6.2,' <= rif <=',F6.2)
1783311 FORMAT ('       Predefined constant humidity flux: ',E10.3,' m/s')
1784312 FORMAT ('       Predefined surface humidity')
1785313 FORMAT ('       Predefined constant scalar flux: ',E10.3,' kg/(m**2 s)')
1786314 FORMAT ('       Predefined scalar value at the surface')
[19]1787315 FORMAT ('       Humidity / scalar flux at top surface is 0.0')
[102]1788316 FORMAT ('       Sensible heatflux and momentum flux from coupled ', &
1789                    'atmosphere model')
[1]1790317 FORMAT (//' Lateral boundaries:'/ &
1791            '       left/right:  ',A/    &
1792            '       north/south: ',A)
1793318 FORMAT (/'       outflow damping layer width: ',I3,' gridpoints with km_', &
1794                    'max =',F5.1,' m**2/s')
[151]1795319 FORMAT ('       turbulence recycling at inflow switched on'/ &
1796            '       width of recycling domain: ',F7.1,' m   grid index: ',I4/ &
1797            '       inflow damping height: ',F6.1,' m   width: ',F6.1,' m')
1798320 FORMAT ('       Predefined constant momentumflux:  u: ',F9.6,' m**2/s**2'/ &
[103]1799            '                                          v: ',F9.6,' m**2/s**2')
[151]1800325 FORMAT (//' List output:'/ &
[1]1801             ' -----------'//  &
1802            '    1D-Profiles:'/    &
1803            '       Output every             ',F8.2,' s')
[151]1804326 FORMAT ('       Time averaged over       ',F8.2,' s'/ &
[1]1805            '       Averaging input every    ',F8.2,' s')
1806330 FORMAT (//' Data output:'/ &
1807             ' -----------'/)
1808331 FORMAT (/'    1D-Profiles:')
1809332 FORMAT (/'       ',A)
1810333 FORMAT ('       Output every             ',F8.2,' s',/ &
1811            '       Time averaged over       ',F8.2,' s'/ &
1812            '       Averaging input every    ',F8.2,' s')
1813334 FORMAT (/'    2D-Arrays',A,':')
1814335 FORMAT (/'       ',A2,'-cross-section  Arrays: ',A/ &
1815            '       Output every             ',F8.2,' s  ',A/ &
1816            '       Cross sections at ',A1,' = ',A/ &
1817            '       scalar-coordinates:   ',A,' m'/)
1818336 FORMAT (/'    3D-Arrays',A,':')
1819337 FORMAT (/'       Arrays: ',A/ &
1820            '       Output every             ',F8.2,' s  ',A/ &
1821            '       Upper output limit at    ',F8.2,' m  (GP ',I4,')'/)
1822338 FORMAT ('       Compressed data output'/ &
1823            '       Decimal precision: ',A/)
1824339 FORMAT ('       No output during initial ',F8.2,' s')
1825340 FORMAT (/'    Time series:')
1826341 FORMAT ('       Output every             ',F8.2,' s'/)
1827342 FORMAT (/'       ',A2,'-cross-section  Arrays: ',A/ &
1828            '       Output every             ',F8.2,' s  ',A/ &
1829            '       Time averaged over       ',F8.2,' s'/ &
1830            '       Averaging input every    ',F8.2,' s'/ &
1831            '       Cross sections at ',A1,' = ',A/ &
1832            '       scalar-coordinates:   ',A,' m'/)
1833343 FORMAT (/'       Arrays: ',A/ &
1834            '       Output every             ',F8.2,' s  ',A/ &
1835            '       Time averaged over       ',F8.2,' s'/ &
1836            '       Averaging input every    ',F8.2,' s'/ &
1837            '       Upper output limit at    ',F8.2,' m  (GP ',I4,')'/)
[292]1838344 FORMAT ('       Output format: ',A/)
[410]1839345 FORMAT (/'    Scaling lengths for output locations of all subsequent mask IDs:',/ &
1840            '       mask_scale_x (in x-direction): ',F9.3, ' m',/ &
1841            '       mask_scale_y (in y-direction): ',F9.3, ' m',/ &
1842            '       mask_scale_z (in z-direction): ',F9.3, ' m' )
1843346 FORMAT (/'    Masked data output',A,' for mask ID ',I2, ':')
1844347 FORMAT ('       Variables: ',A/ &
1845            '       Output every             ',F8.2,' s')
1846348 FORMAT ('       Variables: ',A/ &
1847            '       Output every             ',F8.2,' s'/ &
1848            '       Time averaged over       ',F8.2,' s'/ &
1849            '       Averaging input every    ',F8.2,' s')
1850349 FORMAT (/'       Output locations in ',A,'-direction in multiples of ', &
1851            'mask_scale_',A,' predefined by array mask_',I2.2,'_',A,':'/ &
1852            13('       ',8(F8.2,',')/) )
1853350 FORMAT (/'       Output locations in ',A,'-direction: ', &
1854            'all gridpoints along ',A,'-direction (default).' )
1855351 FORMAT (/'       Output locations in ',A,'-direction in multiples of ', &
1856            'mask_scale_',A,' constructed from array mask_',I2.2,'_',A,'_loop:'/ &
1857            '          loop begin:',F8.2,', end:',F8.2,', stride:',F8.2 )
[1]1858#if defined( __dvrp_graphics )
1859360 FORMAT ('    Plot-Sequence with dvrp-software:'/ &
1860            '       Output every      ',F7.1,' s'/ &
1861            '       Output mode:      ',A/ &
1862            '       Host / User:      ',A,' / ',A/ &
1863            '       Directory:        ',A// &
1864            '       The sequence contains:')
[337]1865361 FORMAT (/'       Isosurface of "',A,'"    Threshold value: ', E12.3/ &
1866            '          Isosurface color: (',F4.2,',',F4.2,',',F4.2,') (R,G,B)')
1867362 FORMAT (/'       Slicer plane ',A/ &
[336]1868            '       Slicer limits: [',F6.2,',',F6.2,']')
[337]1869363 FORMAT (/'       Particles'/ &
[336]1870            '          particle size:  ',F7.2,' m')
1871364 FORMAT ('          particle ',A,' controlled by "',A,'" with interval [', &
1872                       F6.2,',',F6.2,']')
[337]1873365 FORMAT (/'       Groundplate color: (',F4.2,',',F4.2,',',F4.2,') (R,G,B)'/ &
[336]1874            '       Superelevation along (x,y,z): (',F4.1,',',F4.1,',',F4.1, &
1875                     ')'/ &
1876            '       Clipping limits: from x = ',F9.1,' m to x = ',F9.1,' m'/ &
1877            '                        from y = ',F9.1,' m to y = ',F9.1,' m')
[337]1878366 FORMAT (/'       Topography color: (',F4.2,',',F4.2,',',F4.2,') (R,G,B)')
[336]1879367 FORMAT ('       Polygon reduction for topography: cluster_size = ', I1)
[1]1880#endif
1881#if defined( __spectra )
1882370 FORMAT ('    Spectra:')
1883371 FORMAT ('       Output every ',F7.1,' s'/)
1884372 FORMAT ('       Arrays:     ', 10(A5,',')/                         &
1885            '       Directions: ', 10(A5,',')/                         &
[189]1886            '       height levels  k = ', 20(I3,',')/                  &
1887            '                          ', 20(I3,',')/                  &
1888            '                          ', 20(I3,',')/                  &
1889            '                          ', 20(I3,',')/                  &
1890            '                          ', 19(I3,','),I3,'.'/           &
[1]1891            '       height levels selected for standard plot:'/        &
[189]1892            '                      k = ', 20(I3,',')/                  &
1893            '                          ', 20(I3,',')/                  &
1894            '                          ', 20(I3,',')/                  &
1895            '                          ', 20(I3,',')/                  &
1896            '                          ', 19(I3,','),I3,'.'/           &
[1]1897            '       Time averaged over ', F7.1, ' s,' /                &
1898            '       Profiles for the time averaging are taken every ', &
1899                    F6.1,' s')
1900#endif
1901400 FORMAT (//' Physical quantities:'/ &
1902              ' -------------------'/)
1903410 FORMAT ('    Angular velocity    :   omega = ',E9.3,' rad/s'/  &
1904            '    Geograph. latitude  :   phi   = ',F4.1,' degr'/   &
1905            '    Coriolis parameter  :   f     = ',F9.6,' 1/s'/    &
1906            '                            f*    = ',F9.6,' 1/s')
1907411 FORMAT (/'    Gravity             :   g     = ',F4.1,' m/s**2')
[97]1908412 FORMAT (/'    Reference density in buoyancy terms: ',F8.3,' kg/m**3')
1909413 FORMAT (/'    Reference temperature in buoyancy terms: ',F8.4,' K')
[57]1910415 FORMAT (/'    Cloud physics parameters:'/ &
[1]1911             '    ------------------------'/)
[57]1912416 FORMAT ('        Surface pressure   :   p_0   = ',F7.2,' hPa'/      &
[1]1913            '        Gas constant       :   R     = ',F5.1,' J/(kg K)'/ &
1914            '        Density of air     :   rho_0 = ',F5.3,' kg/m**3'/  &
1915            '        Specific heat cap. :   c_p   = ',F6.1,' J/(kg K)'/ &
1916            '        Vapourization heat :   L_v   = ',E8.2,' J/kg')
1917420 FORMAT (/'    Characteristic levels of the initial temperature profile:'// &
1918            '       Height:        ',A,'  m'/ &
1919            '       Temperature:   ',A,'  K'/ &
1920            '       Gradient:      ',A,'  K/100m'/ &
1921            '       Gridpoint:     ',A)
1922421 FORMAT (/'    Characteristic levels of the initial humidity profile:'// &
1923            '       Height:      ',A,'  m'/ &
1924            '       Humidity:    ',A,'  kg/kg'/ &
1925            '       Gradient:    ',A,'  (kg/kg)/100m'/ &
1926            '       Gridpoint:   ',A)
1927422 FORMAT (/'    Characteristic levels of the initial scalar profile:'// &
1928            '       Height:                  ',A,'  m'/ &
1929            '       Scalar concentration:    ',A,'  kg/m**3'/ &
1930            '       Gradient:                ',A,'  (kg/m**3)/100m'/ &
1931            '       Gridpoint:               ',A)
1932423 FORMAT (/'    Characteristic levels of the geo. wind component ug:'// &
1933            '       Height:      ',A,'  m'/ &
1934            '       ug:          ',A,'  m/s'/ &
1935            '       Gradient:    ',A,'  1/100s'/ &
1936            '       Gridpoint:   ',A)
1937424 FORMAT (/'    Characteristic levels of the geo. wind component vg:'// &
1938            '       Height:      ',A,'  m'/ &
[97]1939            '       vg:          ',A,'  m/s'/ &
[1]1940            '       Gradient:    ',A,'  1/100s'/ &
1941            '       Gridpoint:   ',A)
[97]1942425 FORMAT (/'    Characteristic levels of the initial salinity profile:'// &
1943            '       Height:     ',A,'  m'/ &
1944            '       Salinity:   ',A,'  psu'/ &
1945            '       Gradient:   ',A,'  psu/100m'/ &
1946            '       Gridpoint:  ',A)
[411]1947426 FORMAT (/'    Characteristic levels of the subsidence/ascent profile:'// &
1948            '       Height:      ',A,'  m'/ &
1949            '       w_subs:      ',A,'  m/s'/ &
1950            '       Gradient:    ',A,'  (m/s)/100m'/ &
1951            '       Gridpoint:   ',A)
[767]1952427 FORMAT (/'    Initial wind profiles (u,v) are interpolated from given'// &
1953                  ' profiles')
[824]1954430 FORMAT (//' Cloud physics quantities / methods:'/ &
1955              ' ----------------------------------'/)
1956431 FORMAT ('    Humidity is treated as purely passive scalar (no condensati', &
1957                 'on)')
1958432 FORMAT ('    Bulk scheme with liquid water potential temperature and'/ &
1959            '    total water content is used.'/ &
1960            '    Condensation is parameterized via 0% - or 100% scheme.')
1961433 FORMAT ('    Cloud droplets treated explicitly using the Lagrangian part', &
1962                 'icle model')
1963434 FORMAT ('    Curvature and solution effecs are considered for growth of', &
1964                 ' droplets < 1.0E-6 m')
[825]1965435 FORMAT ('    Droplet collision is handled by ',A,'-kernel')
1966436 FORMAT ('    Droplet collision is switched off')
[1]1967450 FORMAT (//' LES / Turbulence quantities:'/ &
1968              ' ---------------------------'/)
[824]1969451 FORMAT ('    Diffusion coefficients are constant:'/ &
1970            '    Km = ',F6.2,' m**2/s   Kh = ',F6.2,' m**2/s   Pr = ',F5.2)
1971452 FORMAT ('    Mixing length is limited to the Prandtl mixing lenth.')
1972453 FORMAT ('    Mixing length is limited to ',F4.2,' * z')
1973454 FORMAT ('    TKE is not allowed to fall below ',E9.2,' (m/s)**2')
1974455 FORMAT ('    initial TKE is prescribed as ',E9.2,' (m/s)**2')
[1]1975470 FORMAT (//' Actions during the simulation:'/ &
1976              ' -----------------------------'/)
[94]1977471 FORMAT ('    Disturbance impulse (u,v) every :   ',F6.2,' s'/            &
1978            '    Disturbance amplitude           :     ',F4.2, ' m/s'/       &
1979            '    Lower disturbance level         : ',F8.2,' m (GP ',I4,')'/  &
1980            '    Upper disturbance level         : ',F8.2,' m (GP ',I4,')')
[1]1981472 FORMAT ('    Disturbances continued during the run from i/j =',I4, &
1982                 ' to i/j =',I4)
1983473 FORMAT ('    Disturbances cease as soon as the disturbance energy exceeds',&
1984                 1X,F5.3, ' m**2/s**2')
1985474 FORMAT ('    Random number generator used    : ',A/)
1986475 FORMAT ('    The surface temperature is increased (or decreased, ', &
1987                 'respectively, if'/ &
1988            '    the value is negative) by ',F5.2,' K at the beginning of the',&
1989                 ' 3D-simulation'/)
1990476 FORMAT ('    The surface humidity is increased (or decreased, ',&
1991                 'respectively, if the'/ &
1992            '    value is negative) by ',E8.1,' kg/kg at the beginning of', &
1993                 ' the 3D-simulation'/)
1994477 FORMAT ('    The scalar value is increased at the surface (or decreased, ',&
1995                 'respectively, if the'/ &
1996            '    value is negative) by ',E8.1,' kg/m**3 at the beginning of', &
1997                 ' the 3D-simulation'/)
1998480 FORMAT ('    Particles:'/ &
1999            '    ---------'// &
2000            '       Particle advection is active (switched on at t = ', F7.1, &
2001                    ' s)'/ &
2002            '       Start of new particle generations every  ',F6.1,' s'/ &
2003            '       Boundary conditions: left/right: ', A, ' north/south: ', A/&
2004            '                            bottom:     ', A, ' top:         ', A/&
2005            '       Maximum particle age:                 ',F9.1,' s'/ &
[117]2006            '       Advection stopped at t = ',F9.1,' s'/ &
2007            '       Particles are sorted every ',F9.1,' s'/)
[1]2008481 FORMAT ('       Particles have random start positions'/)
[336]2009482 FORMAT ('          Particles are advected only horizontally'/)
[1]2010483 FORMAT ('       Particles have tails with a maximum of ',I3,' points')
2011484 FORMAT ('            Number of tails of the total domain: ',I10/ &
2012            '            Minimum distance between tailpoints: ',F8.2,' m'/ &
2013            '            Maximum age of the end of the tail:  ',F8.2,' s')
2014485 FORMAT ('       Particle data are written on file every ', F9.1, ' s')
2015486 FORMAT ('       Particle statistics are written on file'/)
2016487 FORMAT ('       Number of particle groups: ',I2/)
2017488 FORMAT ('       SGS velocity components are used for particle advection'/ &
2018            '          minimum timestep for advection: ', F7.5/)
2019489 FORMAT ('       Number of particles simultaneously released at each ', &
2020                    'point: ', I5/)
2021490 FORMAT ('       Particle group ',I2,':'/ &
2022            '          Particle radius: ',E10.3, 'm')
2023491 FORMAT ('          Particle inertia is activated'/ &
2024            '             density_ratio (rho_fluid/rho_particle) = ',F5.3/)
2025492 FORMAT ('          Particles are advected only passively (no inertia)'/)
2026493 FORMAT ('          Boundaries of particle source: x:',F8.1,' - ',F8.1,' m'/&
2027            '                                         y:',F8.1,' - ',F8.1,' m'/&
2028            '                                         z:',F8.1,' - ',F8.1,' m'/&
2029            '          Particle distances:  dx = ',F8.1,' m  dy = ',F8.1, &
2030                       ' m  dz = ',F8.1,' m'/)
2031494 FORMAT ('       Output of particle time series in NetCDF format every ', &
2032                    F8.2,' s'/)
2033495 FORMAT ('       Number of particles in total domain: ',I10/)
2034500 FORMAT (//' 1D-Model parameters:'/                           &
2035              ' -------------------'//                           &
2036            '    Simulation time:                   ',F8.1,' s'/ &
2037            '    Run-controll output every:         ',F8.1,' s'/ &
2038            '    Vertical profile output every:     ',F8.1,' s'/ &
2039            '    Mixing length calculation:         ',A/         &
2040            '    Dissipation calculation:           ',A/)
2041502 FORMAT ('    Damping layer starts from ',F7.1,' m (GP ',I4,')'/)
[667]2042503 FORMAT (' --> Momentum advection via Wicker-Skamarock-Scheme 5th order')
2043504 FORMAT (' --> Scalar advection via Wicker-Skamarock-Scheme 5th order')
[1]2044
2045
2046 END SUBROUTINE header
Note: See TracBrowser for help on using the repository browser.