[2894] | 1 | !> @file write_restart_data_mod.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 | ! |
---|
[3655] | 17 | ! Copyright 1997-2019 Leibniz Universitaet Hannover |
---|
[2894] | 18 | !------------------------------------------------------------------------------! |
---|
| 19 | ! |
---|
| 20 | ! Current revisions: |
---|
| 21 | ! ----------------- |
---|
| 22 | ! |
---|
| 23 | ! |
---|
| 24 | ! Former revisions: |
---|
| 25 | ! ----------------- |
---|
| 26 | ! $Id: write_restart_data_mod.f90 3936 2019-04-26 15:38:02Z hellstea $ |
---|
[3936] | 27 | ! Enable time-averaged output of theta_2m* with restarts |
---|
| 28 | ! |
---|
| 29 | ! 3668 2019-01-14 12:49:24Z maronga |
---|
[3637] | 30 | ! Implementation of the PALM module interface |
---|
| 31 | ! |
---|
| 32 | ! 3589 2018-11-30 15:09:51Z suehring |
---|
[3589] | 33 | ! Move the control parameter "salsa" from salsa_mod to control_parameters |
---|
| 34 | ! (M. Kurppa) |
---|
| 35 | ! |
---|
| 36 | ! |
---|
| 37 | ! 3582 2018-11-29 19:16:36Z suehring |
---|
[3467] | 38 | ! Implementation of a new aerosol module salsa. |
---|
| 39 | ! |
---|
| 40 | ! 3355 2018-10-16 14:03:34Z knoop |
---|
[3294] | 41 | ! changes concerning modularization of ocean option |
---|
| 42 | ! |
---|
| 43 | ! 3274 2018-09-24 15:42:55Z knoop |
---|
[3274] | 44 | ! Modularization of all bulk cloud physics code components |
---|
| 45 | ! |
---|
| 46 | ! 3065 2018-06-12 07:03:02Z Giersch |
---|
[3065] | 47 | ! New parameters concerning vertical grid stretching have been added |
---|
| 48 | ! |
---|
| 49 | ! 3004 2018-04-27 12:33:25Z Giersch |
---|
[3004] | 50 | ! precipitation_rate_av removed |
---|
| 51 | ! |
---|
| 52 | ! 3003 2018-04-23 10:22:58Z Giersch |
---|
[3003] | 53 | ! z_i is also written out to use the last known inversion height from the |
---|
| 54 | ! initial run as the first inversion height which is written into the |
---|
| 55 | ! run control file |
---|
| 56 | ! |
---|
| 57 | ! 2956 2018-04-10 11:01:03Z Giersch |
---|
[2956] | 58 | ! spectrum_x and spectrum_y have been moved to global data |
---|
| 59 | ! |
---|
| 60 | ! 2921 2018-03-22 15:05:23Z Giersch |
---|
[2921] | 61 | ! spinup_time, day_of_year_init and time_utc_init are also written out now |
---|
| 62 | ! |
---|
| 63 | ! 2912 2018-03-20 13:00:05Z knoop |
---|
[2912] | 64 | ! Added gust module interface calls |
---|
| 65 | ! |
---|
| 66 | ! 2894 2018-03-15 09:17:58Z Giersch |
---|
[2894] | 67 | ! Initial revision |
---|
| 68 | ! |
---|
| 69 | ! |
---|
| 70 | ! Description: |
---|
| 71 | ! ------------ |
---|
| 72 | !> Writes restart data into binary file(s) for restart runs. |
---|
| 73 | !------------------------------------------------------------------------------! |
---|
| 74 | MODULE write_restart_data_mod |
---|
| 75 | |
---|
| 76 | |
---|
[3637] | 77 | USE arrays_3d, & |
---|
| 78 | ONLY: inflow_damping_factor, mean_inflow_profiles, pt_init, & |
---|
| 79 | q_init, ref_state, s_init, u_init, ug, v_init, vg, & |
---|
| 80 | e, kh, km, p, pt, q, ql, s, u, u_m_l, u_m_n, u_m_r, & |
---|
| 81 | u_m_s, v, v_m_l, v_m_n, v_m_r, v_m_s, vpt, w, w_m_l, w_m_n, & |
---|
| 82 | w_m_r, w_m_s |
---|
| 83 | |
---|
| 84 | USE averaging |
---|
| 85 | |
---|
[2894] | 86 | USE control_parameters |
---|
| 87 | |
---|
[3637] | 88 | USE date_and_time_mod, & |
---|
| 89 | ONLY: day_of_year_init, time_utc_init |
---|
| 90 | |
---|
| 91 | USE grid_variables, & |
---|
| 92 | ONLY: dx, dy |
---|
| 93 | |
---|
| 94 | USE indices, & |
---|
| 95 | ONLY: nx, nxl, nxr, ny, nys, nyn, nz, nzb, nzt |
---|
| 96 | |
---|
| 97 | USE kinds |
---|
| 98 | |
---|
| 99 | USE model_1d_mod, & |
---|
| 100 | ONLY: damp_level_1d, dt_pr_1d, dt_run_control_1d, end_time_1d |
---|
| 101 | |
---|
| 102 | USE module_interface, & |
---|
| 103 | ONLY: module_interface_wrd_global, & |
---|
| 104 | module_interface_wrd_local |
---|
| 105 | |
---|
| 106 | USE netcdf_interface, & |
---|
| 107 | ONLY: netcdf_precision, output_for_t0 |
---|
| 108 | |
---|
| 109 | USE particle_attributes, & |
---|
| 110 | ONLY: curvature_solution_effects, iran_part |
---|
| 111 | |
---|
[2894] | 112 | USE pegrid, & |
---|
[3637] | 113 | ONLY: collective_wait, hor_index_bounds, myid, numprocs |
---|
[2894] | 114 | |
---|
[3637] | 115 | USE radiation_model_mod, & |
---|
| 116 | ONLY: time_radiation |
---|
| 117 | |
---|
| 118 | USE random_function_mod, & |
---|
| 119 | ONLY: random_iv, random_iy |
---|
| 120 | |
---|
| 121 | USE random_generator_parallel, & |
---|
| 122 | ONLY: id_random_array, seq_random_array |
---|
| 123 | |
---|
| 124 | USE spectra_mod, & |
---|
| 125 | ONLY: average_count_sp, spectrum_x, spectrum_y |
---|
| 126 | |
---|
| 127 | USE statistics, & |
---|
| 128 | ONLY: statistic_regions, hom, hom_sum, u_max, u_max_ijk, v_max, & |
---|
| 129 | v_max_ijk, w_max, w_max_ijk, z_i |
---|
| 130 | |
---|
| 131 | USE surface_mod, & |
---|
| 132 | ONLY : surface_wrd_local |
---|
| 133 | |
---|
| 134 | USE vertical_nesting_mod, & |
---|
| 135 | ONLY: vnest_init |
---|
| 136 | |
---|
| 137 | |
---|
[2894] | 138 | IMPLICIT NONE |
---|
| 139 | |
---|
| 140 | |
---|
| 141 | INTERFACE wrd_global |
---|
| 142 | MODULE PROCEDURE wrd_global |
---|
| 143 | END INTERFACE wrd_global |
---|
| 144 | |
---|
| 145 | INTERFACE wrd_local |
---|
| 146 | MODULE PROCEDURE wrd_local |
---|
| 147 | END INTERFACE wrd_local |
---|
| 148 | |
---|
| 149 | |
---|
| 150 | PUBLIC wrd_local, wrd_global |
---|
| 151 | |
---|
| 152 | |
---|
| 153 | CONTAINS |
---|
| 154 | |
---|
| 155 | |
---|
| 156 | ! Description: |
---|
| 157 | ! ------------ |
---|
| 158 | !> Global data of control variables and arrays is written out for |
---|
| 159 | !> restarts (binary format). |
---|
| 160 | !> This information is only written to the file opened by PE0. |
---|
| 161 | !------------------------------------------------------------------------------! |
---|
| 162 | SUBROUTINE wrd_global |
---|
| 163 | |
---|
| 164 | |
---|
| 165 | CHARACTER (LEN=10) :: binary_version_global !< |
---|
| 166 | |
---|
| 167 | |
---|
[3668] | 168 | binary_version_global = '4.8' |
---|
[2894] | 169 | |
---|
| 170 | CALL wrd_write_string( 'binary_version_global' ) |
---|
| 171 | WRITE ( 14 ) binary_version_global |
---|
| 172 | |
---|
| 173 | CALL wrd_write_string( 'numprocs' ) |
---|
| 174 | WRITE ( 14 ) numprocs |
---|
| 175 | |
---|
| 176 | CALL wrd_write_string( 'hor_index_bounds' ) |
---|
| 177 | WRITE ( 14 ) hor_index_bounds |
---|
| 178 | |
---|
| 179 | CALL wrd_write_string( 'nz' ) |
---|
| 180 | WRITE ( 14 ) nz |
---|
| 181 | |
---|
| 182 | CALL wrd_write_string( 'max_pr_user' ) |
---|
| 183 | WRITE ( 14 ) max_pr_user |
---|
| 184 | |
---|
| 185 | CALL wrd_write_string( 'statistic_regions' ) |
---|
| 186 | WRITE ( 14 ) statistic_regions |
---|
| 187 | |
---|
| 188 | ! |
---|
| 189 | !-- Caution: After changes in the following parameter-list, the |
---|
| 190 | !-- ------- version number stored in the variable binary_version_global has to |
---|
| 191 | !-- be increased. The same changes must also be done in the parameter- |
---|
| 192 | !-- list in rrd_global. |
---|
| 193 | |
---|
| 194 | CALL wrd_write_string( 'advected_distance_x' ) |
---|
| 195 | WRITE ( 14 ) advected_distance_x |
---|
| 196 | |
---|
| 197 | CALL wrd_write_string( 'advected_distance_y' ) |
---|
| 198 | WRITE ( 14 ) advected_distance_y |
---|
| 199 | |
---|
| 200 | CALL wrd_write_string( 'alpha_surface' ) |
---|
| 201 | WRITE ( 14 ) alpha_surface |
---|
| 202 | |
---|
| 203 | CALL wrd_write_string( 'average_count_pr' ) |
---|
| 204 | WRITE ( 14 ) average_count_pr |
---|
| 205 | |
---|
| 206 | CALL wrd_write_string( 'average_count_sp' ) |
---|
| 207 | WRITE ( 14 ) average_count_sp |
---|
| 208 | |
---|
| 209 | CALL wrd_write_string( 'average_count_3d' ) |
---|
| 210 | WRITE ( 14 ) average_count_3d |
---|
| 211 | |
---|
| 212 | CALL wrd_write_string( 'bc_e_b' ) |
---|
| 213 | WRITE ( 14 ) bc_e_b |
---|
| 214 | |
---|
| 215 | CALL wrd_write_string( 'bc_lr' ) |
---|
| 216 | WRITE ( 14 ) bc_lr |
---|
| 217 | |
---|
| 218 | CALL wrd_write_string( 'bc_ns' ) |
---|
| 219 | WRITE ( 14 ) bc_ns |
---|
| 220 | |
---|
| 221 | CALL wrd_write_string( 'bc_p_b' ) |
---|
| 222 | WRITE ( 14 ) bc_p_b |
---|
| 223 | |
---|
| 224 | CALL wrd_write_string( 'bc_p_t' ) |
---|
| 225 | WRITE ( 14 ) bc_p_t |
---|
| 226 | |
---|
| 227 | CALL wrd_write_string( 'bc_pt_b' ) |
---|
| 228 | WRITE ( 14 ) bc_pt_b |
---|
| 229 | |
---|
| 230 | CALL wrd_write_string( 'bc_pt_t' ) |
---|
| 231 | WRITE ( 14 ) bc_pt_t |
---|
| 232 | |
---|
| 233 | CALL wrd_write_string( 'bc_pt_t_val' ) |
---|
| 234 | WRITE ( 14 ) bc_pt_t_val |
---|
| 235 | |
---|
| 236 | CALL wrd_write_string( 'bc_q_b' ) |
---|
| 237 | WRITE ( 14 ) bc_q_b |
---|
| 238 | |
---|
| 239 | CALL wrd_write_string( 'bc_q_t' ) |
---|
| 240 | WRITE ( 14 ) bc_q_t |
---|
| 241 | |
---|
| 242 | CALL wrd_write_string( 'bc_q_t_val' ) |
---|
| 243 | WRITE ( 14 ) bc_q_t_val |
---|
| 244 | |
---|
| 245 | CALL wrd_write_string( 'bc_s_b' ) |
---|
| 246 | WRITE ( 14 ) bc_s_b |
---|
| 247 | |
---|
| 248 | CALL wrd_write_string( 'bc_s_t' ) |
---|
| 249 | WRITE ( 14 ) bc_s_t |
---|
| 250 | |
---|
| 251 | CALL wrd_write_string( 'bc_uv_b' ) |
---|
| 252 | WRITE ( 14 ) bc_uv_b |
---|
| 253 | |
---|
| 254 | CALL wrd_write_string( 'bc_uv_t' ) |
---|
| 255 | WRITE ( 14 ) bc_uv_t |
---|
| 256 | |
---|
| 257 | CALL wrd_write_string( 'building_height' ) |
---|
| 258 | WRITE ( 14 ) building_height |
---|
| 259 | |
---|
| 260 | CALL wrd_write_string( 'building_length_x' ) |
---|
| 261 | WRITE ( 14 ) building_length_x |
---|
| 262 | |
---|
| 263 | CALL wrd_write_string( 'building_length_y' ) |
---|
| 264 | WRITE ( 14 ) building_length_y |
---|
| 265 | |
---|
| 266 | CALL wrd_write_string( 'building_wall_left' ) |
---|
| 267 | WRITE ( 14 ) building_wall_left |
---|
| 268 | |
---|
| 269 | CALL wrd_write_string( 'building_wall_south' ) |
---|
| 270 | WRITE ( 14 ) building_wall_south |
---|
| 271 | |
---|
| 272 | CALL wrd_write_string( 'call_psolver_at_all_substeps' ) |
---|
| 273 | WRITE ( 14 ) call_psolver_at_all_substeps |
---|
| 274 | |
---|
| 275 | CALL wrd_write_string( 'canyon_height' ) |
---|
| 276 | WRITE ( 14 ) canyon_height |
---|
| 277 | |
---|
| 278 | CALL wrd_write_string( 'canyon_wall_left' ) |
---|
| 279 | WRITE ( 14 ) canyon_wall_left |
---|
| 280 | |
---|
| 281 | CALL wrd_write_string( 'canyon_wall_south' ) |
---|
| 282 | WRITE ( 14 ) canyon_wall_south |
---|
| 283 | |
---|
| 284 | CALL wrd_write_string( 'canyon_width_x' ) |
---|
| 285 | WRITE ( 14 ) canyon_width_x |
---|
| 286 | |
---|
| 287 | CALL wrd_write_string( 'canyon_width_y' ) |
---|
| 288 | WRITE ( 14 ) canyon_width_y |
---|
| 289 | |
---|
| 290 | CALL wrd_write_string( 'cfl_factor' ) |
---|
| 291 | WRITE ( 14 ) cfl_factor |
---|
| 292 | |
---|
| 293 | CALL wrd_write_string( 'cloud_droplets' ) |
---|
| 294 | WRITE ( 14 ) cloud_droplets |
---|
| 295 | |
---|
| 296 | CALL wrd_write_string( 'collective_wait' ) |
---|
| 297 | WRITE ( 14 ) collective_wait |
---|
| 298 | |
---|
| 299 | CALL wrd_write_string( 'conserve_volume_flow' ) |
---|
| 300 | WRITE ( 14 ) conserve_volume_flow |
---|
| 301 | |
---|
| 302 | CALL wrd_write_string( 'conserve_volume_flow_mode' ) |
---|
| 303 | WRITE ( 14 ) conserve_volume_flow_mode |
---|
| 304 | |
---|
| 305 | CALL wrd_write_string( 'constant_flux_layer' ) |
---|
| 306 | WRITE ( 14 ) constant_flux_layer |
---|
| 307 | |
---|
| 308 | CALL wrd_write_string( 'coupling_start_time' ) |
---|
| 309 | WRITE ( 14 ) coupling_start_time |
---|
| 310 | |
---|
| 311 | CALL wrd_write_string( 'current_timestep_number' ) |
---|
| 312 | WRITE ( 14 ) current_timestep_number |
---|
| 313 | |
---|
| 314 | CALL wrd_write_string( 'curvature_solution_effects' ) |
---|
| 315 | WRITE ( 14 ) curvature_solution_effects |
---|
| 316 | |
---|
| 317 | CALL wrd_write_string( 'cycle_mg' ) |
---|
| 318 | WRITE ( 14 ) cycle_mg |
---|
| 319 | |
---|
| 320 | CALL wrd_write_string( 'damp_level_1d' ) |
---|
| 321 | WRITE ( 14 ) damp_level_1d |
---|
| 322 | |
---|
[2921] | 323 | CALL wrd_write_string( 'day_of_year_init' ) |
---|
| 324 | WRITE ( 14 ) day_of_year_init |
---|
| 325 | |
---|
[2894] | 326 | CALL wrd_write_string( 'dissipation_1d' ) |
---|
| 327 | WRITE ( 14 ) dissipation_1d |
---|
| 328 | |
---|
| 329 | CALL wrd_write_string( 'do2d_xy_time_count' ) |
---|
| 330 | WRITE ( 14 ) do2d_xy_time_count |
---|
| 331 | |
---|
| 332 | CALL wrd_write_string( 'do2d_xz_time_count' ) |
---|
| 333 | WRITE ( 14 ) do2d_xz_time_count |
---|
| 334 | |
---|
| 335 | CALL wrd_write_string( 'do2d_yz_time_count' ) |
---|
| 336 | WRITE ( 14 ) do2d_yz_time_count |
---|
| 337 | |
---|
| 338 | CALL wrd_write_string( 'do3d_time_count' ) |
---|
| 339 | WRITE ( 14 ) do3d_time_count |
---|
| 340 | |
---|
| 341 | CALL wrd_write_string( 'dp_external' ) |
---|
| 342 | WRITE ( 14 ) dp_external |
---|
| 343 | |
---|
| 344 | CALL wrd_write_string( 'dp_level_b' ) |
---|
| 345 | WRITE ( 14 ) dp_level_b |
---|
| 346 | |
---|
| 347 | CALL wrd_write_string( 'dp_smooth' ) |
---|
| 348 | WRITE ( 14 ) dp_smooth |
---|
| 349 | |
---|
| 350 | CALL wrd_write_string( 'dpdxy' ) |
---|
| 351 | WRITE ( 14 ) dpdxy |
---|
| 352 | |
---|
| 353 | CALL wrd_write_string( 'dt_3d' ) |
---|
| 354 | WRITE ( 14 ) dt_3d |
---|
| 355 | |
---|
| 356 | CALL wrd_write_string( 'dt_pr_1d' ) |
---|
| 357 | WRITE ( 14 ) dt_pr_1d |
---|
| 358 | |
---|
| 359 | CALL wrd_write_string( 'dt_run_control_1d' ) |
---|
| 360 | WRITE ( 14 ) dt_run_control_1d |
---|
| 361 | |
---|
| 362 | CALL wrd_write_string( 'dvrp_filecount' ) |
---|
| 363 | WRITE ( 14 ) dvrp_filecount |
---|
| 364 | |
---|
| 365 | CALL wrd_write_string( 'dx' ) |
---|
| 366 | WRITE ( 14 ) dx |
---|
| 367 | |
---|
| 368 | CALL wrd_write_string( 'dy' ) |
---|
| 369 | WRITE ( 14 ) dy |
---|
| 370 | |
---|
| 371 | CALL wrd_write_string( 'dz' ) |
---|
| 372 | WRITE ( 14 ) dz |
---|
[3065] | 373 | |
---|
[2894] | 374 | CALL wrd_write_string( 'dz_max' ) |
---|
| 375 | WRITE ( 14 ) dz_max |
---|
| 376 | |
---|
| 377 | CALL wrd_write_string( 'dz_stretch_factor' ) |
---|
| 378 | WRITE ( 14 ) dz_stretch_factor |
---|
[3065] | 379 | |
---|
| 380 | CALL wrd_write_string( 'dz_stretch_factor_array' ) |
---|
| 381 | WRITE ( 14 ) dz_stretch_factor_array |
---|
| 382 | |
---|
[2894] | 383 | CALL wrd_write_string( 'dz_stretch_level' ) |
---|
| 384 | WRITE ( 14 ) dz_stretch_level |
---|
| 385 | |
---|
[3065] | 386 | CALL wrd_write_string( 'dz_stretch_level_end' ) |
---|
| 387 | WRITE ( 14 ) dz_stretch_level_end |
---|
| 388 | |
---|
| 389 | CALL wrd_write_string( 'dz_stretch_level_start' ) |
---|
| 390 | WRITE ( 14 ) dz_stretch_level_start |
---|
| 391 | |
---|
[2894] | 392 | CALL wrd_write_string( 'e_min' ) |
---|
| 393 | WRITE ( 14 ) e_min |
---|
| 394 | |
---|
| 395 | CALL wrd_write_string( 'end_time_1d' ) |
---|
| 396 | WRITE ( 14 ) end_time_1d |
---|
| 397 | |
---|
| 398 | CALL wrd_write_string( 'fft_method' ) |
---|
| 399 | WRITE ( 14 ) fft_method |
---|
| 400 | |
---|
| 401 | CALL wrd_write_string( 'first_call_lpm' ) |
---|
| 402 | WRITE ( 14 ) first_call_lpm |
---|
| 403 | |
---|
| 404 | CALL wrd_write_string( 'galilei_transformation' ) |
---|
| 405 | WRITE ( 14 ) galilei_transformation |
---|
| 406 | |
---|
| 407 | CALL wrd_write_string( 'hom' ) |
---|
| 408 | WRITE ( 14 ) hom |
---|
| 409 | |
---|
| 410 | CALL wrd_write_string( 'hom_sum' ) |
---|
| 411 | WRITE ( 14 ) hom_sum |
---|
| 412 | |
---|
| 413 | CALL wrd_write_string( 'humidity' ) |
---|
| 414 | WRITE ( 14 ) humidity |
---|
| 415 | |
---|
| 416 | IF ( ALLOCATED( inflow_damping_factor ) ) THEN |
---|
| 417 | CALL wrd_write_string( 'inflow_damping_factor' ) |
---|
| 418 | WRITE ( 14 ) inflow_damping_factor |
---|
| 419 | ENDIF |
---|
| 420 | |
---|
| 421 | CALL wrd_write_string( 'inflow_damping_height' ) |
---|
| 422 | WRITE ( 14 ) inflow_damping_height |
---|
| 423 | |
---|
| 424 | CALL wrd_write_string( 'inflow_damping_width' ) |
---|
| 425 | WRITE ( 14 ) inflow_damping_width |
---|
| 426 | |
---|
| 427 | CALL wrd_write_string( 'inflow_disturbance_begin' ) |
---|
| 428 | WRITE ( 14 ) inflow_disturbance_begin |
---|
| 429 | |
---|
| 430 | CALL wrd_write_string( 'inflow_disturbance_end' ) |
---|
| 431 | WRITE ( 14 ) inflow_disturbance_end |
---|
| 432 | |
---|
| 433 | CALL wrd_write_string( 'km_constant' ) |
---|
| 434 | WRITE ( 14 ) km_constant |
---|
| 435 | |
---|
| 436 | CALL wrd_write_string( 'large_scale_forcing' ) |
---|
| 437 | WRITE ( 14 ) large_scale_forcing |
---|
| 438 | |
---|
| 439 | CALL wrd_write_string( 'large_scale_subsidence' ) |
---|
| 440 | WRITE ( 14 ) large_scale_subsidence |
---|
| 441 | |
---|
| 442 | CALL wrd_write_string( 'latitude' ) |
---|
| 443 | WRITE ( 14 ) latitude |
---|
| 444 | |
---|
| 445 | CALL wrd_write_string( 'longitude' ) |
---|
| 446 | WRITE ( 14 ) longitude |
---|
| 447 | |
---|
| 448 | CALL wrd_write_string( 'loop_optimization' ) |
---|
| 449 | WRITE ( 14 ) loop_optimization |
---|
| 450 | |
---|
| 451 | CALL wrd_write_string( 'masking_method' ) |
---|
| 452 | WRITE ( 14 ) masking_method |
---|
| 453 | |
---|
| 454 | IF ( ALLOCATED( mean_inflow_profiles ) ) THEN |
---|
| 455 | CALL wrd_write_string( 'mean_inflow_profiles' ) |
---|
| 456 | WRITE ( 14 ) mean_inflow_profiles |
---|
| 457 | ENDIF |
---|
| 458 | |
---|
| 459 | CALL wrd_write_string( 'mg_cycles' ) |
---|
| 460 | WRITE ( 14 ) mg_cycles |
---|
| 461 | |
---|
| 462 | CALL wrd_write_string( 'mg_switch_to_pe0_level' ) |
---|
| 463 | WRITE ( 14 ) mg_switch_to_pe0_level |
---|
| 464 | |
---|
| 465 | CALL wrd_write_string( 'mixing_length_1d' ) |
---|
| 466 | WRITE ( 14 ) mixing_length_1d |
---|
| 467 | |
---|
| 468 | CALL wrd_write_string( 'momentum_advec' ) |
---|
| 469 | WRITE ( 14 ) momentum_advec |
---|
| 470 | |
---|
| 471 | CALL wrd_write_string( 'netcdf_precision' ) |
---|
| 472 | WRITE ( 14 ) netcdf_precision |
---|
| 473 | |
---|
| 474 | CALL wrd_write_string( 'neutral' ) |
---|
| 475 | WRITE ( 14 ) neutral |
---|
| 476 | |
---|
| 477 | CALL wrd_write_string( 'ngsrb' ) |
---|
| 478 | WRITE ( 14 ) ngsrb |
---|
| 479 | |
---|
| 480 | CALL wrd_write_string( 'nsor' ) |
---|
| 481 | WRITE ( 14 ) nsor |
---|
| 482 | |
---|
| 483 | CALL wrd_write_string( 'nsor_ini' ) |
---|
| 484 | WRITE ( 14 ) nsor_ini |
---|
| 485 | |
---|
| 486 | CALL wrd_write_string( 'nudging' ) |
---|
| 487 | WRITE ( 14 ) nudging |
---|
| 488 | |
---|
| 489 | CALL wrd_write_string( 'num_leg' ) |
---|
| 490 | WRITE ( 14 ) num_leg |
---|
| 491 | |
---|
| 492 | CALL wrd_write_string( 'nx' ) |
---|
| 493 | WRITE ( 14 ) nx |
---|
| 494 | |
---|
| 495 | CALL wrd_write_string( 'ny' ) |
---|
| 496 | WRITE ( 14 ) ny |
---|
| 497 | |
---|
[3294] | 498 | CALL wrd_write_string( 'ocean_mode' ) |
---|
| 499 | WRITE ( 14 ) ocean_mode |
---|
[2894] | 500 | |
---|
| 501 | CALL wrd_write_string( 'old_dt' ) |
---|
| 502 | WRITE ( 14 ) old_dt |
---|
| 503 | |
---|
| 504 | CALL wrd_write_string( 'omega' ) |
---|
| 505 | WRITE ( 14 ) omega |
---|
| 506 | |
---|
| 507 | CALL wrd_write_string( 'omega_sor' ) |
---|
| 508 | WRITE ( 14 ) omega_sor |
---|
| 509 | |
---|
| 510 | CALL wrd_write_string( 'output_for_t0' ) |
---|
| 511 | WRITE ( 14 ) output_for_t0 |
---|
| 512 | |
---|
| 513 | CALL wrd_write_string( 'passive_scalar' ) |
---|
| 514 | WRITE ( 14 ) passive_scalar |
---|
| 515 | |
---|
| 516 | CALL wrd_write_string( 'prandtl_number' ) |
---|
| 517 | WRITE ( 14 ) prandtl_number |
---|
| 518 | |
---|
| 519 | CALL wrd_write_string( 'psolver' ) |
---|
| 520 | WRITE ( 14 ) psolver |
---|
| 521 | |
---|
| 522 | CALL wrd_write_string( 'pt_damping_factor' ) |
---|
| 523 | WRITE ( 14 ) pt_damping_factor |
---|
| 524 | |
---|
| 525 | CALL wrd_write_string( 'pt_damping_width' ) |
---|
| 526 | WRITE ( 14 ) pt_damping_width |
---|
| 527 | |
---|
| 528 | CALL wrd_write_string( 'pt_init' ) |
---|
| 529 | WRITE ( 14 ) pt_init |
---|
| 530 | |
---|
| 531 | CALL wrd_write_string( 'pt_reference' ) |
---|
| 532 | WRITE ( 14 ) pt_reference |
---|
| 533 | |
---|
| 534 | CALL wrd_write_string( 'pt_surface' ) |
---|
| 535 | WRITE ( 14 ) pt_surface |
---|
| 536 | |
---|
| 537 | CALL wrd_write_string( 'pt_surface_initial_change' ) |
---|
| 538 | WRITE ( 14 ) pt_surface_initial_change |
---|
| 539 | |
---|
| 540 | CALL wrd_write_string( 'pt_vertical_gradient' ) |
---|
| 541 | WRITE ( 14 ) pt_vertical_gradient |
---|
| 542 | |
---|
| 543 | CALL wrd_write_string( 'pt_vertical_gradient_level' ) |
---|
| 544 | WRITE ( 14 ) pt_vertical_gradient_level |
---|
| 545 | |
---|
| 546 | CALL wrd_write_string( 'pt_vertical_gradient_level_ind' ) |
---|
| 547 | WRITE ( 14 ) pt_vertical_gradient_level_ind |
---|
| 548 | |
---|
| 549 | CALL wrd_write_string( 'q_init' ) |
---|
| 550 | WRITE ( 14 ) q_init |
---|
| 551 | |
---|
| 552 | CALL wrd_write_string( 'q_surface' ) |
---|
| 553 | WRITE ( 14 ) q_surface |
---|
| 554 | |
---|
| 555 | CALL wrd_write_string( 'q_surface_initial_change' ) |
---|
| 556 | WRITE ( 14 ) q_surface_initial_change |
---|
| 557 | |
---|
| 558 | CALL wrd_write_string( 'q_vertical_gradient' ) |
---|
| 559 | WRITE ( 14 ) q_vertical_gradient |
---|
| 560 | |
---|
| 561 | CALL wrd_write_string( 'q_vertical_gradient_level' ) |
---|
| 562 | WRITE ( 14 ) q_vertical_gradient_level |
---|
| 563 | |
---|
| 564 | CALL wrd_write_string( 'q_vertical_gradient_level_ind' ) |
---|
| 565 | WRITE ( 14 ) q_vertical_gradient_level_ind |
---|
| 566 | |
---|
| 567 | CALL wrd_write_string( 'random_generator' ) |
---|
| 568 | WRITE ( 14 ) random_generator |
---|
| 569 | |
---|
| 570 | CALL wrd_write_string( 'random_heatflux' ) |
---|
| 571 | WRITE ( 14 ) random_heatflux |
---|
| 572 | |
---|
| 573 | CALL wrd_write_string( 'rans_mode' ) |
---|
| 574 | WRITE ( 14 ) rans_mode |
---|
| 575 | |
---|
| 576 | CALL wrd_write_string( 'rayleigh_damping_factor' ) |
---|
| 577 | WRITE ( 14 ) rayleigh_damping_factor |
---|
| 578 | |
---|
| 579 | CALL wrd_write_string( 'rayleigh_damping_height' ) |
---|
| 580 | WRITE ( 14 ) rayleigh_damping_height |
---|
| 581 | |
---|
| 582 | CALL wrd_write_string( 'recycling_width' ) |
---|
| 583 | WRITE ( 14 ) recycling_width |
---|
| 584 | |
---|
| 585 | CALL wrd_write_string( 'recycling_yshift' ) |
---|
| 586 | WRITE ( 14 ) recycling_yshift |
---|
| 587 | |
---|
| 588 | CALL wrd_write_string( 'ref_state' ) |
---|
| 589 | WRITE ( 14 ) ref_state |
---|
| 590 | |
---|
| 591 | CALL wrd_write_string( 'reference_state' ) |
---|
| 592 | WRITE ( 14 ) reference_state |
---|
| 593 | |
---|
| 594 | CALL wrd_write_string( 'residual_limit' ) |
---|
| 595 | WRITE ( 14 ) residual_limit |
---|
| 596 | |
---|
| 597 | CALL wrd_write_string( 'roughness_length' ) |
---|
| 598 | WRITE ( 14 ) roughness_length |
---|
| 599 | |
---|
| 600 | CALL wrd_write_string( 'run_coupled' ) |
---|
| 601 | WRITE ( 14 ) run_coupled |
---|
| 602 | |
---|
| 603 | CALL wrd_write_string( 'runnr' ) |
---|
| 604 | WRITE ( 14 ) runnr |
---|
| 605 | |
---|
| 606 | CALL wrd_write_string( 's_init' ) |
---|
| 607 | WRITE ( 14 ) s_init |
---|
| 608 | |
---|
| 609 | CALL wrd_write_string( 's_surface' ) |
---|
| 610 | WRITE ( 14 ) s_surface |
---|
| 611 | |
---|
| 612 | CALL wrd_write_string( 's_surface_initial_change' ) |
---|
| 613 | WRITE ( 14 ) s_surface_initial_change |
---|
| 614 | |
---|
| 615 | CALL wrd_write_string( 's_vertical_gradient' ) |
---|
| 616 | WRITE ( 14 ) s_vertical_gradient |
---|
| 617 | |
---|
| 618 | CALL wrd_write_string( 's_vertical_gradient_level' ) |
---|
| 619 | WRITE ( 14 ) s_vertical_gradient_level |
---|
| 620 | |
---|
| 621 | CALL wrd_write_string( 's_vertical_gradient_level_ind' ) |
---|
| 622 | WRITE ( 14 ) s_vertical_gradient_level_ind |
---|
| 623 | |
---|
| 624 | CALL wrd_write_string( 'scalar_advec' ) |
---|
| 625 | WRITE ( 14 ) scalar_advec |
---|
| 626 | |
---|
| 627 | CALL wrd_write_string( 'simulated_time' ) |
---|
| 628 | WRITE ( 14 ) simulated_time |
---|
| 629 | |
---|
[2956] | 630 | IF ( ALLOCATED( spectrum_x ) ) THEN |
---|
| 631 | CALL wrd_write_string( 'spectrum_x' ) |
---|
| 632 | WRITE ( 14 ) spectrum_x |
---|
| 633 | CALL wrd_write_string( 'spectrum_y' ) |
---|
| 634 | WRITE ( 14 ) spectrum_y |
---|
| 635 | ENDIF |
---|
| 636 | |
---|
[2921] | 637 | CALL wrd_write_string( 'spinup_time ' ) |
---|
| 638 | WRITE ( 14 ) spinup_time |
---|
| 639 | |
---|
[2894] | 640 | CALL wrd_write_string( 'surface_heatflux' ) |
---|
| 641 | WRITE ( 14 ) surface_heatflux |
---|
| 642 | |
---|
| 643 | CALL wrd_write_string( 'surface_pressure' ) |
---|
| 644 | WRITE ( 14 ) surface_pressure |
---|
| 645 | |
---|
| 646 | CALL wrd_write_string( 'surface_scalarflux' ) |
---|
| 647 | WRITE ( 14 ) surface_scalarflux |
---|
| 648 | |
---|
| 649 | CALL wrd_write_string( 'surface_waterflux' ) |
---|
| 650 | WRITE ( 14 ) surface_waterflux |
---|
| 651 | |
---|
| 652 | CALL wrd_write_string( 'time_coupling' ) |
---|
| 653 | WRITE ( 14 ) time_coupling |
---|
| 654 | |
---|
| 655 | CALL wrd_write_string( 'time_disturb' ) |
---|
| 656 | WRITE ( 14 ) time_disturb |
---|
| 657 | |
---|
| 658 | CALL wrd_write_string( 'time_do2d_xy' ) |
---|
| 659 | WRITE ( 14 ) time_do2d_xy |
---|
| 660 | |
---|
| 661 | CALL wrd_write_string( 'time_do2d_xz' ) |
---|
| 662 | WRITE ( 14 ) time_do2d_xz |
---|
| 663 | |
---|
| 664 | CALL wrd_write_string( 'time_do2d_yz' ) |
---|
| 665 | WRITE ( 14 ) time_do2d_yz |
---|
| 666 | |
---|
| 667 | CALL wrd_write_string( 'time_do3d' ) |
---|
| 668 | WRITE ( 14 ) time_do3d |
---|
| 669 | |
---|
| 670 | CALL wrd_write_string( 'time_do_av' ) |
---|
| 671 | WRITE ( 14 ) time_do_av |
---|
| 672 | |
---|
| 673 | CALL wrd_write_string( 'time_do_sla' ) |
---|
| 674 | WRITE ( 14 ) time_do_sla |
---|
| 675 | |
---|
| 676 | CALL wrd_write_string( 'time_domask' ) |
---|
| 677 | WRITE ( 14 ) time_domask |
---|
| 678 | |
---|
| 679 | CALL wrd_write_string( 'time_dopr' ) |
---|
| 680 | WRITE ( 14 ) time_dopr |
---|
| 681 | |
---|
| 682 | CALL wrd_write_string( 'time_dopr_av' ) |
---|
| 683 | WRITE ( 14 ) time_dopr_av |
---|
| 684 | |
---|
| 685 | CALL wrd_write_string( 'time_dopr_listing' ) |
---|
| 686 | WRITE ( 14 ) time_dopr_listing |
---|
| 687 | |
---|
| 688 | CALL wrd_write_string( 'time_dopts' ) |
---|
| 689 | WRITE ( 14 ) time_dopts |
---|
| 690 | |
---|
| 691 | CALL wrd_write_string( 'time_dosp' ) |
---|
| 692 | WRITE ( 14 ) time_dosp |
---|
| 693 | |
---|
| 694 | CALL wrd_write_string( 'time_dots' ) |
---|
| 695 | WRITE ( 14 ) time_dots |
---|
| 696 | |
---|
| 697 | CALL wrd_write_string( 'time_dvrp' ) |
---|
| 698 | WRITE ( 14 ) time_dvrp |
---|
| 699 | |
---|
| 700 | CALL wrd_write_string( 'time_radiation' ) |
---|
| 701 | WRITE ( 14 ) time_radiation |
---|
| 702 | |
---|
| 703 | CALL wrd_write_string( 'time_restart' ) |
---|
| 704 | WRITE ( 14 ) time_restart |
---|
| 705 | |
---|
| 706 | CALL wrd_write_string( 'time_run_control' ) |
---|
| 707 | WRITE ( 14 ) time_run_control |
---|
| 708 | |
---|
| 709 | CALL wrd_write_string( 'time_since_reference_point' ) |
---|
| 710 | WRITE ( 14 ) time_since_reference_point |
---|
| 711 | |
---|
[2921] | 712 | CALL wrd_write_string( 'time_utc_init' ) |
---|
| 713 | WRITE ( 14 ) time_utc_init |
---|
| 714 | |
---|
[2894] | 715 | CALL wrd_write_string( 'timestep_scheme' ) |
---|
| 716 | WRITE ( 14 ) timestep_scheme |
---|
| 717 | |
---|
| 718 | CALL wrd_write_string( 'top_heatflux' ) |
---|
| 719 | WRITE ( 14 ) top_heatflux |
---|
| 720 | |
---|
| 721 | CALL wrd_write_string( 'top_momentumflux_u' ) |
---|
| 722 | WRITE ( 14 ) top_momentumflux_u |
---|
| 723 | |
---|
| 724 | CALL wrd_write_string( 'top_momentumflux_v' ) |
---|
| 725 | WRITE ( 14 ) top_momentumflux_v |
---|
| 726 | |
---|
| 727 | CALL wrd_write_string( 'top_scalarflux' ) |
---|
| 728 | WRITE ( 14 ) top_scalarflux |
---|
| 729 | |
---|
| 730 | CALL wrd_write_string( 'topography' ) |
---|
| 731 | WRITE ( 14 ) topography |
---|
| 732 | |
---|
| 733 | CALL wrd_write_string( 'topography_grid_convention' ) |
---|
| 734 | WRITE ( 14 ) topography_grid_convention |
---|
| 735 | |
---|
| 736 | CALL wrd_write_string( 'tsc' ) |
---|
| 737 | WRITE ( 14 ) tsc |
---|
| 738 | |
---|
| 739 | CALL wrd_write_string( 'tunnel_height' ) |
---|
| 740 | WRITE ( 14 ) tunnel_height |
---|
| 741 | |
---|
| 742 | CALL wrd_write_string( 'tunnel_length' ) |
---|
| 743 | WRITE ( 14 ) tunnel_length |
---|
| 744 | |
---|
| 745 | CALL wrd_write_string( 'tunnel_wall_depth' ) |
---|
| 746 | WRITE ( 14 ) tunnel_wall_depth |
---|
| 747 | |
---|
| 748 | CALL wrd_write_string( 'tunnel_width_x' ) |
---|
| 749 | WRITE ( 14 ) tunnel_width_x |
---|
| 750 | |
---|
| 751 | CALL wrd_write_string( 'tunnel_width_y' ) |
---|
| 752 | WRITE ( 14 ) tunnel_width_y |
---|
| 753 | |
---|
| 754 | CALL wrd_write_string( 'turbulence_closure' ) |
---|
| 755 | WRITE ( 14 ) turbulence_closure |
---|
| 756 | |
---|
| 757 | CALL wrd_write_string( 'turbulent_inflow' ) |
---|
| 758 | WRITE ( 14 ) turbulent_inflow |
---|
| 759 | |
---|
| 760 | CALL wrd_write_string( 'u_bulk' ) |
---|
| 761 | WRITE ( 14 ) u_bulk |
---|
| 762 | |
---|
| 763 | CALL wrd_write_string( 'u_init' ) |
---|
| 764 | WRITE ( 14 ) u_init |
---|
| 765 | |
---|
| 766 | CALL wrd_write_string( 'u_max' ) |
---|
| 767 | WRITE ( 14 ) u_max |
---|
| 768 | |
---|
| 769 | CALL wrd_write_string( 'u_max_ijk' ) |
---|
| 770 | WRITE ( 14 ) u_max_ijk |
---|
| 771 | |
---|
| 772 | CALL wrd_write_string( 'ug' ) |
---|
| 773 | WRITE ( 14 ) ug |
---|
| 774 | |
---|
| 775 | CALL wrd_write_string( 'ug_surface' ) |
---|
| 776 | WRITE ( 14 ) ug_surface |
---|
| 777 | |
---|
| 778 | CALL wrd_write_string( 'ug_vertical_gradient' ) |
---|
| 779 | WRITE ( 14 ) ug_vertical_gradient |
---|
| 780 | |
---|
| 781 | CALL wrd_write_string( 'ug_vertical_gradient_level' ) |
---|
| 782 | WRITE ( 14 ) ug_vertical_gradient_level |
---|
| 783 | |
---|
| 784 | CALL wrd_write_string( 'ug_vertical_gradient_level_ind' ) |
---|
| 785 | WRITE ( 14 ) ug_vertical_gradient_level_ind |
---|
| 786 | |
---|
| 787 | CALL wrd_write_string( 'use_surface_fluxes' ) |
---|
| 788 | WRITE ( 14 ) use_surface_fluxes |
---|
| 789 | |
---|
| 790 | CALL wrd_write_string( 'use_top_fluxes' ) |
---|
| 791 | WRITE ( 14 ) use_top_fluxes |
---|
| 792 | |
---|
| 793 | CALL wrd_write_string( 'use_ug_for_galilei_tr' ) |
---|
| 794 | WRITE ( 14 ) use_ug_for_galilei_tr |
---|
| 795 | |
---|
| 796 | CALL wrd_write_string( 'use_upstream_for_tke' ) |
---|
| 797 | WRITE ( 14 ) use_upstream_for_tke |
---|
| 798 | |
---|
| 799 | CALL wrd_write_string( 'v_bulk' ) |
---|
| 800 | WRITE ( 14 ) v_bulk |
---|
| 801 | |
---|
| 802 | CALL wrd_write_string( 'v_init' ) |
---|
| 803 | WRITE ( 14 ) v_init |
---|
| 804 | |
---|
| 805 | CALL wrd_write_string( 'v_max' ) |
---|
| 806 | WRITE ( 14 ) v_max |
---|
| 807 | |
---|
| 808 | CALL wrd_write_string( 'v_max_ijk' ) |
---|
| 809 | WRITE ( 14 ) v_max_ijk |
---|
| 810 | |
---|
| 811 | CALL wrd_write_string( 'vg' ) |
---|
| 812 | WRITE ( 14 ) vg |
---|
| 813 | |
---|
| 814 | CALL wrd_write_string( 'vg_surface' ) |
---|
| 815 | WRITE ( 14 ) vg_surface |
---|
| 816 | |
---|
| 817 | CALL wrd_write_string( 'vg_vertical_gradient' ) |
---|
| 818 | WRITE ( 14 ) vg_vertical_gradient |
---|
| 819 | |
---|
| 820 | CALL wrd_write_string( 'vg_vertical_gradient_level' ) |
---|
| 821 | WRITE ( 14 ) vg_vertical_gradient_level |
---|
| 822 | |
---|
| 823 | CALL wrd_write_string( 'vg_vertical_gradient_level_ind' ) |
---|
| 824 | WRITE ( 14 ) vg_vertical_gradient_level_ind |
---|
| 825 | |
---|
| 826 | CALL wrd_write_string( 'virtual_flight' ) |
---|
| 827 | WRITE ( 14 ) virtual_flight |
---|
| 828 | |
---|
| 829 | CALL wrd_write_string( 'vnest_init' ) |
---|
| 830 | WRITE ( 14 ) vnest_init |
---|
| 831 | |
---|
| 832 | CALL wrd_write_string( 'volume_flow_area' ) |
---|
| 833 | WRITE ( 14 ) volume_flow_area |
---|
| 834 | |
---|
| 835 | CALL wrd_write_string( 'volume_flow_initial' ) |
---|
| 836 | WRITE ( 14 ) volume_flow_initial |
---|
| 837 | |
---|
| 838 | CALL wrd_write_string( 'subs_vertical_gradient' ) |
---|
| 839 | WRITE ( 14 ) subs_vertical_gradient |
---|
| 840 | |
---|
| 841 | CALL wrd_write_string( 'subs_vertical_gradient_level' ) |
---|
| 842 | WRITE ( 14 ) subs_vertical_gradient_level |
---|
| 843 | |
---|
| 844 | CALL wrd_write_string( 'subs_vertical_gradient_level_i' ) |
---|
| 845 | WRITE ( 14 ) subs_vertical_gradient_level_i |
---|
| 846 | |
---|
| 847 | CALL wrd_write_string( 'w_max' ) |
---|
| 848 | WRITE ( 14 ) w_max |
---|
| 849 | |
---|
| 850 | CALL wrd_write_string( 'w_max_ijk' ) |
---|
| 851 | WRITE ( 14 ) w_max_ijk |
---|
| 852 | |
---|
| 853 | CALL wrd_write_string( 'wall_adjustment' ) |
---|
| 854 | WRITE ( 14 ) wall_adjustment |
---|
| 855 | |
---|
| 856 | CALL wrd_write_string( 'wall_heatflux' ) |
---|
| 857 | WRITE ( 14 ) wall_heatflux |
---|
| 858 | |
---|
| 859 | CALL wrd_write_string( 'wall_humidityflux' ) |
---|
| 860 | WRITE ( 14 ) wall_humidityflux |
---|
| 861 | |
---|
| 862 | CALL wrd_write_string( 'wall_scalarflux' ) |
---|
| 863 | WRITE ( 14 ) wall_scalarflux |
---|
| 864 | |
---|
| 865 | CALL wrd_write_string( 'y_shift' ) |
---|
| 866 | WRITE ( 14 ) y_shift |
---|
| 867 | |
---|
| 868 | CALL wrd_write_string( 'z0h_factor' ) |
---|
| 869 | WRITE ( 14 ) z0h_factor |
---|
| 870 | |
---|
| 871 | CALL wrd_write_string( 'zeta_max' ) |
---|
| 872 | WRITE ( 14 ) zeta_max |
---|
| 873 | |
---|
| 874 | CALL wrd_write_string( 'zeta_min' ) |
---|
| 875 | WRITE ( 14 ) zeta_min |
---|
| 876 | |
---|
[3003] | 877 | CALL wrd_write_string( 'z_i' ) |
---|
| 878 | WRITE ( 14 ) z_i |
---|
[2894] | 879 | |
---|
| 880 | ! |
---|
[3294] | 881 | !-- Write restart data of the other modules |
---|
[3637] | 882 | CALL module_interface_wrd_global |
---|
[2894] | 883 | |
---|
| 884 | |
---|
| 885 | END SUBROUTINE wrd_global |
---|
| 886 | |
---|
| 887 | |
---|
| 888 | !------------------------------------------------------------------------------! |
---|
| 889 | ! Description: |
---|
| 890 | ! ------------ |
---|
| 891 | !> Processor specific data of variables and arrays is written out for |
---|
| 892 | !> restarts (binary format). |
---|
| 893 | !> This information is written to the file opened by each PE. |
---|
| 894 | !------------------------------------------------------------------------------! |
---|
| 895 | SUBROUTINE wrd_local |
---|
| 896 | |
---|
| 897 | |
---|
| 898 | CHARACTER (LEN=10) :: binary_version_local !< |
---|
| 899 | |
---|
| 900 | ! |
---|
| 901 | !-- Write arrays. |
---|
| 902 | binary_version_local = '4.7' |
---|
| 903 | |
---|
| 904 | CALL wrd_write_string( 'binary_version_local' ) |
---|
| 905 | WRITE ( 14 ) binary_version_local |
---|
| 906 | |
---|
| 907 | WRITE ( 14 ) numprocs, myid, nxl, nxr, nys, nyn, nzb, nzt |
---|
| 908 | |
---|
| 909 | ! |
---|
| 910 | !-- Attention: After changes to the following output commands the version number |
---|
| 911 | !-- --------- of the variable binary_version_local must be changed! |
---|
| 912 | !-- Also, the list of arrays to be read in rrd_local must be |
---|
| 913 | !-- adjusted accordingly. |
---|
| 914 | CALL wrd_write_string( 'e' ) |
---|
| 915 | WRITE ( 14 ) e |
---|
| 916 | |
---|
| 917 | IF ( ALLOCATED( e_av ) ) THEN |
---|
| 918 | CALL wrd_write_string( 'e_av' ) |
---|
| 919 | WRITE ( 14 ) e_av |
---|
| 920 | ENDIF |
---|
| 921 | |
---|
| 922 | CALL wrd_write_string( 'iran' ) |
---|
| 923 | WRITE ( 14 ) iran, iran_part |
---|
| 924 | |
---|
| 925 | CALL wrd_write_string( 'kh' ) |
---|
| 926 | WRITE ( 14 ) kh |
---|
| 927 | |
---|
| 928 | |
---|
| 929 | IF ( ALLOCATED( kh_av ) ) THEN |
---|
| 930 | CALL wrd_write_string( 'kh_av' ) |
---|
| 931 | WRITE ( 14 ) kh_av |
---|
| 932 | ENDIF |
---|
| 933 | |
---|
| 934 | CALL wrd_write_string( 'km' ) |
---|
| 935 | WRITE ( 14 ) km |
---|
| 936 | |
---|
| 937 | IF ( ALLOCATED( km_av ) ) THEN |
---|
| 938 | CALL wrd_write_string( 'km_av' ) |
---|
| 939 | WRITE ( 14 ) km_av |
---|
| 940 | ENDIF |
---|
| 941 | |
---|
| 942 | IF ( ALLOCATED( lpt_av ) ) THEN |
---|
| 943 | CALL wrd_write_string( 'lpt_av' ) |
---|
| 944 | WRITE ( 14 ) lpt_av |
---|
| 945 | ENDIF |
---|
| 946 | |
---|
| 947 | IF ( ALLOCATED( lwp_av ) ) THEN |
---|
| 948 | CALL wrd_write_string( 'lwp_av' ) |
---|
| 949 | WRITE ( 14 ) lwp_av |
---|
| 950 | ENDIF |
---|
| 951 | |
---|
| 952 | CALL wrd_write_string( 'p' ) |
---|
| 953 | WRITE ( 14 ) p |
---|
| 954 | |
---|
| 955 | IF ( ALLOCATED( p_av ) ) THEN |
---|
| 956 | CALL wrd_write_string( 'p_av' ) |
---|
| 957 | WRITE ( 14 ) p_av |
---|
| 958 | ENDIF |
---|
| 959 | |
---|
| 960 | IF ( ALLOCATED( pc_av ) ) THEN |
---|
| 961 | CALL wrd_write_string( 'pc_av' ) |
---|
| 962 | WRITE ( 14 ) pc_av |
---|
| 963 | ENDIF |
---|
| 964 | |
---|
| 965 | IF ( ALLOCATED( pr_av ) ) THEN |
---|
| 966 | CALL wrd_write_string( 'pr_av' ) |
---|
| 967 | WRITE ( 14 ) pr_av |
---|
| 968 | ENDIF |
---|
| 969 | |
---|
| 970 | CALL wrd_write_string( 'pt' ) |
---|
| 971 | WRITE ( 14 ) pt |
---|
| 972 | |
---|
| 973 | IF ( ALLOCATED( pt_av ) ) THEN |
---|
| 974 | CALL wrd_write_string( 'pt_av' ) |
---|
| 975 | WRITE ( 14 ) pt_av |
---|
| 976 | ENDIF |
---|
| 977 | |
---|
[3936] | 978 | IF ( ALLOCATED( pt_2m_av ) ) THEN |
---|
| 979 | CALL wrd_write_string( 'pt_2m_av' ) |
---|
| 980 | WRITE ( 14 ) pt_2m_av |
---|
| 981 | ENDIF |
---|
| 982 | |
---|
[2894] | 983 | IF ( humidity ) THEN |
---|
| 984 | |
---|
| 985 | CALL wrd_write_string( 'q' ) |
---|
| 986 | WRITE ( 14 ) q |
---|
| 987 | |
---|
| 988 | IF ( ALLOCATED( q_av ) ) THEN |
---|
| 989 | CALL wrd_write_string( 'q_av' ) |
---|
| 990 | WRITE ( 14 ) q_av |
---|
| 991 | ENDIF |
---|
| 992 | |
---|
[3274] | 993 | IF ( cloud_droplets ) THEN |
---|
[2894] | 994 | |
---|
[3274] | 995 | CALL wrd_write_string( 'ql' ) |
---|
[2894] | 996 | WRITE ( 14 ) ql |
---|
| 997 | |
---|
| 998 | IF ( ALLOCATED( ql_av ) ) THEN |
---|
[3274] | 999 | CALL wrd_write_string( 'ql_av' ) |
---|
[2894] | 1000 | WRITE ( 14 ) ql_av |
---|
| 1001 | ENDIF |
---|
| 1002 | |
---|
| 1003 | ENDIF |
---|
| 1004 | |
---|
| 1005 | IF ( ALLOCATED( qsws_av ) ) THEN |
---|
| 1006 | CALL wrd_write_string( 'qsws_av' ) |
---|
| 1007 | WRITE ( 14 ) qsws_av |
---|
| 1008 | ENDIF |
---|
| 1009 | |
---|
| 1010 | ENDIF |
---|
| 1011 | |
---|
| 1012 | IF ( passive_scalar ) THEN |
---|
| 1013 | |
---|
| 1014 | CALL wrd_write_string( 's' ) |
---|
| 1015 | WRITE ( 14 ) s |
---|
| 1016 | |
---|
| 1017 | IF ( ALLOCATED( s_av ) ) THEN |
---|
| 1018 | CALL wrd_write_string( 's_av' ) |
---|
| 1019 | WRITE ( 14 ) s_av |
---|
| 1020 | ENDIF |
---|
| 1021 | |
---|
| 1022 | IF ( ALLOCATED( ssws_av ) ) THEN |
---|
| 1023 | CALL wrd_write_string( 'ssws_av' ) |
---|
| 1024 | WRITE ( 14 ) ssws_av |
---|
| 1025 | ENDIF |
---|
| 1026 | |
---|
| 1027 | ENDIF |
---|
| 1028 | |
---|
| 1029 | IF ( ALLOCATED( ql_c_av ) ) THEN |
---|
| 1030 | CALL wrd_write_string( 'ql_c_av' ) |
---|
| 1031 | WRITE ( 14 ) ql_c_av |
---|
| 1032 | ENDIF |
---|
| 1033 | |
---|
| 1034 | IF ( ALLOCATED( ql_v_av ) ) THEN |
---|
| 1035 | CALL wrd_write_string( 'ql_v_av' ) |
---|
| 1036 | WRITE ( 14 ) ql_v_av |
---|
| 1037 | ENDIF |
---|
| 1038 | |
---|
| 1039 | IF ( ALLOCATED( ql_vp_av ) ) THEN |
---|
| 1040 | CALL wrd_write_string( 'ql_vp_av' ) |
---|
| 1041 | WRITE ( 14 ) ql_vp_av |
---|
| 1042 | ENDIF |
---|
| 1043 | |
---|
| 1044 | IF ( ALLOCATED( qv_av ) ) THEN |
---|
| 1045 | CALL wrd_write_string( 'qv_av' ) |
---|
| 1046 | WRITE ( 14 ) qv_av |
---|
| 1047 | ENDIF |
---|
| 1048 | |
---|
| 1049 | CALL wrd_write_string( 'random_iv' ) |
---|
| 1050 | WRITE ( 14 ) random_iv |
---|
| 1051 | WRITE ( 14 ) random_iy |
---|
| 1052 | |
---|
| 1053 | IF ( ALLOCATED( seq_random_array ) ) THEN |
---|
| 1054 | CALL wrd_write_string( 'seq_random_array' ) |
---|
| 1055 | WRITE ( 14 ) id_random_array |
---|
| 1056 | WRITE ( 14 ) seq_random_array |
---|
| 1057 | ENDIF |
---|
| 1058 | |
---|
| 1059 | IF ( ALLOCATED( s_av ) ) THEN |
---|
| 1060 | CALL wrd_write_string( 's_av' ) |
---|
| 1061 | WRITE ( 14 ) s_av |
---|
| 1062 | ENDIF |
---|
| 1063 | |
---|
| 1064 | IF ( ALLOCATED( shf_av ) ) THEN |
---|
| 1065 | CALL wrd_write_string( 'shf_av' ) |
---|
| 1066 | WRITE ( 14 ) shf_av |
---|
| 1067 | ENDIF |
---|
| 1068 | |
---|
| 1069 | IF ( ALLOCATED( ts_av ) ) THEN |
---|
| 1070 | CALL wrd_write_string( 'ts_av' ) |
---|
| 1071 | WRITE ( 14 ) ts_av |
---|
| 1072 | ENDIF |
---|
| 1073 | |
---|
| 1074 | CALL wrd_write_string( 'u' ) |
---|
| 1075 | WRITE ( 14 ) u |
---|
| 1076 | |
---|
| 1077 | IF ( ALLOCATED( u_av ) ) THEN |
---|
| 1078 | CALL wrd_write_string( 'u_av' ) |
---|
| 1079 | WRITE ( 14 ) u_av |
---|
| 1080 | ENDIF |
---|
| 1081 | |
---|
| 1082 | IF ( ALLOCATED( u_m_l ) ) THEN |
---|
| 1083 | CALL wrd_write_string( 'u_m_l' ) |
---|
| 1084 | WRITE ( 14 ) u_m_l |
---|
| 1085 | ENDIF |
---|
| 1086 | |
---|
| 1087 | IF ( ALLOCATED( u_m_n ) ) THEN |
---|
| 1088 | CALL wrd_write_string( 'u_m_n' ) |
---|
| 1089 | WRITE ( 14 ) u_m_n |
---|
| 1090 | ENDIF |
---|
| 1091 | |
---|
| 1092 | IF ( ALLOCATED( u_m_r ) ) THEN |
---|
| 1093 | CALL wrd_write_string( 'u_m_r' ) |
---|
| 1094 | WRITE ( 14 ) u_m_r |
---|
| 1095 | ENDIF |
---|
| 1096 | |
---|
| 1097 | IF ( ALLOCATED( u_m_s ) ) THEN |
---|
| 1098 | CALL wrd_write_string( 'u_m_s' ) |
---|
| 1099 | WRITE ( 14 ) u_m_s |
---|
| 1100 | ENDIF |
---|
| 1101 | |
---|
| 1102 | IF ( ALLOCATED( us_av ) ) THEN |
---|
| 1103 | CALL wrd_write_string( 'us_av' ) |
---|
| 1104 | WRITE ( 14 ) us_av |
---|
| 1105 | ENDIF |
---|
| 1106 | |
---|
| 1107 | CALL wrd_write_string( 'v' ) |
---|
| 1108 | WRITE ( 14 ) v |
---|
| 1109 | |
---|
| 1110 | IF ( ALLOCATED( v_av ) ) THEN |
---|
| 1111 | CALL wrd_write_string( 'v_av' ) |
---|
| 1112 | WRITE ( 14 ) v_av |
---|
| 1113 | ENDIF |
---|
| 1114 | |
---|
| 1115 | IF ( ALLOCATED( v_m_l ) ) THEN |
---|
| 1116 | CALL wrd_write_string( 'v_m_l' ) |
---|
| 1117 | WRITE ( 14 ) v_m_l |
---|
| 1118 | ENDIF |
---|
| 1119 | |
---|
| 1120 | IF ( ALLOCATED( v_m_n ) ) THEN |
---|
| 1121 | CALL wrd_write_string( 'v_m_n' ) |
---|
| 1122 | WRITE ( 14 ) v_m_n |
---|
| 1123 | ENDIF |
---|
| 1124 | |
---|
| 1125 | IF ( ALLOCATED( v_m_r ) ) THEN |
---|
| 1126 | CALL wrd_write_string( 'v_m_r' ) |
---|
| 1127 | WRITE ( 14 ) v_m_r |
---|
| 1128 | ENDIF |
---|
| 1129 | |
---|
| 1130 | IF ( ALLOCATED( v_m_s ) ) THEN |
---|
| 1131 | CALL wrd_write_string( 'v_m_s' ) |
---|
| 1132 | WRITE ( 14 ) v_m_s |
---|
| 1133 | ENDIF |
---|
| 1134 | |
---|
| 1135 | IF ( humidity ) THEN |
---|
| 1136 | |
---|
| 1137 | CALL wrd_write_string( 'vpt' ) |
---|
| 1138 | WRITE ( 14 ) vpt |
---|
| 1139 | |
---|
| 1140 | IF ( ALLOCATED( vpt_av ) ) THEN |
---|
| 1141 | CALL wrd_write_string( 'vpt_av' ) |
---|
| 1142 | WRITE ( 14 ) vpt_av |
---|
| 1143 | ENDIF |
---|
| 1144 | |
---|
| 1145 | ENDIF |
---|
| 1146 | |
---|
| 1147 | CALL wrd_write_string( 'w' ) |
---|
| 1148 | WRITE ( 14 ) w |
---|
| 1149 | |
---|
| 1150 | IF ( ALLOCATED( w_av ) ) THEN |
---|
| 1151 | CALL wrd_write_string( 'w_av' ) |
---|
| 1152 | WRITE ( 14 ) w_av |
---|
| 1153 | ENDIF |
---|
| 1154 | |
---|
| 1155 | IF ( ALLOCATED( w_m_l ) ) THEN |
---|
| 1156 | CALL wrd_write_string( 'w_m_l' ) |
---|
| 1157 | WRITE ( 14 ) w_m_l |
---|
| 1158 | ENDIF |
---|
| 1159 | |
---|
| 1160 | IF ( ALLOCATED( w_m_n ) ) THEN |
---|
| 1161 | CALL wrd_write_string( 'w_m_n' ) |
---|
| 1162 | WRITE ( 14 ) w_m_n |
---|
| 1163 | ENDIF |
---|
| 1164 | |
---|
| 1165 | IF ( ALLOCATED( w_m_r ) ) THEN |
---|
| 1166 | CALL wrd_write_string( 'w_m_r' ) |
---|
| 1167 | WRITE ( 14 ) w_m_r |
---|
| 1168 | ENDIF |
---|
| 1169 | |
---|
| 1170 | IF ( ALLOCATED( w_m_s ) ) THEN |
---|
| 1171 | CALL wrd_write_string( 'w_m_s' ) |
---|
| 1172 | WRITE ( 14 ) w_m_s |
---|
| 1173 | ENDIF |
---|
| 1174 | |
---|
| 1175 | IF ( ALLOCATED( z0_av ) ) THEN |
---|
| 1176 | CALL wrd_write_string( 'z0_av' ) |
---|
| 1177 | WRITE ( 14 ) z0_av |
---|
| 1178 | ENDIF |
---|
| 1179 | |
---|
| 1180 | IF ( ALLOCATED( z0h_av ) ) THEN |
---|
| 1181 | CALL wrd_write_string( 'z0h_av' ) |
---|
| 1182 | WRITE ( 14 ) z0h_av |
---|
| 1183 | ENDIF |
---|
| 1184 | |
---|
| 1185 | IF ( ALLOCATED( z0q_av ) ) THEN |
---|
| 1186 | CALL wrd_write_string( 'z0q_av' ) |
---|
| 1187 | WRITE ( 14 ) z0q_av |
---|
| 1188 | ENDIF |
---|
| 1189 | |
---|
| 1190 | IF ( land_surface .OR. urban_surface ) THEN |
---|
| 1191 | |
---|
| 1192 | IF ( ALLOCATED( ghf_av ) ) THEN |
---|
| 1193 | CALL wrd_write_string( 'ghf_av' ) |
---|
| 1194 | WRITE ( 14 ) ghf_av |
---|
| 1195 | ENDIF |
---|
| 1196 | |
---|
| 1197 | IF ( ALLOCATED( r_a_av ) ) THEN |
---|
| 1198 | CALL wrd_write_string( 'r_a_av' ) |
---|
| 1199 | WRITE ( 14 ) r_a_av |
---|
| 1200 | ENDIF |
---|
| 1201 | |
---|
| 1202 | ENDIF |
---|
| 1203 | |
---|
| 1204 | IF ( ALLOCATED( tsurf_av ) ) THEN |
---|
| 1205 | CALL wrd_write_string( 'tsurf_av' ) |
---|
| 1206 | WRITE ( 14 ) tsurf_av |
---|
| 1207 | ENDIF |
---|
| 1208 | |
---|
[3637] | 1209 | |
---|
[3582] | 1210 | CALL surface_wrd_local |
---|
[2894] | 1211 | |
---|
| 1212 | ! |
---|
[3637] | 1213 | !-- Write restart data of other modules |
---|
| 1214 | CALL module_interface_wrd_local |
---|
[2894] | 1215 | |
---|
| 1216 | ! |
---|
[3294] | 1217 | !-- Write end label |
---|
[2894] | 1218 | CALL wrd_write_string( '*** end ***' ) |
---|
| 1219 | |
---|
| 1220 | END SUBROUTINE wrd_local |
---|
| 1221 | |
---|
| 1222 | |
---|
| 1223 | END MODULE write_restart_data_mod |
---|