Changeset 4441 for palm/trunk/SOURCE/chemistry_model_mod.f90
- Timestamp:
- Mar 4, 2020 7:20:35 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/chemistry_model_mod.f90
r4403 r4441 22 22 ! Current revisions: 23 23 ! ----------------- 24 ! 24 ! Change order of dimension in surface array %frac to allow for better 25 ! vectorization. 25 26 ! 26 27 ! Former revisions: … … 3533 3534 ! 3534 3535 !-- Get land use for i,j and assign to DEPAC lu 3535 IF ( surf_lsm_h%frac( ind_veg_wall,m) > 0 ) THEN3536 IF ( surf_lsm_h%frac(m,ind_veg_wall) > 0 ) THEN 3536 3537 luv_palm = surf_lsm_h%vegetation_type(m) 3537 3538 IF ( luv_palm == ind_luv_user ) THEN … … 3577 3578 ENDIF 3578 3579 3579 IF ( surf_lsm_h%frac( ind_pav_green,m) > 0 ) THEN3580 IF ( surf_lsm_h%frac(m,ind_pav_green) > 0 ) THEN 3580 3581 lup_palm = surf_lsm_h%pavement_type(m) 3581 3582 IF ( lup_palm == ind_lup_user ) THEN … … 3615 3616 ENDIF 3616 3617 3617 IF ( surf_lsm_h%frac( ind_wat_win,m) > 0 ) THEN3618 IF ( surf_lsm_h%frac(m,ind_wat_win) > 0 ) THEN 3618 3619 luw_palm = surf_lsm_h%water_type(m) 3619 3620 IF ( luw_palm == ind_luw_user ) THEN … … 3675 3676 ! 3676 3677 !-- Vegetation 3677 IF ( surf_lsm_h%frac( ind_veg_wall,m) > 0 ) THEN3678 IF ( surf_lsm_h%frac(m,ind_veg_wall) > 0 ) THEN 3678 3679 3679 3680 ! … … 3812 3813 ! 3813 3814 !-- Pavement 3814 IF ( surf_lsm_h%frac( ind_pav_green,m) > 0 ) THEN3815 IF ( surf_lsm_h%frac(m,ind_pav_green) > 0 ) THEN 3815 3816 ! 3816 3817 !-- No vegetation on pavements: … … 3939 3940 ! 3940 3941 !-- Water 3941 IF ( surf_lsm_h%frac( ind_wat_win,m) > 0 ) THEN3942 IF ( surf_lsm_h%frac(m,ind_wat_win) > 0 ) THEN 3942 3943 ! 3943 3944 !-- No vegetation on water: … … 4073 4074 DO lsp = 1, nspec 4074 4075 4075 bud(lsp) = surf_lsm_h%frac( ind_veg_wall,m) * bud_luv(lsp) + &4076 surf_lsm_h%frac( ind_pav_green,m) * bud_lup(lsp) + &4077 surf_lsm_h%frac( ind_wat_win,m) * bud_luw(lsp)4076 bud(lsp) = surf_lsm_h%frac(m,ind_veg_wall) * bud_luv(lsp) + & 4077 surf_lsm_h%frac(m,ind_pav_green) * bud_lup(lsp) + & 4078 surf_lsm_h%frac(m,ind_wat_win) * bud_luw(lsp) 4078 4079 ! 4079 4080 !-- Compute new concentration: … … 4121 4122 ! 4122 4123 !-- Get land use for i,j and assign to DEPAC lu 4123 IF ( surf_usm_h%frac( ind_pav_green,m) > 0 ) THEN4124 IF ( surf_usm_h%frac(m,ind_pav_green) > 0 ) THEN 4124 4125 ! 4125 4126 !-- For green urban surfaces (e.g. green roofs … … 4168 4169 ENDIF 4169 4170 4170 IF ( surf_usm_h%frac( ind_veg_wall,m) > 0 ) THEN4171 IF ( surf_usm_h%frac(m,ind_veg_wall) > 0 ) THEN 4171 4172 ! 4172 4173 !-- For walls in USM assume concrete walls/roofs, … … 4210 4211 ENDIF 4211 4212 4212 IF ( surf_usm_h%frac( ind_wat_win,m) > 0 ) THEN4213 IF ( surf_usm_h%frac(m,ind_wat_win) > 0 ) THEN 4213 4214 ! 4214 4215 !-- For windows in USM assume metal as this is … … 4295 4296 ! 4296 4297 !-- Walls/roofs 4297 IF ( surf_usm_h%frac( ind_veg_wall,m) > 0 ) THEN4298 IF ( surf_usm_h%frac(m,ind_veg_wall) > 0 ) THEN 4298 4299 ! 4299 4300 !-- No vegetation on non-green walls: … … 4426 4427 ! 4427 4428 !-- Green usm surfaces 4428 IF ( surf_usm_h%frac( ind_pav_green,m) > 0 ) THEN4429 IF ( surf_usm_h%frac(m,ind_pav_green) > 0 ) THEN 4429 4430 4430 4431 ! … … 4564 4565 ! 4565 4566 !-- Windows 4566 IF ( surf_usm_h%frac( ind_wat_win,m) > 0 ) THEN4567 IF ( surf_usm_h%frac(m,ind_wat_win) > 0 ) THEN 4567 4568 ! 4568 4569 !-- No vegetation on windows: … … 4696 4697 4697 4698 4698 bud(lsp) = surf_usm_h%frac( ind_veg_wall,m) * bud_luu(lsp) + &4699 surf_usm_h%frac( ind_pav_green,m) * bud_lug(lsp) + &4700 surf_usm_h%frac( ind_wat_win,m) * bud_lud(lsp)4699 bud(lsp) = surf_usm_h%frac(m,ind_veg_wall) * bud_luu(lsp) + & 4700 surf_usm_h%frac(m,ind_pav_green) * bud_lug(lsp) + & 4701 surf_usm_h%frac(m,ind_wat_win) * bud_lud(lsp) 4701 4702 ! 4702 4703 !-- Compute new concentration
Note: See TracChangeset
for help on using the changeset viewer.