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