Ignore:
Timestamp:
Sep 9, 2020 8:27:58 PM (4 years ago)
Author:
pavelkrc
Message:

Radiative transfer model RTM version 4.1

File:
1 edited

Legend:

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

    r4648 r4671  
    2424! -----------------
    2525! $Id$
     26! Implementation of downward facing USM and LSM surfaces
     27!
     28! 4648 2020-08-25 07:52:08Z raasch
    2629! file re-formatted to follow the PALM coding standard
    2730!
     
    16311634       IF ( use_surface_fluxes  .AND.  constant_heatflux  .AND.  random_heatflux )  THEN
    16321635          IF ( surf_def_h(0)%ns >= 1 )  CALL disturb_heatflux( surf_def_h(0) )
    1633           IF ( surf_lsm_h%ns    >= 1 )  CALL disturb_heatflux( surf_lsm_h    )
    1634           IF ( surf_usm_h%ns    >= 1 )  CALL disturb_heatflux( surf_usm_h    )
     1636          IF ( surf_lsm_h(0)%ns >= 1 )  CALL disturb_heatflux( surf_lsm_h(0) )
     1637          IF ( surf_usm_h(0)%ns >= 1 )  CALL disturb_heatflux( surf_usm_h(0) )
    16351638       ENDIF
    16361639    ENDIF
     
    16731676                   mean_surface_level_height_l(sr) = mean_surface_level_height_l(sr) + zw(k-1)
    16741677                ENDIF
    1675                 IF ( surf_lsm_h%start_index(j,i) <= surf_lsm_h%end_index(j,i) )  THEN
    1676                    m = surf_lsm_h%start_index(j,i)
    1677                    k = surf_lsm_h%k(m)
     1678                IF ( surf_lsm_h(0)%start_index(j,i) <= surf_lsm_h(0)%end_index(j,i) )  THEN
     1679                   m = surf_lsm_h(0)%start_index(j,i)
     1680                   k = surf_lsm_h(0)%k(m)
    16781681                   mean_surface_level_height_l(sr) = mean_surface_level_height_l(sr) + zw(k-1)
    16791682                ENDIF
    1680                 IF ( surf_usm_h%start_index(j,i) <= surf_usm_h%end_index(j,i) )  THEN
    1681                    m = surf_usm_h%start_index(j,i)
    1682                    k = surf_usm_h%k(m)
     1683                IF ( surf_usm_h(0)%start_index(j,i) <= surf_usm_h(0)%end_index(j,i) )  THEN
     1684                   m = surf_usm_h(0)%start_index(j,i)
     1685                   k = surf_usm_h(0)%k(m)
    16831686                   mean_surface_level_height_l(sr) = mean_surface_level_height_l(sr) + zw(k-1)
    16841687                ENDIF
Note: See TracChangeset for help on using the changeset viewer.