Changeset 3877
- Timestamp:
- Apr 8, 2019 7:09:16 PM (6 years ago)
- Location:
- palm/trunk/SOURCE
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/Makefile
r3876 r3877 866 866 chem_gasphase_mod.o \ 867 867 chem_modules.o \ 868 chem_photolysis_mod.o \ 868 869 date_and_time_mod.o \ 869 870 diffusion_s.o \ -
palm/trunk/SOURCE/chem_modules.f90
r3876 r3877 80 80 ! 81 81 MODULE chem_modules 82 83 USE control_parameters, &84 ONLY: varnamelength85 82 86 83 USE kinds -
palm/trunk/SOURCE/chemistry_model_mod.f90
r3876 r3877 300 300 ONLY: bc_lr_cyc, bc_ns_cyc, dt_3d, humidity, initializing_actions, message_string, & 301 301 omega, tsc, intermediate_timestep_count, intermediate_timestep_count_max, & 302 max_pr_user, timestep_scheme, use_prescribed_profile_data, ws_scheme_sca 302 max_pr_user, timestep_scheme, use_prescribed_profile_data, ws_scheme_sca, air_chemistry 303 303 304 304 USE arrays_3d, & … … 310 310 311 311 USE chem_modules 312 313 USE chem_photolysis_mod, & 314 ONLY: photolysis_control 312 315 313 316 USE statistics … … 478 481 END INTERFACE chem_parin 479 482 483 INTERFACE chem_actions 484 MODULE PROCEDURE chem_actions 485 MODULE PROCEDURE chem_actions_ij 486 END INTERFACE chem_actions 487 480 488 INTERFACE chem_prognostic_equations 481 489 MODULE PROCEDURE chem_prognostic_equations … … 574 582 chem_define_netcdf_grid, chem_header, chem_init, chem_init_arrays, & 575 583 chem_init_profiles, chem_integrate, chem_parin, & 576 chem_ prognostic_equations, chem_rrd_local,&584 chem_actions, chem_prognostic_equations, chem_rrd_local, & 577 585 chem_statistics, chem_swap_timelevel, chem_wrd_local, chem_depo 578 586 … … 1084 1092 USE arrays_3d 1085 1093 USE control_parameters, & 1086 ONLY: air_chemistry,data_output_pr, message_string1094 ONLY: data_output_pr, message_string 1087 1095 USE indices 1088 1096 USE profil_parameter … … 2281 2289 2282 2290 END SUBROUTINE chem_parin 2291 2292 2293 !------------------------------------------------------------------------------! 2294 ! Description: 2295 ! ------------ 2296 !> Call for all grid points 2297 !------------------------------------------------------------------------------! 2298 SUBROUTINE chem_actions( location ) 2299 2300 2301 CHARACTER (LEN=*), INTENT(IN) :: location !< call location string 2302 2303 SELECT CASE ( location ) 2304 2305 CASE ( 'before_prognostic_equations' ) 2306 ! 2307 !-- Chemical reactions and deposition 2308 IF ( chem_gasphase_on ) THEN 2309 ! 2310 !-- If required, calculate photolysis frequencies - 2311 !-- UNFINISHED: Why not before the intermediate timestep loop? 2312 IF ( intermediate_timestep_count == 1 ) THEN 2313 CALL photolysis_control 2314 ENDIF 2315 2316 ENDIF 2317 2318 CASE DEFAULT 2319 CONTINUE 2320 2321 END SELECT 2322 2323 END SUBROUTINE chem_actions 2324 2325 2326 !------------------------------------------------------------------------------! 2327 ! Description: 2328 ! ------------ 2329 !> Call for grid points i,j 2330 !------------------------------------------------------------------------------! 2331 2332 SUBROUTINE chem_actions_ij( i, j, location ) 2333 2334 2335 INTEGER(iwp), INTENT(IN) :: i !< grid index in x-direction 2336 INTEGER(iwp), INTENT(IN) :: j !< grid index in y-direction 2337 CHARACTER (LEN=*), INTENT(IN) :: location !< call location string 2338 INTEGER(iwp) :: dummy !< call location string 2339 2340 IF ( air_chemistry ) dummy = i + j 2341 2342 SELECT CASE ( location ) 2343 2344 CASE DEFAULT 2345 CONTINUE 2346 2347 END SELECT 2348 2349 2350 END SUBROUTINE chem_actions_ij 2283 2351 2284 2352 -
palm/trunk/SOURCE/module_interface.f90
r3875 r3877 166 166 chem_init, & 167 167 chem_header, & 168 chem_actions, & 168 169 chem_swap_timelevel, & 169 170 chem_3d_data_averaging, & … … 889 890 890 891 IF ( bulk_cloud_model ) CALL bcm_actions( location ) 892 IF ( air_chemistry ) CALL chem_actions( location ) 891 893 IF ( gust_module_enabled ) CALL gust_actions( location ) 892 894 IF ( ocean_mode ) CALL ocean_actions( location ) … … 913 915 914 916 IF ( bulk_cloud_model ) CALL bcm_actions( i, j, location ) 917 IF ( air_chemistry ) CALL chem_actions( i, j, location ) 915 918 IF ( gust_module_enabled ) CALL gust_actions( i, j, location ) 916 919 IF ( ocean_mode ) CALL ocean_actions( i, j, location ) -
palm/trunk/SOURCE/prognostic_equations.f90
r3876 r3877 394 394 ONLY: nspec, nvar, spc_names 395 395 396 USE chem_photolysis_mod, &397 ONLY: photolysis_control398 399 396 USE chemistry_model_mod, & 400 397 ONLY: chem_boundary_conds, chem_depo, chem_integrate, & … … 536 533 !-- concentrations of chemical species 537 534 IF ( air_chemistry ) THEN 538 lsp_usr = 1539 535 ! 540 536 !-- Chemical reactions and deposition 541 537 IF ( chem_gasphase_on ) THEN 542 !543 !-- If required, calculate photolysis frequencies -544 !-- UNFINISHED: Why not before the intermediate timestep loop?545 IF ( intermediate_timestep_count == 1 ) THEN546 CALL photolysis_control547 ENDIF548 538 549 539 IF ( intermediate_timestep_count == 1 .OR. &
Note: See TracChangeset
for help on using the changeset viewer.