Ignore:
Timestamp:
Mar 4, 2020 7:20:35 PM (5 years ago)
Author:
suehring
Message:

Change order of dimension in surface arrays %frac, %emissivity and %albedo to allow for better vectorization in the radiation interactions; Set back turbulent length scale to 8 x grid spacing in the parametrized mode for the synthetic turbulence generator (was accidentally changed in last commit)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • palm/trunk/SOURCE/chemistry_model_mod.f90

    r4403 r4441  
    2222! Current revisions:
    2323! -----------------
    24 !
     24! Change order of dimension in surface array %frac to allow for better
     25! vectorization.
    2526!
    2627! Former revisions:
     
    35333534!
    35343535!--    Get land use for i,j and assign to DEPAC lu
    3535        IF ( surf_lsm_h%frac(ind_veg_wall,m) > 0 )  THEN
     3536       IF ( surf_lsm_h%frac(m,ind_veg_wall) > 0 )  THEN
    35363537          luv_palm = surf_lsm_h%vegetation_type(m)
    35373538          IF ( luv_palm == ind_luv_user )  THEN
     
    35773578       ENDIF
    35783579
    3579        IF ( surf_lsm_h%frac(ind_pav_green,m) > 0 )  THEN
     3580       IF ( surf_lsm_h%frac(m,ind_pav_green) > 0 )  THEN
    35803581          lup_palm = surf_lsm_h%pavement_type(m)
    35813582          IF ( lup_palm == ind_lup_user )  THEN
     
    36153616       ENDIF
    36163617
    3617        IF ( surf_lsm_h%frac(ind_wat_win,m) > 0 )  THEN
     3618       IF ( surf_lsm_h%frac(m,ind_wat_win) > 0 )  THEN
    36183619          luw_palm = surf_lsm_h%water_type(m)     
    36193620          IF ( luw_palm == ind_luw_user )  THEN
     
    36753676!
    36763677!--    Vegetation
    3677        IF ( surf_lsm_h%frac(ind_veg_wall,m) > 0 )  THEN
     3678       IF ( surf_lsm_h%frac(m,ind_veg_wall) > 0 )  THEN
    36783679
    36793680!
     
    38123813!
    38133814!--    Pavement
    3814        IF ( surf_lsm_h%frac(ind_pav_green,m) > 0 )  THEN
     3815       IF ( surf_lsm_h%frac(m,ind_pav_green) > 0 )  THEN
    38153816!
    38163817!--       No vegetation on pavements:
     
    39393940!
    39403941!--    Water
    3941        IF ( surf_lsm_h%frac(ind_wat_win,m) > 0 )  THEN
     3942       IF ( surf_lsm_h%frac(m,ind_wat_win) > 0 )  THEN
    39423943!
    39433944!--       No vegetation on water:
     
    40734074       DO  lsp = 1, nspec
    40744075
    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)
    40784079!
    40794080!--       Compute new concentration:
     
    41214122!
    41224123!--    Get land use for i,j and assign to DEPAC lu
    4123        IF ( surf_usm_h%frac(ind_pav_green,m) > 0 )  THEN
     4124       IF ( surf_usm_h%frac(m,ind_pav_green) > 0 )  THEN
    41244125!
    41254126!--       For green urban surfaces (e.g. green roofs
     
    41684169       ENDIF
    41694170
    4170        IF ( surf_usm_h%frac(ind_veg_wall,m) > 0 )  THEN
     4171       IF ( surf_usm_h%frac(m,ind_veg_wall) > 0 )  THEN
    41714172!
    41724173!--       For walls in USM assume concrete walls/roofs,
     
    42104211       ENDIF
    42114212
    4212        IF ( surf_usm_h%frac(ind_wat_win,m) > 0 )  THEN
     4213       IF ( surf_usm_h%frac(m,ind_wat_win) > 0 )  THEN
    42134214!
    42144215!--       For windows in USM assume metal as this is
     
    42954296!
    42964297!--    Walls/roofs
    4297        IF ( surf_usm_h%frac(ind_veg_wall,m) > 0 )  THEN
     4298       IF ( surf_usm_h%frac(m,ind_veg_wall) > 0 )  THEN
    42984299!
    42994300!--       No vegetation on non-green walls:
     
    44264427!
    44274428!--    Green usm surfaces
    4428        IF ( surf_usm_h%frac(ind_pav_green,m) > 0 )  THEN
     4429       IF ( surf_usm_h%frac(m,ind_pav_green) > 0 )  THEN
    44294430
    44304431!
     
    45644565!
    45654566!--    Windows
    4566        IF ( surf_usm_h%frac(ind_wat_win,m) > 0 )  THEN
     4567       IF ( surf_usm_h%frac(m,ind_wat_win) > 0 )  THEN
    45674568!
    45684569!--       No vegetation on windows:
     
    46964697
    46974698
    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)
    47014702!
    47024703!--       Compute new concentration
Note: See TracChangeset for help on using the changeset viewer.