Ignore:
Timestamp:
Mar 4, 2020 7:20:35 PM (4 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/salsa_mod.f90

    r4417 r4441  
    2121! Current revisions:
    2222! -----------------
    23 !
     23! Change order of dimension in surface array %frac to allow for better
     24! vectorization.
    2425!
    2526! Former revisions:
     
    27122713!
    27132714!--       Vegetation (LSM):
    2714           IF ( surf%frac(ind_veg_wall,m) > 0 )  THEN
     2715          IF ( surf%frac(m,ind_veg_wall) > 0 )  THEN
    27152716             veg_type_palm = surf%vegetation_type(m)
    27162717             SELECT CASE ( veg_type_palm )
     
    27582759!
    27592760!--       Pavement (LSM):
    2760           IF ( surf%frac(ind_pav_green,m) > 0 )  THEN
     2761          IF ( surf%frac(m,ind_pav_green) > 0 )  THEN
    27612762             pav_type_palm = surf%pavement_type(m)
    27622763             IF ( pav_type_palm == 0 )  THEN  ! error
     
    27692770!
    27702771!--       Water (LSM):
    2771           IF ( surf%frac(ind_wat_win,m) > 0 )  THEN
     2772          IF ( surf%frac(m,ind_wat_win) > 0 )  THEN
    27722773             wat_type_palm = surf%water_type(m)
    27732774             IF ( wat_type_palm == 0 )  THEN  ! error
     
    27842785!
    27852786!--       Wall surfaces (USM):
    2786           IF ( surf%frac(ind_veg_wall,m) > 0 )  THEN
     2787          IF ( surf%frac(m,ind_veg_wall) > 0 )  THEN
    27872788             match_veg_wall(m) = 15  ! urban in Z01
    27882789          ENDIF
    27892790!
    27902791!--       Green walls and roofs (USM):
    2791           IF ( surf%frac(ind_pav_green,m) > 0 )  THEN
     2792          IF ( surf%frac(m,ind_pav_green) > 0 )  THEN
    27922793             match_pav_green(m) =  6 ! (short) grass in Z01
    27932794          ENDIF
    27942795!
    27952796!--       Windows (USM):
    2796           IF ( surf%frac(ind_wat_win,m) > 0 )  THEN
     2797          IF ( surf%frac(m,ind_wat_win) > 0 )  THEN
    27972798             match_wat_win(m) = 15  ! urban in Z01
    27982799          ENDIF
     
    43864387                END SELECT
    43874388             ENDDO
    4388              depo_sum = depo_sum + surf%frac(ind_pav_green,m) * depo
     4389             depo_sum = depo_sum + surf%frac(m,ind_pav_green) * depo
    43894390          ENDIF
    43904391
     
    44174418                END SELECT
    44184419             ENDDO
    4419              depo_sum = depo_sum + surf%frac(ind_veg_wall,m) * depo
     4420             depo_sum = depo_sum + surf%frac(m,ind_veg_wall) * depo
    44204421          ENDIF
    44214422
     
    44484449                END SELECT
    44494450             ENDDO
    4450              depo_sum = depo_sum + surf%frac(ind_wat_win,m) * depo
     4451             depo_sum = depo_sum + surf%frac(m,ind_wat_win) * depo
    44514452          ENDIF
    44524453
Note: See TracChangeset for help on using the changeset viewer.