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