[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 | ! |
---|
| 17 | ! Copyright 1997-2018 Leibniz Universitaet Hannover |
---|
| 18 | !------------------------------------------------------------------------------! |
---|
| 19 | ! |
---|
| 20 | ! Current revisions: |
---|
| 21 | ! ----------------- |
---|
| 22 | ! |
---|
| 23 | ! |
---|
| 24 | ! Former revisions: |
---|
| 25 | ! ----------------- |
---|
| 26 | ! $Id: write_restart_data_mod.f90 3637 2018-12-20 01:51:36Z suehring $ |
---|
[3637] | 27 | ! Implementation of the PALM module interface |
---|
| 28 | ! |
---|
| 29 | ! 3589 2018-11-30 15:09:51Z suehring |
---|
[3589] | 30 | ! Move the control parameter "salsa" from salsa_mod to control_parameters |
---|
| 31 | ! (M. Kurppa) |
---|
| 32 | ! |
---|
| 33 | ! |
---|
| 34 | ! 3582 2018-11-29 19:16:36Z suehring |
---|
[3467] | 35 | ! Implementation of a new aerosol module salsa. |
---|
| 36 | ! |
---|
| 37 | ! 3355 2018-10-16 14:03:34Z knoop |
---|
[3294] | 38 | ! changes concerning modularization of ocean option |
---|
| 39 | ! |
---|
| 40 | ! 3274 2018-09-24 15:42:55Z knoop |
---|
[3274] | 41 | ! Modularization of all bulk cloud physics code components |
---|
| 42 | ! |
---|
| 43 | ! 3065 2018-06-12 07:03:02Z Giersch |
---|
[3065] | 44 | ! New parameters concerning vertical grid stretching have been added |
---|
| 45 | ! |
---|
| 46 | ! 3004 2018-04-27 12:33:25Z Giersch |
---|
[3004] | 47 | ! precipitation_rate_av removed |
---|
| 48 | ! |
---|
| 49 | ! 3003 2018-04-23 10:22:58Z Giersch |
---|
[3003] | 50 | ! z_i is also written out to use the last known inversion height from the |
---|
| 51 | ! initial run as the first inversion height which is written into the |
---|
| 52 | ! run control file |
---|
| 53 | ! |
---|
| 54 | ! 2956 2018-04-10 11:01:03Z Giersch |
---|
[2956] | 55 | ! spectrum_x and spectrum_y have been moved to global data |
---|
| 56 | ! |
---|
| 57 | ! 2921 2018-03-22 15:05:23Z Giersch |
---|
[2921] | 58 | ! spinup_time, day_of_year_init and time_utc_init are also written out now |
---|
| 59 | ! |
---|
| 60 | ! 2912 2018-03-20 13:00:05Z knoop |
---|
[2912] | 61 | ! Added gust module interface calls |
---|
| 62 | ! |
---|
| 63 | ! 2894 2018-03-15 09:17:58Z Giersch |
---|
[2894] | 64 | ! Initial revision |
---|
| 65 | ! |
---|
| 66 | ! |
---|
| 67 | ! Description: |
---|
| 68 | ! ------------ |
---|
| 69 | !> Writes restart data into binary file(s) for restart runs. |
---|
| 70 | !------------------------------------------------------------------------------! |
---|
| 71 | MODULE write_restart_data_mod |
---|
| 72 | |
---|
| 73 | |
---|
[3637] | 74 | USE arrays_3d, & |
---|
| 75 | ONLY: inflow_damping_factor, mean_inflow_profiles, pt_init, & |
---|
| 76 | q_init, ref_state, s_init, u_init, ug, v_init, vg, & |
---|
| 77 | e, kh, km, p, pt, q, ql, s, u, u_m_l, u_m_n, u_m_r, & |
---|
| 78 | u_m_s, v, v_m_l, v_m_n, v_m_r, v_m_s, vpt, w, w_m_l, w_m_n, & |
---|
| 79 | w_m_r, w_m_s |
---|
| 80 | |
---|
| 81 | USE averaging |
---|
| 82 | |
---|
[2894] | 83 | USE control_parameters |
---|
| 84 | |
---|
[3637] | 85 | USE date_and_time_mod, & |
---|
| 86 | ONLY: day_of_year_init, time_utc_init |
---|
| 87 | |
---|
| 88 | USE grid_variables, & |
---|
| 89 | ONLY: dx, dy |
---|
| 90 | |
---|
| 91 | USE indices, & |
---|
| 92 | ONLY: nx, nxl, nxr, ny, nys, nyn, nz, nzb, nzt |
---|
| 93 | |
---|
| 94 | USE kinds |
---|
| 95 | |
---|
| 96 | USE model_1d_mod, & |
---|
| 97 | ONLY: damp_level_1d, dt_pr_1d, dt_run_control_1d, end_time_1d |
---|
| 98 | |
---|
| 99 | USE module_interface, & |
---|
| 100 | ONLY: module_interface_wrd_global, & |
---|
| 101 | module_interface_wrd_local |
---|
| 102 | |
---|
| 103 | USE netcdf_interface, & |
---|
| 104 | ONLY: netcdf_precision, output_for_t0 |
---|
| 105 | |
---|
| 106 | USE particle_attributes, & |
---|
| 107 | ONLY: curvature_solution_effects, iran_part |
---|
| 108 | |
---|
[2894] | 109 | USE pegrid, & |
---|
[3637] | 110 | ONLY: collective_wait, hor_index_bounds, myid, numprocs |
---|
[2894] | 111 | |
---|
[3637] | 112 | USE radiation_model_mod, & |
---|
| 113 | ONLY: time_radiation |
---|
| 114 | |
---|
| 115 | USE random_function_mod, & |
---|
| 116 | ONLY: random_iv, random_iy |
---|
| 117 | |
---|
| 118 | USE random_generator_parallel, & |
---|
| 119 | ONLY: id_random_array, seq_random_array |
---|
| 120 | |
---|
| 121 | USE spectra_mod, & |
---|
| 122 | ONLY: average_count_sp, spectrum_x, spectrum_y |
---|
| 123 | |
---|
| 124 | USE statistics, & |
---|
| 125 | ONLY: statistic_regions, hom, hom_sum, u_max, u_max_ijk, v_max, & |
---|
| 126 | v_max_ijk, w_max, w_max_ijk, z_i |
---|
| 127 | |
---|
| 128 | USE surface_mod, & |
---|
| 129 | ONLY : surface_wrd_local |
---|
| 130 | |
---|
| 131 | USE vertical_nesting_mod, & |
---|
| 132 | ONLY: vnest_init |
---|
| 133 | |
---|
| 134 | |
---|
[2894] | 135 | IMPLICIT NONE |
---|
| 136 | |
---|
| 137 | |
---|
| 138 | INTERFACE wrd_global |
---|
| 139 | MODULE PROCEDURE wrd_global |
---|
| 140 | END INTERFACE wrd_global |
---|
| 141 | |
---|
| 142 | INTERFACE wrd_local |
---|
| 143 | MODULE PROCEDURE wrd_local |
---|
| 144 | END INTERFACE wrd_local |
---|
| 145 | |
---|
| 146 | |
---|
| 147 | PUBLIC wrd_local, wrd_global |
---|
| 148 | |
---|
| 149 | |
---|
| 150 | CONTAINS |
---|
| 151 | |
---|
| 152 | |
---|
| 153 | ! Description: |
---|
| 154 | ! ------------ |
---|
| 155 | !> Global data of control variables and arrays is written out for |
---|
| 156 | !> restarts (binary format). |
---|
| 157 | !> This information is only written to the file opened by PE0. |
---|
| 158 | !------------------------------------------------------------------------------! |
---|
| 159 | SUBROUTINE wrd_global |
---|
| 160 | |
---|
| 161 | |
---|
| 162 | CHARACTER (LEN=10) :: binary_version_global !< |
---|
| 163 | |
---|
| 164 | |
---|
| 165 | binary_version_global = '4.7' |
---|
| 166 | |
---|
| 167 | CALL wrd_write_string( 'binary_version_global' ) |
---|
| 168 | WRITE ( 14 ) binary_version_global |
---|
| 169 | |
---|
| 170 | CALL wrd_write_string( 'numprocs' ) |
---|
| 171 | WRITE ( 14 ) numprocs |
---|
| 172 | |
---|
| 173 | CALL wrd_write_string( 'hor_index_bounds' ) |
---|
| 174 | WRITE ( 14 ) hor_index_bounds |
---|
| 175 | |
---|
| 176 | CALL wrd_write_string( 'nz' ) |
---|
| 177 | WRITE ( 14 ) nz |
---|
| 178 | |
---|
| 179 | CALL wrd_write_string( 'max_pr_user' ) |
---|
| 180 | WRITE ( 14 ) max_pr_user |
---|
| 181 | |
---|
| 182 | CALL wrd_write_string( 'statistic_regions' ) |
---|
| 183 | WRITE ( 14 ) statistic_regions |
---|
| 184 | |
---|
| 185 | ! |
---|
| 186 | !-- Caution: After changes in the following parameter-list, the |
---|
| 187 | !-- ------- version number stored in the variable binary_version_global has to |
---|
| 188 | !-- be increased. The same changes must also be done in the parameter- |
---|
| 189 | !-- list in rrd_global. |
---|
| 190 | |
---|
| 191 | CALL wrd_write_string( 'advected_distance_x' ) |
---|
| 192 | WRITE ( 14 ) advected_distance_x |
---|
| 193 | |
---|
| 194 | CALL wrd_write_string( 'advected_distance_y' ) |
---|
| 195 | WRITE ( 14 ) advected_distance_y |
---|
| 196 | |
---|
| 197 | CALL wrd_write_string( 'alpha_surface' ) |
---|
| 198 | WRITE ( 14 ) alpha_surface |
---|
| 199 | |
---|
| 200 | CALL wrd_write_string( 'average_count_pr' ) |
---|
| 201 | WRITE ( 14 ) average_count_pr |
---|
| 202 | |
---|
| 203 | CALL wrd_write_string( 'average_count_sp' ) |
---|
| 204 | WRITE ( 14 ) average_count_sp |
---|
| 205 | |
---|
| 206 | CALL wrd_write_string( 'average_count_3d' ) |
---|
| 207 | WRITE ( 14 ) average_count_3d |
---|
| 208 | |
---|
| 209 | CALL wrd_write_string( 'bc_e_b' ) |
---|
| 210 | WRITE ( 14 ) bc_e_b |
---|
| 211 | |
---|
| 212 | CALL wrd_write_string( 'bc_lr' ) |
---|
| 213 | WRITE ( 14 ) bc_lr |
---|
| 214 | |
---|
| 215 | CALL wrd_write_string( 'bc_ns' ) |
---|
| 216 | WRITE ( 14 ) bc_ns |
---|
| 217 | |
---|
| 218 | CALL wrd_write_string( 'bc_p_b' ) |
---|
| 219 | WRITE ( 14 ) bc_p_b |
---|
| 220 | |
---|
| 221 | CALL wrd_write_string( 'bc_p_t' ) |
---|
| 222 | WRITE ( 14 ) bc_p_t |
---|
| 223 | |
---|
| 224 | CALL wrd_write_string( 'bc_pt_b' ) |
---|
| 225 | WRITE ( 14 ) bc_pt_b |
---|
| 226 | |
---|
| 227 | CALL wrd_write_string( 'bc_pt_t' ) |
---|
| 228 | WRITE ( 14 ) bc_pt_t |
---|
| 229 | |
---|
| 230 | CALL wrd_write_string( 'bc_pt_t_val' ) |
---|
| 231 | WRITE ( 14 ) bc_pt_t_val |
---|
| 232 | |
---|
| 233 | CALL wrd_write_string( 'bc_q_b' ) |
---|
| 234 | WRITE ( 14 ) bc_q_b |
---|
| 235 | |
---|
| 236 | CALL wrd_write_string( 'bc_q_t' ) |
---|
| 237 | WRITE ( 14 ) bc_q_t |
---|
| 238 | |
---|
| 239 | CALL wrd_write_string( 'bc_q_t_val' ) |
---|
| 240 | WRITE ( 14 ) bc_q_t_val |
---|
| 241 | |
---|
| 242 | CALL wrd_write_string( 'bc_s_b' ) |
---|
| 243 | WRITE ( 14 ) bc_s_b |
---|
| 244 | |
---|
| 245 | CALL wrd_write_string( 'bc_s_t' ) |
---|
| 246 | WRITE ( 14 ) bc_s_t |
---|
| 247 | |
---|
| 248 | CALL wrd_write_string( 'bc_uv_b' ) |
---|
| 249 | WRITE ( 14 ) bc_uv_b |
---|
| 250 | |
---|
| 251 | CALL wrd_write_string( 'bc_uv_t' ) |
---|
| 252 | WRITE ( 14 ) bc_uv_t |
---|
| 253 | |
---|
| 254 | CALL wrd_write_string( 'building_height' ) |
---|
| 255 | WRITE ( 14 ) building_height |
---|
| 256 | |
---|
| 257 | CALL wrd_write_string( 'building_length_x' ) |
---|
| 258 | WRITE ( 14 ) building_length_x |
---|
| 259 | |
---|
| 260 | CALL wrd_write_string( 'building_length_y' ) |
---|
| 261 | WRITE ( 14 ) building_length_y |
---|
| 262 | |
---|
| 263 | CALL wrd_write_string( 'building_wall_left' ) |
---|
| 264 | WRITE ( 14 ) building_wall_left |
---|
| 265 | |
---|
| 266 | CALL wrd_write_string( 'building_wall_south' ) |
---|
| 267 | WRITE ( 14 ) building_wall_south |
---|
| 268 | |
---|
| 269 | CALL wrd_write_string( 'call_psolver_at_all_substeps' ) |
---|
| 270 | WRITE ( 14 ) call_psolver_at_all_substeps |
---|
| 271 | |
---|
| 272 | CALL wrd_write_string( 'canyon_height' ) |
---|
| 273 | WRITE ( 14 ) canyon_height |
---|
| 274 | |
---|
| 275 | CALL wrd_write_string( 'canyon_wall_left' ) |
---|
| 276 | WRITE ( 14 ) canyon_wall_left |
---|
| 277 | |
---|
| 278 | CALL wrd_write_string( 'canyon_wall_south' ) |
---|
| 279 | WRITE ( 14 ) canyon_wall_south |
---|
| 280 | |
---|
| 281 | CALL wrd_write_string( 'canyon_width_x' ) |
---|
| 282 | WRITE ( 14 ) canyon_width_x |
---|
| 283 | |
---|
| 284 | CALL wrd_write_string( 'canyon_width_y' ) |
---|
| 285 | WRITE ( 14 ) canyon_width_y |
---|
| 286 | |
---|
| 287 | CALL wrd_write_string( 'cfl_factor' ) |
---|
| 288 | WRITE ( 14 ) cfl_factor |
---|
| 289 | |
---|
| 290 | CALL wrd_write_string( 'cloud_droplets' ) |
---|
| 291 | WRITE ( 14 ) cloud_droplets |
---|
| 292 | |
---|
| 293 | CALL wrd_write_string( 'collective_wait' ) |
---|
| 294 | WRITE ( 14 ) collective_wait |
---|
| 295 | |
---|
| 296 | CALL wrd_write_string( 'conserve_volume_flow' ) |
---|
| 297 | WRITE ( 14 ) conserve_volume_flow |
---|
| 298 | |
---|
| 299 | CALL wrd_write_string( 'conserve_volume_flow_mode' ) |
---|
| 300 | WRITE ( 14 ) conserve_volume_flow_mode |
---|
| 301 | |
---|
| 302 | CALL wrd_write_string( 'constant_flux_layer' ) |
---|
| 303 | WRITE ( 14 ) constant_flux_layer |
---|
| 304 | |
---|
| 305 | CALL wrd_write_string( 'coupling_start_time' ) |
---|
| 306 | WRITE ( 14 ) coupling_start_time |
---|
| 307 | |
---|
| 308 | CALL wrd_write_string( 'current_timestep_number' ) |
---|
| 309 | WRITE ( 14 ) current_timestep_number |
---|
| 310 | |
---|
| 311 | CALL wrd_write_string( 'curvature_solution_effects' ) |
---|
| 312 | WRITE ( 14 ) curvature_solution_effects |
---|
| 313 | |
---|
| 314 | CALL wrd_write_string( 'cycle_mg' ) |
---|
| 315 | WRITE ( 14 ) cycle_mg |
---|
| 316 | |
---|
| 317 | CALL wrd_write_string( 'damp_level_1d' ) |
---|
| 318 | WRITE ( 14 ) damp_level_1d |
---|
| 319 | |
---|
[2921] | 320 | CALL wrd_write_string( 'day_of_year_init' ) |
---|
| 321 | WRITE ( 14 ) day_of_year_init |
---|
| 322 | |
---|
[2894] | 323 | CALL wrd_write_string( 'dissipation_1d' ) |
---|
| 324 | WRITE ( 14 ) dissipation_1d |
---|
| 325 | |
---|
| 326 | CALL wrd_write_string( 'do2d_xy_time_count' ) |
---|
| 327 | WRITE ( 14 ) do2d_xy_time_count |
---|
| 328 | |
---|
| 329 | CALL wrd_write_string( 'do2d_xz_time_count' ) |
---|
| 330 | WRITE ( 14 ) do2d_xz_time_count |
---|
| 331 | |
---|
| 332 | CALL wrd_write_string( 'do2d_yz_time_count' ) |
---|
| 333 | WRITE ( 14 ) do2d_yz_time_count |
---|
| 334 | |
---|
| 335 | CALL wrd_write_string( 'do3d_time_count' ) |
---|
| 336 | WRITE ( 14 ) do3d_time_count |
---|
| 337 | |
---|
| 338 | CALL wrd_write_string( 'dp_external' ) |
---|
| 339 | WRITE ( 14 ) dp_external |
---|
| 340 | |
---|
| 341 | CALL wrd_write_string( 'dp_level_b' ) |
---|
| 342 | WRITE ( 14 ) dp_level_b |
---|
| 343 | |
---|
| 344 | CALL wrd_write_string( 'dp_smooth' ) |
---|
| 345 | WRITE ( 14 ) dp_smooth |
---|
| 346 | |
---|
| 347 | CALL wrd_write_string( 'dpdxy' ) |
---|
| 348 | WRITE ( 14 ) dpdxy |
---|
| 349 | |
---|
| 350 | CALL wrd_write_string( 'dt_3d' ) |
---|
| 351 | WRITE ( 14 ) dt_3d |
---|
| 352 | |
---|
| 353 | CALL wrd_write_string( 'dt_pr_1d' ) |
---|
| 354 | WRITE ( 14 ) dt_pr_1d |
---|
| 355 | |
---|
| 356 | CALL wrd_write_string( 'dt_run_control_1d' ) |
---|
| 357 | WRITE ( 14 ) dt_run_control_1d |
---|
| 358 | |
---|
| 359 | CALL wrd_write_string( 'dvrp_filecount' ) |
---|
| 360 | WRITE ( 14 ) dvrp_filecount |
---|
| 361 | |
---|
| 362 | CALL wrd_write_string( 'dx' ) |
---|
| 363 | WRITE ( 14 ) dx |
---|
| 364 | |
---|
| 365 | CALL wrd_write_string( 'dy' ) |
---|
| 366 | WRITE ( 14 ) dy |
---|
| 367 | |
---|
| 368 | CALL wrd_write_string( 'dz' ) |
---|
| 369 | WRITE ( 14 ) dz |
---|
[3065] | 370 | |
---|
[2894] | 371 | CALL wrd_write_string( 'dz_max' ) |
---|
| 372 | WRITE ( 14 ) dz_max |
---|
| 373 | |
---|
| 374 | CALL wrd_write_string( 'dz_stretch_factor' ) |
---|
| 375 | WRITE ( 14 ) dz_stretch_factor |
---|
[3065] | 376 | |
---|
| 377 | CALL wrd_write_string( 'dz_stretch_factor_array' ) |
---|
| 378 | WRITE ( 14 ) dz_stretch_factor_array |
---|
| 379 | |
---|
[2894] | 380 | CALL wrd_write_string( 'dz_stretch_level' ) |
---|
| 381 | WRITE ( 14 ) dz_stretch_level |
---|
| 382 | |
---|
[3065] | 383 | CALL wrd_write_string( 'dz_stretch_level_end' ) |
---|
| 384 | WRITE ( 14 ) dz_stretch_level_end |
---|
| 385 | |
---|
| 386 | CALL wrd_write_string( 'dz_stretch_level_start' ) |
---|
| 387 | WRITE ( 14 ) dz_stretch_level_start |
---|
| 388 | |
---|
[2894] | 389 | CALL wrd_write_string( 'e_min' ) |
---|
| 390 | WRITE ( 14 ) e_min |
---|
| 391 | |
---|
| 392 | CALL wrd_write_string( 'end_time_1d' ) |
---|
| 393 | WRITE ( 14 ) end_time_1d |
---|
| 394 | |
---|
| 395 | CALL wrd_write_string( 'fft_method' ) |
---|
| 396 | WRITE ( 14 ) fft_method |
---|
| 397 | |
---|
| 398 | CALL wrd_write_string( 'first_call_lpm' ) |
---|
| 399 | WRITE ( 14 ) first_call_lpm |
---|
| 400 | |
---|
| 401 | CALL wrd_write_string( 'galilei_transformation' ) |
---|
| 402 | WRITE ( 14 ) galilei_transformation |
---|
| 403 | |
---|
| 404 | CALL wrd_write_string( 'hom' ) |
---|
| 405 | WRITE ( 14 ) hom |
---|
| 406 | |
---|
| 407 | CALL wrd_write_string( 'hom_sum' ) |
---|
| 408 | WRITE ( 14 ) hom_sum |
---|
| 409 | |
---|
| 410 | CALL wrd_write_string( 'humidity' ) |
---|
| 411 | WRITE ( 14 ) humidity |
---|
| 412 | |
---|
| 413 | IF ( ALLOCATED( inflow_damping_factor ) ) THEN |
---|
| 414 | CALL wrd_write_string( 'inflow_damping_factor' ) |
---|
| 415 | WRITE ( 14 ) inflow_damping_factor |
---|
| 416 | ENDIF |
---|
| 417 | |
---|
| 418 | CALL wrd_write_string( 'inflow_damping_height' ) |
---|
| 419 | WRITE ( 14 ) inflow_damping_height |
---|
| 420 | |
---|
| 421 | CALL wrd_write_string( 'inflow_damping_width' ) |
---|
| 422 | WRITE ( 14 ) inflow_damping_width |
---|
| 423 | |
---|
| 424 | CALL wrd_write_string( 'inflow_disturbance_begin' ) |
---|
| 425 | WRITE ( 14 ) inflow_disturbance_begin |
---|
| 426 | |
---|
| 427 | CALL wrd_write_string( 'inflow_disturbance_end' ) |
---|
| 428 | WRITE ( 14 ) inflow_disturbance_end |
---|
| 429 | |
---|
| 430 | CALL wrd_write_string( 'km_constant' ) |
---|
| 431 | WRITE ( 14 ) km_constant |
---|
| 432 | |
---|
| 433 | CALL wrd_write_string( 'large_scale_forcing' ) |
---|
| 434 | WRITE ( 14 ) large_scale_forcing |
---|
| 435 | |
---|
| 436 | CALL wrd_write_string( 'large_scale_subsidence' ) |
---|
| 437 | WRITE ( 14 ) large_scale_subsidence |
---|
| 438 | |
---|
| 439 | CALL wrd_write_string( 'latitude' ) |
---|
| 440 | WRITE ( 14 ) latitude |
---|
| 441 | |
---|
| 442 | CALL wrd_write_string( 'longitude' ) |
---|
| 443 | WRITE ( 14 ) longitude |
---|
| 444 | |
---|
| 445 | CALL wrd_write_string( 'loop_optimization' ) |
---|
| 446 | WRITE ( 14 ) loop_optimization |
---|
| 447 | |
---|
| 448 | CALL wrd_write_string( 'masking_method' ) |
---|
| 449 | WRITE ( 14 ) masking_method |
---|
| 450 | |
---|
| 451 | IF ( ALLOCATED( mean_inflow_profiles ) ) THEN |
---|
| 452 | CALL wrd_write_string( 'mean_inflow_profiles' ) |
---|
| 453 | WRITE ( 14 ) mean_inflow_profiles |
---|
| 454 | ENDIF |
---|
| 455 | |
---|
| 456 | CALL wrd_write_string( 'mg_cycles' ) |
---|
| 457 | WRITE ( 14 ) mg_cycles |
---|
| 458 | |
---|
| 459 | CALL wrd_write_string( 'mg_switch_to_pe0_level' ) |
---|
| 460 | WRITE ( 14 ) mg_switch_to_pe0_level |
---|
| 461 | |
---|
| 462 | CALL wrd_write_string( 'mixing_length_1d' ) |
---|
| 463 | WRITE ( 14 ) mixing_length_1d |
---|
| 464 | |
---|
| 465 | CALL wrd_write_string( 'momentum_advec' ) |
---|
| 466 | WRITE ( 14 ) momentum_advec |
---|
| 467 | |
---|
| 468 | CALL wrd_write_string( 'most_method' ) |
---|
| 469 | WRITE ( 14 ) most_method |
---|
| 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 | |
---|
| 978 | IF ( humidity ) THEN |
---|
| 979 | |
---|
| 980 | CALL wrd_write_string( 'q' ) |
---|
| 981 | WRITE ( 14 ) q |
---|
| 982 | |
---|
| 983 | IF ( ALLOCATED( q_av ) ) THEN |
---|
| 984 | CALL wrd_write_string( 'q_av' ) |
---|
| 985 | WRITE ( 14 ) q_av |
---|
| 986 | ENDIF |
---|
| 987 | |
---|
[3274] | 988 | IF ( cloud_droplets ) THEN |
---|
[2894] | 989 | |
---|
[3274] | 990 | CALL wrd_write_string( 'ql' ) |
---|
[2894] | 991 | WRITE ( 14 ) ql |
---|
| 992 | |
---|
| 993 | IF ( ALLOCATED( ql_av ) ) THEN |
---|
[3274] | 994 | CALL wrd_write_string( 'ql_av' ) |
---|
[2894] | 995 | WRITE ( 14 ) ql_av |
---|
| 996 | ENDIF |
---|
| 997 | |
---|
| 998 | ENDIF |
---|
| 999 | |
---|
| 1000 | IF ( ALLOCATED( qsws_av ) ) THEN |
---|
| 1001 | CALL wrd_write_string( 'qsws_av' ) |
---|
| 1002 | WRITE ( 14 ) qsws_av |
---|
| 1003 | ENDIF |
---|
| 1004 | |
---|
| 1005 | ENDIF |
---|
| 1006 | |
---|
| 1007 | IF ( passive_scalar ) THEN |
---|
| 1008 | |
---|
| 1009 | CALL wrd_write_string( 's' ) |
---|
| 1010 | WRITE ( 14 ) s |
---|
| 1011 | |
---|
| 1012 | IF ( ALLOCATED( s_av ) ) THEN |
---|
| 1013 | CALL wrd_write_string( 's_av' ) |
---|
| 1014 | WRITE ( 14 ) s_av |
---|
| 1015 | ENDIF |
---|
| 1016 | |
---|
| 1017 | IF ( ALLOCATED( ssws_av ) ) THEN |
---|
| 1018 | CALL wrd_write_string( 'ssws_av' ) |
---|
| 1019 | WRITE ( 14 ) ssws_av |
---|
| 1020 | ENDIF |
---|
| 1021 | |
---|
| 1022 | ENDIF |
---|
| 1023 | |
---|
| 1024 | IF ( ALLOCATED( ql_c_av ) ) THEN |
---|
| 1025 | CALL wrd_write_string( 'ql_c_av' ) |
---|
| 1026 | WRITE ( 14 ) ql_c_av |
---|
| 1027 | ENDIF |
---|
| 1028 | |
---|
| 1029 | IF ( ALLOCATED( ql_v_av ) ) THEN |
---|
| 1030 | CALL wrd_write_string( 'ql_v_av' ) |
---|
| 1031 | WRITE ( 14 ) ql_v_av |
---|
| 1032 | ENDIF |
---|
| 1033 | |
---|
| 1034 | IF ( ALLOCATED( ql_vp_av ) ) THEN |
---|
| 1035 | CALL wrd_write_string( 'ql_vp_av' ) |
---|
| 1036 | WRITE ( 14 ) ql_vp_av |
---|
| 1037 | ENDIF |
---|
| 1038 | |
---|
| 1039 | IF ( ALLOCATED( qv_av ) ) THEN |
---|
| 1040 | CALL wrd_write_string( 'qv_av' ) |
---|
| 1041 | WRITE ( 14 ) qv_av |
---|
| 1042 | ENDIF |
---|
| 1043 | |
---|
| 1044 | CALL wrd_write_string( 'random_iv' ) |
---|
| 1045 | WRITE ( 14 ) random_iv |
---|
| 1046 | WRITE ( 14 ) random_iy |
---|
| 1047 | |
---|
| 1048 | IF ( ALLOCATED( seq_random_array ) ) THEN |
---|
| 1049 | CALL wrd_write_string( 'seq_random_array' ) |
---|
| 1050 | WRITE ( 14 ) id_random_array |
---|
| 1051 | WRITE ( 14 ) seq_random_array |
---|
| 1052 | ENDIF |
---|
| 1053 | |
---|
| 1054 | IF ( ALLOCATED( s_av ) ) THEN |
---|
| 1055 | CALL wrd_write_string( 's_av' ) |
---|
| 1056 | WRITE ( 14 ) s_av |
---|
| 1057 | ENDIF |
---|
| 1058 | |
---|
| 1059 | IF ( ALLOCATED( shf_av ) ) THEN |
---|
| 1060 | CALL wrd_write_string( 'shf_av' ) |
---|
| 1061 | WRITE ( 14 ) shf_av |
---|
| 1062 | ENDIF |
---|
| 1063 | |
---|
| 1064 | IF ( ALLOCATED( ts_av ) ) THEN |
---|
| 1065 | CALL wrd_write_string( 'ts_av' ) |
---|
| 1066 | WRITE ( 14 ) ts_av |
---|
| 1067 | ENDIF |
---|
| 1068 | |
---|
| 1069 | CALL wrd_write_string( 'u' ) |
---|
| 1070 | WRITE ( 14 ) u |
---|
| 1071 | |
---|
| 1072 | IF ( ALLOCATED( u_av ) ) THEN |
---|
| 1073 | CALL wrd_write_string( 'u_av' ) |
---|
| 1074 | WRITE ( 14 ) u_av |
---|
| 1075 | ENDIF |
---|
| 1076 | |
---|
| 1077 | IF ( ALLOCATED( u_m_l ) ) THEN |
---|
| 1078 | CALL wrd_write_string( 'u_m_l' ) |
---|
| 1079 | WRITE ( 14 ) u_m_l |
---|
| 1080 | ENDIF |
---|
| 1081 | |
---|
| 1082 | IF ( ALLOCATED( u_m_n ) ) THEN |
---|
| 1083 | CALL wrd_write_string( 'u_m_n' ) |
---|
| 1084 | WRITE ( 14 ) u_m_n |
---|
| 1085 | ENDIF |
---|
| 1086 | |
---|
| 1087 | IF ( ALLOCATED( u_m_r ) ) THEN |
---|
| 1088 | CALL wrd_write_string( 'u_m_r' ) |
---|
| 1089 | WRITE ( 14 ) u_m_r |
---|
| 1090 | ENDIF |
---|
| 1091 | |
---|
| 1092 | IF ( ALLOCATED( u_m_s ) ) THEN |
---|
| 1093 | CALL wrd_write_string( 'u_m_s' ) |
---|
| 1094 | WRITE ( 14 ) u_m_s |
---|
| 1095 | ENDIF |
---|
| 1096 | |
---|
| 1097 | IF ( ALLOCATED( us_av ) ) THEN |
---|
| 1098 | CALL wrd_write_string( 'us_av' ) |
---|
| 1099 | WRITE ( 14 ) us_av |
---|
| 1100 | ENDIF |
---|
| 1101 | |
---|
| 1102 | CALL wrd_write_string( 'v' ) |
---|
| 1103 | WRITE ( 14 ) v |
---|
| 1104 | |
---|
| 1105 | IF ( ALLOCATED( v_av ) ) THEN |
---|
| 1106 | CALL wrd_write_string( 'v_av' ) |
---|
| 1107 | WRITE ( 14 ) v_av |
---|
| 1108 | ENDIF |
---|
| 1109 | |
---|
| 1110 | IF ( ALLOCATED( v_m_l ) ) THEN |
---|
| 1111 | CALL wrd_write_string( 'v_m_l' ) |
---|
| 1112 | WRITE ( 14 ) v_m_l |
---|
| 1113 | ENDIF |
---|
| 1114 | |
---|
| 1115 | IF ( ALLOCATED( v_m_n ) ) THEN |
---|
| 1116 | CALL wrd_write_string( 'v_m_n' ) |
---|
| 1117 | WRITE ( 14 ) v_m_n |
---|
| 1118 | ENDIF |
---|
| 1119 | |
---|
| 1120 | IF ( ALLOCATED( v_m_r ) ) THEN |
---|
| 1121 | CALL wrd_write_string( 'v_m_r' ) |
---|
| 1122 | WRITE ( 14 ) v_m_r |
---|
| 1123 | ENDIF |
---|
| 1124 | |
---|
| 1125 | IF ( ALLOCATED( v_m_s ) ) THEN |
---|
| 1126 | CALL wrd_write_string( 'v_m_s' ) |
---|
| 1127 | WRITE ( 14 ) v_m_s |
---|
| 1128 | ENDIF |
---|
| 1129 | |
---|
| 1130 | IF ( humidity ) THEN |
---|
| 1131 | |
---|
| 1132 | CALL wrd_write_string( 'vpt' ) |
---|
| 1133 | WRITE ( 14 ) vpt |
---|
| 1134 | |
---|
| 1135 | IF ( ALLOCATED( vpt_av ) ) THEN |
---|
| 1136 | CALL wrd_write_string( 'vpt_av' ) |
---|
| 1137 | WRITE ( 14 ) vpt_av |
---|
| 1138 | ENDIF |
---|
| 1139 | |
---|
| 1140 | ENDIF |
---|
| 1141 | |
---|
| 1142 | CALL wrd_write_string( 'w' ) |
---|
| 1143 | WRITE ( 14 ) w |
---|
| 1144 | |
---|
| 1145 | IF ( ALLOCATED( w_av ) ) THEN |
---|
| 1146 | CALL wrd_write_string( 'w_av' ) |
---|
| 1147 | WRITE ( 14 ) w_av |
---|
| 1148 | ENDIF |
---|
| 1149 | |
---|
| 1150 | IF ( ALLOCATED( w_m_l ) ) THEN |
---|
| 1151 | CALL wrd_write_string( 'w_m_l' ) |
---|
| 1152 | WRITE ( 14 ) w_m_l |
---|
| 1153 | ENDIF |
---|
| 1154 | |
---|
| 1155 | IF ( ALLOCATED( w_m_n ) ) THEN |
---|
| 1156 | CALL wrd_write_string( 'w_m_n' ) |
---|
| 1157 | WRITE ( 14 ) w_m_n |
---|
| 1158 | ENDIF |
---|
| 1159 | |
---|
| 1160 | IF ( ALLOCATED( w_m_r ) ) THEN |
---|
| 1161 | CALL wrd_write_string( 'w_m_r' ) |
---|
| 1162 | WRITE ( 14 ) w_m_r |
---|
| 1163 | ENDIF |
---|
| 1164 | |
---|
| 1165 | IF ( ALLOCATED( w_m_s ) ) THEN |
---|
| 1166 | CALL wrd_write_string( 'w_m_s' ) |
---|
| 1167 | WRITE ( 14 ) w_m_s |
---|
| 1168 | ENDIF |
---|
| 1169 | |
---|
| 1170 | IF ( ALLOCATED( z0_av ) ) THEN |
---|
| 1171 | CALL wrd_write_string( 'z0_av' ) |
---|
| 1172 | WRITE ( 14 ) z0_av |
---|
| 1173 | ENDIF |
---|
| 1174 | |
---|
| 1175 | IF ( ALLOCATED( z0h_av ) ) THEN |
---|
| 1176 | CALL wrd_write_string( 'z0h_av' ) |
---|
| 1177 | WRITE ( 14 ) z0h_av |
---|
| 1178 | ENDIF |
---|
| 1179 | |
---|
| 1180 | IF ( ALLOCATED( z0q_av ) ) THEN |
---|
| 1181 | CALL wrd_write_string( 'z0q_av' ) |
---|
| 1182 | WRITE ( 14 ) z0q_av |
---|
| 1183 | ENDIF |
---|
| 1184 | |
---|
| 1185 | IF ( land_surface .OR. urban_surface ) THEN |
---|
| 1186 | |
---|
| 1187 | IF ( ALLOCATED( ghf_av ) ) THEN |
---|
| 1188 | CALL wrd_write_string( 'ghf_av' ) |
---|
| 1189 | WRITE ( 14 ) ghf_av |
---|
| 1190 | ENDIF |
---|
| 1191 | |
---|
| 1192 | IF ( ALLOCATED( r_a_av ) ) THEN |
---|
| 1193 | CALL wrd_write_string( 'r_a_av' ) |
---|
| 1194 | WRITE ( 14 ) r_a_av |
---|
| 1195 | ENDIF |
---|
| 1196 | |
---|
| 1197 | ENDIF |
---|
| 1198 | |
---|
| 1199 | IF ( ALLOCATED( tsurf_av ) ) THEN |
---|
| 1200 | CALL wrd_write_string( 'tsurf_av' ) |
---|
| 1201 | WRITE ( 14 ) tsurf_av |
---|
| 1202 | ENDIF |
---|
| 1203 | |
---|
[3637] | 1204 | |
---|
[3582] | 1205 | CALL surface_wrd_local |
---|
[2894] | 1206 | |
---|
| 1207 | ! |
---|
[3637] | 1208 | !-- Write restart data of other modules |
---|
| 1209 | CALL module_interface_wrd_local |
---|
[2894] | 1210 | |
---|
| 1211 | ! |
---|
[3294] | 1212 | !-- Write end label |
---|
[2894] | 1213 | CALL wrd_write_string( '*** end ***' ) |
---|
| 1214 | |
---|
| 1215 | END SUBROUTINE wrd_local |
---|
| 1216 | |
---|
| 1217 | |
---|
| 1218 | END MODULE write_restart_data_mod |
---|