[3637] | 1 | !> @file module_interface.f90 |
---|
| 2 | !------------------------------------------------------------------------------! |
---|
| 3 | ! This file is part of PALM. |
---|
| 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 | ! |
---|
[3648] | 17 | ! Copyright 1997-2019 Leibniz Universitaet Hannover |
---|
[3637] | 18 | !------------------------------------------------------------------------------! |
---|
| 19 | ! |
---|
| 20 | ! Current revisions: |
---|
| 21 | ! ----------------- |
---|
| 22 | ! |
---|
[3745] | 23 | ! |
---|
[3637] | 24 | ! Former revisions: |
---|
| 25 | ! ----------------- |
---|
[3770] | 26 | ! $Id: module_interface.f90 3987 2019-05-22 09:52:13Z suehring $ |
---|
[3987] | 27 | ! Introduce switchable DEBUG file output via debug_message routine |
---|
| 28 | ! |
---|
| 29 | ! 3956 2019-05-07 12:32:52Z monakurppa |
---|
[3956] | 30 | ! - Added calls for salsa_non_advective_processes and |
---|
| 31 | ! salsa_exchange_horiz_bounds |
---|
| 32 | ! - Moved the call for salsa_data_output_2d/3d before that of |
---|
| 33 | ! radiation_data_output_2d/3d. radiation_data_output_2d/3d tries to read a |
---|
| 34 | ! salsa output variable and encounters a segmentation fault for "Ntot" due |
---|
| 35 | ! to the shortoutput name |
---|
| 36 | ! |
---|
| 37 | ! 3931 2019-04-24 16:34:28Z schwenkel |
---|
[3931] | 38 | ! Changed non_transport_physics to non_advective_processes |
---|
| 39 | ! |
---|
| 40 | ! 3930 2019-04-24 14:57:18Z forkel |
---|
[3929] | 41 | ! Correct/complete module_interface introduction for chemistry model |
---|
| 42 | ! |
---|
| 43 | ! 3887 2019 -04-12 08:47:41Z schwenkel |
---|
[3885] | 44 | ! Changes related to global restructuring of location messages and introduction |
---|
| 45 | ! of additional debug messages |
---|
[3929] | 46 | ! |
---|
| 47 | ! 3880 2019 -04-08 21:43:02Z knoop |
---|
[3864] | 48 | ! Add a call for salsa_prognostic_equations |
---|
| 49 | ! |
---|
| 50 | ! 3840 2019-03-29 10:35:52Z knoop |
---|
[3806] | 51 | ! bugfix: intent of dummy arguments changed to inout |
---|
| 52 | ! |
---|
| 53 | ! 3770 2019-02-28 11:22:32Z moh.hefny |
---|
[3769] | 54 | ! removed unused variables in module_interface_check_data_output_ts |
---|
[3770] | 55 | ! |
---|
[3769] | 56 | ! 3767 08:18:02Z raasch |
---|
[3767] | 57 | ! unused variable file_index removed from subroutine parameter list |
---|
| 58 | ! |
---|
| 59 | ! 3766 2019-02-26 16:23:41Z raasch |
---|
[3766] | 60 | ! first argument removed from module_interface_rrd_*, statement added to avoid |
---|
| 61 | ! compiler warning about unused variable, file reformatted with respect to coding |
---|
| 62 | ! standards |
---|
| 63 | ! |
---|
| 64 | ! 3762 2019-02-25 16:54:16Z suehring |
---|
[3762] | 65 | ! only pass required arguments to surface_data_output_rrd_local |
---|
| 66 | ! |
---|
| 67 | ! 3747 2019-02-16 15:15:23Z gronemeier |
---|
[3747] | 68 | ! Call user_init_arrays |
---|
| 69 | ! |
---|
| 70 | ! 3745 2019-02-15 18:57:56Z suehring |
---|
[3745] | 71 | ! Add indoor model |
---|
| 72 | ! |
---|
| 73 | ! 3744 2019-02-15 18:38:58Z suehring |
---|
[3739] | 74 | ! Removed bio_check_parameters as the method is empty. |
---|
| 75 | ! |
---|
| 76 | ! 3735 2019-02-12 09:52:40Z dom_dwd_user |
---|
[3735] | 77 | ! Accepting variable j from check_parameters and passing it to |
---|
| 78 | ! bio_check_data_output |
---|
| 79 | ! Add required restart data for surface output module |
---|
| 80 | ! |
---|
| 81 | ! 3731 2019-02-11 13:06:27Z suehring |
---|
[3717] | 82 | ! Add check_parameters routine for virtual measurements |
---|
| 83 | ! |
---|
| 84 | ! 3711 2019-01-31 13:44:26Z knoop |
---|
[3711] | 85 | ! Introduced module_interface_init_checks for post-init checks |
---|
| 86 | ! |
---|
| 87 | ! 3705 2019-01-29 19:56:39Z suehring |
---|
[3705] | 88 | ! Add last_actions for virtual measurements |
---|
| 89 | ! |
---|
| 90 | ! 3704 2019-01-29 19:51:41Z suehring |
---|
[3685] | 91 | ! Some interface calls moved to module_interface + cleanup |
---|
| 92 | ! |
---|
| 93 | ! 3684 2019-01-20 20:20:58Z knoop |
---|
[3655] | 94 | ! Bugfix: made unit intend INOUT |
---|
| 95 | ! |
---|
| 96 | ! 3650 2019-01-04 13:01:33Z kanani |
---|
[3650] | 97 | ! Add restart routines for biometeorology |
---|
| 98 | ! |
---|
| 99 | ! 3649 2019-01-02 16:52:21Z suehring |
---|
[3649] | 100 | ! Initialize strings, in order to avoid compiler warnings for non-initialized |
---|
| 101 | ! characters with intent(out) attribute |
---|
| 102 | ! |
---|
| 103 | ! 3648 2019-01-02 16:35:46Z suehring |
---|
[3648] | 104 | ! Rename subroutines for surface-data output |
---|
| 105 | ! |
---|
| 106 | ! 3641 2018-12-23 22:10:01Z knoop |
---|
[3637] | 107 | ! Initial implementation of the PALM module interface |
---|
| 108 | ! |
---|
| 109 | ! |
---|
| 110 | ! Description: |
---|
| 111 | ! ------------ |
---|
| 112 | !> This is the interface between the PALM model core and all its modules. |
---|
| 113 | !> |
---|
[3731] | 114 | !> @todo Re-format module to be consistent with coding standard |
---|
[3637] | 115 | !------------------------------------------------------------------------------! |
---|
[3766] | 116 | MODULE module_interface |
---|
[3637] | 117 | |
---|
[3766] | 118 | USE indices, & |
---|
| 119 | ONLY: nbgp, nxl, nxlg, nxr, nxrg, nys, nysg, nyn, nyng, nzb, nzt |
---|
[3637] | 120 | |
---|
[3766] | 121 | USE kinds |
---|
[3637] | 122 | |
---|
[3766] | 123 | ! |
---|
| 124 | !-- load module-specific control parameters. |
---|
| 125 | !-- ToDo: move all of them to respective module or a dedicated central module |
---|
| 126 | USE control_parameters, & |
---|
[3987] | 127 | ONLY: air_chemistry, & |
---|
| 128 | biometeorology, & |
---|
| 129 | debug_output, & |
---|
| 130 | debug_output_timestep, & |
---|
[3766] | 131 | indoor_model, & |
---|
| 132 | land_surface, & |
---|
| 133 | large_scale_forcing, & |
---|
| 134 | nesting_offline, & |
---|
| 135 | nudging, & |
---|
| 136 | ocean_mode, & |
---|
| 137 | plant_canopy, & |
---|
| 138 | salsa, & |
---|
| 139 | surface_output, & |
---|
| 140 | syn_turb_gen, & |
---|
| 141 | urban_surface, & |
---|
| 142 | virtual_flight, & |
---|
| 143 | virtual_measurement, & |
---|
| 144 | wind_turbine |
---|
[3637] | 145 | |
---|
[3766] | 146 | ! |
---|
| 147 | !-- load interface routines of all PALM modules |
---|
| 148 | USE biometeorology_mod, & |
---|
| 149 | ONLY: bio_parin, & |
---|
| 150 | bio_check_data_output, & |
---|
| 151 | bio_init, & |
---|
| 152 | bio_init_checks, & |
---|
| 153 | bio_header, & |
---|
| 154 | bio_3d_data_averaging, & |
---|
| 155 | bio_data_output_2d, & |
---|
| 156 | bio_data_output_3d, & |
---|
| 157 | bio_rrd_global, & |
---|
| 158 | bio_rrd_local, & |
---|
| 159 | bio_wrd_global, & |
---|
| 160 | bio_wrd_local |
---|
[3637] | 161 | |
---|
[3766] | 162 | USE bulk_cloud_model_mod, & |
---|
| 163 | ONLY: bulk_cloud_model, & |
---|
| 164 | bcm_parin, & |
---|
| 165 | bcm_check_parameters, & |
---|
| 166 | bcm_check_data_output_pr, & |
---|
| 167 | bcm_check_data_output, & |
---|
| 168 | bcm_init_arrays, & |
---|
| 169 | bcm_init, & |
---|
| 170 | bcm_header, & |
---|
[3870] | 171 | bcm_actions, & |
---|
[3931] | 172 | bcm_non_advective_processes, & |
---|
[3956] | 173 | bcm_exchange_horiz, & |
---|
[3870] | 174 | bcm_prognostic_equations, & |
---|
[3766] | 175 | bcm_swap_timelevel, & |
---|
| 176 | bcm_3d_data_averaging, & |
---|
| 177 | bcm_data_output_2d, & |
---|
| 178 | bcm_data_output_3d, & |
---|
| 179 | bcm_rrd_global, & |
---|
| 180 | bcm_wrd_global, & |
---|
| 181 | bcm_rrd_local, & |
---|
| 182 | bcm_wrd_local |
---|
[3637] | 183 | |
---|
| 184 | USE chemistry_model_mod, & |
---|
| 185 | ONLY: chem_parin, & |
---|
| 186 | chem_check_parameters, & |
---|
| 187 | chem_check_data_output_pr, & |
---|
| 188 | chem_check_data_output, & |
---|
[3929] | 189 | chem_exchange_horiz_bounds, & |
---|
[3685] | 190 | chem_init_arrays, & |
---|
| 191 | chem_init, & |
---|
[3637] | 192 | chem_header, & |
---|
[3877] | 193 | chem_actions, & |
---|
[3930] | 194 | chem_non_advective_processes, & |
---|
[3880] | 195 | chem_prognostic_equations, & |
---|
[3637] | 196 | chem_swap_timelevel, & |
---|
| 197 | chem_3d_data_averaging, & |
---|
| 198 | chem_data_output_2d, & |
---|
| 199 | chem_data_output_3d, & |
---|
| 200 | chem_statistics, & |
---|
| 201 | chem_rrd_local, & |
---|
[3887] | 202 | chem_wrd_local |
---|
[3637] | 203 | |
---|
[3766] | 204 | USE flight_mod, & |
---|
| 205 | ONLY: flight_parin, & |
---|
| 206 | flight_header, & |
---|
| 207 | flight_init, & |
---|
| 208 | flight_rrd_global, & |
---|
| 209 | flight_wrd_global |
---|
[3637] | 210 | |
---|
[3766] | 211 | USE gust_mod, & |
---|
| 212 | ONLY: gust_module_enabled, & |
---|
| 213 | gust_parin, & |
---|
| 214 | gust_check_parameters, & |
---|
| 215 | gust_check_data_output_pr, & |
---|
| 216 | gust_check_data_output, & |
---|
| 217 | gust_init_arrays, & |
---|
| 218 | gust_init, & |
---|
| 219 | gust_header, & |
---|
| 220 | gust_actions, & |
---|
[3837] | 221 | gust_prognostic_equations, & |
---|
[3766] | 222 | gust_swap_timelevel, & |
---|
| 223 | gust_3d_data_averaging, & |
---|
| 224 | gust_data_output_2d, & |
---|
| 225 | gust_data_output_3d, & |
---|
| 226 | gust_statistics, & |
---|
| 227 | gust_rrd_global, & |
---|
| 228 | gust_wrd_global, & |
---|
| 229 | gust_rrd_local, & |
---|
| 230 | gust_wrd_local |
---|
[3637] | 231 | |
---|
[3766] | 232 | USE indoor_model_mod, & |
---|
| 233 | ONLY: im_parin, & |
---|
| 234 | im_check_data_output, & |
---|
| 235 | im_check_parameters, & |
---|
| 236 | im_data_output_3d, & |
---|
| 237 | im_init |
---|
[3637] | 238 | |
---|
[3766] | 239 | USE land_surface_model_mod, & |
---|
| 240 | ONLY: lsm_parin, & |
---|
| 241 | lsm_check_parameters, & |
---|
| 242 | lsm_check_data_output_pr, & |
---|
| 243 | lsm_check_data_output, & |
---|
| 244 | lsm_init_arrays, & |
---|
| 245 | lsm_init, & |
---|
| 246 | lsm_header, & |
---|
| 247 | lsm_swap_timelevel, & |
---|
| 248 | lsm_3d_data_averaging, & |
---|
| 249 | lsm_data_output_2d, & |
---|
| 250 | lsm_rrd_local, & |
---|
| 251 | lsm_wrd_local |
---|
[3637] | 252 | |
---|
[3766] | 253 | USE lsf_nudging_mod, & |
---|
| 254 | ONLY: lsf_nudging_check_parameters, & |
---|
| 255 | lsf_nudging_check_data_output_pr, & |
---|
| 256 | lsf_init, & |
---|
| 257 | nudge_init, & |
---|
| 258 | lsf_nudging_header |
---|
[3637] | 259 | |
---|
[3766] | 260 | USE multi_agent_system_mod, & |
---|
| 261 | ONLY: mas_parin |
---|
[3637] | 262 | |
---|
[3766] | 263 | USE nesting_offl_mod, & |
---|
| 264 | ONLY: nesting_offl_parin, & |
---|
| 265 | nesting_offl_check_parameters, & |
---|
| 266 | nesting_offl_header |
---|
[3637] | 267 | |
---|
[3766] | 268 | USE ocean_mod, & |
---|
| 269 | ONLY: ocean_parin, & |
---|
| 270 | ocean_check_parameters, & |
---|
| 271 | ocean_check_data_output_pr, & |
---|
| 272 | ocean_check_data_output, & |
---|
| 273 | ocean_init_arrays, & |
---|
| 274 | ocean_init, & |
---|
| 275 | ocean_header, & |
---|
[3873] | 276 | ocean_actions, & |
---|
[3840] | 277 | ocean_prognostic_equations, & |
---|
[3766] | 278 | ocean_swap_timelevel, & |
---|
| 279 | ocean_3d_data_averaging, & |
---|
| 280 | ocean_data_output_2d, & |
---|
| 281 | ocean_data_output_3d, & |
---|
| 282 | ocean_rrd_global, & |
---|
| 283 | ocean_wrd_global, & |
---|
| 284 | ocean_rrd_local, & |
---|
| 285 | ocean_wrd_local |
---|
[3637] | 286 | |
---|
[3766] | 287 | USE plant_canopy_model_mod, & |
---|
| 288 | ONLY: pcm_parin, & |
---|
| 289 | pcm_check_parameters, & |
---|
| 290 | pcm_check_data_output, & |
---|
| 291 | pcm_init, & |
---|
| 292 | pcm_header, & |
---|
| 293 | pcm_data_output_3d |
---|
[3637] | 294 | |
---|
[3766] | 295 | USE radiation_model_mod, & |
---|
| 296 | ONLY: radiation, & |
---|
| 297 | radiation_parin, & |
---|
| 298 | radiation_check_parameters, & |
---|
| 299 | radiation_check_data_output_ts, & |
---|
| 300 | radiation_check_data_output_pr, & |
---|
| 301 | radiation_check_data_output, & |
---|
| 302 | radiation_init, & |
---|
| 303 | radiation_header, & |
---|
| 304 | radiation_3d_data_averaging, & |
---|
| 305 | radiation_data_output_2d, & |
---|
| 306 | radiation_data_output_3d, & |
---|
| 307 | radiation_rrd_local, & |
---|
| 308 | radiation_wrd_local |
---|
[3637] | 309 | |
---|
[3766] | 310 | USE salsa_mod, & |
---|
| 311 | ONLY: salsa_parin, & |
---|
| 312 | salsa_check_parameters, & |
---|
| 313 | salsa_check_data_output, & |
---|
| 314 | salsa_init_arrays, & |
---|
| 315 | salsa_init, & |
---|
| 316 | salsa_header, & |
---|
[3871] | 317 | salsa_actions, & |
---|
[3956] | 318 | salsa_non_advective_processes, & |
---|
| 319 | salsa_exchange_horiz_bounds, & |
---|
[3864] | 320 | salsa_prognostic_equations, & |
---|
[3766] | 321 | salsa_swap_timelevel, & |
---|
| 322 | salsa_3d_data_averaging, & |
---|
| 323 | salsa_data_output_2d, & |
---|
| 324 | salsa_data_output_3d, & |
---|
| 325 | salsa_rrd_local, & |
---|
| 326 | salsa_wrd_local |
---|
[3637] | 327 | |
---|
[3766] | 328 | USE spectra_mod, & |
---|
| 329 | ONLY: calculate_spectra, & |
---|
| 330 | spectra_parin, & |
---|
| 331 | spectra_check_parameters, & |
---|
| 332 | spectra_header |
---|
[3637] | 333 | |
---|
[3766] | 334 | USE surface_data_output_mod, & |
---|
| 335 | ONLY: surface_data_output_parin, & |
---|
| 336 | surface_data_output_check_parameters, & |
---|
| 337 | surface_data_output_init_arrays, & |
---|
| 338 | surface_data_output_rrd_local, & |
---|
| 339 | surface_data_output_rrd_global, & |
---|
| 340 | surface_data_output_wrd_local, & |
---|
| 341 | surface_data_output_wrd_global |
---|
[3637] | 342 | |
---|
[3766] | 343 | USE synthetic_turbulence_generator_mod, & |
---|
| 344 | ONLY: stg_parin, & |
---|
| 345 | stg_check_parameters, & |
---|
| 346 | stg_header, & |
---|
| 347 | stg_rrd_global, & |
---|
| 348 | stg_wrd_global |
---|
[3637] | 349 | |
---|
[3766] | 350 | USE urban_surface_mod, & |
---|
| 351 | ONLY: usm_parin, & |
---|
| 352 | usm_check_parameters, & |
---|
| 353 | usm_check_data_output, & |
---|
| 354 | usm_init_arrays, & |
---|
| 355 | usm_init, & |
---|
| 356 | usm_swap_timelevel, & |
---|
| 357 | usm_3d_data_averaging, & |
---|
| 358 | usm_rrd_local, & |
---|
| 359 | usm_wrd_local |
---|
[3637] | 360 | |
---|
[3766] | 361 | USE user, & |
---|
| 362 | ONLY: user_module_enabled, & |
---|
| 363 | user_parin, & |
---|
| 364 | user_check_parameters, & |
---|
| 365 | user_check_data_output_ts, & |
---|
| 366 | user_check_data_output_pr, & |
---|
| 367 | user_check_data_output, & |
---|
| 368 | user_init, & |
---|
| 369 | user_init_arrays, & |
---|
| 370 | user_header, & |
---|
| 371 | user_actions, & |
---|
| 372 | user_3d_data_averaging, & |
---|
| 373 | user_data_output_2d, & |
---|
| 374 | user_data_output_3d, & |
---|
| 375 | user_statistics, & |
---|
| 376 | user_rrd_global, & |
---|
| 377 | user_rrd_local, & |
---|
| 378 | user_wrd_global, & |
---|
| 379 | user_wrd_local, & |
---|
| 380 | user_last_actions |
---|
[3684] | 381 | |
---|
[3766] | 382 | USE virtual_measurement_mod, & |
---|
| 383 | ONLY: vm_check_parameters, & |
---|
| 384 | vm_init, & |
---|
| 385 | vm_last_actions, & |
---|
| 386 | vm_parin |
---|
[3637] | 387 | |
---|
[3766] | 388 | USE wind_turbine_model_mod, & |
---|
| 389 | ONLY: wtm_parin, & |
---|
| 390 | wtm_check_parameters, & |
---|
| 391 | wtm_init_arrays, & |
---|
| 392 | wtm_init, & |
---|
[3875] | 393 | wtm_actions, & |
---|
[3766] | 394 | wtm_rrd_global, & |
---|
| 395 | wtm_wrd_global |
---|
[3637] | 396 | |
---|
[3766] | 397 | IMPLICIT NONE |
---|
[3637] | 398 | |
---|
[3766] | 399 | PRIVATE |
---|
[3637] | 400 | |
---|
| 401 | ! |
---|
[3766] | 402 | !-- Public functions |
---|
| 403 | PUBLIC & |
---|
| 404 | module_interface_parin, & |
---|
| 405 | module_interface_check_parameters, & |
---|
| 406 | module_interface_check_data_output_ts, & |
---|
| 407 | module_interface_check_data_output_pr, & |
---|
| 408 | module_interface_check_data_output, & |
---|
| 409 | module_interface_init_masks, & |
---|
| 410 | module_interface_define_netcdf_grid, & |
---|
| 411 | module_interface_init_arrays, & |
---|
| 412 | module_interface_init, & |
---|
| 413 | module_interface_init_checks, & |
---|
| 414 | module_interface_header, & |
---|
| 415 | module_interface_actions, & |
---|
[3931] | 416 | module_interface_non_advective_processes, & |
---|
[3887] | 417 | module_interface_exchange_horiz, & |
---|
[3837] | 418 | module_interface_prognostic_equations, & |
---|
[3766] | 419 | module_interface_swap_timelevel, & |
---|
| 420 | module_interface_3d_data_averaging, & |
---|
| 421 | module_interface_data_output_2d, & |
---|
| 422 | module_interface_data_output_3d, & |
---|
| 423 | module_interface_statistics, & |
---|
| 424 | module_interface_rrd_global, & |
---|
| 425 | module_interface_wrd_global, & |
---|
| 426 | module_interface_rrd_local, & |
---|
| 427 | module_interface_wrd_local, & |
---|
| 428 | module_interface_last_actions |
---|
[3637] | 429 | |
---|
| 430 | |
---|
[3766] | 431 | INTERFACE module_interface_parin |
---|
| 432 | MODULE PROCEDURE module_interface_parin |
---|
| 433 | END INTERFACE module_interface_parin |
---|
[3637] | 434 | |
---|
[3766] | 435 | INTERFACE module_interface_check_parameters |
---|
| 436 | MODULE PROCEDURE module_interface_check_parameters |
---|
| 437 | END INTERFACE module_interface_check_parameters |
---|
[3637] | 438 | |
---|
[3766] | 439 | INTERFACE module_interface_check_data_output_ts |
---|
| 440 | MODULE PROCEDURE module_interface_check_data_output_ts |
---|
| 441 | END INTERFACE module_interface_check_data_output_ts |
---|
[3700] | 442 | |
---|
[3766] | 443 | INTERFACE module_interface_check_data_output_pr |
---|
| 444 | MODULE PROCEDURE module_interface_check_data_output_pr |
---|
| 445 | END INTERFACE module_interface_check_data_output_pr |
---|
[3637] | 446 | |
---|
[3766] | 447 | INTERFACE module_interface_check_data_output |
---|
| 448 | MODULE PROCEDURE module_interface_check_data_output |
---|
| 449 | END INTERFACE module_interface_check_data_output |
---|
[3637] | 450 | |
---|
[3766] | 451 | INTERFACE module_interface_init_masks |
---|
| 452 | MODULE PROCEDURE module_interface_init_masks |
---|
| 453 | END INTERFACE module_interface_init_masks |
---|
[3687] | 454 | |
---|
[3766] | 455 | INTERFACE module_interface_define_netcdf_grid |
---|
| 456 | MODULE PROCEDURE module_interface_define_netcdf_grid |
---|
| 457 | END INTERFACE module_interface_define_netcdf_grid |
---|
[3637] | 458 | |
---|
[3766] | 459 | INTERFACE module_interface_init_arrays |
---|
| 460 | MODULE PROCEDURE module_interface_init_arrays |
---|
| 461 | END INTERFACE module_interface_init_arrays |
---|
[3637] | 462 | |
---|
[3766] | 463 | INTERFACE module_interface_init |
---|
| 464 | MODULE PROCEDURE module_interface_init |
---|
| 465 | END INTERFACE module_interface_init |
---|
[3637] | 466 | |
---|
[3766] | 467 | INTERFACE module_interface_init_checks |
---|
| 468 | MODULE PROCEDURE module_interface_init_checks |
---|
| 469 | END INTERFACE module_interface_init_checks |
---|
[3711] | 470 | |
---|
[3766] | 471 | INTERFACE module_interface_header |
---|
| 472 | MODULE PROCEDURE module_interface_header |
---|
| 473 | END INTERFACE module_interface_header |
---|
[3637] | 474 | |
---|
[3766] | 475 | INTERFACE module_interface_actions |
---|
| 476 | MODULE PROCEDURE module_interface_actions |
---|
| 477 | MODULE PROCEDURE module_interface_actions_ij |
---|
| 478 | END INTERFACE module_interface_actions |
---|
[3637] | 479 | |
---|
[3931] | 480 | INTERFACE module_interface_non_advective_processes |
---|
| 481 | MODULE PROCEDURE module_interface_non_advective_processes |
---|
| 482 | MODULE PROCEDURE module_interface_non_advective_processes_ij |
---|
| 483 | END INTERFACE module_interface_non_advective_processes |
---|
[3887] | 484 | |
---|
| 485 | INTERFACE module_interface_exchange_horiz |
---|
| 486 | MODULE PROCEDURE module_interface_exchange_horiz |
---|
| 487 | END INTERFACE module_interface_exchange_horiz |
---|
| 488 | |
---|
[3837] | 489 | INTERFACE module_interface_prognostic_equations |
---|
| 490 | MODULE PROCEDURE module_interface_prognostic_equations |
---|
| 491 | MODULE PROCEDURE module_interface_prognostic_equations_ij |
---|
| 492 | END INTERFACE module_interface_prognostic_equations |
---|
| 493 | |
---|
[3766] | 494 | INTERFACE module_interface_swap_timelevel |
---|
| 495 | MODULE PROCEDURE module_interface_swap_timelevel |
---|
| 496 | END INTERFACE module_interface_swap_timelevel |
---|
[3637] | 497 | |
---|
[3766] | 498 | INTERFACE module_interface_3d_data_averaging |
---|
| 499 | MODULE PROCEDURE module_interface_3d_data_averaging |
---|
| 500 | END INTERFACE module_interface_3d_data_averaging |
---|
[3637] | 501 | |
---|
[3766] | 502 | INTERFACE module_interface_data_output_2d |
---|
| 503 | MODULE PROCEDURE module_interface_data_output_2d |
---|
| 504 | END INTERFACE module_interface_data_output_2d |
---|
[3637] | 505 | |
---|
[3766] | 506 | INTERFACE module_interface_data_output_3d |
---|
| 507 | MODULE PROCEDURE module_interface_data_output_3d |
---|
| 508 | END INTERFACE module_interface_data_output_3d |
---|
[3637] | 509 | |
---|
[3766] | 510 | INTERFACE module_interface_statistics |
---|
| 511 | MODULE PROCEDURE module_interface_statistics |
---|
| 512 | END INTERFACE module_interface_statistics |
---|
[3637] | 513 | |
---|
[3766] | 514 | INTERFACE module_interface_rrd_global |
---|
| 515 | MODULE PROCEDURE module_interface_rrd_global |
---|
| 516 | END INTERFACE module_interface_rrd_global |
---|
[3637] | 517 | |
---|
[3766] | 518 | INTERFACE module_interface_wrd_global |
---|
| 519 | MODULE PROCEDURE module_interface_wrd_global |
---|
| 520 | END INTERFACE module_interface_wrd_global |
---|
[3637] | 521 | |
---|
[3766] | 522 | INTERFACE module_interface_rrd_local |
---|
| 523 | MODULE PROCEDURE module_interface_rrd_local |
---|
| 524 | END INTERFACE module_interface_rrd_local |
---|
[3637] | 525 | |
---|
[3766] | 526 | INTERFACE module_interface_wrd_local |
---|
| 527 | MODULE PROCEDURE module_interface_wrd_local |
---|
| 528 | END INTERFACE module_interface_wrd_local |
---|
[3637] | 529 | |
---|
[3766] | 530 | INTERFACE module_interface_last_actions |
---|
| 531 | MODULE PROCEDURE module_interface_last_actions |
---|
| 532 | END INTERFACE module_interface_last_actions |
---|
[3637] | 533 | |
---|
[3687] | 534 | |
---|
[3766] | 535 | CONTAINS |
---|
[3637] | 536 | |
---|
| 537 | |
---|
| 538 | !------------------------------------------------------------------------------! |
---|
| 539 | ! Description: |
---|
| 540 | ! ------------ |
---|
| 541 | !> Read module-specific parameter namelists |
---|
| 542 | !------------------------------------------------------------------------------! |
---|
[3766] | 543 | SUBROUTINE module_interface_parin |
---|
[3637] | 544 | |
---|
| 545 | |
---|
[3987] | 546 | IF ( debug_output ) CALL debug_message( 'reading module-specific parameters', 'start' ) |
---|
| 547 | |
---|
[3766] | 548 | CALL bio_parin |
---|
| 549 | CALL bcm_parin |
---|
| 550 | CALL chem_parin |
---|
| 551 | CALL flight_parin ! ToDo: rename module to match filename |
---|
| 552 | CALL gust_parin |
---|
| 553 | CALL im_parin |
---|
| 554 | CALL lsm_parin |
---|
| 555 | ! ToDo: create parin routine for large_scale_forcing and nudging (should be seperate modules or new module switch) |
---|
| 556 | CALL mas_parin |
---|
| 557 | CALL nesting_offl_parin |
---|
| 558 | CALL ocean_parin |
---|
| 559 | CALL pcm_parin |
---|
| 560 | CALL radiation_parin |
---|
| 561 | CALL salsa_parin |
---|
| 562 | CALL spectra_parin |
---|
| 563 | CALL surface_data_output_parin |
---|
| 564 | CALL stg_parin |
---|
| 565 | CALL user_parin ! ToDo: make user code a single Fortran module |
---|
| 566 | CALL usm_parin |
---|
| 567 | CALL vm_parin |
---|
| 568 | CALL wtm_parin |
---|
[3637] | 569 | |
---|
[3766] | 570 | CALL package_parin ! ToDo: deprecated, needs to be dissolved |
---|
[3637] | 571 | |
---|
[3987] | 572 | IF ( debug_output ) CALL debug_message( 'reading module-specific parameters', 'end' ) |
---|
[3637] | 573 | |
---|
[3987] | 574 | |
---|
[3766] | 575 | END SUBROUTINE module_interface_parin |
---|
[3637] | 576 | |
---|
| 577 | |
---|
| 578 | !------------------------------------------------------------------------------! |
---|
| 579 | ! Description: |
---|
| 580 | ! ------------ |
---|
| 581 | !> Perform module-specific initialization checks |
---|
| 582 | !------------------------------------------------------------------------------! |
---|
[3766] | 583 | SUBROUTINE module_interface_check_parameters |
---|
[3637] | 584 | |
---|
| 585 | |
---|
[3987] | 586 | IF ( debug_output ) CALL debug_message( 'checking module-specific parameters', 'start' ) |
---|
| 587 | |
---|
[3766] | 588 | IF ( bulk_cloud_model ) CALL bcm_check_parameters |
---|
| 589 | IF ( air_chemistry ) CALL chem_check_parameters |
---|
| 590 | IF ( gust_module_enabled ) CALL gust_check_parameters |
---|
| 591 | IF ( indoor_model ) CALL im_check_parameters |
---|
| 592 | IF ( land_surface ) CALL lsm_check_parameters |
---|
| 593 | IF ( large_scale_forcing .OR. nudging ) CALL lsf_nudging_check_parameters ! ToDo: create single module switch |
---|
| 594 | IF ( nesting_offline ) CALL nesting_offl_check_parameters |
---|
| 595 | IF ( ocean_mode ) CALL ocean_check_parameters |
---|
| 596 | IF ( plant_canopy ) CALL pcm_check_parameters |
---|
| 597 | IF ( radiation ) CALL radiation_check_parameters |
---|
| 598 | IF ( salsa ) CALL salsa_check_parameters |
---|
| 599 | IF ( calculate_spectra ) CALL spectra_check_parameters |
---|
| 600 | IF ( surface_output ) CALL surface_data_output_check_parameters |
---|
| 601 | IF ( syn_turb_gen ) CALL stg_check_parameters |
---|
| 602 | IF ( urban_surface ) CALL usm_check_parameters |
---|
| 603 | IF ( virtual_measurement ) CALL vm_check_parameters |
---|
| 604 | IF ( wind_turbine ) CALL wtm_check_parameters |
---|
| 605 | IF ( user_module_enabled ) CALL user_check_parameters |
---|
[3637] | 606 | |
---|
[3987] | 607 | IF ( debug_output ) CALL debug_message( 'checking module-specific parameters', 'end' ) |
---|
[3637] | 608 | |
---|
[3987] | 609 | |
---|
[3766] | 610 | END SUBROUTINE module_interface_check_parameters |
---|
[3637] | 611 | |
---|
| 612 | |
---|
| 613 | !------------------------------------------------------------------------------! |
---|
| 614 | ! Description: |
---|
| 615 | ! ------------ |
---|
[3700] | 616 | !> Check module-specific data output of timeseries |
---|
| 617 | !------------------------------------------------------------------------------! |
---|
[3766] | 618 | SUBROUTINE module_interface_check_data_output_ts( dots_max, dots_num, dots_label, dots_unit ) |
---|
[3700] | 619 | |
---|
| 620 | |
---|
[3766] | 621 | INTEGER(iwp), INTENT(IN) :: dots_max !< variable output array index |
---|
| 622 | INTEGER(iwp), INTENT(INOUT) :: dots_num !< variable output array index |
---|
| 623 | CHARACTER (LEN=*), DIMENSION(dots_max), INTENT(INOUT) :: dots_label |
---|
| 624 | CHARACTER (LEN=*), DIMENSION(dots_max), INTENT(INOUT) :: dots_unit |
---|
[3700] | 625 | |
---|
| 626 | |
---|
[3987] | 627 | IF ( debug_output ) CALL debug_message( 'checking module-specific data output ts', 'start' ) |
---|
| 628 | |
---|
[3766] | 629 | IF ( radiation ) THEN |
---|
[3769] | 630 | CALL radiation_check_data_output_ts( dots_max, dots_num ) |
---|
[3766] | 631 | ENDIF |
---|
[3700] | 632 | |
---|
[3766] | 633 | IF ( user_module_enabled ) THEN |
---|
| 634 | CALL user_check_data_output_ts( dots_max, dots_num, dots_label, dots_unit ) |
---|
| 635 | ENDIF |
---|
[3700] | 636 | |
---|
[3987] | 637 | IF ( debug_output ) CALL debug_message( 'checking module-specific data output ts', 'end' ) |
---|
[3700] | 638 | |
---|
[3987] | 639 | |
---|
[3766] | 640 | END SUBROUTINE module_interface_check_data_output_ts |
---|
[3700] | 641 | |
---|
| 642 | |
---|
| 643 | !------------------------------------------------------------------------------! |
---|
| 644 | ! Description: |
---|
| 645 | ! ------------ |
---|
[3637] | 646 | !> Check module-specific data output of profiles |
---|
| 647 | !------------------------------------------------------------------------------! |
---|
[3766] | 648 | SUBROUTINE module_interface_check_data_output_pr( variable, var_count, unit, & |
---|
| 649 | dopr_unit ) |
---|
[3637] | 650 | |
---|
| 651 | |
---|
[3766] | 652 | CHARACTER (LEN=*), INTENT(IN) :: variable !< variable name |
---|
| 653 | INTEGER(iwp), INTENT(IN) :: var_count !< variable output array index |
---|
| 654 | CHARACTER (LEN=*), INTENT(INOUT) :: unit !< physical unit of variable |
---|
| 655 | CHARACTER (LEN=*), INTENT(OUT) :: dopr_unit !< local value of dopr_unit |
---|
[3637] | 656 | |
---|
[3987] | 657 | |
---|
| 658 | IF ( debug_output ) CALL debug_message( 'checking module-specific data output pr', 'start' ) |
---|
| 659 | |
---|
[3766] | 660 | IF ( unit == 'illegal' .AND. bulk_cloud_model ) THEN |
---|
| 661 | CALL bcm_check_data_output_pr( variable, var_count, unit, dopr_unit ) |
---|
| 662 | ENDIF |
---|
[3637] | 663 | |
---|
[3766] | 664 | IF ( unit == 'illegal' .AND. air_chemistry ) THEN |
---|
| 665 | CALL chem_check_data_output_pr( variable, var_count, unit, dopr_unit ) |
---|
| 666 | ENDIF |
---|
[3637] | 667 | |
---|
[3766] | 668 | IF ( unit == 'illegal' .AND. gust_module_enabled ) THEN |
---|
| 669 | CALL gust_check_data_output_pr( variable, var_count, unit, dopr_unit ) |
---|
| 670 | ENDIF |
---|
[3637] | 671 | |
---|
[3766] | 672 | IF ( unit == 'illegal' ) THEN ! ToDo: add module switch if possible |
---|
| 673 | CALL lsm_check_data_output_pr( variable, var_count, unit, dopr_unit ) |
---|
| 674 | ENDIF |
---|
[3637] | 675 | |
---|
[3766] | 676 | IF ( unit == 'illegal' ) THEN ! ToDo: add module switch if possible |
---|
| 677 | CALL lsf_nudging_check_data_output_pr( variable, var_count, unit, dopr_unit ) |
---|
| 678 | ENDIF |
---|
[3637] | 679 | |
---|
[3766] | 680 | IF ( unit == 'illegal' .AND. ocean_mode ) THEN |
---|
| 681 | CALL ocean_check_data_output_pr( variable, var_count, unit, dopr_unit ) |
---|
| 682 | ENDIF |
---|
[3637] | 683 | |
---|
[3766] | 684 | IF ( unit == 'illegal' .AND. radiation ) THEN |
---|
| 685 | CALL radiation_check_data_output_pr( variable, var_count, unit, dopr_unit ) |
---|
| 686 | ENDIF |
---|
[3637] | 687 | |
---|
[3766] | 688 | IF ( unit == 'illegal' .AND. user_module_enabled ) THEN |
---|
| 689 | unit = '' ! ToDo: Seems like a hack. Find a general soultion! |
---|
| 690 | CALL user_check_data_output_pr( variable, var_count, unit, dopr_unit ) |
---|
| 691 | ENDIF |
---|
[3637] | 692 | |
---|
[3987] | 693 | IF ( debug_output ) CALL debug_message( 'checking module-specific data output pr', 'end' ) |
---|
[3637] | 694 | |
---|
[3987] | 695 | |
---|
[3766] | 696 | END SUBROUTINE module_interface_check_data_output_pr |
---|
[3637] | 697 | |
---|
| 698 | !------------------------------------------------------------------------------! |
---|
| 699 | ! Description: |
---|
| 700 | ! ------------ |
---|
| 701 | !> Check module-specific 2D and 3D data output |
---|
| 702 | !------------------------------------------------------------------------------! |
---|
[3766] | 703 | SUBROUTINE module_interface_check_data_output( variable, unit, i, j, ilen, k ) |
---|
[3637] | 704 | |
---|
| 705 | |
---|
[3766] | 706 | CHARACTER (LEN=*), INTENT(IN) :: variable !< variable name |
---|
| 707 | CHARACTER (LEN=*), INTENT(INOUT) :: unit !< physical unit of variable |
---|
[3637] | 708 | |
---|
[3766] | 709 | INTEGER(iwp), INTENT(IN) :: i !< ToDo: remove dummy argument, instead pass string from data_output |
---|
| 710 | INTEGER(iwp), INTENT(IN) :: j !< average quantity? 0 = no, 1 = yes |
---|
| 711 | INTEGER(iwp), INTENT(IN) :: ilen !< ToDo: remove dummy argument, instead pass string from data_output |
---|
| 712 | INTEGER(iwp), INTENT(IN) :: k !< ToDo: remove dummy argument, instead pass string from data_output |
---|
[3637] | 713 | |
---|
[3987] | 714 | |
---|
| 715 | IF ( debug_output ) CALL debug_message( 'checking module-specific data output 2d/3d', 'start' ) |
---|
| 716 | |
---|
[3766] | 717 | IF ( unit == 'illegal' .AND. biometeorology ) THEN |
---|
| 718 | CALL bio_check_data_output( variable, unit, i, j, ilen, k ) |
---|
| 719 | ENDIF |
---|
[3637] | 720 | |
---|
[3766] | 721 | IF ( unit == 'illegal' .AND. bulk_cloud_model ) THEN |
---|
| 722 | CALL bcm_check_data_output( variable, unit ) |
---|
| 723 | ENDIF |
---|
[3637] | 724 | |
---|
[3766] | 725 | IF ( unit == 'illegal' .AND. air_chemistry & |
---|
| 726 | .AND. (variable(1:3) == 'kc_' .OR. variable(1:3) == 'em_') ) THEN ! ToDo: remove aditional conditions |
---|
| 727 | CALL chem_check_data_output( variable, unit, i, ilen, k ) |
---|
| 728 | ENDIF |
---|
[3637] | 729 | |
---|
[3766] | 730 | IF ( unit == 'illegal' .AND. gust_module_enabled ) THEN |
---|
| 731 | CALL gust_check_data_output( variable, unit ) |
---|
| 732 | ENDIF |
---|
[3637] | 733 | |
---|
[3766] | 734 | IF ( unit == 'illegal' ) THEN ! ToDo: add module switch if possible |
---|
| 735 | CALL lsm_check_data_output( variable, unit, i, ilen, k ) |
---|
| 736 | ENDIF |
---|
[3637] | 737 | |
---|
[3766] | 738 | IF ( unit == 'illegal' .AND. ocean_mode ) THEN |
---|
| 739 | CALL ocean_check_data_output( variable, unit ) |
---|
| 740 | ENDIF |
---|
[3637] | 741 | |
---|
[3766] | 742 | IF ( unit == 'illegal' .AND. plant_canopy & |
---|
| 743 | .AND. variable(1:4) == 'pcm_' ) THEN ! ToDo: remove aditional conditions |
---|
| 744 | CALL pcm_check_data_output( variable, unit ) |
---|
| 745 | ENDIF |
---|
[3637] | 746 | |
---|
[3766] | 747 | IF ( unit == 'illegal' .AND. radiation ) THEN |
---|
| 748 | CALL radiation_check_data_output( variable, unit, i, ilen, k ) |
---|
| 749 | ENDIF |
---|
[3637] | 750 | |
---|
[3766] | 751 | IF ( unit == 'illegal' .AND. salsa ) THEN |
---|
[3637] | 752 | CALL salsa_check_data_output( variable, unit ) |
---|
[3766] | 753 | ENDIF |
---|
[3637] | 754 | |
---|
[3766] | 755 | IF ( unit == 'illegal' .AND. indoor_model ) THEN |
---|
[3744] | 756 | CALL im_check_data_output( variable, unit ) |
---|
[3766] | 757 | ENDIF |
---|
[3744] | 758 | |
---|
[3766] | 759 | IF ( unit == 'illegal' .AND. urban_surface & |
---|
[3637] | 760 | .AND. variable(1:4) == 'usm_' ) THEN ! ToDo: remove aditional conditions |
---|
| 761 | CALL usm_check_data_output( variable, unit ) |
---|
[3766] | 762 | ENDIF |
---|
[3637] | 763 | |
---|
[3766] | 764 | IF ( unit == 'illegal' .AND. user_module_enabled ) THEN |
---|
| 765 | unit = '' |
---|
| 766 | CALL user_check_data_output( variable, unit ) |
---|
| 767 | ENDIF |
---|
[3637] | 768 | |
---|
[3987] | 769 | IF ( debug_output ) CALL debug_message( 'checking module-specific data output 2d/3d', 'end' ) |
---|
[3637] | 770 | |
---|
[3987] | 771 | |
---|
[3766] | 772 | END SUBROUTINE module_interface_check_data_output |
---|
[3637] | 773 | |
---|
| 774 | |
---|
| 775 | !------------------------------------------------------------------------------! |
---|
| 776 | ! |
---|
| 777 | ! Description: |
---|
| 778 | ! ------------ |
---|
[3687] | 779 | !> Interface for init_masks. ToDo: get rid of these redundant calls! |
---|
| 780 | !------------------------------------------------------------------------------! |
---|
[3766] | 781 | SUBROUTINE module_interface_init_masks( variable, unit ) |
---|
[3687] | 782 | |
---|
| 783 | |
---|
[3766] | 784 | CHARACTER (LEN=*), INTENT(IN) :: variable !< variable name |
---|
| 785 | CHARACTER (LEN=*), INTENT(INOUT) :: unit !< physical unit of variable |
---|
[3687] | 786 | |
---|
[3987] | 787 | |
---|
| 788 | IF ( debug_output ) CALL debug_message( 'initializing module-specific masks', 'start' ) |
---|
| 789 | |
---|
[3766] | 790 | IF ( unit == 'illegal' .AND. air_chemistry & |
---|
| 791 | .AND. (variable(1:3) == 'kc_' .OR. variable(1:3) == 'em_') ) THEN ! ToDo: remove aditional conditions |
---|
| 792 | CALL chem_check_data_output( variable, unit, 0, 0, 0 ) |
---|
| 793 | ENDIF |
---|
[3687] | 794 | |
---|
[3766] | 795 | IF ( unit == 'illegal' .AND. radiation ) THEN |
---|
| 796 | CALL radiation_check_data_output( variable, unit, 0, 0, 0 ) |
---|
| 797 | ENDIF |
---|
[3687] | 798 | |
---|
[3766] | 799 | IF ( unit == 'illegal' .AND. salsa ) THEN |
---|
| 800 | CALL salsa_check_data_output( variable, unit ) |
---|
| 801 | ENDIF |
---|
[3687] | 802 | |
---|
[3766] | 803 | IF ( unit == 'illegal' .AND. user_module_enabled ) THEN |
---|
| 804 | unit = '' |
---|
| 805 | CALL user_check_data_output( variable, unit ) |
---|
| 806 | ENDIF |
---|
[3687] | 807 | |
---|
[3987] | 808 | IF ( debug_output ) CALL debug_message( 'initializing module-specific masks', 'end' ) |
---|
[3687] | 809 | |
---|
[3987] | 810 | |
---|
[3766] | 811 | END SUBROUTINE module_interface_init_masks |
---|
[3687] | 812 | |
---|
| 813 | |
---|
| 814 | !------------------------------------------------------------------------------! |
---|
| 815 | ! |
---|
| 816 | ! Description: |
---|
| 817 | ! ------------ |
---|
[3637] | 818 | !> Define appropriate grid for module-specific netcdf output variables. |
---|
| 819 | !------------------------------------------------------------------------------! |
---|
[3766] | 820 | SUBROUTINE module_interface_define_netcdf_grid( var, found, & |
---|
| 821 | grid_x, grid_y, grid_z ) |
---|
[3637] | 822 | |
---|
| 823 | |
---|
[3766] | 824 | CHARACTER (LEN=*), INTENT(IN) :: var !< variable name |
---|
| 825 | LOGICAL, INTENT(OUT) :: found !< indicates if variable was found |
---|
| 826 | CHARACTER (LEN=*), INTENT(OUT) :: grid_x !< netcdf dimension in x-direction |
---|
| 827 | CHARACTER (LEN=*), INTENT(OUT) :: grid_y !< netcdf dimension in y-direction |
---|
| 828 | CHARACTER (LEN=*), INTENT(OUT) :: grid_z !< netcdf dimension in z-direction |
---|
[3987] | 829 | |
---|
| 830 | |
---|
| 831 | IF ( debug_output ) CALL debug_message( 'defining module-specific netcdf grids', 'start' ) |
---|
[3649] | 832 | ! |
---|
[3766] | 833 | !-- As long as no action is done in this subroutine, initialize strings with |
---|
| 834 | !-- intent(out) attribute, in order to avoid compiler warnings. |
---|
| 835 | found = .FALSE. |
---|
| 836 | grid_x = 'none' |
---|
| 837 | grid_y = 'none' |
---|
| 838 | grid_z = 'none' |
---|
| 839 | ! |
---|
| 840 | !-- Use var to avoid compiler warning about unused variable |
---|
| 841 | IF ( var == ' ' ) RETURN |
---|
[3637] | 842 | |
---|
[3987] | 843 | IF ( debug_output ) CALL debug_message( 'defining module-specific netcdf grids', 'end' ) |
---|
| 844 | |
---|
| 845 | |
---|
[3766] | 846 | END SUBROUTINE module_interface_define_netcdf_grid |
---|
[3637] | 847 | |
---|
| 848 | |
---|
| 849 | !------------------------------------------------------------------------------! |
---|
| 850 | ! Description: |
---|
| 851 | ! ------------ |
---|
| 852 | !> Allocate module-specific arrays and pointers |
---|
| 853 | !------------------------------------------------------------------------------! |
---|
[3766] | 854 | SUBROUTINE module_interface_init_arrays |
---|
[3637] | 855 | |
---|
| 856 | |
---|
[3987] | 857 | IF ( debug_output ) CALL debug_message( 'initializing module-specific arrays', 'start' ) |
---|
[3885] | 858 | |
---|
[3766] | 859 | IF ( bulk_cloud_model ) CALL bcm_init_arrays |
---|
| 860 | IF ( air_chemistry ) CALL chem_init_arrays |
---|
| 861 | IF ( gust_module_enabled ) CALL gust_init_arrays |
---|
| 862 | IF ( land_surface ) CALL lsm_init_arrays |
---|
| 863 | IF ( ocean_mode ) CALL ocean_init_arrays |
---|
| 864 | IF ( salsa ) CALL salsa_init_arrays |
---|
| 865 | IF ( urban_surface ) CALL usm_init_arrays |
---|
| 866 | IF ( surface_output ) CALL surface_data_output_init_arrays |
---|
| 867 | IF ( wind_turbine ) CALL wtm_init_arrays |
---|
| 868 | IF ( user_module_enabled ) CALL user_init_arrays |
---|
[3685] | 869 | |
---|
[3987] | 870 | IF ( debug_output ) CALL debug_message( 'initializing module-specific arrays', 'end' ) |
---|
[3685] | 871 | |
---|
[3885] | 872 | |
---|
[3766] | 873 | END SUBROUTINE module_interface_init_arrays |
---|
[3637] | 874 | |
---|
| 875 | |
---|
| 876 | !------------------------------------------------------------------------------! |
---|
| 877 | ! Description: |
---|
| 878 | ! ------------ |
---|
| 879 | !> Perform module-specific initialization |
---|
| 880 | !------------------------------------------------------------------------------! |
---|
[3766] | 881 | SUBROUTINE module_interface_init |
---|
[3637] | 882 | |
---|
| 883 | |
---|
[3987] | 884 | IF ( debug_output ) CALL debug_message( 'module-specific initialization', 'start' ) |
---|
[3885] | 885 | |
---|
[3766] | 886 | IF ( biometeorology ) CALL bio_init |
---|
| 887 | IF ( bulk_cloud_model ) CALL bcm_init |
---|
| 888 | IF ( air_chemistry ) CALL chem_init |
---|
| 889 | IF ( virtual_flight ) CALL flight_init |
---|
| 890 | IF ( gust_module_enabled ) CALL gust_init |
---|
| 891 | IF ( indoor_model ) CALL im_init |
---|
| 892 | IF ( large_scale_forcing ) CALL lsf_init |
---|
| 893 | IF ( land_surface ) CALL lsm_init |
---|
| 894 | IF ( nudging ) CALL nudge_init |
---|
| 895 | IF ( ocean_mode ) CALL ocean_init |
---|
| 896 | IF ( plant_canopy ) CALL pcm_init |
---|
| 897 | IF ( salsa ) CALL salsa_init |
---|
| 898 | IF ( urban_surface ) CALL usm_init |
---|
| 899 | IF ( virtual_measurement ) CALL vm_init |
---|
| 900 | IF ( wind_turbine ) CALL wtm_init |
---|
| 901 | IF ( radiation ) CALL radiation_init |
---|
| 902 | IF ( user_module_enabled ) CALL user_init |
---|
[3685] | 903 | |
---|
[3987] | 904 | IF ( debug_output ) CALL debug_message( 'module-specific initialization', 'end' ) |
---|
[3685] | 905 | |
---|
[3885] | 906 | |
---|
[3766] | 907 | END SUBROUTINE module_interface_init |
---|
[3637] | 908 | |
---|
| 909 | |
---|
| 910 | !------------------------------------------------------------------------------! |
---|
| 911 | ! Description: |
---|
| 912 | ! ------------ |
---|
[3711] | 913 | !> Perform module-specific post-initialization checks |
---|
| 914 | !------------------------------------------------------------------------------! |
---|
[3766] | 915 | SUBROUTINE module_interface_init_checks |
---|
[3711] | 916 | |
---|
| 917 | |
---|
[3987] | 918 | IF ( debug_output ) CALL debug_message( 'module-specific post-initialization checks', 'start' ) |
---|
| 919 | |
---|
[3766] | 920 | IF ( biometeorology ) CALL bio_init_checks |
---|
[3711] | 921 | |
---|
[3987] | 922 | IF ( debug_output ) CALL debug_message( 'module-specific post-initialization checks', 'end' ) |
---|
[3711] | 923 | |
---|
[3987] | 924 | |
---|
[3766] | 925 | END SUBROUTINE module_interface_init_checks |
---|
[3711] | 926 | |
---|
| 927 | |
---|
| 928 | !------------------------------------------------------------------------------! |
---|
| 929 | ! Description: |
---|
| 930 | ! ------------ |
---|
[3637] | 931 | !> Gather module-specific header output |
---|
| 932 | !------------------------------------------------------------------------------! |
---|
[3766] | 933 | SUBROUTINE module_interface_header( io ) |
---|
[3637] | 934 | |
---|
| 935 | |
---|
[3766] | 936 | INTEGER(iwp), INTENT(IN) :: io !< unit of the output file |
---|
[3637] | 937 | |
---|
| 938 | |
---|
[3987] | 939 | IF ( debug_output ) CALL debug_message( 'module-specific header output', 'start' ) |
---|
| 940 | |
---|
[3766] | 941 | IF ( biometeorology ) CALL bio_header ( io ) |
---|
| 942 | IF ( bulk_cloud_model ) CALL bcm_header( io ) |
---|
| 943 | IF ( air_chemistry ) CALL chem_header ( io ) |
---|
| 944 | IF ( virtual_flight ) CALL flight_header( io ) |
---|
| 945 | IF ( gust_module_enabled ) CALL gust_header( io ) |
---|
| 946 | IF ( land_surface ) CALL lsm_header( io ) |
---|
| 947 | IF ( large_scale_forcing ) CALL lsf_nudging_header( io ) |
---|
| 948 | IF ( nesting_offline ) CALL nesting_offl_header( io ) |
---|
| 949 | IF ( ocean_mode ) CALL ocean_header( io ) |
---|
| 950 | IF ( plant_canopy ) CALL pcm_header( io ) |
---|
| 951 | IF ( radiation ) CALL radiation_header( io ) |
---|
| 952 | IF ( salsa ) CALL salsa_header( io ) |
---|
| 953 | IF ( calculate_spectra ) CALL spectra_header( io ) |
---|
| 954 | IF ( syn_turb_gen ) CALL stg_header( io ) |
---|
| 955 | IF ( user_module_enabled ) CALL user_header( io ) |
---|
[3637] | 956 | |
---|
[3987] | 957 | IF ( debug_output ) CALL debug_message( 'module-specific header output', 'end' ) |
---|
[3637] | 958 | |
---|
[3987] | 959 | |
---|
[3766] | 960 | END SUBROUTINE module_interface_header |
---|
[3637] | 961 | |
---|
| 962 | |
---|
| 963 | !------------------------------------------------------------------------------! |
---|
| 964 | ! Description: |
---|
| 965 | ! ------------ |
---|
[3874] | 966 | !> Perform module-specific actions while in time-integration (vector-optimized) |
---|
[3637] | 967 | !------------------------------------------------------------------------------! |
---|
[3766] | 968 | SUBROUTINE module_interface_actions( location ) |
---|
[3637] | 969 | |
---|
| 970 | |
---|
[3766] | 971 | CHARACTER (LEN=*), INTENT(IN) :: location !< call location string |
---|
[3637] | 972 | |
---|
| 973 | |
---|
[3870] | 974 | IF ( bulk_cloud_model ) CALL bcm_actions( location ) |
---|
[3877] | 975 | IF ( air_chemistry ) CALL chem_actions( location ) |
---|
[3766] | 976 | IF ( gust_module_enabled ) CALL gust_actions( location ) |
---|
[3873] | 977 | IF ( ocean_mode ) CALL ocean_actions( location ) |
---|
[3871] | 978 | IF ( salsa ) CALL salsa_actions( location ) |
---|
[3875] | 979 | IF ( wind_turbine ) CALL wtm_actions( location ) |
---|
[3766] | 980 | IF ( user_module_enabled ) CALL user_actions( location ) |
---|
[3684] | 981 | |
---|
| 982 | |
---|
[3766] | 983 | END SUBROUTINE module_interface_actions |
---|
[3637] | 984 | |
---|
| 985 | |
---|
| 986 | !------------------------------------------------------------------------------! |
---|
| 987 | ! Description: |
---|
| 988 | ! ------------ |
---|
[3874] | 989 | !> Perform module-specific actions while in time-integration (cache-optimized) |
---|
[3637] | 990 | !------------------------------------------------------------------------------! |
---|
[3766] | 991 | SUBROUTINE module_interface_actions_ij( i, j, location ) |
---|
[3637] | 992 | |
---|
| 993 | |
---|
[3766] | 994 | INTEGER(iwp), INTENT(IN) :: i !< grid index in x-direction |
---|
| 995 | INTEGER(iwp), INTENT(IN) :: j !< grid index in y-direction |
---|
| 996 | CHARACTER (LEN=*), INTENT(IN) :: location !< call location string |
---|
[3637] | 997 | |
---|
| 998 | |
---|
[3870] | 999 | IF ( bulk_cloud_model ) CALL bcm_actions( i, j, location ) |
---|
[3877] | 1000 | IF ( air_chemistry ) CALL chem_actions( i, j, location ) |
---|
[3766] | 1001 | IF ( gust_module_enabled ) CALL gust_actions( i, j, location ) |
---|
[3873] | 1002 | IF ( ocean_mode ) CALL ocean_actions( i, j, location ) |
---|
[3871] | 1003 | IF ( salsa ) CALL salsa_actions( i, j, location ) |
---|
[3875] | 1004 | IF ( wind_turbine ) CALL wtm_actions( i, j, location ) |
---|
[3766] | 1005 | IF ( user_module_enabled ) CALL user_actions( i, j, location ) |
---|
[3684] | 1006 | |
---|
| 1007 | |
---|
[3766] | 1008 | END SUBROUTINE module_interface_actions_ij |
---|
[3637] | 1009 | |
---|
| 1010 | |
---|
| 1011 | !------------------------------------------------------------------------------! |
---|
| 1012 | ! Description: |
---|
| 1013 | ! ------------ |
---|
[3987] | 1014 | !> Compute module-specific non_advective_processes (vector-optimized) |
---|
[3874] | 1015 | !------------------------------------------------------------------------------! |
---|
[3931] | 1016 | SUBROUTINE module_interface_non_advective_processes() |
---|
[3874] | 1017 | |
---|
| 1018 | |
---|
[3931] | 1019 | IF ( bulk_cloud_model ) CALL bcm_non_advective_processes() |
---|
[3930] | 1020 | IF ( air_chemistry ) CALL chem_non_advective_processes() |
---|
[3956] | 1021 | IF ( salsa ) CALL salsa_non_advective_processes() |
---|
[3874] | 1022 | |
---|
| 1023 | |
---|
[3931] | 1024 | END SUBROUTINE module_interface_non_advective_processes |
---|
[3874] | 1025 | |
---|
| 1026 | |
---|
| 1027 | !------------------------------------------------------------------------------! |
---|
| 1028 | ! Description: |
---|
| 1029 | ! ------------ |
---|
[3931] | 1030 | !> Compute module-specific non_advective_processes (cache-optimized) |
---|
[3837] | 1031 | !------------------------------------------------------------------------------! |
---|
[3931] | 1032 | SUBROUTINE module_interface_non_advective_processes_ij( i, j ) |
---|
[3874] | 1033 | |
---|
| 1034 | |
---|
| 1035 | INTEGER(iwp), INTENT(IN) :: i !< grid index in x-direction |
---|
| 1036 | INTEGER(iwp), INTENT(IN) :: j !< grid index in y-direction |
---|
| 1037 | |
---|
| 1038 | |
---|
[3956] | 1039 | IF ( bulk_cloud_model ) CALL bcm_non_advective_processes( i, j ) |
---|
[3930] | 1040 | IF ( air_chemistry ) CALL chem_non_advective_processes( i, j ) |
---|
[3956] | 1041 | IF ( salsa ) CALL salsa_non_advective_processes( i, j ) |
---|
[3874] | 1042 | |
---|
| 1043 | |
---|
[3931] | 1044 | END SUBROUTINE module_interface_non_advective_processes_ij |
---|
[3887] | 1045 | |
---|
| 1046 | !------------------------------------------------------------------------------! |
---|
| 1047 | ! Description: |
---|
| 1048 | ! ------------ |
---|
| 1049 | !> Exchange horiz for module-specific quantities |
---|
| 1050 | !------------------------------------------------------------------------------! |
---|
| 1051 | SUBROUTINE module_interface_exchange_horiz() |
---|
[3874] | 1052 | |
---|
| 1053 | |
---|
[3987] | 1054 | IF ( debug_output_timestep ) CALL debug_message( 'module-specific exchange_horiz', 'start' ) |
---|
| 1055 | |
---|
[3887] | 1056 | IF ( bulk_cloud_model ) CALL bcm_exchange_horiz() |
---|
[3929] | 1057 | IF ( air_chemistry ) CALL chem_exchange_horiz_bounds() |
---|
[3956] | 1058 | IF ( salsa ) CALL salsa_exchange_horiz_bounds() |
---|
[3887] | 1059 | |
---|
[3987] | 1060 | IF ( debug_output_timestep ) CALL debug_message( 'module-specific exchange_horiz', 'end' ) |
---|
| 1061 | |
---|
| 1062 | |
---|
[3887] | 1063 | END SUBROUTINE module_interface_exchange_horiz |
---|
| 1064 | |
---|
| 1065 | |
---|
[3874] | 1066 | !------------------------------------------------------------------------------! |
---|
| 1067 | ! Description: |
---|
| 1068 | ! ------------ |
---|
| 1069 | !> Compute module-specific prognostic_equations (vector-optimized) |
---|
| 1070 | !------------------------------------------------------------------------------! |
---|
[3837] | 1071 | SUBROUTINE module_interface_prognostic_equations() |
---|
| 1072 | |
---|
| 1073 | |
---|
[3870] | 1074 | IF ( bulk_cloud_model ) CALL bcm_prognostic_equations() |
---|
[3880] | 1075 | IF ( air_chemistry ) CALL chem_prognostic_equations() |
---|
[3837] | 1076 | IF ( gust_module_enabled ) CALL gust_prognostic_equations() |
---|
[3840] | 1077 | IF ( ocean_mode ) CALL ocean_prognostic_equations() |
---|
[3864] | 1078 | IF ( salsa ) CALL salsa_prognostic_equations() |
---|
[3837] | 1079 | |
---|
| 1080 | |
---|
| 1081 | END SUBROUTINE module_interface_prognostic_equations |
---|
| 1082 | |
---|
| 1083 | |
---|
| 1084 | !------------------------------------------------------------------------------! |
---|
| 1085 | ! Description: |
---|
| 1086 | ! ------------ |
---|
[3874] | 1087 | !> Compute module-specific prognostic_equations (cache-optimized) |
---|
[3837] | 1088 | !------------------------------------------------------------------------------! |
---|
| 1089 | SUBROUTINE module_interface_prognostic_equations_ij( i, j, i_omp_start, tn ) |
---|
| 1090 | |
---|
| 1091 | |
---|
| 1092 | INTEGER(iwp), INTENT(IN) :: i !< grid index in x-direction |
---|
| 1093 | INTEGER(iwp), INTENT(IN) :: j !< grid index in y-direction |
---|
| 1094 | INTEGER(iwp), INTENT(IN) :: i_omp_start !< first loop index of i-loop in prognostic_equations |
---|
| 1095 | INTEGER(iwp), INTENT(IN) :: tn !< task number of openmp task |
---|
| 1096 | |
---|
| 1097 | |
---|
[3870] | 1098 | IF ( bulk_cloud_model ) CALL bcm_prognostic_equations( i, j, i_omp_start, tn ) |
---|
[3880] | 1099 | IF ( air_chemistry ) CALL chem_prognostic_equations( i, j, i_omp_start, tn ) |
---|
[3837] | 1100 | IF ( gust_module_enabled ) CALL gust_prognostic_equations( i, j, i_omp_start, tn ) |
---|
[3840] | 1101 | IF ( ocean_mode ) CALL ocean_prognostic_equations( i, j, i_omp_start, tn ) |
---|
[3864] | 1102 | IF ( salsa ) CALL salsa_prognostic_equations( i, j, i_omp_start, tn ) |
---|
[3837] | 1103 | |
---|
| 1104 | |
---|
| 1105 | END SUBROUTINE module_interface_prognostic_equations_ij |
---|
| 1106 | |
---|
| 1107 | |
---|
| 1108 | !------------------------------------------------------------------------------! |
---|
| 1109 | ! Description: |
---|
| 1110 | ! ------------ |
---|
[3637] | 1111 | !> Swap the timelevel pointers for module-specific arrays |
---|
| 1112 | !------------------------------------------------------------------------------! |
---|
[3766] | 1113 | SUBROUTINE module_interface_swap_timelevel ( swap_mode ) |
---|
[3637] | 1114 | |
---|
| 1115 | |
---|
[3766] | 1116 | INTEGER(iwp), INTENT(IN) :: swap_mode !< determines procedure of pointer swap |
---|
[3637] | 1117 | |
---|
[3987] | 1118 | |
---|
| 1119 | IF ( debug_output_timestep ) CALL debug_message( 'module-specific swap timelevel', 'start' ) |
---|
| 1120 | |
---|
[3766] | 1121 | IF ( bulk_cloud_model ) CALL bcm_swap_timelevel( swap_mode ) |
---|
| 1122 | IF ( air_chemistry ) CALL chem_swap_timelevel( swap_mode ) |
---|
| 1123 | IF ( gust_module_enabled ) CALL gust_swap_timelevel( swap_mode ) |
---|
| 1124 | IF ( land_surface ) CALL lsm_swap_timelevel( swap_mode ) |
---|
| 1125 | IF ( ocean_mode ) CALL ocean_swap_timelevel( swap_mode ) |
---|
| 1126 | IF ( salsa ) CALL salsa_swap_timelevel( swap_mode ) |
---|
| 1127 | IF ( urban_surface ) CALL usm_swap_timelevel( swap_mode ) |
---|
[3637] | 1128 | |
---|
[3987] | 1129 | IF ( debug_output_timestep ) CALL debug_message( 'module-specific swap timelevel', 'end' ) |
---|
[3637] | 1130 | |
---|
[3987] | 1131 | |
---|
[3766] | 1132 | END SUBROUTINE module_interface_swap_timelevel |
---|
[3637] | 1133 | |
---|
| 1134 | |
---|
| 1135 | !------------------------------------------------------------------------------! |
---|
| 1136 | ! |
---|
| 1137 | ! Description: |
---|
| 1138 | ! ------------ |
---|
| 1139 | !> Perform module-specific averaging of 3D data |
---|
| 1140 | !------------------------------------------------------------------------------! |
---|
[3766] | 1141 | SUBROUTINE module_interface_3d_data_averaging( mode, variable ) |
---|
[3637] | 1142 | |
---|
| 1143 | |
---|
[3766] | 1144 | CHARACTER (LEN=*), INTENT(IN) :: mode !< averaging interface mode |
---|
| 1145 | CHARACTER (LEN=*), INTENT(IN) :: variable !< variable name |
---|
[3637] | 1146 | |
---|
[3987] | 1147 | |
---|
| 1148 | IF ( debug_output_timestep ) CALL debug_message( 'module-specific 3d data averaging', 'start' ) |
---|
| 1149 | |
---|
[3766] | 1150 | IF ( biometeorology ) CALL bio_3d_data_averaging( mode, variable ) |
---|
| 1151 | IF ( bulk_cloud_model ) CALL bcm_3d_data_averaging( mode, variable ) |
---|
| 1152 | IF ( air_chemistry ) CALL chem_3d_data_averaging( mode, variable ) |
---|
| 1153 | IF ( gust_module_enabled ) CALL gust_3d_data_averaging( mode, variable ) |
---|
| 1154 | IF ( land_surface ) CALL lsm_3d_data_averaging( mode, variable ) |
---|
| 1155 | IF ( ocean_mode ) CALL ocean_3d_data_averaging( mode, variable ) |
---|
| 1156 | IF ( radiation ) CALL radiation_3d_data_averaging( mode, variable ) |
---|
| 1157 | IF ( salsa ) CALL salsa_3d_data_averaging( mode, variable ) |
---|
| 1158 | IF ( urban_surface ) CALL usm_3d_data_averaging( mode, variable ) |
---|
| 1159 | IF ( user_module_enabled ) CALL user_3d_data_averaging( mode, variable ) |
---|
[3637] | 1160 | |
---|
[3987] | 1161 | IF ( debug_output_timestep ) CALL debug_message( 'module-specific 3d data averaging', 'end' ) |
---|
[3637] | 1162 | |
---|
[3987] | 1163 | |
---|
[3766] | 1164 | END SUBROUTINE module_interface_3d_data_averaging |
---|
[3637] | 1165 | |
---|
| 1166 | !------------------------------------------------------------------------------! |
---|
| 1167 | ! |
---|
| 1168 | ! Description: |
---|
| 1169 | ! ------------ |
---|
| 1170 | !> Define module-specific 2D output variables |
---|
| 1171 | !------------------------------------------------------------------------------! |
---|
[3766] | 1172 | SUBROUTINE module_interface_data_output_2d( av, variable, found, grid, mode, & |
---|
| 1173 | local_pf, two_d, nzb_do, nzt_do, & |
---|
| 1174 | fill_value ) |
---|
[3637] | 1175 | |
---|
[3766] | 1176 | INTEGER(iwp), INTENT(IN) :: av !< flag for (non-)average output |
---|
| 1177 | CHARACTER (LEN=*), INTENT(IN) :: variable !< variable name |
---|
| 1178 | LOGICAL, INTENT(INOUT) :: found !< flag if output variable is found |
---|
| 1179 | CHARACTER (LEN=*), INTENT(INOUT) :: grid !< name of vertical grid |
---|
| 1180 | CHARACTER (LEN=*), INTENT(IN) :: mode !< either 'xy', 'xz' or 'yz' |
---|
| 1181 | LOGICAL, INTENT(OUT) :: two_d !< flag for 2D variables |
---|
| 1182 | INTEGER(iwp), INTENT(IN) :: nzb_do !< vertical output index (bottom) (usually 0) |
---|
| 1183 | INTEGER(iwp), INTENT(IN) :: nzt_do !< vertical output index (top) (usually nz_do3d) |
---|
| 1184 | REAL(wp), INTENT(IN) :: fill_value !< to be removed |
---|
[3637] | 1185 | |
---|
[3766] | 1186 | REAL(wp), DIMENSION(nxl:nxr,nys:nyn,nzb_do:nzt_do), INTENT(OUT) :: local_pf !< ToDo: can also be kind=sp |
---|
[3637] | 1187 | |
---|
| 1188 | |
---|
[3987] | 1189 | IF ( debug_output_timestep ) CALL debug_message( 'module-specific 2d data output', 'start' ) |
---|
| 1190 | |
---|
[3766] | 1191 | IF ( .NOT. found .AND. biometeorology ) THEN |
---|
| 1192 | CALL bio_data_output_2d( & |
---|
| 1193 | av, variable, found, grid, local_pf, two_d, nzb_do, nzt_do & |
---|
| 1194 | ) |
---|
| 1195 | ENDIF |
---|
[3637] | 1196 | |
---|
[3766] | 1197 | IF ( .NOT. found .AND. bulk_cloud_model ) THEN |
---|
| 1198 | CALL bcm_data_output_2d( & |
---|
| 1199 | av, variable, found, grid, mode, local_pf, two_d, nzb_do, nzt_do& |
---|
| 1200 | ) |
---|
| 1201 | ENDIF |
---|
[3637] | 1202 | |
---|
[3766] | 1203 | IF ( .NOT. found .AND. air_chemistry ) THEN |
---|
| 1204 | CALL chem_data_output_2d( & |
---|
| 1205 | av, variable, found, grid, mode, local_pf, two_d, nzb_do, nzt_do, fill_value & |
---|
| 1206 | ) |
---|
| 1207 | ENDIF |
---|
[3637] | 1208 | |
---|
[3766] | 1209 | IF ( .NOT. found .AND. gust_module_enabled ) THEN |
---|
| 1210 | CALL gust_data_output_2d( & |
---|
| 1211 | av, variable, found, grid, mode, local_pf, two_d, nzb_do, nzt_do, fill_value & |
---|
| 1212 | ) |
---|
| 1213 | ENDIF |
---|
[3637] | 1214 | |
---|
[3766] | 1215 | IF ( .NOT. found .AND. land_surface ) THEN |
---|
| 1216 | CALL lsm_data_output_2d( & |
---|
| 1217 | av, variable, found, grid, mode, local_pf, two_d, nzb_do, nzt_do& |
---|
| 1218 | ) |
---|
| 1219 | ENDIF |
---|
[3637] | 1220 | |
---|
[3766] | 1221 | IF ( .NOT. found .AND. ocean_mode ) THEN |
---|
| 1222 | CALL ocean_data_output_2d( & |
---|
| 1223 | av, variable, found, grid, mode, local_pf, nzb_do, nzt_do & |
---|
| 1224 | ) |
---|
| 1225 | ENDIF |
---|
[3637] | 1226 | |
---|
[3956] | 1227 | IF ( .NOT. found .AND. salsa ) THEN |
---|
| 1228 | CALL salsa_data_output_2d( & |
---|
[3766] | 1229 | av, variable, found, grid, mode, local_pf, two_d, nzb_do, nzt_do& |
---|
| 1230 | ) |
---|
| 1231 | ENDIF |
---|
[3637] | 1232 | |
---|
[3956] | 1233 | IF ( .NOT. found .AND. radiation ) THEN |
---|
| 1234 | CALL radiation_data_output_2d( & |
---|
[3766] | 1235 | av, variable, found, grid, mode, local_pf, two_d, nzb_do, nzt_do& |
---|
| 1236 | ) |
---|
| 1237 | ENDIF |
---|
[3637] | 1238 | |
---|
[3766] | 1239 | IF ( .NOT. found .AND. user_module_enabled ) THEN |
---|
| 1240 | CALL user_data_output_2d( & |
---|
| 1241 | av, variable, found, grid, local_pf, two_d, nzb_do, nzt_do & |
---|
| 1242 | ) |
---|
| 1243 | ENDIF |
---|
[3637] | 1244 | |
---|
[3987] | 1245 | IF ( debug_output_timestep ) CALL debug_message( 'module-specific 2d data output', 'end' ) |
---|
| 1246 | |
---|
| 1247 | |
---|
[3766] | 1248 | END SUBROUTINE module_interface_data_output_2d |
---|
[3637] | 1249 | |
---|
| 1250 | |
---|
| 1251 | !------------------------------------------------------------------------------! |
---|
| 1252 | ! |
---|
| 1253 | ! Description: |
---|
| 1254 | ! ------------ |
---|
| 1255 | !> Define module-specific 3D output variables |
---|
| 1256 | !------------------------------------------------------------------------------! |
---|
[3766] | 1257 | SUBROUTINE module_interface_data_output_3d( av, variable, found, local_pf, & |
---|
| 1258 | fill_value, resorted, nzb_do, nzt_do ) |
---|
[3637] | 1259 | |
---|
| 1260 | |
---|
[3766] | 1261 | INTEGER(iwp), INTENT(IN) :: av !< flag for (non-)average output |
---|
| 1262 | CHARACTER (LEN=*), INTENT(IN) :: variable !< variable name |
---|
| 1263 | LOGICAL, INTENT(INOUT) :: found !< flag if output variable is found |
---|
| 1264 | REAL(wp), INTENT(IN) :: fill_value !< ToDo: refactor |
---|
| 1265 | LOGICAL, INTENT(OUT) :: resorted !< flag if output has been resorted |
---|
| 1266 | INTEGER(iwp), INTENT(IN) :: nzb_do !< vertical output index (bottom) (usually 0) |
---|
| 1267 | INTEGER(iwp), INTENT(IN) :: nzt_do !< vertical output index (top) (usually nz_do3d) |
---|
[3637] | 1268 | |
---|
[3766] | 1269 | REAL(sp), DIMENSION(nxl:nxr,nys:nyn,nzb_do:nzt_do), INTENT(OUT) :: local_pf |
---|
[3637] | 1270 | |
---|
| 1271 | |
---|
[3987] | 1272 | IF ( debug_output_timestep ) CALL debug_message( 'module-specific 3d data output', 'start' ) |
---|
| 1273 | |
---|
[3766] | 1274 | IF ( .NOT. found .AND. biometeorology ) THEN |
---|
| 1275 | CALL bio_data_output_3d( av, variable, found, local_pf, nzb_do, nzt_do ) |
---|
| 1276 | resorted = .FALSE. |
---|
| 1277 | ENDIF |
---|
[3637] | 1278 | |
---|
[3766] | 1279 | IF ( .NOT. found .AND. bulk_cloud_model ) THEN |
---|
| 1280 | CALL bcm_data_output_3d( av, variable, found, local_pf, nzb_do, nzt_do ) |
---|
| 1281 | resorted = .TRUE. |
---|
| 1282 | ENDIF |
---|
[3637] | 1283 | |
---|
[3766] | 1284 | IF ( .NOT. found .AND. air_chemistry ) THEN |
---|
| 1285 | CALL chem_data_output_3d( av, variable, found, local_pf, fill_value, nzb_do, nzt_do ) |
---|
| 1286 | resorted = .TRUE. |
---|
| 1287 | ENDIF |
---|
[3637] | 1288 | |
---|
[3766] | 1289 | IF ( .NOT. found .AND. gust_module_enabled ) THEN |
---|
| 1290 | CALL gust_data_output_3d( av, variable, found, local_pf, fill_value, nzb_do, nzt_do ) |
---|
| 1291 | resorted = .TRUE. |
---|
| 1292 | ENDIF |
---|
[3744] | 1293 | |
---|
[3766] | 1294 | IF ( .NOT. found .AND. indoor_model ) THEN |
---|
| 1295 | CALL im_data_output_3d( av, variable, found, local_pf, fill_value, nzb_do, nzt_do ) |
---|
| 1296 | resorted = .TRUE. |
---|
| 1297 | ENDIF |
---|
[3637] | 1298 | |
---|
[3766] | 1299 | IF ( .NOT. found .AND. ocean_mode ) THEN |
---|
| 1300 | CALL ocean_data_output_3d( av, variable, found, local_pf, nzb_do, nzt_do ) |
---|
| 1301 | resorted = .TRUE. |
---|
| 1302 | ENDIF |
---|
[3637] | 1303 | |
---|
[3766] | 1304 | IF ( .NOT. found .AND. plant_canopy ) THEN |
---|
| 1305 | CALL pcm_data_output_3d( av, variable, found, local_pf, fill_value, nzb_do, nzt_do ) |
---|
| 1306 | resorted = .TRUE. |
---|
| 1307 | ENDIF |
---|
[3637] | 1308 | |
---|
[3956] | 1309 | IF ( .NOT. found .AND. salsa ) THEN |
---|
| 1310 | CALL salsa_data_output_3d( av, variable, found, local_pf, nzb_do, nzt_do ) |
---|
[3766] | 1311 | resorted = .TRUE. |
---|
| 1312 | ENDIF |
---|
[3637] | 1313 | |
---|
[3956] | 1314 | IF ( .NOT. found .AND. radiation ) THEN |
---|
| 1315 | CALL radiation_data_output_3d( av, variable, found, local_pf, nzb_do, nzt_do ) |
---|
[3766] | 1316 | resorted = .TRUE. |
---|
| 1317 | ENDIF |
---|
[3637] | 1318 | |
---|
[3766] | 1319 | IF ( .NOT. found .AND. user_module_enabled ) THEN |
---|
| 1320 | CALL user_data_output_3d( av, variable, found, local_pf, nzb_do, nzt_do ) |
---|
| 1321 | resorted = .TRUE. |
---|
| 1322 | ENDIF |
---|
[3637] | 1323 | |
---|
[3987] | 1324 | IF ( debug_output_timestep ) CALL debug_message( 'module-specific 3d data output', 'end' ) |
---|
[3637] | 1325 | |
---|
[3987] | 1326 | |
---|
[3766] | 1327 | END SUBROUTINE module_interface_data_output_3d |
---|
[3637] | 1328 | |
---|
| 1329 | |
---|
| 1330 | !------------------------------------------------------------------------------! |
---|
| 1331 | ! Description: |
---|
| 1332 | ! ------------ |
---|
| 1333 | !> Compute module-specific profile and timeseries data |
---|
| 1334 | !------------------------------------------------------------------------------! |
---|
[3766] | 1335 | SUBROUTINE module_interface_statistics( mode, sr, tn, dots_max ) |
---|
[3637] | 1336 | |
---|
| 1337 | |
---|
[3766] | 1338 | CHARACTER (LEN=*), INTENT(IN) :: mode !< statistical analysis mode |
---|
| 1339 | INTEGER(iwp), INTENT(IN) :: sr !< |
---|
| 1340 | INTEGER(iwp), INTENT(IN) :: tn !< |
---|
| 1341 | INTEGER(iwp), INTENT(IN) :: dots_max !< maximum number of timeseries |
---|
[3637] | 1342 | |
---|
[3987] | 1343 | |
---|
| 1344 | IF ( debug_output_timestep ) CALL debug_message( 'module-specific statistics', 'start' ) |
---|
| 1345 | |
---|
[3766] | 1346 | IF ( gust_module_enabled ) CALL gust_statistics( mode, sr, tn, dots_max ) |
---|
| 1347 | IF ( air_chemistry ) CALL chem_statistics( mode, sr, tn ) |
---|
| 1348 | IF ( user_module_enabled ) CALL user_statistics( mode, sr, tn ) |
---|
[3637] | 1349 | |
---|
[3987] | 1350 | IF ( debug_output_timestep ) CALL debug_message( 'module-specific statistics', 'end' ) |
---|
[3637] | 1351 | |
---|
[3987] | 1352 | |
---|
[3766] | 1353 | END SUBROUTINE module_interface_statistics |
---|
[3637] | 1354 | |
---|
| 1355 | |
---|
| 1356 | !------------------------------------------------------------------------------! |
---|
| 1357 | ! Description: |
---|
| 1358 | ! ------------ |
---|
| 1359 | !> Read module-specific restart data globaly shared by all MPI ranks |
---|
| 1360 | !------------------------------------------------------------------------------! |
---|
[3766] | 1361 | SUBROUTINE module_interface_rrd_global( found ) |
---|
[3637] | 1362 | |
---|
| 1363 | |
---|
[3806] | 1364 | LOGICAL, INTENT(INOUT) :: found !< flag if variable was found |
---|
[3637] | 1365 | |
---|
[3987] | 1366 | |
---|
| 1367 | IF ( debug_output ) CALL debug_message( 'module-specific read global restart data', 'start' ) |
---|
| 1368 | |
---|
[3766] | 1369 | IF ( .NOT. found ) CALL bio_rrd_global( found ) ! ToDo: change interface to pass variable |
---|
| 1370 | IF ( .NOT. found ) CALL bcm_rrd_global( found ) ! ToDo: change interface to pass variable |
---|
| 1371 | IF ( .NOT. found ) CALL flight_rrd_global( found ) ! ToDo: change interface to pass variable |
---|
| 1372 | IF ( .NOT. found ) CALL gust_rrd_global( found ) ! ToDo: change interface to pass variable |
---|
| 1373 | IF ( .NOT. found ) CALL ocean_rrd_global( found ) ! ToDo: change interface to pass variable |
---|
| 1374 | IF ( .NOT. found ) CALL stg_rrd_global ( found ) ! ToDo: change interface to pass variable |
---|
| 1375 | IF ( .NOT. found ) CALL wtm_rrd_global( found ) ! ToDo: change interface to pass variable |
---|
| 1376 | IF ( .NOT. found ) CALL surface_data_output_rrd_global( found ) |
---|
| 1377 | IF ( .NOT. found ) CALL user_rrd_global( found ) ! ToDo: change interface to pass variable |
---|
[3637] | 1378 | |
---|
[3987] | 1379 | IF ( debug_output ) CALL debug_message( 'module-specific read global restart data', 'end' ) |
---|
[3637] | 1380 | |
---|
[3987] | 1381 | |
---|
[3766] | 1382 | END SUBROUTINE module_interface_rrd_global |
---|
[3637] | 1383 | |
---|
| 1384 | |
---|
| 1385 | !------------------------------------------------------------------------------! |
---|
| 1386 | ! Description: |
---|
| 1387 | ! ------------ |
---|
| 1388 | !> Write module-specific restart data globaly shared by all MPI ranks |
---|
| 1389 | !------------------------------------------------------------------------------! |
---|
[3766] | 1390 | SUBROUTINE module_interface_wrd_global |
---|
[3637] | 1391 | |
---|
| 1392 | |
---|
[3987] | 1393 | IF ( debug_output ) CALL debug_message( 'module-specific write global restart data', 'start' ) |
---|
| 1394 | |
---|
[3766] | 1395 | IF ( biometeorology ) CALL bio_wrd_global |
---|
| 1396 | IF ( bulk_cloud_model ) CALL bcm_wrd_global |
---|
| 1397 | IF ( virtual_flight ) CALL flight_wrd_global |
---|
| 1398 | IF ( gust_module_enabled ) CALL gust_wrd_global |
---|
| 1399 | IF ( ocean_mode ) CALL ocean_wrd_global |
---|
| 1400 | IF ( syn_turb_gen ) CALL stg_wrd_global |
---|
| 1401 | IF ( wind_turbine ) CALL wtm_wrd_global |
---|
| 1402 | IF ( surface_output ) CALL surface_data_output_wrd_global |
---|
| 1403 | IF ( user_module_enabled ) CALL user_wrd_global |
---|
[3637] | 1404 | |
---|
[3987] | 1405 | IF ( debug_output ) CALL debug_message( 'module-specific write global restart data', 'end' ) |
---|
[3637] | 1406 | |
---|
[3987] | 1407 | |
---|
[3766] | 1408 | END SUBROUTINE module_interface_wrd_global |
---|
[3637] | 1409 | |
---|
| 1410 | |
---|
| 1411 | !------------------------------------------------------------------------------! |
---|
| 1412 | ! Description: |
---|
| 1413 | ! ------------ |
---|
| 1414 | !> Read module-specific restart data specific to local MPI ranks |
---|
| 1415 | !------------------------------------------------------------------------------! |
---|
[3767] | 1416 | SUBROUTINE module_interface_rrd_local( map_index, & |
---|
[3766] | 1417 | nxlf, nxlc, nxl_on_file, & |
---|
| 1418 | nxrf, nxrc, nxr_on_file, & |
---|
| 1419 | nynf, nync, nyn_on_file, & |
---|
| 1420 | nysf, nysc, nys_on_file, & |
---|
| 1421 | tmp_2d, tmp_3d, found ) |
---|
[3637] | 1422 | |
---|
| 1423 | |
---|
[3806] | 1424 | INTEGER(iwp), INTENT(IN) :: map_index !< |
---|
| 1425 | INTEGER(iwp), INTENT(IN) :: nxlc !< |
---|
| 1426 | INTEGER(iwp), INTENT(IN) :: nxlf !< |
---|
| 1427 | INTEGER(iwp), INTENT(IN) :: nxl_on_file !< |
---|
| 1428 | INTEGER(iwp), INTENT(IN) :: nxrc !< |
---|
| 1429 | INTEGER(iwp), INTENT(IN) :: nxrf !< |
---|
| 1430 | INTEGER(iwp), INTENT(IN) :: nxr_on_file !< |
---|
| 1431 | INTEGER(iwp), INTENT(IN) :: nync !< |
---|
| 1432 | INTEGER(iwp), INTENT(IN) :: nynf !< |
---|
| 1433 | INTEGER(iwp), INTENT(IN) :: nyn_on_file !< |
---|
| 1434 | INTEGER(iwp), INTENT(IN) :: nysc !< |
---|
| 1435 | INTEGER(iwp), INTENT(IN) :: nysf !< |
---|
| 1436 | INTEGER(iwp), INTENT(IN) :: nys_on_file !< |
---|
| 1437 | LOGICAL, INTENT(INOUT) :: found !< flag if variable was found |
---|
[3637] | 1438 | |
---|
[3766] | 1439 | REAL(wp), DIMENSION(nys_on_file-nbgp:nyn_on_file+nbgp,nxl_on_file-nbgp:nxr_on_file+nbgp), INTENT(OUT) :: tmp_2d !< |
---|
| 1440 | REAL(wp), DIMENSION(nzb:nzt+1,nys_on_file-nbgp:nyn_on_file+nbgp,nxl_on_file-nbgp:nxr_on_file+nbgp), INTENT(OUT) :: tmp_3d !< |
---|
[3637] | 1441 | |
---|
| 1442 | |
---|
[3987] | 1443 | IF ( debug_output ) CALL debug_message( 'module-specific read local restart data', 'start' ) |
---|
| 1444 | |
---|
[3766] | 1445 | IF ( .NOT. found ) CALL bio_rrd_local( & |
---|
| 1446 | found & |
---|
| 1447 | ) |
---|
[3650] | 1448 | |
---|
[3766] | 1449 | IF ( .NOT. found ) CALL bcm_rrd_local( & |
---|
[3767] | 1450 | map_index, & |
---|
[3766] | 1451 | nxlf, nxlc, nxl_on_file, & |
---|
| 1452 | nxrf, nxrc, nxr_on_file, & |
---|
| 1453 | nynf, nync, nyn_on_file, & |
---|
| 1454 | nysf, nysc, nys_on_file, & |
---|
| 1455 | tmp_2d, tmp_3d, found & |
---|
| 1456 | ) ! ToDo: change interface to pass variable |
---|
[3637] | 1457 | |
---|
[3766] | 1458 | IF ( .NOT. found ) CALL chem_rrd_local( & |
---|
[3767] | 1459 | map_index, & |
---|
[3766] | 1460 | nxlf, nxlc, nxl_on_file, & |
---|
| 1461 | nxrf, nxrc, nxr_on_file, & |
---|
| 1462 | nynf, nync, nyn_on_file, & |
---|
| 1463 | nysf, nysc, nys_on_file, & |
---|
| 1464 | tmp_3d, found & |
---|
| 1465 | ) ! ToDo: change interface to pass variable |
---|
[3637] | 1466 | |
---|
[3766] | 1467 | IF ( .NOT. found ) CALL gust_rrd_local( & |
---|
[3767] | 1468 | map_index, & |
---|
[3766] | 1469 | nxlf, nxlc, nxl_on_file, & |
---|
| 1470 | nxrf, nxrc, nxr_on_file, & |
---|
| 1471 | nynf, nync, nyn_on_file, & |
---|
| 1472 | nysf, nysc, nys_on_file, & |
---|
| 1473 | tmp_2d, tmp_3d, found & |
---|
| 1474 | ) ! ToDo: change interface to pass variable |
---|
[3637] | 1475 | |
---|
[3766] | 1476 | IF ( .NOT. found ) CALL lsm_rrd_local( & |
---|
[3767] | 1477 | map_index, & |
---|
[3766] | 1478 | nxlf, nxlc, nxl_on_file, & |
---|
| 1479 | nxrf, nxrc, nxr_on_file, & |
---|
| 1480 | nynf, nync, nyn_on_file, & |
---|
| 1481 | nysf, nysc, nys_on_file, & |
---|
| 1482 | tmp_2d, found & |
---|
| 1483 | ) ! ToDo: change interface to pass variable |
---|
[3637] | 1484 | |
---|
[3766] | 1485 | IF ( .NOT. found ) CALL ocean_rrd_local( & |
---|
[3767] | 1486 | map_index, & |
---|
[3766] | 1487 | nxlf, nxlc, nxl_on_file, & |
---|
| 1488 | nxrf, nxrc, nxr_on_file, & |
---|
| 1489 | nynf, nync, nyn_on_file, & |
---|
| 1490 | nysf, nysc, nys_on_file, & |
---|
[3767] | 1491 | tmp_3d, found & |
---|
[3766] | 1492 | ) ! ToDo: change interface to pass variable |
---|
[3637] | 1493 | |
---|
[3766] | 1494 | IF ( .NOT. found ) CALL radiation_rrd_local( & |
---|
[3767] | 1495 | map_index, & |
---|
[3766] | 1496 | nxlf, nxlc, nxl_on_file, & |
---|
| 1497 | nxrf, nxrc, nxr_on_file, & |
---|
| 1498 | nynf, nync, nyn_on_file, & |
---|
| 1499 | nysf, nysc, nys_on_file, & |
---|
| 1500 | tmp_2d, tmp_3d, found & |
---|
| 1501 | ) ! ToDo: change interface to pass variable |
---|
[3637] | 1502 | |
---|
[3766] | 1503 | IF ( .NOT. found ) CALL salsa_rrd_local( & |
---|
[3767] | 1504 | map_index, & |
---|
[3766] | 1505 | nxlf, nxlc, nxl_on_file, & |
---|
| 1506 | nxrf, nxrc, nxr_on_file, & |
---|
| 1507 | nynf, nync, nyn_on_file, & |
---|
| 1508 | nysf, nysc, nys_on_file, & |
---|
| 1509 | tmp_3d, found & |
---|
| 1510 | ) ! ToDo: change interface to pass variable |
---|
[3637] | 1511 | |
---|
[3766] | 1512 | IF ( .NOT. found ) CALL usm_rrd_local( & |
---|
[3767] | 1513 | map_index, & |
---|
[3766] | 1514 | nxlf, nxlc, nxl_on_file, & |
---|
[3767] | 1515 | nxrf, nxr_on_file, & |
---|
| 1516 | nynf, nyn_on_file, & |
---|
[3766] | 1517 | nysf, nysc, nys_on_file, & |
---|
| 1518 | found & |
---|
| 1519 | ) ! ToDo: change interface to pass variable |
---|
[3762] | 1520 | ! |
---|
[3766] | 1521 | !-- Surface data do not need overlap data, so do not pass these information. |
---|
| 1522 | IF ( .NOT. found ) CALL surface_data_output_rrd_local( found ) |
---|
[3731] | 1523 | |
---|
[3766] | 1524 | IF ( .NOT. found ) CALL user_rrd_local( & |
---|
[3767] | 1525 | map_index, & |
---|
[3766] | 1526 | nxlf, nxlc, nxl_on_file, & |
---|
| 1527 | nxrf, nxrc, nxr_on_file, & |
---|
| 1528 | nynf, nync, nyn_on_file, & |
---|
| 1529 | nysf, nysc, nys_on_file, & |
---|
| 1530 | tmp_3d, found & |
---|
| 1531 | ) ! ToDo: change interface to pass variable |
---|
[3637] | 1532 | |
---|
[3987] | 1533 | IF ( debug_output ) CALL debug_message( 'module-specific read local restart data', 'end' ) |
---|
[3637] | 1534 | |
---|
[3987] | 1535 | |
---|
[3766] | 1536 | END SUBROUTINE module_interface_rrd_local |
---|
[3637] | 1537 | |
---|
| 1538 | |
---|
| 1539 | !------------------------------------------------------------------------------! |
---|
| 1540 | ! Description: |
---|
| 1541 | ! ------------ |
---|
| 1542 | !> Write module-specific restart data specific to local MPI ranks |
---|
| 1543 | !------------------------------------------------------------------------------! |
---|
[3766] | 1544 | SUBROUTINE module_interface_wrd_local |
---|
[3637] | 1545 | |
---|
| 1546 | |
---|
[3987] | 1547 | IF ( debug_output ) CALL debug_message( 'module-specific write local restart data', 'start' ) |
---|
| 1548 | |
---|
[3766] | 1549 | IF ( biometeorology ) CALL bio_wrd_local |
---|
| 1550 | IF ( bulk_cloud_model ) CALL bcm_wrd_local |
---|
| 1551 | IF ( air_chemistry ) CALL chem_wrd_local |
---|
| 1552 | IF ( gust_module_enabled ) CALL gust_wrd_local |
---|
| 1553 | IF ( land_surface ) CALL lsm_wrd_local |
---|
| 1554 | IF ( ocean_mode ) CALL ocean_wrd_local |
---|
| 1555 | IF ( radiation ) CALL radiation_wrd_local |
---|
| 1556 | IF ( salsa ) CALL salsa_wrd_local |
---|
| 1557 | IF ( urban_surface ) CALL usm_wrd_local |
---|
| 1558 | IF ( surface_output ) CALL surface_data_output_wrd_local |
---|
| 1559 | IF ( user_module_enabled ) CALL user_wrd_local |
---|
[3637] | 1560 | |
---|
[3987] | 1561 | IF ( debug_output ) CALL debug_message( 'module-specific write local restart data', 'end' ) |
---|
[3637] | 1562 | |
---|
[3987] | 1563 | |
---|
[3766] | 1564 | END SUBROUTINE module_interface_wrd_local |
---|
[3637] | 1565 | |
---|
| 1566 | |
---|
[3687] | 1567 | !------------------------------------------------------------------------------! |
---|
| 1568 | ! Description: |
---|
| 1569 | ! ------------ |
---|
| 1570 | !> Perform module-specific last actions before the program terminates |
---|
| 1571 | !------------------------------------------------------------------------------! |
---|
[3766] | 1572 | SUBROUTINE module_interface_last_actions |
---|
[3687] | 1573 | |
---|
| 1574 | |
---|
[3987] | 1575 | IF ( debug_output ) CALL debug_message( 'module-specific last actions', 'start' ) |
---|
| 1576 | |
---|
[3766] | 1577 | IF ( virtual_measurement ) CALL vm_last_actions |
---|
| 1578 | IF ( user_module_enabled ) CALL user_last_actions |
---|
[3687] | 1579 | |
---|
[3987] | 1580 | IF ( debug_output ) CALL debug_message( 'module-specific last actions', 'end' ) |
---|
[3687] | 1581 | |
---|
[3987] | 1582 | |
---|
[3766] | 1583 | END SUBROUTINE module_interface_last_actions |
---|
[3687] | 1584 | |
---|
[3766] | 1585 | |
---|
| 1586 | END MODULE module_interface |
---|