1 | ! !> @file header.f90 |
---|
2 | !------------------------------------------------------------------------------! |
---|
3 | ! This file is part of the PALM model system. |
---|
4 | ! |
---|
5 | ! PALM is free software: you can redistribute it and/or modify it under the |
---|
6 | ! terms of the GNU General Public License as published by the Free Software |
---|
7 | ! Foundation, either version 3 of the License, or (at your option) any later |
---|
8 | ! version. |
---|
9 | ! |
---|
10 | ! PALM is distributed in the hope that it will be useful, but WITHOUT ANY |
---|
11 | ! WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR |
---|
12 | ! A PARTICULAR PURPOSE. See the GNU General Public License for more details. |
---|
13 | ! |
---|
14 | ! You should have received a copy of the GNU General Public License along with |
---|
15 | ! PALM. If not, see <http://www.gnu.org/licenses/>. |
---|
16 | ! |
---|
17 | ! Copyright 1997-2020 Leibniz Universitaet Hannover |
---|
18 | !------------------------------------------------------------------------------! |
---|
19 | ! |
---|
20 | ! Current revisions: |
---|
21 | ! ----------------- |
---|
22 | ! |
---|
23 | ! |
---|
24 | ! Former revisions: |
---|
25 | ! ----------------- |
---|
26 | ! $Id: header.f90 4473 2020-03-25 21:04:07Z suehring $ |
---|
27 | ! revised message if wall_adjustment is used |
---|
28 | ! |
---|
29 | ! 4444 2020-03-05 15:59:50Z raasch |
---|
30 | ! bugfix: cpp-directives for serial mode added |
---|
31 | ! |
---|
32 | ! 4360 2020-01-07 11:25:50Z suehring |
---|
33 | ! Bugfix, character length too short, caused crash on NEC. |
---|
34 | ! |
---|
35 | ! 4309 2019-11-26 18:49:59Z suehring |
---|
36 | ! replaced recycling_yshift by y_shift |
---|
37 | ! |
---|
38 | ! 4301 2019-11-22 12:09:09Z oliver.maas |
---|
39 | ! |
---|
40 | ! 4297 2019-11-21 10:37:50Z oliver.maas |
---|
41 | ! Adjusted format for simulated time and related quantities |
---|
42 | ! |
---|
43 | ! 4297 2019-11-21 10:37:50Z oliver.maas |
---|
44 | ! adjusted message to the changed parameter recycling_yshift |
---|
45 | ! |
---|
46 | ! 4227 2019-09-10 18:04:34Z gronemeier |
---|
47 | ! implement new palm_date_time_mod |
---|
48 | ! |
---|
49 | ! 4223 2019-09-10 09:20:47Z gronemeier |
---|
50 | ! Write information about rotation angle |
---|
51 | ! |
---|
52 | ! 4182 2019-08-22 15:20:23Z scharf |
---|
53 | ! Corrected "Former revisions" section |
---|
54 | ! |
---|
55 | ! 4168 2019-08-16 13:50:17Z suehring |
---|
56 | ! Replace function get_topography_top_index by topo_top_ind |
---|
57 | ! |
---|
58 | ! 4069 2019-07-01 14:05:51Z Giersch |
---|
59 | ! Masked output running index mid has been introduced as a local variable to |
---|
60 | ! avoid runtime error (Loop variable has been modified) in time_integration |
---|
61 | ! |
---|
62 | ! 4023 2019-06-12 13:20:01Z maronga |
---|
63 | ! Renamed "coupling start time" to "spinup time" |
---|
64 | ! |
---|
65 | ! 4017 2019-06-06 12:16:46Z schwenkel |
---|
66 | ! unused variable removed |
---|
67 | ! |
---|
68 | ! 3655 2019-01-07 16:51:22Z knoop |
---|
69 | ! Implementation of the PALM module interface |
---|
70 | ! |
---|
71 | ! Revision 1.1 1997/08/11 06:17:20 raasch |
---|
72 | ! Initial revision |
---|
73 | ! |
---|
74 | ! |
---|
75 | ! Description: |
---|
76 | ! ------------ |
---|
77 | !> Writing a header with all important information about the current run. |
---|
78 | !> This subroutine is called three times, two times at the beginning |
---|
79 | !> (writing information on files RUN_CONTROL and HEADER) and one time at the |
---|
80 | !> end of the run, then writing additional information about CPU-usage on file |
---|
81 | !> header. |
---|
82 | !-----------------------------------------------------------------------------! |
---|
83 | SUBROUTINE header |
---|
84 | |
---|
85 | |
---|
86 | USE arrays_3d, & |
---|
87 | ONLY: pt_init, q_init, s_init, sa_init, ug, vg, w_subs, zu, zw |
---|
88 | |
---|
89 | USE basic_constants_and_equations_mod, & |
---|
90 | ONLY: g, kappa |
---|
91 | |
---|
92 | USE bulk_cloud_model_mod, & |
---|
93 | ONLY: bulk_cloud_model |
---|
94 | |
---|
95 | USE control_parameters |
---|
96 | |
---|
97 | USE cpulog, & |
---|
98 | ONLY: log_point_s |
---|
99 | |
---|
100 | USE grid_variables, & |
---|
101 | ONLY: dx, dy |
---|
102 | |
---|
103 | USE indices, & |
---|
104 | ONLY: mg_loc_ind, nnx, nny, nnz, nx, ny, nxl_mg, nxr_mg, nyn_mg, & |
---|
105 | nys_mg, nzt, nzt_mg, topo_top_ind |
---|
106 | |
---|
107 | USE kinds |
---|
108 | |
---|
109 | USE model_1d_mod, & |
---|
110 | ONLY: damp_level_ind_1d, dt_pr_1d, dt_run_control_1d, end_time_1d |
---|
111 | |
---|
112 | USE module_interface, & |
---|
113 | ONLY: module_interface_header |
---|
114 | |
---|
115 | USE netcdf_interface, & |
---|
116 | ONLY: netcdf_data_format, netcdf_data_format_string, netcdf_deflate |
---|
117 | |
---|
118 | USE ocean_mod, & |
---|
119 | ONLY: ibc_sa_t, prho_reference, sa_surface, & |
---|
120 | sa_vertical_gradient, sa_vertical_gradient_level, & |
---|
121 | sa_vertical_gradient_level_ind |
---|
122 | |
---|
123 | USE palm_date_time_mod, & |
---|
124 | ONLY: get_date_time |
---|
125 | |
---|
126 | USE pegrid |
---|
127 | |
---|
128 | #if defined( __parallel ) |
---|
129 | USE pmc_handle_communicator, & |
---|
130 | ONLY: pmc_get_model_info |
---|
131 | |
---|
132 | USE pmc_interface, & |
---|
133 | ONLY: nested_run, nesting_datatransfer_mode, nesting_mode |
---|
134 | #endif |
---|
135 | |
---|
136 | USE surface_mod, & |
---|
137 | ONLY: surf_def_h |
---|
138 | |
---|
139 | USE turbulence_closure_mod, & |
---|
140 | ONLY: rans_const_c, rans_const_sigma |
---|
141 | |
---|
142 | IMPLICIT NONE |
---|
143 | |
---|
144 | |
---|
145 | CHARACTER (LEN=2) :: do2d_mode !< mode of 2D data output (xy, xz, yz) |
---|
146 | |
---|
147 | CHARACTER (LEN=5) :: section_chr !< string indicating grid information where to output 2D slices |
---|
148 | |
---|
149 | CHARACTER (LEN=10) :: host_chr !< string for hostname |
---|
150 | |
---|
151 | CHARACTER (LEN=16) :: begin_chr !< string indication start time for the data output |
---|
152 | CHARACTER (LEN=16) :: coor_chr !< dummy string |
---|
153 | |
---|
154 | CHARACTER (LEN=26) :: ver_rev !< string for run identification |
---|
155 | |
---|
156 | #if defined( __parallel ) |
---|
157 | CHARACTER (LEN=32) :: cpl_name !< name of child domain (nesting mode only) |
---|
158 | #endif |
---|
159 | |
---|
160 | CHARACTER (LEN=40) :: output_format !< netcdf format |
---|
161 | |
---|
162 | CHARACTER (LEN=70) :: char1 !< dummy varialbe used for various strings |
---|
163 | CHARACTER (LEN=70) :: char2 !< string containing informating about the advected distance in case of Galilei transformation |
---|
164 | CHARACTER (LEN=23) :: date_time_str !< string for date and time information |
---|
165 | CHARACTER (LEN=70) :: dopr_chr !< string indicating profile output variables |
---|
166 | CHARACTER (LEN=70) :: do2d_xy !< string indicating 2D-xy output variables |
---|
167 | CHARACTER (LEN=70) :: do2d_xz !< string indicating 2D-xz output variables |
---|
168 | CHARACTER (LEN=70) :: do2d_yz !< string indicating 2D-yz output variables |
---|
169 | CHARACTER (LEN=70) :: do3d_chr !< string indicating 3D output variables |
---|
170 | CHARACTER (LEN=70) :: domask_chr !< string indicating masked output variables |
---|
171 | CHARACTER (LEN=70) :: run_classification !< string classifying type of run, e.g. nested, coupled, etc. |
---|
172 | |
---|
173 | CHARACTER (LEN=85) :: r_upper !< string indicating model top boundary condition for various quantities |
---|
174 | CHARACTER (LEN=85) :: r_lower !< string indicating bottom boundary condition for various quantities |
---|
175 | |
---|
176 | CHARACTER (LEN=86) :: coordinates !< string indicating height coordinates for profile-prescribed variables |
---|
177 | CHARACTER (LEN=86) :: gradients !< string indicating gradients of profile-prescribed variables between the prescribed height coordinates |
---|
178 | CHARACTER (LEN=86) :: slices !< string indicating grid coordinates of profile-prescribed subsidence velocity |
---|
179 | CHARACTER (LEN=86) :: temperatures !< string indicating profile-prescribed subsidence velocities |
---|
180 | CHARACTER (LEN=86) :: ugcomponent !< string indicating profile-prescribed geostrophic u-component |
---|
181 | CHARACTER (LEN=86) :: vgcomponent !< string indicating profile-prescribed geostrophic v-component |
---|
182 | |
---|
183 | CHARACTER (LEN=1), DIMENSION(1:3) :: dir = (/ 'x', 'y', 'z' /) !< string indicating masking steps along certain direction |
---|
184 | |
---|
185 | INTEGER(iwp) :: av !< index indicating average output quantities |
---|
186 | INTEGER(iwp) :: bh !< building height in generic single-building setup |
---|
187 | INTEGER(iwp) :: blx !< building width in grid points along x in generic single-building setup |
---|
188 | INTEGER(iwp) :: bly !< building width in grid points along y in generic single-building setup |
---|
189 | INTEGER(iwp) :: bxl !< index for left building wall in generic single-building setup |
---|
190 | INTEGER(iwp) :: bxr !< index for right building wall in generic single-building setup |
---|
191 | INTEGER(iwp) :: byn !< index for north building wall in generic single-building setup |
---|
192 | INTEGER(iwp) :: bys !< index for south building wall in generic single-building setup |
---|
193 | INTEGER(iwp) :: ch !< canyon depth in generic street-canyon setup |
---|
194 | INTEGER(iwp) :: count !< number of masked output locations |
---|
195 | INTEGER(iwp) :: cwx !< canyon width along x in generic street-canyon setup |
---|
196 | INTEGER(iwp) :: cwy !< canyon width along y in generic street-canyon setup |
---|
197 | INTEGER(iwp) :: cxl !< index for left canyon wall in generic street-canyon setup |
---|
198 | INTEGER(iwp) :: cxr !< index for right canyon wall in generic street-canyon setup |
---|
199 | INTEGER(iwp) :: cyn !< index for north canyon wall in generic street-canyon setup |
---|
200 | INTEGER(iwp) :: cys !< index for south canyon wall in generic street-canyon setup |
---|
201 | INTEGER(iwp) :: dim !< running index for masking output locations |
---|
202 | INTEGER(iwp) :: i !< running index for various loops |
---|
203 | INTEGER(iwp) :: io !< file unit of HEADER file |
---|
204 | INTEGER(iwp) :: l !< substring length |
---|
205 | INTEGER(iwp) :: ll !< substring length |
---|
206 | INTEGER(iwp) :: mid !< masked output running index |
---|
207 | #if defined( __parallel ) |
---|
208 | INTEGER(iwp) :: cpl_parent_id !< parent ID for the respective child model |
---|
209 | INTEGER(iwp) :: my_cpl_id !< run id in a nested model setup |
---|
210 | INTEGER(iwp) :: n !< running index over number of couplers in a nested model setup |
---|
211 | INTEGER(iwp) :: ncpl !< number of coupler in a nested model setup |
---|
212 | INTEGER(iwp) :: npe_total !< number of total PEs in a coupler (parent + child) |
---|
213 | #endif |
---|
214 | |
---|
215 | |
---|
216 | REAL(wp) :: cpuseconds_per_simulated_second !< CPU time (in s) per simulated second |
---|
217 | #if defined( __parallel ) |
---|
218 | REAL(wp) :: lower_left_coord_x !< x-coordinate of nest domain |
---|
219 | REAL(wp) :: lower_left_coord_y !< y-coordinate of nest domain |
---|
220 | #endif |
---|
221 | |
---|
222 | ! |
---|
223 | !-- Open the output file. At the end of the simulation, output is directed |
---|
224 | !-- to unit 19. |
---|
225 | IF ( ( runnr == 0 .OR. force_print_header ) .AND. & |
---|
226 | .NOT. simulated_time_at_begin /= simulated_time ) THEN |
---|
227 | io = 15 ! header output on file RUN_CONTROL |
---|
228 | ELSE |
---|
229 | io = 19 ! header output on file HEADER |
---|
230 | ENDIF |
---|
231 | CALL check_open( io ) |
---|
232 | |
---|
233 | ! |
---|
234 | !-- At the end of the run, output file (HEADER) will be rewritten with |
---|
235 | !-- new information |
---|
236 | IF ( io == 19 .AND. simulated_time_at_begin /= simulated_time ) REWIND( 19 ) |
---|
237 | |
---|
238 | ! |
---|
239 | !-- Determine kind of model run |
---|
240 | IF ( TRIM( initializing_actions ) == 'read_restart_data' ) THEN |
---|
241 | run_classification = 'restart run' |
---|
242 | ELSEIF ( TRIM( initializing_actions ) == 'cyclic_fill' ) THEN |
---|
243 | run_classification = 'run with cyclic fill of 3D - prerun data' |
---|
244 | ELSEIF ( INDEX( initializing_actions, 'set_constant_profiles' ) /= 0 ) THEN |
---|
245 | run_classification = 'run without 1D - prerun' |
---|
246 | ELSEIF ( INDEX( initializing_actions, 'set_1d-model_profiles' ) /= 0 ) THEN |
---|
247 | run_classification = 'run with 1D - prerun' |
---|
248 | ELSEIF ( INDEX( initializing_actions, 'inifor' ) /= 0 ) THEN |
---|
249 | run_classification = 'run initialized with COSMO data' |
---|
250 | ELSEIF ( INDEX( initializing_actions, 'by_user' ) /=0 ) THEN |
---|
251 | run_classification = 'run initialized by user' |
---|
252 | ELSEIF ( INDEX( initializing_actions, 'initialize_vortex' ) /=0 ) THEN |
---|
253 | run_classification = 'run additionally initialized by a Rankine-vortex' |
---|
254 | ELSEIF ( INDEX( initializing_actions, 'initialize_ptanom' ) /=0 ) THEN |
---|
255 | run_classification = 'run additionally initialized by temperature anomaly' |
---|
256 | ELSE |
---|
257 | message_string = ' unknown action(s): ' // TRIM( initializing_actions ) |
---|
258 | CALL message( 'header', 'PA0191', 0, 0, 0, 6, 0 ) |
---|
259 | ENDIF |
---|
260 | #if defined( __parallel ) |
---|
261 | IF ( nested_run ) run_classification = 'nested ' // run_classification(1:63) |
---|
262 | #endif |
---|
263 | IF ( ocean_mode ) THEN |
---|
264 | run_classification = 'ocean - ' // run_classification(1:61) |
---|
265 | ELSE |
---|
266 | run_classification = 'atmosphere - ' // run_classification(1:57) |
---|
267 | ENDIF |
---|
268 | |
---|
269 | ! |
---|
270 | !-- Run-identification, date, time, host |
---|
271 | host_chr = host(1:10) |
---|
272 | ver_rev = TRIM( version ) // ' ' // TRIM( revision ) |
---|
273 | WRITE ( io, 100 ) ver_rev, TRIM( run_classification ) |
---|
274 | IF ( TRIM( coupling_mode ) /= 'uncoupled' ) THEN |
---|
275 | WRITE ( io, 101 ) coupling_mode |
---|
276 | ENDIF |
---|
277 | #if defined( __parallel ) |
---|
278 | IF ( coupling_start_time /= 0.0_wp .AND. .NOT. spinup ) THEN |
---|
279 | IF ( coupling_start_time > simulated_time_at_begin ) THEN |
---|
280 | WRITE ( io, 109 ) |
---|
281 | ELSE |
---|
282 | WRITE ( io, 114 ) |
---|
283 | ENDIF |
---|
284 | ENDIF |
---|
285 | #endif |
---|
286 | IF ( ensemble_member_nr /= 0 ) THEN |
---|
287 | WRITE ( io, 512 ) run_date, run_identifier, run_time, runnr, & |
---|
288 | ADJUSTR( host_chr ), ensemble_member_nr |
---|
289 | ELSE |
---|
290 | WRITE ( io, 102 ) run_date, run_identifier, run_time, runnr, & |
---|
291 | ADJUSTR( host_chr ) |
---|
292 | ENDIF |
---|
293 | #if defined( __parallel ) |
---|
294 | IF ( npex == -1 .AND. npey == -1 ) THEN |
---|
295 | char1 = 'calculated' |
---|
296 | ELSE |
---|
297 | char1 = 'predefined' |
---|
298 | ENDIF |
---|
299 | IF ( threads_per_task == 1 ) THEN |
---|
300 | WRITE ( io, 103 ) numprocs, pdims(1), pdims(2), TRIM( char1 ) |
---|
301 | ELSE |
---|
302 | WRITE ( io, 104 ) numprocs*threads_per_task, numprocs, & |
---|
303 | threads_per_task, pdims(1), pdims(2), TRIM( char1 ) |
---|
304 | ENDIF |
---|
305 | |
---|
306 | IF ( pdims(2) == 1 ) THEN |
---|
307 | WRITE ( io, 107 ) 'x' |
---|
308 | ELSEIF ( pdims(1) == 1 ) THEN |
---|
309 | WRITE ( io, 107 ) 'y' |
---|
310 | ENDIF |
---|
311 | IF ( numprocs /= maximum_parallel_io_streams ) THEN |
---|
312 | WRITE ( io, 108 ) maximum_parallel_io_streams |
---|
313 | ENDIF |
---|
314 | #endif |
---|
315 | |
---|
316 | #if defined( __parallel ) |
---|
317 | ! |
---|
318 | !-- Nesting informations |
---|
319 | IF ( nested_run ) THEN |
---|
320 | |
---|
321 | WRITE ( io, 600 ) TRIM( nesting_mode ), & |
---|
322 | TRIM( nesting_datatransfer_mode ) |
---|
323 | CALL pmc_get_model_info( ncpl = ncpl, cpl_id = my_cpl_id ) |
---|
324 | |
---|
325 | DO n = 1, ncpl |
---|
326 | CALL pmc_get_model_info( request_for_cpl_id = n, cpl_name = cpl_name,& |
---|
327 | cpl_parent_id = cpl_parent_id, & |
---|
328 | lower_left_x = lower_left_coord_x, & |
---|
329 | lower_left_y = lower_left_coord_y, & |
---|
330 | npe_total = npe_total ) |
---|
331 | IF ( n == my_cpl_id ) THEN |
---|
332 | char1 = '*' |
---|
333 | ELSE |
---|
334 | char1 = ' ' |
---|
335 | ENDIF |
---|
336 | WRITE ( io, 601 ) TRIM( char1 ), n, cpl_parent_id, npe_total, & |
---|
337 | lower_left_coord_x, lower_left_coord_y, & |
---|
338 | TRIM( cpl_name ) |
---|
339 | ENDDO |
---|
340 | |
---|
341 | ENDIF |
---|
342 | #endif |
---|
343 | |
---|
344 | WRITE ( io, 99 ) |
---|
345 | |
---|
346 | ! |
---|
347 | !-- Numerical schemes |
---|
348 | WRITE ( io, 110 ) |
---|
349 | IF ( rans_mode ) THEN |
---|
350 | WRITE ( io, 124 ) TRIM( turbulence_closure ), 'RANS' |
---|
351 | ELSE |
---|
352 | WRITE ( io, 124 ) TRIM( turbulence_closure ), 'LES' |
---|
353 | ENDIF |
---|
354 | WRITE ( io, 121 ) TRIM( approximation ) |
---|
355 | IF ( psolver(1:7) == 'poisfft' ) THEN |
---|
356 | WRITE ( io, 111 ) TRIM( fft_method ) |
---|
357 | IF ( transpose_compute_overlap ) WRITE( io, 115 ) |
---|
358 | ELSEIF ( psolver == 'sor' ) THEN |
---|
359 | WRITE ( io, 112 ) nsor_ini, nsor, omega_sor |
---|
360 | ELSEIF ( psolver(1:9) == 'multigrid' ) THEN |
---|
361 | WRITE ( io, 135 ) TRIM(psolver), cycle_mg, maximum_grid_level, ngsrb |
---|
362 | IF ( mg_cycles == -1 ) THEN |
---|
363 | WRITE ( io, 140 ) residual_limit |
---|
364 | ELSE |
---|
365 | WRITE ( io, 141 ) mg_cycles |
---|
366 | ENDIF |
---|
367 | IF ( mg_switch_to_pe0_level == 0 ) THEN |
---|
368 | WRITE ( io, 136 ) nxr_mg(1)-nxl_mg(1)+1, nyn_mg(1)-nys_mg(1)+1, & |
---|
369 | nzt_mg(1) |
---|
370 | ELSEIF ( mg_switch_to_pe0_level /= -1 ) THEN |
---|
371 | WRITE ( io, 137 ) mg_switch_to_pe0_level, & |
---|
372 | mg_loc_ind(2,0)-mg_loc_ind(1,0)+1, & |
---|
373 | mg_loc_ind(4,0)-mg_loc_ind(3,0)+1, & |
---|
374 | nzt_mg(mg_switch_to_pe0_level), & |
---|
375 | nxr_mg(1)-nxl_mg(1)+1, nyn_mg(1)-nys_mg(1)+1, & |
---|
376 | nzt_mg(1) |
---|
377 | ENDIF |
---|
378 | IF ( psolver == 'multigrid_noopt' .AND. masking_method ) WRITE ( io, 144 ) |
---|
379 | ENDIF |
---|
380 | IF ( call_psolver_at_all_substeps .AND. timestep_scheme(1:5) == 'runge' ) & |
---|
381 | THEN |
---|
382 | WRITE ( io, 142 ) |
---|
383 | ENDIF |
---|
384 | |
---|
385 | IF ( momentum_advec == 'pw-scheme' ) THEN |
---|
386 | WRITE ( io, 113 ) |
---|
387 | ELSEIF (momentum_advec == 'ws-scheme' ) THEN |
---|
388 | WRITE ( io, 503 ) |
---|
389 | ENDIF |
---|
390 | IF ( scalar_advec == 'pw-scheme' ) THEN |
---|
391 | WRITE ( io, 116 ) |
---|
392 | ELSEIF ( scalar_advec == 'ws-scheme' ) THEN |
---|
393 | WRITE ( io, 504 ) |
---|
394 | ELSE |
---|
395 | WRITE ( io, 118 ) |
---|
396 | ENDIF |
---|
397 | |
---|
398 | WRITE ( io, 139 ) TRIM( loop_optimization ) |
---|
399 | |
---|
400 | IF ( galilei_transformation ) THEN |
---|
401 | IF ( use_ug_for_galilei_tr ) THEN |
---|
402 | char1 = '0.6 * geostrophic wind' |
---|
403 | ELSE |
---|
404 | char1 = 'mean wind in model domain' |
---|
405 | ENDIF |
---|
406 | IF ( simulated_time_at_begin == simulated_time ) THEN |
---|
407 | char2 = 'at the start of the run' |
---|
408 | ELSE |
---|
409 | char2 = 'at the end of the run' |
---|
410 | ENDIF |
---|
411 | WRITE ( io, 119 ) TRIM( char1 ), TRIM( char2 ), & |
---|
412 | advected_distance_x/1000.0_wp, & |
---|
413 | advected_distance_y/1000.0_wp |
---|
414 | ENDIF |
---|
415 | WRITE ( io, 122 ) timestep_scheme |
---|
416 | IF ( use_upstream_for_tke ) WRITE ( io, 143 ) |
---|
417 | IF ( rayleigh_damping_factor /= 0.0_wp ) THEN |
---|
418 | IF ( .NOT. ocean_mode ) THEN |
---|
419 | WRITE ( io, 123 ) 'above', rayleigh_damping_height, & |
---|
420 | rayleigh_damping_factor |
---|
421 | ELSE |
---|
422 | WRITE ( io, 123 ) 'below', rayleigh_damping_height, & |
---|
423 | rayleigh_damping_factor |
---|
424 | ENDIF |
---|
425 | ENDIF |
---|
426 | IF ( neutral ) WRITE ( io, 131 ) pt_surface |
---|
427 | IF ( humidity ) THEN |
---|
428 | IF ( .NOT. bulk_cloud_model ) THEN |
---|
429 | WRITE ( io, 129 ) |
---|
430 | ELSE |
---|
431 | WRITE ( io, 130 ) |
---|
432 | ENDIF |
---|
433 | ENDIF |
---|
434 | IF ( passive_scalar ) WRITE ( io, 134 ) |
---|
435 | IF ( conserve_volume_flow ) THEN |
---|
436 | WRITE ( io, 150 ) conserve_volume_flow_mode |
---|
437 | IF ( TRIM( conserve_volume_flow_mode ) == 'bulk_velocity' ) THEN |
---|
438 | WRITE ( io, 151 ) u_bulk, v_bulk |
---|
439 | ENDIF |
---|
440 | ELSEIF ( dp_external ) THEN |
---|
441 | IF ( dp_smooth ) THEN |
---|
442 | WRITE ( io, 152 ) dpdxy, dp_level_b, ', vertically smoothed.' |
---|
443 | ELSE |
---|
444 | WRITE ( io, 152 ) dpdxy, dp_level_b, '.' |
---|
445 | ENDIF |
---|
446 | ENDIF |
---|
447 | WRITE ( io, 99 ) |
---|
448 | |
---|
449 | ! |
---|
450 | !-- Runtime and timestep information |
---|
451 | WRITE ( io, 200 ) |
---|
452 | IF ( .NOT. dt_fixed ) THEN |
---|
453 | WRITE ( io, 201 ) dt_max, cfl_factor |
---|
454 | ELSE |
---|
455 | WRITE ( io, 202 ) dt |
---|
456 | ENDIF |
---|
457 | WRITE ( io, 203 ) simulated_time_at_begin, end_time |
---|
458 | |
---|
459 | IF ( time_restart /= 9999999.9_wp .AND. & |
---|
460 | simulated_time_at_begin == simulated_time ) THEN |
---|
461 | IF ( dt_restart == 9999999.9_wp ) THEN |
---|
462 | WRITE ( io, 204 ) ' Restart at: ',time_restart |
---|
463 | ELSE |
---|
464 | WRITE ( io, 205 ) ' Restart at: ',time_restart, dt_restart |
---|
465 | ENDIF |
---|
466 | ENDIF |
---|
467 | |
---|
468 | IF ( simulated_time_at_begin /= simulated_time ) THEN |
---|
469 | i = MAX ( log_point_s(10)%counts, 1 ) |
---|
470 | IF ( ( simulated_time - simulated_time_at_begin ) == 0.0_wp ) THEN |
---|
471 | cpuseconds_per_simulated_second = 0.0_wp |
---|
472 | ELSE |
---|
473 | cpuseconds_per_simulated_second = log_point_s(10)%sum / & |
---|
474 | ( simulated_time - & |
---|
475 | simulated_time_at_begin ) |
---|
476 | ENDIF |
---|
477 | WRITE ( io, 206 ) simulated_time, log_point_s(10)%sum, & |
---|
478 | log_point_s(10)%sum / REAL( i, KIND=wp ), & |
---|
479 | cpuseconds_per_simulated_second |
---|
480 | IF ( time_restart /= 9999999.9_wp .AND. time_restart < end_time ) THEN |
---|
481 | IF ( dt_restart == 9999999.9_wp ) THEN |
---|
482 | WRITE ( io, 204 ) ' Next restart at: ',time_restart |
---|
483 | ELSE |
---|
484 | WRITE ( io, 205 ) ' Next restart at: ',time_restart, dt_restart |
---|
485 | ENDIF |
---|
486 | ENDIF |
---|
487 | ENDIF |
---|
488 | |
---|
489 | |
---|
490 | ! |
---|
491 | !-- Start time for coupled runs, if independent precursor runs for atmosphere |
---|
492 | !-- and ocean are used or have been used. In this case, coupling_start_time |
---|
493 | !-- defines the time when the coupling is switched on. |
---|
494 | IF ( coupling_start_time /= 0.0_wp ) THEN |
---|
495 | WRITE ( io, 207 ) coupling_start_time |
---|
496 | ENDIF |
---|
497 | |
---|
498 | ! |
---|
499 | !-- Computational grid |
---|
500 | IF ( .NOT. ocean_mode ) THEN |
---|
501 | WRITE ( io, 250 ) dx, dy |
---|
502 | |
---|
503 | DO i = 1, number_stretch_level_start+1 |
---|
504 | WRITE ( io, 253 ) i, dz(i) |
---|
505 | ENDDO |
---|
506 | |
---|
507 | WRITE( io, 251 ) (nx+1)*dx, (ny+1)*dy, zu(nzt+1) |
---|
508 | |
---|
509 | IF ( ANY( dz_stretch_level_start_index < nzt+1 ) ) THEN |
---|
510 | WRITE( io, '(A)', advance='no') ' Vertical stretching starts at height:' |
---|
511 | DO i = 1, number_stretch_level_start |
---|
512 | WRITE ( io, '(F10.1,A3)', advance='no' ) dz_stretch_level_start(i), ' m,' |
---|
513 | ENDDO |
---|
514 | WRITE( io, '(/,A)', advance='no') ' Vertical stretching starts at index: ' |
---|
515 | DO i = 1, number_stretch_level_start |
---|
516 | WRITE ( io, '(I12,A1)', advance='no' ) dz_stretch_level_start_index(i), ',' |
---|
517 | ENDDO |
---|
518 | WRITE( io, '(/,A)', advance='no') ' Vertical stretching ends at height: ' |
---|
519 | DO i = 1, number_stretch_level_start |
---|
520 | WRITE ( io, '(F10.1,A3)', advance='no' ) dz_stretch_level_end(i), ' m,' |
---|
521 | ENDDO |
---|
522 | WRITE( io, '(/,A)', advance='no') ' Vertical stretching ends at index: ' |
---|
523 | DO i = 1, number_stretch_level_start |
---|
524 | WRITE ( io, '(I12,A1)', advance='no' ) dz_stretch_level_end_index(i), ',' |
---|
525 | ENDDO |
---|
526 | WRITE( io, '(/,A)', advance='no') ' Factor used for stretching: ' |
---|
527 | DO i = 1, number_stretch_level_start |
---|
528 | WRITE ( io, '(F12.3,A1)', advance='no' ) dz_stretch_factor_array(i), ',' |
---|
529 | ENDDO |
---|
530 | ENDIF |
---|
531 | |
---|
532 | ELSE |
---|
533 | WRITE ( io, 250 ) dx, dy |
---|
534 | DO i = 1, number_stretch_level_start+1 |
---|
535 | WRITE ( io, 253 ) i, dz(i) |
---|
536 | ENDDO |
---|
537 | |
---|
538 | WRITE ( io, 251 ) (nx+1)*dx, (ny+1)*dy, zu(0) |
---|
539 | |
---|
540 | IF ( ANY( dz_stretch_level_start_index > 0 ) ) THEN |
---|
541 | WRITE( io, '(A)', advance='no') ' Vertical stretching starts at height:' |
---|
542 | DO i = 1, number_stretch_level_start |
---|
543 | WRITE ( io, '(F10.1,A3)', advance='no' ) dz_stretch_level_start(i), ' m,' |
---|
544 | ENDDO |
---|
545 | WRITE( io, '(/,A)', advance='no') ' Vertical stretching starts at index: ' |
---|
546 | DO i = 1, number_stretch_level_start |
---|
547 | WRITE ( io, '(I12,A1)', advance='no' ) dz_stretch_level_start_index(i), ',' |
---|
548 | ENDDO |
---|
549 | WRITE( io, '(/,A)', advance='no') ' Vertical stretching ends at height: ' |
---|
550 | DO i = 1, number_stretch_level_start |
---|
551 | WRITE ( io, '(F10.1,A3)', advance='no' ) dz_stretch_level_end(i), ' m,' |
---|
552 | ENDDO |
---|
553 | WRITE( io, '(/,A)', advance='no') ' Vertical stretching ends at index: ' |
---|
554 | DO i = 1, number_stretch_level_start |
---|
555 | WRITE ( io, '(I12,A1)', advance='no' ) dz_stretch_level_end_index(i), ',' |
---|
556 | ENDDO |
---|
557 | WRITE( io, '(/,A)', advance='no') ' Factor used for stretching: ' |
---|
558 | DO i = 1, number_stretch_level_start |
---|
559 | WRITE ( io, '(F12.3,A1)', advance='no' ) dz_stretch_factor_array(i), ',' |
---|
560 | ENDDO |
---|
561 | ENDIF |
---|
562 | ENDIF |
---|
563 | WRITE ( io, 254 ) nx, ny, nzt+1, MIN( nnx, nx+1 ), MIN( nny, ny+1 ), & |
---|
564 | MIN( nnz+2, nzt+2 ) |
---|
565 | IF ( sloping_surface ) WRITE ( io, 260 ) alpha_surface |
---|
566 | |
---|
567 | ! |
---|
568 | !-- Profile for the large scale vertial velocity |
---|
569 | !-- Building output strings, starting with surface value |
---|
570 | IF ( large_scale_subsidence ) THEN |
---|
571 | temperatures = ' 0.0' |
---|
572 | gradients = '------' |
---|
573 | slices = ' 0' |
---|
574 | coordinates = ' 0.0' |
---|
575 | i = 1 |
---|
576 | DO WHILE ( subs_vertical_gradient_level_i(i) /= -9999 ) |
---|
577 | |
---|
578 | WRITE (coor_chr,'(E10.2,7X)') & |
---|
579 | w_subs(subs_vertical_gradient_level_i(i)) |
---|
580 | temperatures = TRIM( temperatures ) // ' ' // TRIM( coor_chr ) |
---|
581 | |
---|
582 | WRITE (coor_chr,'(E10.2,7X)') subs_vertical_gradient(i) |
---|
583 | gradients = TRIM( gradients ) // ' ' // TRIM( coor_chr ) |
---|
584 | |
---|
585 | WRITE (coor_chr,'(I10,7X)') subs_vertical_gradient_level_i(i) |
---|
586 | slices = TRIM( slices ) // ' ' // TRIM( coor_chr ) |
---|
587 | |
---|
588 | WRITE (coor_chr,'(F10.2,7X)') subs_vertical_gradient_level(i) |
---|
589 | coordinates = TRIM( coordinates ) // ' ' // TRIM( coor_chr ) |
---|
590 | |
---|
591 | IF ( i == 10 ) THEN |
---|
592 | EXIT |
---|
593 | ELSE |
---|
594 | i = i + 1 |
---|
595 | ENDIF |
---|
596 | |
---|
597 | ENDDO |
---|
598 | |
---|
599 | |
---|
600 | IF ( .NOT. large_scale_forcing ) THEN |
---|
601 | WRITE ( io, 426 ) TRIM( coordinates ), TRIM( temperatures ), & |
---|
602 | TRIM( gradients ), TRIM( slices ) |
---|
603 | ENDIF |
---|
604 | |
---|
605 | |
---|
606 | ENDIF |
---|
607 | |
---|
608 | !-- Profile of the geostrophic wind (component ug) |
---|
609 | !-- Building output strings |
---|
610 | WRITE ( ugcomponent, '(F6.2)' ) ug_surface |
---|
611 | gradients = '------' |
---|
612 | slices = ' 0' |
---|
613 | coordinates = ' 0.0' |
---|
614 | i = 1 |
---|
615 | DO WHILE ( ug_vertical_gradient_level_ind(i) /= -9999 ) |
---|
616 | |
---|
617 | WRITE (coor_chr,'(F6.2,1X)') ug(ug_vertical_gradient_level_ind(i)) |
---|
618 | ugcomponent = TRIM( ugcomponent ) // ' ' // TRIM( coor_chr ) |
---|
619 | |
---|
620 | WRITE (coor_chr,'(F6.2,1X)') ug_vertical_gradient(i) |
---|
621 | gradients = TRIM( gradients ) // ' ' // TRIM( coor_chr ) |
---|
622 | |
---|
623 | WRITE (coor_chr,'(I6,1X)') ug_vertical_gradient_level_ind(i) |
---|
624 | slices = TRIM( slices ) // ' ' // TRIM( coor_chr ) |
---|
625 | |
---|
626 | WRITE (coor_chr,'(F6.1,1X)') ug_vertical_gradient_level(i) |
---|
627 | coordinates = TRIM( coordinates ) // ' ' // TRIM( coor_chr ) |
---|
628 | |
---|
629 | IF ( i == 10 ) THEN |
---|
630 | EXIT |
---|
631 | ELSE |
---|
632 | i = i + 1 |
---|
633 | ENDIF |
---|
634 | |
---|
635 | ENDDO |
---|
636 | |
---|
637 | IF ( .NOT. large_scale_forcing ) THEN |
---|
638 | WRITE ( io, 423 ) TRIM( coordinates ), TRIM( ugcomponent ), & |
---|
639 | TRIM( gradients ), TRIM( slices ) |
---|
640 | ENDIF |
---|
641 | |
---|
642 | !-- Profile of the geostrophic wind (component vg) |
---|
643 | !-- Building output strings |
---|
644 | WRITE ( vgcomponent, '(F6.2)' ) vg_surface |
---|
645 | gradients = '------' |
---|
646 | slices = ' 0' |
---|
647 | coordinates = ' 0.0' |
---|
648 | i = 1 |
---|
649 | DO WHILE ( vg_vertical_gradient_level_ind(i) /= -9999 ) |
---|
650 | |
---|
651 | WRITE (coor_chr,'(F6.2,1X)') vg(vg_vertical_gradient_level_ind(i)) |
---|
652 | vgcomponent = TRIM( vgcomponent ) // ' ' // TRIM( coor_chr ) |
---|
653 | |
---|
654 | WRITE (coor_chr,'(F6.2,1X)') vg_vertical_gradient(i) |
---|
655 | gradients = TRIM( gradients ) // ' ' // TRIM( coor_chr ) |
---|
656 | |
---|
657 | WRITE (coor_chr,'(I6,1X)') vg_vertical_gradient_level_ind(i) |
---|
658 | slices = TRIM( slices ) // ' ' // TRIM( coor_chr ) |
---|
659 | |
---|
660 | WRITE (coor_chr,'(F6.1,1X)') vg_vertical_gradient_level(i) |
---|
661 | coordinates = TRIM( coordinates ) // ' ' // TRIM( coor_chr ) |
---|
662 | |
---|
663 | IF ( i == 10 ) THEN |
---|
664 | EXIT |
---|
665 | ELSE |
---|
666 | i = i + 1 |
---|
667 | ENDIF |
---|
668 | |
---|
669 | ENDDO |
---|
670 | |
---|
671 | IF ( .NOT. large_scale_forcing ) THEN |
---|
672 | WRITE ( io, 424 ) TRIM( coordinates ), TRIM( vgcomponent ), & |
---|
673 | TRIM( gradients ), TRIM( slices ) |
---|
674 | ENDIF |
---|
675 | |
---|
676 | ! |
---|
677 | !-- Topography |
---|
678 | WRITE ( io, 270 ) topography |
---|
679 | SELECT CASE ( TRIM( topography ) ) |
---|
680 | |
---|
681 | CASE ( 'flat' ) |
---|
682 | ! no actions necessary |
---|
683 | |
---|
684 | CASE ( 'single_building' ) |
---|
685 | blx = INT( building_length_x / dx ) |
---|
686 | bly = INT( building_length_y / dy ) |
---|
687 | bh = MINLOC( ABS( zw - building_height ), 1 ) - 1 |
---|
688 | IF ( ABS( zw(bh ) - building_height ) == & |
---|
689 | ABS( zw(bh+1) - building_height ) ) bh = bh + 1 |
---|
690 | |
---|
691 | IF ( building_wall_left == 9999999.9_wp ) THEN |
---|
692 | building_wall_left = ( nx + 1 - blx ) / 2 * dx |
---|
693 | ENDIF |
---|
694 | bxl = INT ( building_wall_left / dx + 0.5_wp ) |
---|
695 | bxr = bxl + blx |
---|
696 | |
---|
697 | IF ( building_wall_south == 9999999.9_wp ) THEN |
---|
698 | building_wall_south = ( ny + 1 - bly ) / 2 * dy |
---|
699 | ENDIF |
---|
700 | bys = INT ( building_wall_south / dy + 0.5_wp ) |
---|
701 | byn = bys + bly |
---|
702 | |
---|
703 | WRITE ( io, 271 ) building_length_x, building_length_y, & |
---|
704 | building_height, bxl, bxr, bys, byn |
---|
705 | |
---|
706 | CASE ( 'single_street_canyon' ) |
---|
707 | ch = MINLOC( ABS( zw - canyon_height ), 1 ) - 1 |
---|
708 | IF ( ABS( zw(ch ) - canyon_height ) == & |
---|
709 | ABS( zw(ch+1) - canyon_height ) ) ch = ch + 1 |
---|
710 | IF ( canyon_width_x /= 9999999.9_wp ) THEN |
---|
711 | ! |
---|
712 | !-- Street canyon in y direction |
---|
713 | cwx = NINT( canyon_width_x / dx ) |
---|
714 | IF ( canyon_wall_left == 9999999.9_wp ) THEN |
---|
715 | canyon_wall_left = ( nx + 1 - cwx ) / 2 * dx |
---|
716 | ENDIF |
---|
717 | cxl = NINT( canyon_wall_left / dx ) |
---|
718 | cxr = cxl + cwx |
---|
719 | WRITE ( io, 272 ) 'y', canyon_height, ch, 'u', cxl, cxr |
---|
720 | |
---|
721 | ELSEIF ( canyon_width_y /= 9999999.9_wp ) THEN |
---|
722 | ! |
---|
723 | !-- Street canyon in x direction |
---|
724 | cwy = NINT( canyon_width_y / dy ) |
---|
725 | IF ( canyon_wall_south == 9999999.9_wp ) THEN |
---|
726 | canyon_wall_south = ( ny + 1 - cwy ) / 2 * dy |
---|
727 | ENDIF |
---|
728 | cys = NINT( canyon_wall_south / dy ) |
---|
729 | cyn = cys + cwy |
---|
730 | WRITE ( io, 272 ) 'x', canyon_height, ch, 'v', cys, cyn |
---|
731 | ENDIF |
---|
732 | |
---|
733 | CASE ( 'tunnel' ) |
---|
734 | IF ( tunnel_width_x /= 9999999.9_wp ) THEN |
---|
735 | ! |
---|
736 | !-- Tunnel axis in y direction |
---|
737 | IF ( tunnel_length == 9999999.9_wp .OR. & |
---|
738 | tunnel_length >= ( nx + 1 ) * dx ) THEN |
---|
739 | WRITE ( io, 273 ) 'y', tunnel_height, tunnel_wall_depth, & |
---|
740 | tunnel_width_x |
---|
741 | ELSE |
---|
742 | WRITE ( io, 274 ) 'y', tunnel_height, tunnel_wall_depth, & |
---|
743 | tunnel_width_x, tunnel_length |
---|
744 | ENDIF |
---|
745 | |
---|
746 | ELSEIF ( tunnel_width_y /= 9999999.9_wp ) THEN |
---|
747 | ! |
---|
748 | !-- Tunnel axis in x direction |
---|
749 | IF ( tunnel_length == 9999999.9_wp .OR. & |
---|
750 | tunnel_length >= ( ny + 1 ) * dy ) THEN |
---|
751 | WRITE ( io, 273 ) 'x', tunnel_height, tunnel_wall_depth, & |
---|
752 | tunnel_width_y |
---|
753 | ELSE |
---|
754 | WRITE ( io, 274 ) 'x', tunnel_height, tunnel_wall_depth, & |
---|
755 | tunnel_width_y, tunnel_length |
---|
756 | ENDIF |
---|
757 | ENDIF |
---|
758 | |
---|
759 | END SELECT |
---|
760 | |
---|
761 | IF ( TRIM( topography ) /= 'flat' ) THEN |
---|
762 | IF ( TRIM( topography_grid_convention ) == ' ' ) THEN |
---|
763 | IF ( TRIM( topography ) == 'single_building' .OR. & |
---|
764 | TRIM( topography ) == 'single_street_canyon' ) THEN |
---|
765 | WRITE ( io, 278 ) |
---|
766 | ELSEIF ( TRIM( topography ) == 'read_from_file' ) THEN |
---|
767 | WRITE ( io, 279 ) |
---|
768 | ENDIF |
---|
769 | ELSEIF ( TRIM( topography_grid_convention ) == 'cell_edge' ) THEN |
---|
770 | WRITE ( io, 278 ) |
---|
771 | ELSEIF ( TRIM( topography_grid_convention ) == 'cell_center' ) THEN |
---|
772 | WRITE ( io, 279 ) |
---|
773 | ENDIF |
---|
774 | ENDIF |
---|
775 | |
---|
776 | !-- Complex terrain |
---|
777 | IF ( complex_terrain ) THEN |
---|
778 | WRITE( io, 280 ) |
---|
779 | IF ( turbulent_inflow ) THEN |
---|
780 | WRITE( io, 281 ) zu(topo_top_ind(0,0,0)) |
---|
781 | ENDIF |
---|
782 | IF ( TRIM( initializing_actions ) == 'cyclic_fill' ) THEN |
---|
783 | WRITE( io, 282 ) |
---|
784 | ENDIF |
---|
785 | ENDIF |
---|
786 | ! |
---|
787 | !-- Boundary conditions |
---|
788 | IF ( ibc_p_b == 0 ) THEN |
---|
789 | r_lower = 'p(0) = 0 |' |
---|
790 | ELSEIF ( ibc_p_b == 1 ) THEN |
---|
791 | r_lower = 'p(0) = p(1) |' |
---|
792 | ENDIF |
---|
793 | IF ( ibc_p_t == 0 ) THEN |
---|
794 | r_upper = 'p(nzt+1) = 0 |' |
---|
795 | ELSE |
---|
796 | r_upper = 'p(nzt+1) = p(nzt) |' |
---|
797 | ENDIF |
---|
798 | |
---|
799 | IF ( ibc_uv_b == 0 ) THEN |
---|
800 | r_lower = TRIM( r_lower ) // ' uv(0) = -uv(1) |' |
---|
801 | ELSE |
---|
802 | r_lower = TRIM( r_lower ) // ' uv(0) = uv(1) |' |
---|
803 | ENDIF |
---|
804 | IF ( TRIM( bc_uv_t ) == 'dirichlet_0' ) THEN |
---|
805 | r_upper = TRIM( r_upper ) // ' uv(nzt+1) = 0 |' |
---|
806 | ELSEIF ( ibc_uv_t == 0 ) THEN |
---|
807 | r_upper = TRIM( r_upper ) // ' uv(nzt+1) = ug(nzt+1), vg(nzt+1) |' |
---|
808 | ELSE |
---|
809 | r_upper = TRIM( r_upper ) // ' uv(nzt+1) = uv(nzt) |' |
---|
810 | ENDIF |
---|
811 | |
---|
812 | IF ( ibc_pt_b == 0 ) THEN |
---|
813 | IF ( land_surface ) THEN |
---|
814 | r_lower = TRIM( r_lower ) // ' pt(0) = from soil model' |
---|
815 | ELSE |
---|
816 | r_lower = TRIM( r_lower ) // ' pt(0) = pt_surface' |
---|
817 | ENDIF |
---|
818 | ELSEIF ( ibc_pt_b == 1 ) THEN |
---|
819 | r_lower = TRIM( r_lower ) // ' pt(0) = pt(1)' |
---|
820 | ELSEIF ( ibc_pt_b == 2 ) THEN |
---|
821 | r_lower = TRIM( r_lower ) // ' pt(0) = from coupled model' |
---|
822 | ENDIF |
---|
823 | IF ( ibc_pt_t == 0 ) THEN |
---|
824 | r_upper = TRIM( r_upper ) // ' pt(nzt+1) = pt_top' |
---|
825 | ELSEIF( ibc_pt_t == 1 ) THEN |
---|
826 | r_upper = TRIM( r_upper ) // ' pt(nzt+1) = pt(nzt)' |
---|
827 | ELSEIF( ibc_pt_t == 2 ) THEN |
---|
828 | r_upper = TRIM( r_upper ) // ' pt(nzt+1) = pt(nzt) + dpt/dz_ini' |
---|
829 | |
---|
830 | ENDIF |
---|
831 | |
---|
832 | WRITE ( io, 300 ) r_lower, r_upper |
---|
833 | |
---|
834 | IF ( .NOT. constant_diffusion ) THEN |
---|
835 | IF ( ibc_e_b == 1 ) THEN |
---|
836 | r_lower = 'e(0) = e(1)' |
---|
837 | ELSE |
---|
838 | r_lower = 'e(0) = e(1) = (u*/0.1)**2' |
---|
839 | ENDIF |
---|
840 | r_upper = 'e(nzt+1) = e(nzt) = e(nzt-1)' |
---|
841 | |
---|
842 | WRITE ( io, 301 ) 'e', r_lower, r_upper |
---|
843 | |
---|
844 | ENDIF |
---|
845 | |
---|
846 | IF ( ocean_mode ) THEN |
---|
847 | r_lower = 'sa(0) = sa(1)' |
---|
848 | IF ( ibc_sa_t == 0 ) THEN |
---|
849 | r_upper = 'sa(nzt+1) = sa_surface' |
---|
850 | ELSE |
---|
851 | r_upper = 'sa(nzt+1) = sa(nzt)' |
---|
852 | ENDIF |
---|
853 | WRITE ( io, 301 ) 'sa', r_lower, r_upper |
---|
854 | ENDIF |
---|
855 | |
---|
856 | IF ( humidity ) THEN |
---|
857 | IF ( ibc_q_b == 0 ) THEN |
---|
858 | IF ( land_surface ) THEN |
---|
859 | r_lower = 'q(0) = from soil model' |
---|
860 | ELSE |
---|
861 | r_lower = 'q(0) = q_surface' |
---|
862 | ENDIF |
---|
863 | |
---|
864 | ELSE |
---|
865 | r_lower = 'q(0) = q(1)' |
---|
866 | ENDIF |
---|
867 | IF ( ibc_q_t == 0 ) THEN |
---|
868 | r_upper = 'q(nzt+1) = q_top' |
---|
869 | ELSE |
---|
870 | r_upper = 'q(nzt+1) = q(nzt) + dq/dz' |
---|
871 | ENDIF |
---|
872 | WRITE ( io, 301 ) 'q', r_lower, r_upper |
---|
873 | ENDIF |
---|
874 | |
---|
875 | IF ( passive_scalar ) THEN |
---|
876 | IF ( ibc_s_b == 0 ) THEN |
---|
877 | r_lower = 's(0) = s_surface' |
---|
878 | ELSE |
---|
879 | r_lower = 's(0) = s(1)' |
---|
880 | ENDIF |
---|
881 | IF ( ibc_s_t == 0 ) THEN |
---|
882 | r_upper = 's(nzt+1) = s_top' |
---|
883 | ELSEIF ( ibc_s_t == 1 ) THEN |
---|
884 | r_upper = 's(nzt+1) = s(nzt)' |
---|
885 | ELSEIF ( ibc_s_t == 2 ) THEN |
---|
886 | r_upper = 's(nzt+1) = s(nzt) + ds/dz' |
---|
887 | ENDIF |
---|
888 | WRITE ( io, 301 ) 's', r_lower, r_upper |
---|
889 | ENDIF |
---|
890 | |
---|
891 | IF ( use_surface_fluxes ) THEN |
---|
892 | WRITE ( io, 303 ) |
---|
893 | IF ( constant_heatflux ) THEN |
---|
894 | IF ( large_scale_forcing .AND. lsf_surf ) THEN |
---|
895 | IF ( surf_def_h(0)%ns >= 1 ) WRITE ( io, 306 ) surf_def_h(0)%shf(1) |
---|
896 | ELSE |
---|
897 | WRITE ( io, 306 ) surface_heatflux |
---|
898 | ENDIF |
---|
899 | IF ( random_heatflux ) WRITE ( io, 307 ) |
---|
900 | ENDIF |
---|
901 | IF ( humidity .AND. constant_waterflux ) THEN |
---|
902 | IF ( large_scale_forcing .AND. lsf_surf ) THEN |
---|
903 | WRITE ( io, 311 ) surf_def_h(0)%qsws(1) |
---|
904 | ELSE |
---|
905 | WRITE ( io, 311 ) surface_waterflux |
---|
906 | ENDIF |
---|
907 | ENDIF |
---|
908 | IF ( passive_scalar .AND. constant_scalarflux ) THEN |
---|
909 | WRITE ( io, 313 ) surface_scalarflux |
---|
910 | ENDIF |
---|
911 | ENDIF |
---|
912 | |
---|
913 | IF ( use_top_fluxes ) THEN |
---|
914 | WRITE ( io, 304 ) |
---|
915 | IF ( coupling_mode == 'uncoupled' ) THEN |
---|
916 | WRITE ( io, 320 ) top_momentumflux_u, top_momentumflux_v |
---|
917 | IF ( constant_top_heatflux ) THEN |
---|
918 | WRITE ( io, 306 ) top_heatflux |
---|
919 | ENDIF |
---|
920 | ELSEIF ( coupling_mode == 'ocean_to_atmosphere' ) THEN |
---|
921 | WRITE ( io, 316 ) |
---|
922 | ENDIF |
---|
923 | IF ( ocean_mode .AND. constant_top_salinityflux ) & |
---|
924 | WRITE ( io, 309 ) top_salinityflux |
---|
925 | IF ( humidity ) WRITE ( io, 315 ) |
---|
926 | IF ( passive_scalar .AND. constant_top_scalarflux ) & |
---|
927 | WRITE ( io, 302 ) top_scalarflux |
---|
928 | ENDIF |
---|
929 | |
---|
930 | IF ( constant_flux_layer ) THEN |
---|
931 | WRITE ( io, 305 ) (zu(1)-zu(0)), roughness_length, & |
---|
932 | z0h_factor*roughness_length, kappa, & |
---|
933 | zeta_min, zeta_max |
---|
934 | IF ( .NOT. constant_heatflux ) WRITE ( io, 308 ) |
---|
935 | IF ( humidity .AND. .NOT. constant_waterflux ) THEN |
---|
936 | WRITE ( io, 312 ) |
---|
937 | ENDIF |
---|
938 | IF ( passive_scalar .AND. .NOT. constant_scalarflux ) THEN |
---|
939 | WRITE ( io, 314 ) |
---|
940 | ENDIF |
---|
941 | ELSE |
---|
942 | IF ( INDEX(initializing_actions, 'set_1d-model_profiles') /= 0 ) THEN |
---|
943 | WRITE ( io, 310 ) zeta_min, zeta_max |
---|
944 | ENDIF |
---|
945 | ENDIF |
---|
946 | |
---|
947 | WRITE ( io, 317 ) bc_lr, bc_ns |
---|
948 | IF ( .NOT. bc_lr_cyc .OR. .NOT. bc_ns_cyc ) THEN |
---|
949 | WRITE ( io, 318 ) use_cmax, pt_damping_width, pt_damping_factor |
---|
950 | IF ( turbulent_inflow ) THEN |
---|
951 | IF ( y_shift == 0 ) THEN |
---|
952 | WRITE ( io, 319 ) recycling_width, recycling_plane, & |
---|
953 | inflow_damping_height, inflow_damping_width |
---|
954 | ELSE |
---|
955 | WRITE ( io, 322 ) y_shift, recycling_width, recycling_plane, & |
---|
956 | inflow_damping_height, inflow_damping_width |
---|
957 | END IF |
---|
958 | ENDIF |
---|
959 | IF ( turbulent_outflow ) THEN |
---|
960 | WRITE ( io, 323 ) outflow_source_plane, INT(outflow_source_plane/dx) |
---|
961 | ENDIF |
---|
962 | ENDIF |
---|
963 | |
---|
964 | ! |
---|
965 | !-- Initial Profiles |
---|
966 | WRITE ( io, 321 ) |
---|
967 | ! |
---|
968 | !-- Initial wind profiles |
---|
969 | IF ( u_profile(1) /= 9999999.9_wp ) WRITE ( io, 427 ) |
---|
970 | |
---|
971 | ! |
---|
972 | !-- Initial temperature profile |
---|
973 | !-- Building output strings, starting with surface temperature |
---|
974 | WRITE ( temperatures, '(F6.2)' ) pt_surface |
---|
975 | gradients = '------' |
---|
976 | slices = ' 0' |
---|
977 | coordinates = ' 0.0' |
---|
978 | i = 1 |
---|
979 | DO WHILE ( pt_vertical_gradient_level_ind(i) /= -9999 ) |
---|
980 | |
---|
981 | WRITE (coor_chr,'(F7.2)') pt_init(pt_vertical_gradient_level_ind(i)) |
---|
982 | temperatures = TRIM( temperatures ) // ' ' // TRIM( coor_chr ) |
---|
983 | |
---|
984 | WRITE (coor_chr,'(F7.2)') pt_vertical_gradient(i) |
---|
985 | gradients = TRIM( gradients ) // ' ' // TRIM( coor_chr ) |
---|
986 | |
---|
987 | WRITE (coor_chr,'(I7)') pt_vertical_gradient_level_ind(i) |
---|
988 | slices = TRIM( slices ) // ' ' // TRIM( coor_chr ) |
---|
989 | |
---|
990 | WRITE (coor_chr,'(F7.1)') pt_vertical_gradient_level(i) |
---|
991 | coordinates = TRIM( coordinates ) // ' ' // TRIM( coor_chr ) |
---|
992 | |
---|
993 | IF ( i == 10 ) THEN |
---|
994 | EXIT |
---|
995 | ELSE |
---|
996 | i = i + 1 |
---|
997 | ENDIF |
---|
998 | |
---|
999 | ENDDO |
---|
1000 | |
---|
1001 | IF ( .NOT. nudging ) THEN |
---|
1002 | WRITE ( io, 420 ) TRIM( coordinates ), TRIM( temperatures ), & |
---|
1003 | TRIM( gradients ), TRIM( slices ) |
---|
1004 | ELSE |
---|
1005 | WRITE ( io, 428 ) |
---|
1006 | ENDIF |
---|
1007 | |
---|
1008 | ! |
---|
1009 | !-- Initial humidity profile |
---|
1010 | !-- Building output strings, starting with surface humidity |
---|
1011 | IF ( humidity ) THEN |
---|
1012 | WRITE ( temperatures, '(E8.1)' ) q_surface |
---|
1013 | gradients = '--------' |
---|
1014 | slices = ' 0' |
---|
1015 | coordinates = ' 0.0' |
---|
1016 | i = 1 |
---|
1017 | DO WHILE ( q_vertical_gradient_level_ind(i) /= -9999 ) |
---|
1018 | |
---|
1019 | WRITE (coor_chr,'(E8.1,4X)') q_init(q_vertical_gradient_level_ind(i)) |
---|
1020 | temperatures = TRIM( temperatures ) // ' ' // TRIM( coor_chr ) |
---|
1021 | |
---|
1022 | WRITE (coor_chr,'(E8.1,4X)') q_vertical_gradient(i) |
---|
1023 | gradients = TRIM( gradients ) // ' ' // TRIM( coor_chr ) |
---|
1024 | |
---|
1025 | WRITE (coor_chr,'(I8,4X)') q_vertical_gradient_level_ind(i) |
---|
1026 | slices = TRIM( slices ) // ' ' // TRIM( coor_chr ) |
---|
1027 | |
---|
1028 | WRITE (coor_chr,'(F8.1,4X)') q_vertical_gradient_level(i) |
---|
1029 | coordinates = TRIM( coordinates ) // ' ' // TRIM( coor_chr ) |
---|
1030 | |
---|
1031 | IF ( i == 10 ) THEN |
---|
1032 | EXIT |
---|
1033 | ELSE |
---|
1034 | i = i + 1 |
---|
1035 | ENDIF |
---|
1036 | |
---|
1037 | ENDDO |
---|
1038 | |
---|
1039 | IF ( .NOT. nudging ) THEN |
---|
1040 | WRITE ( io, 421 ) TRIM( coordinates ), TRIM( temperatures ), & |
---|
1041 | TRIM( gradients ), TRIM( slices ) |
---|
1042 | ENDIF |
---|
1043 | ENDIF |
---|
1044 | ! |
---|
1045 | !-- Initial scalar profile |
---|
1046 | !-- Building output strings, starting with surface humidity |
---|
1047 | IF ( passive_scalar ) THEN |
---|
1048 | WRITE ( temperatures, '(E8.1)' ) s_surface |
---|
1049 | gradients = '--------' |
---|
1050 | slices = ' 0' |
---|
1051 | coordinates = ' 0.0' |
---|
1052 | i = 1 |
---|
1053 | DO WHILE ( s_vertical_gradient_level_ind(i) /= -9999 ) |
---|
1054 | |
---|
1055 | WRITE (coor_chr,'(E8.1,4X)') s_init(s_vertical_gradient_level_ind(i)) |
---|
1056 | temperatures = TRIM( temperatures ) // ' ' // TRIM( coor_chr ) |
---|
1057 | |
---|
1058 | WRITE (coor_chr,'(E8.1,4X)') s_vertical_gradient(i) |
---|
1059 | gradients = TRIM( gradients ) // ' ' // TRIM( coor_chr ) |
---|
1060 | |
---|
1061 | WRITE (coor_chr,'(I8,4X)') s_vertical_gradient_level_ind(i) |
---|
1062 | slices = TRIM( slices ) // ' ' // TRIM( coor_chr ) |
---|
1063 | |
---|
1064 | WRITE (coor_chr,'(F8.1,4X)') s_vertical_gradient_level(i) |
---|
1065 | coordinates = TRIM( coordinates ) // ' ' // TRIM( coor_chr ) |
---|
1066 | |
---|
1067 | IF ( i == 10 ) THEN |
---|
1068 | EXIT |
---|
1069 | ELSE |
---|
1070 | i = i + 1 |
---|
1071 | ENDIF |
---|
1072 | |
---|
1073 | ENDDO |
---|
1074 | |
---|
1075 | WRITE ( io, 422 ) TRIM( coordinates ), TRIM( temperatures ), & |
---|
1076 | TRIM( gradients ), TRIM( slices ) |
---|
1077 | ENDIF |
---|
1078 | |
---|
1079 | ! |
---|
1080 | !-- Initial salinity profile |
---|
1081 | !-- Building output strings, starting with surface salinity |
---|
1082 | IF ( ocean_mode ) THEN |
---|
1083 | WRITE ( temperatures, '(F6.2)' ) sa_surface |
---|
1084 | gradients = '------' |
---|
1085 | slices = ' 0' |
---|
1086 | coordinates = ' 0.0' |
---|
1087 | i = 1 |
---|
1088 | DO WHILE ( sa_vertical_gradient_level_ind(i) /= -9999 ) |
---|
1089 | |
---|
1090 | WRITE (coor_chr,'(F7.2)') sa_init(sa_vertical_gradient_level_ind(i)) |
---|
1091 | temperatures = TRIM( temperatures ) // ' ' // TRIM( coor_chr ) |
---|
1092 | |
---|
1093 | WRITE (coor_chr,'(F7.2)') sa_vertical_gradient(i) |
---|
1094 | gradients = TRIM( gradients ) // ' ' // TRIM( coor_chr ) |
---|
1095 | |
---|
1096 | WRITE (coor_chr,'(I7)') sa_vertical_gradient_level_ind(i) |
---|
1097 | slices = TRIM( slices ) // ' ' // TRIM( coor_chr ) |
---|
1098 | |
---|
1099 | WRITE (coor_chr,'(F7.1)') sa_vertical_gradient_level(i) |
---|
1100 | coordinates = TRIM( coordinates ) // ' ' // TRIM( coor_chr ) |
---|
1101 | |
---|
1102 | IF ( i == 10 ) THEN |
---|
1103 | EXIT |
---|
1104 | ELSE |
---|
1105 | i = i + 1 |
---|
1106 | ENDIF |
---|
1107 | |
---|
1108 | ENDDO |
---|
1109 | |
---|
1110 | WRITE ( io, 425 ) TRIM( coordinates ), TRIM( temperatures ), & |
---|
1111 | TRIM( gradients ), TRIM( slices ) |
---|
1112 | ENDIF |
---|
1113 | |
---|
1114 | |
---|
1115 | ! |
---|
1116 | !-- Listing of 1D-profiles |
---|
1117 | WRITE ( io, 325 ) dt_dopr_listing |
---|
1118 | IF ( averaging_interval_pr /= 0.0_wp ) THEN |
---|
1119 | WRITE ( io, 326 ) averaging_interval_pr, dt_averaging_input_pr |
---|
1120 | ENDIF |
---|
1121 | |
---|
1122 | ! |
---|
1123 | !-- DATA output |
---|
1124 | WRITE ( io, 330 ) |
---|
1125 | IF ( averaging_interval_pr /= 0.0_wp ) THEN |
---|
1126 | WRITE ( io, 326 ) averaging_interval_pr, dt_averaging_input_pr |
---|
1127 | ENDIF |
---|
1128 | |
---|
1129 | ! |
---|
1130 | !-- 1D-profiles |
---|
1131 | dopr_chr = 'Profile:' |
---|
1132 | IF ( dopr_n /= 0 ) THEN |
---|
1133 | WRITE ( io, 331 ) |
---|
1134 | |
---|
1135 | output_format = '' |
---|
1136 | output_format = netcdf_data_format_string |
---|
1137 | IF ( netcdf_deflate == 0 ) THEN |
---|
1138 | WRITE ( io, 344 ) output_format |
---|
1139 | ELSE |
---|
1140 | WRITE ( io, 354 ) TRIM( output_format ), netcdf_deflate |
---|
1141 | ENDIF |
---|
1142 | |
---|
1143 | DO i = 1, dopr_n |
---|
1144 | dopr_chr = TRIM( dopr_chr ) // ' ' // TRIM( data_output_pr(i) ) // ',' |
---|
1145 | IF ( LEN_TRIM( dopr_chr ) >= 60 ) THEN |
---|
1146 | WRITE ( io, 332 ) dopr_chr |
---|
1147 | dopr_chr = ' :' |
---|
1148 | ENDIF |
---|
1149 | ENDDO |
---|
1150 | |
---|
1151 | IF ( dopr_chr /= '' ) THEN |
---|
1152 | WRITE ( io, 332 ) dopr_chr |
---|
1153 | ENDIF |
---|
1154 | WRITE ( io, 333 ) dt_dopr, averaging_interval_pr, dt_averaging_input_pr |
---|
1155 | IF ( skip_time_dopr /= 0.0_wp ) WRITE ( io, 339 ) skip_time_dopr |
---|
1156 | ENDIF |
---|
1157 | |
---|
1158 | ! |
---|
1159 | !-- 2D-arrays |
---|
1160 | DO av = 0, 1 |
---|
1161 | |
---|
1162 | i = 1 |
---|
1163 | do2d_xy = '' |
---|
1164 | do2d_xz = '' |
---|
1165 | do2d_yz = '' |
---|
1166 | DO WHILE ( do2d(av,i) /= ' ' ) |
---|
1167 | |
---|
1168 | l = MAX( 2, LEN_TRIM( do2d(av,i) ) ) |
---|
1169 | do2d_mode = do2d(av,i)(l-1:l) |
---|
1170 | |
---|
1171 | SELECT CASE ( do2d_mode ) |
---|
1172 | CASE ( 'xy' ) |
---|
1173 | ll = LEN_TRIM( do2d_xy ) |
---|
1174 | do2d_xy = do2d_xy(1:ll) // ' ' // do2d(av,i)(1:l-3) // ',' |
---|
1175 | CASE ( 'xz' ) |
---|
1176 | ll = LEN_TRIM( do2d_xz ) |
---|
1177 | do2d_xz = do2d_xz(1:ll) // ' ' // do2d(av,i)(1:l-3) // ',' |
---|
1178 | CASE ( 'yz' ) |
---|
1179 | ll = LEN_TRIM( do2d_yz ) |
---|
1180 | do2d_yz = do2d_yz(1:ll) // ' ' // do2d(av,i)(1:l-3) // ',' |
---|
1181 | END SELECT |
---|
1182 | |
---|
1183 | i = i + 1 |
---|
1184 | |
---|
1185 | ENDDO |
---|
1186 | |
---|
1187 | IF ( ( ( do2d_xy /= '' .AND. section(1,1) /= -9999 ) .OR. & |
---|
1188 | ( do2d_xz /= '' .AND. section(1,2) /= -9999 ) .OR. & |
---|
1189 | ( do2d_yz /= '' .AND. section(1,3) /= -9999 ) ) ) THEN |
---|
1190 | |
---|
1191 | IF ( av == 0 ) THEN |
---|
1192 | WRITE ( io, 334 ) '' |
---|
1193 | ELSE |
---|
1194 | WRITE ( io, 334 ) '(time-averaged)' |
---|
1195 | ENDIF |
---|
1196 | |
---|
1197 | IF ( do2d_at_begin ) THEN |
---|
1198 | begin_chr = 'and at the start' |
---|
1199 | ELSE |
---|
1200 | begin_chr = '' |
---|
1201 | ENDIF |
---|
1202 | |
---|
1203 | output_format = '' |
---|
1204 | output_format = netcdf_data_format_string |
---|
1205 | IF ( netcdf_deflate == 0 ) THEN |
---|
1206 | WRITE ( io, 344 ) output_format |
---|
1207 | ELSE |
---|
1208 | WRITE ( io, 354 ) TRIM( output_format ), netcdf_deflate |
---|
1209 | ENDIF |
---|
1210 | |
---|
1211 | IF ( do2d_xy /= '' .AND. section(1,1) /= -9999 ) THEN |
---|
1212 | i = 1 |
---|
1213 | slices = '/' |
---|
1214 | coordinates = '/' |
---|
1215 | ! |
---|
1216 | !-- Building strings with index and coordinate information of the |
---|
1217 | !-- slices |
---|
1218 | DO WHILE ( section(i,1) /= -9999 ) |
---|
1219 | |
---|
1220 | WRITE (section_chr,'(I5)') section(i,1) |
---|
1221 | section_chr = ADJUSTL( section_chr ) |
---|
1222 | slices = TRIM( slices ) // TRIM( section_chr ) // '/' |
---|
1223 | |
---|
1224 | IF ( section(i,1) == -1 ) THEN |
---|
1225 | WRITE (coor_chr,'(F10.1)') -1.0_wp |
---|
1226 | ELSE |
---|
1227 | WRITE (coor_chr,'(F10.1)') zu(section(i,1)) |
---|
1228 | ENDIF |
---|
1229 | coor_chr = ADJUSTL( coor_chr ) |
---|
1230 | coordinates = TRIM( coordinates ) // TRIM( coor_chr ) // '/' |
---|
1231 | |
---|
1232 | i = i + 1 |
---|
1233 | ENDDO |
---|
1234 | IF ( av == 0 ) THEN |
---|
1235 | WRITE ( io, 335 ) 'XY', do2d_xy, dt_do2d_xy, & |
---|
1236 | TRIM( begin_chr ), 'k', TRIM( slices ), & |
---|
1237 | TRIM( coordinates ) |
---|
1238 | IF ( skip_time_do2d_xy /= 0.0_wp ) THEN |
---|
1239 | WRITE ( io, 339 ) skip_time_do2d_xy |
---|
1240 | ENDIF |
---|
1241 | ELSE |
---|
1242 | WRITE ( io, 342 ) 'XY', do2d_xy, dt_data_output_av, & |
---|
1243 | TRIM( begin_chr ), averaging_interval, & |
---|
1244 | dt_averaging_input, 'k', TRIM( slices ), & |
---|
1245 | TRIM( coordinates ) |
---|
1246 | IF ( skip_time_data_output_av /= 0.0_wp ) THEN |
---|
1247 | WRITE ( io, 339 ) skip_time_data_output_av |
---|
1248 | ENDIF |
---|
1249 | ENDIF |
---|
1250 | IF ( netcdf_data_format > 4 ) THEN |
---|
1251 | WRITE ( io, 352 ) ntdim_2d_xy(av) |
---|
1252 | ELSE |
---|
1253 | WRITE ( io, 353 ) |
---|
1254 | ENDIF |
---|
1255 | ENDIF |
---|
1256 | |
---|
1257 | IF ( do2d_xz /= '' .AND. section(1,2) /= -9999 ) THEN |
---|
1258 | i = 1 |
---|
1259 | slices = '/' |
---|
1260 | coordinates = '/' |
---|
1261 | ! |
---|
1262 | !-- Building strings with index and coordinate information of the |
---|
1263 | !-- slices |
---|
1264 | DO WHILE ( section(i,2) /= -9999 ) |
---|
1265 | |
---|
1266 | WRITE (section_chr,'(I5)') section(i,2) |
---|
1267 | section_chr = ADJUSTL( section_chr ) |
---|
1268 | slices = TRIM( slices ) // TRIM( section_chr ) // '/' |
---|
1269 | |
---|
1270 | WRITE (coor_chr,'(F10.1)') section(i,2) * dy |
---|
1271 | coor_chr = ADJUSTL( coor_chr ) |
---|
1272 | coordinates = TRIM( coordinates ) // TRIM( coor_chr ) // '/' |
---|
1273 | |
---|
1274 | i = i + 1 |
---|
1275 | ENDDO |
---|
1276 | IF ( av == 0 ) THEN |
---|
1277 | WRITE ( io, 335 ) 'XZ', do2d_xz, dt_do2d_xz, & |
---|
1278 | TRIM( begin_chr ), 'j', TRIM( slices ), & |
---|
1279 | TRIM( coordinates ) |
---|
1280 | IF ( skip_time_do2d_xz /= 0.0_wp ) THEN |
---|
1281 | WRITE ( io, 339 ) skip_time_do2d_xz |
---|
1282 | ENDIF |
---|
1283 | ELSE |
---|
1284 | WRITE ( io, 342 ) 'XZ', do2d_xz, dt_data_output_av, & |
---|
1285 | TRIM( begin_chr ), averaging_interval, & |
---|
1286 | dt_averaging_input, 'j', TRIM( slices ), & |
---|
1287 | TRIM( coordinates ) |
---|
1288 | IF ( skip_time_data_output_av /= 0.0_wp ) THEN |
---|
1289 | WRITE ( io, 339 ) skip_time_data_output_av |
---|
1290 | ENDIF |
---|
1291 | ENDIF |
---|
1292 | IF ( netcdf_data_format > 4 ) THEN |
---|
1293 | WRITE ( io, 352 ) ntdim_2d_xz(av) |
---|
1294 | ELSE |
---|
1295 | WRITE ( io, 353 ) |
---|
1296 | ENDIF |
---|
1297 | ENDIF |
---|
1298 | |
---|
1299 | IF ( do2d_yz /= '' .AND. section(1,3) /= -9999 ) THEN |
---|
1300 | i = 1 |
---|
1301 | slices = '/' |
---|
1302 | coordinates = '/' |
---|
1303 | ! |
---|
1304 | !-- Building strings with index and coordinate information of the |
---|
1305 | !-- slices |
---|
1306 | DO WHILE ( section(i,3) /= -9999 ) |
---|
1307 | |
---|
1308 | WRITE (section_chr,'(I5)') section(i,3) |
---|
1309 | section_chr = ADJUSTL( section_chr ) |
---|
1310 | slices = TRIM( slices ) // TRIM( section_chr ) // '/' |
---|
1311 | |
---|
1312 | WRITE (coor_chr,'(F10.1)') section(i,3) * dx |
---|
1313 | coor_chr = ADJUSTL( coor_chr ) |
---|
1314 | coordinates = TRIM( coordinates ) // TRIM( coor_chr ) // '/' |
---|
1315 | |
---|
1316 | i = i + 1 |
---|
1317 | ENDDO |
---|
1318 | IF ( av == 0 ) THEN |
---|
1319 | WRITE ( io, 335 ) 'YZ', do2d_yz, dt_do2d_yz, & |
---|
1320 | TRIM( begin_chr ), 'i', TRIM( slices ), & |
---|
1321 | TRIM( coordinates ) |
---|
1322 | IF ( skip_time_do2d_yz /= 0.0_wp ) THEN |
---|
1323 | WRITE ( io, 339 ) skip_time_do2d_yz |
---|
1324 | ENDIF |
---|
1325 | ELSE |
---|
1326 | WRITE ( io, 342 ) 'YZ', do2d_yz, dt_data_output_av, & |
---|
1327 | TRIM( begin_chr ), averaging_interval, & |
---|
1328 | dt_averaging_input, 'i', TRIM( slices ), & |
---|
1329 | TRIM( coordinates ) |
---|
1330 | IF ( skip_time_data_output_av /= 0.0_wp ) THEN |
---|
1331 | WRITE ( io, 339 ) skip_time_data_output_av |
---|
1332 | ENDIF |
---|
1333 | ENDIF |
---|
1334 | IF ( netcdf_data_format > 4 ) THEN |
---|
1335 | WRITE ( io, 352 ) ntdim_2d_yz(av) |
---|
1336 | ELSE |
---|
1337 | WRITE ( io, 353 ) |
---|
1338 | ENDIF |
---|
1339 | ENDIF |
---|
1340 | |
---|
1341 | ENDIF |
---|
1342 | |
---|
1343 | ENDDO |
---|
1344 | |
---|
1345 | ! |
---|
1346 | !-- 3d-arrays |
---|
1347 | DO av = 0, 1 |
---|
1348 | |
---|
1349 | i = 1 |
---|
1350 | do3d_chr = '' |
---|
1351 | DO WHILE ( do3d(av,i) /= ' ' ) |
---|
1352 | |
---|
1353 | do3d_chr = TRIM( do3d_chr ) // ' ' // TRIM( do3d(av,i) ) // ',' |
---|
1354 | i = i + 1 |
---|
1355 | |
---|
1356 | ENDDO |
---|
1357 | |
---|
1358 | IF ( do3d_chr /= '' ) THEN |
---|
1359 | IF ( av == 0 ) THEN |
---|
1360 | WRITE ( io, 336 ) '' |
---|
1361 | ELSE |
---|
1362 | WRITE ( io, 336 ) '(time-averaged)' |
---|
1363 | ENDIF |
---|
1364 | |
---|
1365 | output_format = netcdf_data_format_string |
---|
1366 | IF ( netcdf_deflate == 0 ) THEN |
---|
1367 | WRITE ( io, 344 ) output_format |
---|
1368 | ELSE |
---|
1369 | WRITE ( io, 354 ) TRIM( output_format ), netcdf_deflate |
---|
1370 | ENDIF |
---|
1371 | |
---|
1372 | IF ( do3d_at_begin ) THEN |
---|
1373 | begin_chr = 'and at the start' |
---|
1374 | ELSE |
---|
1375 | begin_chr = '' |
---|
1376 | ENDIF |
---|
1377 | IF ( av == 0 ) THEN |
---|
1378 | WRITE ( io, 337 ) do3d_chr, dt_do3d, TRIM( begin_chr ), & |
---|
1379 | zu(nz_do3d), nz_do3d |
---|
1380 | ELSE |
---|
1381 | WRITE ( io, 343 ) do3d_chr, dt_data_output_av, & |
---|
1382 | TRIM( begin_chr ), averaging_interval, & |
---|
1383 | dt_averaging_input, zu(nz_do3d), nz_do3d |
---|
1384 | ENDIF |
---|
1385 | |
---|
1386 | IF ( netcdf_data_format > 4 ) THEN |
---|
1387 | WRITE ( io, 352 ) ntdim_3d(av) |
---|
1388 | ELSE |
---|
1389 | WRITE ( io, 353 ) |
---|
1390 | ENDIF |
---|
1391 | |
---|
1392 | IF ( av == 0 ) THEN |
---|
1393 | IF ( skip_time_do3d /= 0.0_wp ) THEN |
---|
1394 | WRITE ( io, 339 ) skip_time_do3d |
---|
1395 | ENDIF |
---|
1396 | ELSE |
---|
1397 | IF ( skip_time_data_output_av /= 0.0_wp ) THEN |
---|
1398 | WRITE ( io, 339 ) skip_time_data_output_av |
---|
1399 | ENDIF |
---|
1400 | ENDIF |
---|
1401 | |
---|
1402 | ENDIF |
---|
1403 | |
---|
1404 | ENDDO |
---|
1405 | |
---|
1406 | ! |
---|
1407 | !-- masked arrays |
---|
1408 | IF ( masks > 0 ) WRITE ( io, 345 ) & |
---|
1409 | mask_scale_x, mask_scale_y, mask_scale_z |
---|
1410 | DO mid = 1, masks |
---|
1411 | DO av = 0, 1 |
---|
1412 | |
---|
1413 | i = 1 |
---|
1414 | domask_chr = '' |
---|
1415 | DO WHILE ( domask(mid,av,i) /= ' ' ) |
---|
1416 | domask_chr = TRIM( domask_chr ) // ' ' // & |
---|
1417 | TRIM( domask(mid,av,i) ) // ',' |
---|
1418 | i = i + 1 |
---|
1419 | ENDDO |
---|
1420 | |
---|
1421 | IF ( domask_chr /= '' ) THEN |
---|
1422 | IF ( av == 0 ) THEN |
---|
1423 | WRITE ( io, 346 ) '', mid |
---|
1424 | ELSE |
---|
1425 | WRITE ( io, 346 ) ' (time-averaged)', mid |
---|
1426 | ENDIF |
---|
1427 | |
---|
1428 | output_format = netcdf_data_format_string |
---|
1429 | !-- Parallel output not implemented for mask data, hence |
---|
1430 | !-- output_format must be adjusted. |
---|
1431 | IF ( netcdf_data_format == 5 ) output_format = 'netCDF4/HDF5' |
---|
1432 | IF ( netcdf_data_format == 6 ) output_format = 'netCDF4/HDF5 classic' |
---|
1433 | IF ( netcdf_deflate == 0 ) THEN |
---|
1434 | WRITE ( io, 344 ) output_format |
---|
1435 | ELSE |
---|
1436 | WRITE ( io, 354 ) TRIM( output_format ), netcdf_deflate |
---|
1437 | ENDIF |
---|
1438 | |
---|
1439 | IF ( av == 0 ) THEN |
---|
1440 | WRITE ( io, 347 ) domask_chr, dt_domask(mid) |
---|
1441 | ELSE |
---|
1442 | WRITE ( io, 348 ) domask_chr, dt_data_output_av, & |
---|
1443 | averaging_interval, dt_averaging_input |
---|
1444 | ENDIF |
---|
1445 | |
---|
1446 | IF ( av == 0 ) THEN |
---|
1447 | IF ( skip_time_domask(mid) /= 0.0_wp ) THEN |
---|
1448 | WRITE ( io, 339 ) skip_time_domask(mid) |
---|
1449 | ENDIF |
---|
1450 | ELSE |
---|
1451 | IF ( skip_time_data_output_av /= 0.0_wp ) THEN |
---|
1452 | WRITE ( io, 339 ) skip_time_data_output_av |
---|
1453 | ENDIF |
---|
1454 | ENDIF |
---|
1455 | ! |
---|
1456 | !-- output locations |
---|
1457 | DO dim = 1, 3 |
---|
1458 | IF ( mask(mid,dim,1) >= 0.0_wp ) THEN |
---|
1459 | count = 0 |
---|
1460 | DO WHILE ( mask(mid,dim,count+1) >= 0.0_wp ) |
---|
1461 | count = count + 1 |
---|
1462 | ENDDO |
---|
1463 | WRITE ( io, 349 ) dir(dim), dir(dim), mid, dir(dim), & |
---|
1464 | mask(mid,dim,:count) |
---|
1465 | ELSEIF ( mask_loop(mid,dim,1) < 0.0_wp .AND. & |
---|
1466 | mask_loop(mid,dim,2) < 0.0_wp .AND. & |
---|
1467 | mask_loop(mid,dim,3) == 0.0_wp ) THEN |
---|
1468 | WRITE ( io, 350 ) dir(dim), dir(dim) |
---|
1469 | ELSEIF ( mask_loop(mid,dim,3) == 0.0_wp ) THEN |
---|
1470 | WRITE ( io, 351 ) dir(dim), dir(dim), mid, dir(dim), & |
---|
1471 | mask_loop(mid,dim,1:2) |
---|
1472 | ELSE |
---|
1473 | WRITE ( io, 351 ) dir(dim), dir(dim), mid, dir(dim), & |
---|
1474 | mask_loop(mid,dim,1:3) |
---|
1475 | ENDIF |
---|
1476 | ENDDO |
---|
1477 | ENDIF |
---|
1478 | |
---|
1479 | ENDDO |
---|
1480 | ENDDO |
---|
1481 | |
---|
1482 | ! |
---|
1483 | !-- Timeseries |
---|
1484 | IF ( dt_dots /= 9999999.9_wp ) THEN |
---|
1485 | WRITE ( io, 340 ) |
---|
1486 | |
---|
1487 | output_format = netcdf_data_format_string |
---|
1488 | IF ( netcdf_deflate == 0 ) THEN |
---|
1489 | WRITE ( io, 344 ) output_format |
---|
1490 | ELSE |
---|
1491 | WRITE ( io, 354 ) TRIM( output_format ), netcdf_deflate |
---|
1492 | ENDIF |
---|
1493 | WRITE ( io, 341 ) dt_dots |
---|
1494 | ENDIF |
---|
1495 | |
---|
1496 | WRITE ( io, 99 ) |
---|
1497 | |
---|
1498 | ! |
---|
1499 | !-- Physical quantities |
---|
1500 | WRITE ( io, 400 ) |
---|
1501 | |
---|
1502 | ! |
---|
1503 | !-- Geostrophic parameters |
---|
1504 | WRITE ( io, 410 ) latitude, longitude, rotation_angle, omega, f, fs |
---|
1505 | |
---|
1506 | ! |
---|
1507 | !-- Day and time during model start |
---|
1508 | CALL get_date_time( 0.0_wp, date_time_str=date_time_str ) |
---|
1509 | WRITE ( io, 456 ) TRIM( date_time_str ) |
---|
1510 | |
---|
1511 | ! |
---|
1512 | !-- Other quantities |
---|
1513 | WRITE ( io, 411 ) g |
---|
1514 | |
---|
1515 | WRITE ( io, 412 ) TRIM( reference_state ) |
---|
1516 | IF ( use_single_reference_value ) THEN |
---|
1517 | IF ( ocean_mode ) THEN |
---|
1518 | WRITE ( io, 413 ) prho_reference |
---|
1519 | ELSE |
---|
1520 | WRITE ( io, 414 ) pt_reference |
---|
1521 | ENDIF |
---|
1522 | ENDIF |
---|
1523 | |
---|
1524 | ! |
---|
1525 | !-- Cloud physcis parameters / quantities / numerical methods |
---|
1526 | WRITE ( io, 430 ) |
---|
1527 | IF ( humidity .AND. .NOT. bulk_cloud_model .AND. .NOT. cloud_droplets) THEN |
---|
1528 | WRITE ( io, 431 ) |
---|
1529 | ENDIF |
---|
1530 | ! |
---|
1531 | !-- LES / turbulence parameters |
---|
1532 | WRITE ( io, 450 ) |
---|
1533 | |
---|
1534 | !-- |
---|
1535 | ! ... LES-constants used must still be added here |
---|
1536 | !-- |
---|
1537 | IF ( constant_diffusion ) THEN |
---|
1538 | WRITE ( io, 451 ) km_constant, km_constant/prandtl_number, & |
---|
1539 | prandtl_number |
---|
1540 | ENDIF |
---|
1541 | IF ( .NOT. constant_diffusion) THEN |
---|
1542 | IF ( e_init > 0.0_wp ) WRITE ( io, 455 ) e_init |
---|
1543 | IF ( e_min > 0.0_wp ) WRITE ( io, 454 ) e_min |
---|
1544 | IF ( wall_adjustment ) WRITE ( io, 453 ) |
---|
1545 | ENDIF |
---|
1546 | IF ( rans_mode ) THEN |
---|
1547 | WRITE ( io, 457 ) rans_const_c, rans_const_sigma |
---|
1548 | ENDIF |
---|
1549 | ! |
---|
1550 | !-- Special actions during the run |
---|
1551 | WRITE ( io, 470 ) |
---|
1552 | IF ( create_disturbances ) THEN |
---|
1553 | WRITE ( io, 471 ) dt_disturb, disturbance_amplitude, & |
---|
1554 | zu(disturbance_level_ind_b), disturbance_level_ind_b,& |
---|
1555 | zu(disturbance_level_ind_t), disturbance_level_ind_t |
---|
1556 | IF ( .NOT. bc_lr_cyc .OR. .NOT. bc_ns_cyc ) THEN |
---|
1557 | WRITE ( io, 472 ) inflow_disturbance_begin, inflow_disturbance_end |
---|
1558 | ELSE |
---|
1559 | WRITE ( io, 473 ) disturbance_energy_limit |
---|
1560 | ENDIF |
---|
1561 | WRITE ( io, 474 ) TRIM( random_generator ) |
---|
1562 | ENDIF |
---|
1563 | IF ( pt_surface_initial_change /= 0.0_wp ) THEN |
---|
1564 | WRITE ( io, 475 ) pt_surface_initial_change |
---|
1565 | ENDIF |
---|
1566 | IF ( humidity .AND. q_surface_initial_change /= 0.0_wp ) THEN |
---|
1567 | WRITE ( io, 476 ) q_surface_initial_change |
---|
1568 | ENDIF |
---|
1569 | IF ( passive_scalar .AND. q_surface_initial_change /= 0.0_wp ) THEN |
---|
1570 | WRITE ( io, 477 ) q_surface_initial_change |
---|
1571 | ENDIF |
---|
1572 | |
---|
1573 | ! |
---|
1574 | !-- Parameters of 1D-model |
---|
1575 | IF ( INDEX( initializing_actions, 'set_1d-model_profiles' ) /= 0 ) THEN |
---|
1576 | WRITE ( io, 500 ) end_time_1d, dt_run_control_1d, dt_pr_1d, & |
---|
1577 | mixing_length_1d, dissipation_1d |
---|
1578 | IF ( damp_level_ind_1d /= nzt+1 ) THEN |
---|
1579 | WRITE ( io, 502 ) zu(damp_level_ind_1d), damp_level_ind_1d |
---|
1580 | ENDIF |
---|
1581 | ENDIF |
---|
1582 | |
---|
1583 | ! |
---|
1584 | !-- Header information from other modules |
---|
1585 | CALL module_interface_header( io ) |
---|
1586 | |
---|
1587 | |
---|
1588 | WRITE ( io, 99 ) |
---|
1589 | |
---|
1590 | ! |
---|
1591 | !-- Write buffer contents to disc immediately |
---|
1592 | FLUSH( io ) |
---|
1593 | |
---|
1594 | ! |
---|
1595 | !-- Here the FORMATs start |
---|
1596 | |
---|
1597 | 99 FORMAT (1X,78('-')) |
---|
1598 | 100 FORMAT (/1X,'******************************',4X,44('-')/ & |
---|
1599 | 1X,'* ',A,' *',4X,A/ & |
---|
1600 | 1X,'******************************',4X,44('-')) |
---|
1601 | 101 FORMAT (35X,'coupled run: ',A/ & |
---|
1602 | 35X,42('-')) |
---|
1603 | 102 FORMAT (/' Date: ',A10,4X,'Run: ',A34/ & |
---|
1604 | ' Time: ',A8,4X,'Run-No.: ',I2.2/ & |
---|
1605 | ' Run on host: ',A10) |
---|
1606 | #if defined( __parallel ) |
---|
1607 | 103 FORMAT (' Number of PEs:',10X,I6,4X,'Processor grid (x,y): (',I4,',',I4, & |
---|
1608 | ')',1X,A) |
---|
1609 | 104 FORMAT (' Number of PEs:',10X,I6,4X,'Tasks:',I4,' threads per task:',I4/ & |
---|
1610 | 35X,'Processor grid (x,y): (',I4,',',I4,')',1X,A) |
---|
1611 | 107 FORMAT (35X,'A 1d-decomposition along ',A,' is used') |
---|
1612 | 108 FORMAT (35X,'Max. # of parallel I/O streams is ',I5) |
---|
1613 | 109 FORMAT (35X,'Precursor run for coupled atmos-ocean run'/ & |
---|
1614 | 35X,42('-')) |
---|
1615 | 114 FORMAT (35X,'Coupled atmosphere-ocean run following'/ & |
---|
1616 | 35X,'independent precursor runs'/ & |
---|
1617 | 35X,42('-')) |
---|
1618 | #endif |
---|
1619 | 110 FORMAT (/' Numerical Schemes:'/ & |
---|
1620 | ' -----------------'/) |
---|
1621 | 124 FORMAT (' --> Use the ',A,' turbulence closure (',A,' mode).') |
---|
1622 | 121 FORMAT (' --> Use the ',A,' approximation for the model equations.') |
---|
1623 | 111 FORMAT (' --> Solve perturbation pressure via FFT using ',A,' routines') |
---|
1624 | 112 FORMAT (' --> Solve perturbation pressure via SOR-Red/Black-Schema'/ & |
---|
1625 | ' Iterations (initial/other): ',I3,'/',I3,' omega =',F6.3) |
---|
1626 | 113 FORMAT (' --> Momentum advection via Piascek-Williams-Scheme (Form C3)', & |
---|
1627 | ' or Upstream') |
---|
1628 | 115 FORMAT (' FFT and transpositions are overlapping') |
---|
1629 | 116 FORMAT (' --> Scalar advection via Piascek-Williams-Scheme (Form C3)', & |
---|
1630 | ' or Upstream') |
---|
1631 | 118 FORMAT (' --> Scalar advection via Bott-Chlond-Scheme') |
---|
1632 | 119 FORMAT (' --> Galilei-Transform applied to horizontal advection:'/ & |
---|
1633 | ' translation velocity = ',A/ & |
---|
1634 | ' distance advected ',A,': ',F8.3,' km(x) ',F8.3,' km(y)') |
---|
1635 | 122 FORMAT (' --> Time differencing scheme: ',A) |
---|
1636 | 123 FORMAT (' --> Rayleigh-Damping active, starts ',A,' z = ',F8.2,' m'/ & |
---|
1637 | ' maximum damping coefficient:',F6.3, ' 1/s') |
---|
1638 | 129 FORMAT (' --> Additional prognostic equation for the specific humidity') |
---|
1639 | 130 FORMAT (' --> Additional prognostic equation for the total water content') |
---|
1640 | 131 FORMAT (' --> No pt-equation solved. Neutral stratification with pt = ', & |
---|
1641 | F6.2, ' K assumed') |
---|
1642 | 134 FORMAT (' --> Additional prognostic equation for a passive scalar') |
---|
1643 | 135 FORMAT (' --> Solve perturbation pressure via ',A,' method (', & |
---|
1644 | A,'-cycle)'/ & |
---|
1645 | ' number of grid levels: ',I2/ & |
---|
1646 | ' Gauss-Seidel red/black iterations: ',I2) |
---|
1647 | 136 FORMAT (' gridpoints of coarsest subdomain (x,y,z): (',I3,',',I3,',', & |
---|
1648 | I3,')') |
---|
1649 | 137 FORMAT (' level data gathered on PE0 at level: ',I2/ & |
---|
1650 | ' gridpoints of coarsest subdomain (x,y,z): (',I3,',',I3,',', & |
---|
1651 | I3,')'/ & |
---|
1652 | ' gridpoints of coarsest domain (x,y,z): (',I3,',',I3,',', & |
---|
1653 | I3,')') |
---|
1654 | 139 FORMAT (' --> Loop optimization method: ',A) |
---|
1655 | 140 FORMAT (' maximum residual allowed: ',E10.3) |
---|
1656 | 141 FORMAT (' fixed number of multigrid cycles: ',I4) |
---|
1657 | 142 FORMAT (' perturbation pressure is calculated at every Runge-Kutta ', & |
---|
1658 | 'step') |
---|
1659 | 143 FORMAT (' Euler/upstream scheme is used for the SGS turbulent ', & |
---|
1660 | 'kinetic energy') |
---|
1661 | 144 FORMAT (' masking method is used') |
---|
1662 | 150 FORMAT (' --> Volume flow at the right and north boundary will be ', & |
---|
1663 | 'conserved'/ & |
---|
1664 | ' using the ',A,' mode') |
---|
1665 | 151 FORMAT (' with u_bulk = ',F7.3,' m/s and v_bulk = ',F7.3,' m/s') |
---|
1666 | 152 FORMAT (' --> External pressure gradient directly prescribed by the user:',& |
---|
1667 | /' ',2(1X,E12.5),'Pa/m in x/y direction', & |
---|
1668 | /' starting from dp_level_b =', F8.3, 'm', A /) |
---|
1669 | 200 FORMAT (//' Run time and time step information:'/ & |
---|
1670 | ' ----------------------------------'/) |
---|
1671 | 201 FORMAT ( ' Timestep: variable maximum value: ',F6.3,' s', & |
---|
1672 | ' CFL-factor:',F5.2) |
---|
1673 | 202 FORMAT ( ' Timestep: dt = ',F6.3,' s'/) |
---|
1674 | 203 FORMAT ( ' Start time: ',F11.3,' s'/ & |
---|
1675 | ' End time: ',F11.3,' s') |
---|
1676 | 204 FORMAT ( A,F11.3,' s') |
---|
1677 | 205 FORMAT ( A,F11.3,' s',5X,'restart every',17X,F11.3,' s') |
---|
1678 | 206 FORMAT (/' Time reached: ',F11.3,' s'/ & |
---|
1679 | ' CPU-time used: ',F9.3,' s per timestep: ',F9.3,' s'/ & |
---|
1680 | ' per second of simulated time: ',F9.3,' s') |
---|
1681 | 207 FORMAT ( ' Spinup time: ',F11.3,' s') |
---|
1682 | 250 FORMAT (//' Computational grid and domain size:'/ & |
---|
1683 | ' ----------------------------------'// & |
---|
1684 | ' Grid length: dx = ',F8.3,' m dy = ',F8.3, ' m') |
---|
1685 | 251 FORMAT ( /' Domain size: x = ',F10.3,' m y = ',F10.3, & |
---|
1686 | ' m z(u) = ',F10.3,' m'/) |
---|
1687 | 253 FORMAT ( ' dz(',I1,') = ', F8.3, ' m') |
---|
1688 | 254 FORMAT (//' Number of gridpoints (x,y,z): (0:',I4,', 0:',I4,', 0:',I4,')'/ & |
---|
1689 | ' Subdomain size (x,y,z): ( ',I4,', ',I4,', ',I4,')'/) |
---|
1690 | 260 FORMAT (/' The model has a slope in x-direction. Inclination angle: ',F6.2,& |
---|
1691 | ' degrees') |
---|
1692 | 270 FORMAT (//' Topography information:'/ & |
---|
1693 | ' ----------------------'// & |
---|
1694 | 1X,'Topography: ',A) |
---|
1695 | 271 FORMAT ( ' Building size (x/y/z) in m: ',F5.1,' / ',F5.1,' / ',F5.1/ & |
---|
1696 | ' Horizontal index bounds (l/r/s/n): ',I4,' / ',I4,' / ',I4, & |
---|
1697 | ' / ',I4) |
---|
1698 | 272 FORMAT ( ' Single quasi-2D street canyon of infinite length in ',A, & |
---|
1699 | ' direction' / & |
---|
1700 | ' Canyon height: ', F6.2, 'm, ch = ', I4, '.' / & |
---|
1701 | ' Canyon position (',A,'-walls): cxl = ', I4,', cxr = ', I4, '.') |
---|
1702 | 273 FORMAT ( ' Tunnel of infinite length in ',A, & |
---|
1703 | ' direction' / & |
---|
1704 | ' Tunnel height: ', F6.2, / & |
---|
1705 | ' Tunnel-wall depth: ', F6.2 / & |
---|
1706 | ' Tunnel width: ', F6.2 ) |
---|
1707 | 274 FORMAT ( ' Tunnel in ', A, ' direction.' / & |
---|
1708 | ' Tunnel height: ', F6.2, / & |
---|
1709 | ' Tunnel-wall depth: ', F6.2 / & |
---|
1710 | ' Tunnel width: ', F6.2, / & |
---|
1711 | ' Tunnel length: ', F6.2 ) |
---|
1712 | 278 FORMAT (' Topography grid definition convention:'/ & |
---|
1713 | ' cell edge (staggered grid points'/ & |
---|
1714 | ' (u in x-direction, v in y-direction))' /) |
---|
1715 | 279 FORMAT (' Topography grid definition convention:'/ & |
---|
1716 | ' cell center (scalar grid points)' /) |
---|
1717 | 280 FORMAT (' Complex terrain simulation is activated.') |
---|
1718 | 281 FORMAT (' --> Mean inflow profiles are adjusted.' / & |
---|
1719 | ' --> Elevation of inflow boundary: ', F7.1, ' m' ) |
---|
1720 | 282 FORMAT (' --> Initial data from 3D-precursor run is shifted' / & |
---|
1721 | ' vertically depending on local surface height.') |
---|
1722 | 300 FORMAT (//' Boundary conditions:'/ & |
---|
1723 | ' -------------------'// & |
---|
1724 | ' p uv ', & |
---|
1725 | ' pt'// & |
---|
1726 | ' B. bound.: ',A/ & |
---|
1727 | ' T. bound.: ',A) |
---|
1728 | 301 FORMAT (/' ',A// & |
---|
1729 | ' B. bound.: ',A/ & |
---|
1730 | ' T. bound.: ',A) |
---|
1731 | 303 FORMAT (/' Bottom surface fluxes are used in diffusion terms at k=1') |
---|
1732 | 304 FORMAT (/' Top surface fluxes are used in diffusion terms at k=nzt') |
---|
1733 | 305 FORMAT (//' Constant flux layer between bottom surface and first ', & |
---|
1734 | 'computational u,v-level:'// & |
---|
1735 | ' z_mo = ',F6.2,' m z0 =',F7.4,' m z0h =',F8.5,& |
---|
1736 | ' m kappa =',F5.2/ & |
---|
1737 | ' Rif value range: ',F8.2,' <= rif <=',F6.2) |
---|
1738 | 306 FORMAT (' Predefined constant heatflux: ',F9.6,' K m/s') |
---|
1739 | 307 FORMAT (' Heatflux has a random normal distribution') |
---|
1740 | 308 FORMAT (' Predefined surface temperature') |
---|
1741 | 309 FORMAT (' Predefined constant salinityflux: ',F9.6,' psu m/s') |
---|
1742 | 310 FORMAT (//' 1D-Model:'// & |
---|
1743 | ' Rif value range: ',F6.2,' <= rif <=',F6.2) |
---|
1744 | 311 FORMAT (' Predefined constant humidity flux: ',E10.3,' kg/kg m/s') |
---|
1745 | 312 FORMAT (' Predefined surface humidity') |
---|
1746 | 313 FORMAT (' Predefined constant scalar flux: ',E10.3,' kg/(m**2 s)') |
---|
1747 | 314 FORMAT (' Predefined scalar value at the surface') |
---|
1748 | 302 FORMAT (' Predefined constant scalarflux: ',F9.6,' kg/(m**2 s)') |
---|
1749 | 315 FORMAT (' Humidity flux at top surface is 0.0') |
---|
1750 | 316 FORMAT (' Sensible heatflux and momentum flux from coupled ', & |
---|
1751 | 'atmosphere model') |
---|
1752 | 317 FORMAT (//' Lateral boundaries:'/ & |
---|
1753 | ' left/right: ',A/ & |
---|
1754 | ' north/south: ',A) |
---|
1755 | 318 FORMAT (/' use_cmax: ',L1 / & |
---|
1756 | ' pt damping layer width = ',F8.2,' m, pt ', & |
---|
1757 | 'damping factor =',F7.4) |
---|
1758 | 319 FORMAT (' turbulence recycling at inflow switched on'/ & |
---|
1759 | ' width of recycling domain: ',F7.1,' m grid index: ',I4/ & |
---|
1760 | ' inflow damping height: ',F6.1,' m width: ',F6.1,' m') |
---|
1761 | 320 FORMAT (' Predefined constant momentumflux: u: ',F9.6,' m**2/s**2'/ & |
---|
1762 | ' v: ',F9.6,' m**2/s**2') |
---|
1763 | 321 FORMAT (//' Initial profiles:'/ & |
---|
1764 | ' ----------------') |
---|
1765 | 322 FORMAT (' turbulence recycling at inflow switched on'/ & |
---|
1766 | ' y-shift of the recycled inflow turbulence is',I3,' PE'/ & |
---|
1767 | ' width of recycling domain: ',F7.1,' m grid index: ',I4/ & |
---|
1768 | ' inflow damping height: ',F6.1,' m width: ',F6.1,' m'/) |
---|
1769 | 323 FORMAT (' turbulent outflow conditon switched on'/ & |
---|
1770 | ' position of outflow source plane: ',F7.1,' m ', & |
---|
1771 | 'grid index: ', I4) |
---|
1772 | 325 FORMAT (//' List output:'/ & |
---|
1773 | ' -----------'// & |
---|
1774 | ' 1D-Profiles:'/ & |
---|
1775 | ' Output every ',F10.2,' s') |
---|
1776 | 326 FORMAT (' Time averaged over ',F8.2,' s'/ & |
---|
1777 | ' Averaging input every ',F8.2,' s') |
---|
1778 | 330 FORMAT (//' Data output:'/ & |
---|
1779 | ' -----------'/) |
---|
1780 | 331 FORMAT (/' 1D-Profiles:') |
---|
1781 | 332 FORMAT (/' ',A) |
---|
1782 | 333 FORMAT (' Output every ',F8.2,' s',/ & |
---|
1783 | ' Time averaged over ',F8.2,' s'/ & |
---|
1784 | ' Averaging input every ',F8.2,' s') |
---|
1785 | 334 FORMAT (/' 2D-Arrays',A,':') |
---|
1786 | 335 FORMAT (/' ',A2,'-cross-section Arrays: ',A/ & |
---|
1787 | ' Output every ',F8.2,' s ',A/ & |
---|
1788 | ' Cross sections at ',A1,' = ',A/ & |
---|
1789 | ' scalar-coordinates: ',A,' m'/) |
---|
1790 | 336 FORMAT (/' 3D-Arrays',A,':') |
---|
1791 | 337 FORMAT (/' Arrays: ',A/ & |
---|
1792 | ' Output every ',F8.2,' s ',A/ & |
---|
1793 | ' Upper output limit at ',F8.2,' m (GP ',I4,')'/) |
---|
1794 | 339 FORMAT (' No output during initial ',F8.2,' s') |
---|
1795 | 340 FORMAT (/' Time series:') |
---|
1796 | 341 FORMAT (' Output every ',F8.2,' s'/) |
---|
1797 | 342 FORMAT (/' ',A2,'-cross-section Arrays: ',A/ & |
---|
1798 | ' Output every ',F8.2,' s ',A/ & |
---|
1799 | ' Time averaged over ',F8.2,' s'/ & |
---|
1800 | ' Averaging input every ',F8.2,' s'/ & |
---|
1801 | ' Cross sections at ',A1,' = ',A/ & |
---|
1802 | ' scalar-coordinates: ',A,' m'/) |
---|
1803 | 343 FORMAT (/' Arrays: ',A/ & |
---|
1804 | ' Output every ',F8.2,' s ',A/ & |
---|
1805 | ' Time averaged over ',F8.2,' s'/ & |
---|
1806 | ' Averaging input every ',F8.2,' s'/ & |
---|
1807 | ' Upper output limit at ',F8.2,' m (GP ',I4,')'/) |
---|
1808 | 344 FORMAT (' Output format: ',A/) |
---|
1809 | 345 FORMAT (/' Scaling lengths for output locations of all subsequent mask IDs:',/ & |
---|
1810 | ' mask_scale_x (in x-direction): ',F9.3, ' m',/ & |
---|
1811 | ' mask_scale_y (in y-direction): ',F9.3, ' m',/ & |
---|
1812 | ' mask_scale_z (in z-direction): ',F9.3, ' m' ) |
---|
1813 | 346 FORMAT (/' Masked data output',A,' for mask ID ',I2, ':') |
---|
1814 | 347 FORMAT (' Variables: ',A/ & |
---|
1815 | ' Output every ',F8.2,' s') |
---|
1816 | 348 FORMAT (' Variables: ',A/ & |
---|
1817 | ' Output every ',F8.2,' s'/ & |
---|
1818 | ' Time averaged over ',F8.2,' s'/ & |
---|
1819 | ' Averaging input every ',F8.2,' s') |
---|
1820 | 349 FORMAT (/' Output locations in ',A,'-direction in multiples of ', & |
---|
1821 | 'mask_scale_',A,' predefined by array mask_',I2.2,'_',A,':'/ & |
---|
1822 | 13(' ',8(F8.2,',')/) ) |
---|
1823 | 350 FORMAT (/' Output locations in ',A,'-direction: ', & |
---|
1824 | 'all gridpoints along ',A,'-direction (default).' ) |
---|
1825 | 351 FORMAT (/' Output locations in ',A,'-direction in multiples of ', & |
---|
1826 | 'mask_scale_',A,' constructed from array mask_',I2.2,'_',A,'_loop:'/ & |
---|
1827 | ' loop begin:',F8.2,', end:',F8.2,', stride:',F8.2 ) |
---|
1828 | 352 FORMAT (/' Number of output time levels allowed: ',I3 /) |
---|
1829 | 353 FORMAT (/' Number of output time levels allowed: unlimited' /) |
---|
1830 | 354 FORMAT (' Output format: ',A, ' compressed with level: ',I1/) |
---|
1831 | 400 FORMAT (//' Physical quantities:'/ & |
---|
1832 | ' -------------------'/) |
---|
1833 | 410 FORMAT (' Geograph. latitude : latitude = ',F5.1,' degr'/ & |
---|
1834 | ' Geograph. longitude : longitude = ',F5.1,' degr'/ & |
---|
1835 | ' Rotation angle : rotation_angle = ',F5.1,' degr'/ & |
---|
1836 | ' Angular velocity : omega =',E10.3,' rad/s'/ & |
---|
1837 | ' Coriolis parameter : f = ',F9.6,' 1/s'/ & |
---|
1838 | ' f* = ',F9.6,' 1/s') |
---|
1839 | 411 FORMAT (/' Gravity : g = ',F4.1,' m/s**2') |
---|
1840 | 412 FORMAT (/' Reference state used in buoyancy terms: ',A) |
---|
1841 | 413 FORMAT (' Reference density in buoyancy terms: ',F8.3,' kg/m**3') |
---|
1842 | 414 FORMAT (' Reference temperature in buoyancy terms: ',F8.4,' K') |
---|
1843 | 420 FORMAT (/' Characteristic levels of the initial temperature profile:'// & |
---|
1844 | ' Height: ',A,' m'/ & |
---|
1845 | ' Temperature: ',A,' K'/ & |
---|
1846 | ' Gradient: ',A,' K/100m'/ & |
---|
1847 | ' Gridpoint: ',A) |
---|
1848 | 421 FORMAT (/' Characteristic levels of the initial humidity profile:'// & |
---|
1849 | ' Height: ',A,' m'/ & |
---|
1850 | ' Humidity: ',A,' kg/kg'/ & |
---|
1851 | ' Gradient: ',A,' (kg/kg)/100m'/ & |
---|
1852 | ' Gridpoint: ',A) |
---|
1853 | 422 FORMAT (/' Characteristic levels of the initial scalar profile:'// & |
---|
1854 | ' Height: ',A,' m'/ & |
---|
1855 | ' Scalar concentration: ',A,' kg/m**3'/ & |
---|
1856 | ' Gradient: ',A,' (kg/m**3)/100m'/ & |
---|
1857 | ' Gridpoint: ',A) |
---|
1858 | 423 FORMAT (/' Characteristic levels of the geo. wind component ug:'// & |
---|
1859 | ' Height: ',A,' m'/ & |
---|
1860 | ' ug: ',A,' m/s'/ & |
---|
1861 | ' Gradient: ',A,' 1/100s'/ & |
---|
1862 | ' Gridpoint: ',A) |
---|
1863 | 424 FORMAT (/' Characteristic levels of the geo. wind component vg:'// & |
---|
1864 | ' Height: ',A,' m'/ & |
---|
1865 | ' vg: ',A,' m/s'/ & |
---|
1866 | ' Gradient: ',A,' 1/100s'/ & |
---|
1867 | ' Gridpoint: ',A) |
---|
1868 | 425 FORMAT (/' Characteristic levels of the initial salinity profile:'// & |
---|
1869 | ' Height: ',A,' m'/ & |
---|
1870 | ' Salinity: ',A,' psu'/ & |
---|
1871 | ' Gradient: ',A,' psu/100m'/ & |
---|
1872 | ' Gridpoint: ',A) |
---|
1873 | 426 FORMAT (/' Characteristic levels of the subsidence/ascent profile:'// & |
---|
1874 | ' Height: ',A,' m'/ & |
---|
1875 | ' w_subs: ',A,' m/s'/ & |
---|
1876 | ' Gradient: ',A,' (m/s)/100m'/ & |
---|
1877 | ' Gridpoint: ',A) |
---|
1878 | 427 FORMAT (/' Initial wind profiles (u,v) are interpolated from given'// & |
---|
1879 | ' profiles') |
---|
1880 | 428 FORMAT (/' Initial profiles (u, v, pt, q) are taken from file '/ & |
---|
1881 | ' NUDGING_DATA') |
---|
1882 | 430 FORMAT (//' Cloud physics quantities / methods:'/ & |
---|
1883 | ' ----------------------------------'/) |
---|
1884 | 431 FORMAT (' Humidity is considered, bu no condensation') |
---|
1885 | 450 FORMAT (//' LES / Turbulence quantities:'/ & |
---|
1886 | ' ---------------------------'/) |
---|
1887 | 451 FORMAT (' Diffusion coefficients are constant:'/ & |
---|
1888 | ' Km = ',F6.2,' m**2/s Kh = ',F6.2,' m**2/s Pr = ',F5.2) |
---|
1889 | 453 FORMAT (' Mixing length is limited close to surfaces') |
---|
1890 | 454 FORMAT (' TKE is not allowed to fall below ',E9.2,' (m/s)**2') |
---|
1891 | 455 FORMAT (' initial TKE is prescribed as ',E9.2,' (m/s)**2') |
---|
1892 | 456 FORMAT (/' Date and time at model start : ',A) |
---|
1893 | 457 FORMAT (' RANS-mode constants: c_0 = ',F9.5/ & |
---|
1894 | ' c_1 = ',F9.5/ & |
---|
1895 | ' c_2 = ',F9.5/ & |
---|
1896 | ' c_3 = ',F9.5/ & |
---|
1897 | ' c_4 = ',F9.5/ & |
---|
1898 | ' sigma_e = ',F9.5/ & |
---|
1899 | ' sigma_diss = ',F9.5) |
---|
1900 | 470 FORMAT (//' Actions during the simulation:'/ & |
---|
1901 | ' -----------------------------'/) |
---|
1902 | 471 FORMAT (' Disturbance impulse (u,v) every : ',F6.2,' s'/ & |
---|
1903 | ' Disturbance amplitude : ',F5.2, ' m/s'/ & |
---|
1904 | ' Lower disturbance level : ',F8.2,' m (GP ',I4,')'/ & |
---|
1905 | ' Upper disturbance level : ',F8.2,' m (GP ',I4,')') |
---|
1906 | 472 FORMAT (' Disturbances continued during the run from i/j =',I4, & |
---|
1907 | ' to i/j =',I4) |
---|
1908 | 473 FORMAT (' Disturbances cease as soon as the disturbance energy exceeds',& |
---|
1909 | F6.3, ' m**2/s**2') |
---|
1910 | 474 FORMAT (' Random number generator used : ',A/) |
---|
1911 | 475 FORMAT (' The surface temperature is increased (or decreased, ', & |
---|
1912 | 'respectively, if'/ & |
---|
1913 | ' the value is negative) by ',F5.2,' K at the beginning of the',& |
---|
1914 | ' 3D-simulation'/) |
---|
1915 | 476 FORMAT (' The surface humidity is increased (or decreased, ',& |
---|
1916 | 'respectively, if the'/ & |
---|
1917 | ' value is negative) by ',E8.1,' kg/kg at the beginning of', & |
---|
1918 | ' the 3D-simulation'/) |
---|
1919 | 477 FORMAT (' The scalar value is increased at the surface (or decreased, ',& |
---|
1920 | 'respectively, if the'/ & |
---|
1921 | ' value is negative) by ',E8.1,' kg/m**3 at the beginning of', & |
---|
1922 | ' the 3D-simulation'/) |
---|
1923 | 500 FORMAT (//' 1D-Model parameters:'/ & |
---|
1924 | ' -------------------'// & |
---|
1925 | ' Simulation time: ',F8.1,' s'/ & |
---|
1926 | ' Run-controll output every: ',F8.1,' s'/ & |
---|
1927 | ' Vertical profile output every: ',F8.1,' s'/ & |
---|
1928 | ' Mixing length calculation: ',A/ & |
---|
1929 | ' Dissipation calculation: ',A/) |
---|
1930 | 502 FORMAT (' Damping layer starts from ',F7.1,' m (GP ',I4,')'/) |
---|
1931 | 503 FORMAT (' --> Momentum advection via Wicker-Skamarock-Scheme 5th order') |
---|
1932 | 504 FORMAT (' --> Scalar advection via Wicker-Skamarock-Scheme 5th order') |
---|
1933 | 512 FORMAT (/' Date: ',A10,6X,'Run: ',A34/ & |
---|
1934 | ' Time: ',A8,6X,'Run-No.: ',I2.2/ & |
---|
1935 | ' Run on host: ',A10,6X,'En-No.: ',I2.2) |
---|
1936 | #if defined( __parallel ) |
---|
1937 | 600 FORMAT (/' Nesting informations:'/ & |
---|
1938 | ' --------------------'/ & |
---|
1939 | ' Nesting mode: ',A/ & |
---|
1940 | ' Nesting-datatransfer mode: ',A// & |
---|
1941 | ' Nest id parent number lower left coordinates name'/ & |
---|
1942 | ' (*=me) id of PEs x (m) y (m)' ) |
---|
1943 | 601 FORMAT (2X,A1,1X,I2.2,6X,I2.2,5X,I5,5X,F8.2,2X,F8.2,5X,A) |
---|
1944 | #endif |
---|
1945 | |
---|
1946 | END SUBROUTINE header |
---|