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

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

New:
---

droplet growth by condensation may include curvature and solution effects.
Steered by new inipar-parameter curvature_solution_effects.
(advec_particles, check_parameters, header, init_cloud_physics, init_particles, modules, parin, read_var_list, write_var_list)

mean/min/max particle radius added as output quantity. (data_output_ptseries, modules)

Changed:


Initialisation of temporary particle array for resorting removed.
(advec_particles)

particle attributes speed_x|y|z_sgs renamed rvar1|2|3.
(advec_particles, data_output_ptseries, modules, init_particles, particle_boundary_conds)

routine wang_kernel and respective module renamed lpm_collision_kernels.
Package (particle) parameters wang_collision_kernel and turbulence_effects_on_collision
replaced by parameter collision_kernel.
(Makefile, advec_particles, check_parameters, diffusion_e, init_3d_model, modules, package_parin, time_integration, new: lpm_collision_kernels, deleted: wang_kernel)

Errors:


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