Skip to content

Commit

Permalink
Switch back hprime to hprime(:,1)
Browse files Browse the repository at this point in the history
  • Loading branch information
dustinswales committed Feb 18, 2020
1 parent 12acbb0 commit ab6c12e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions physics/rrtmgp_lw_pre.F90
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ subroutine rrtmgp_lw_pre_run (doLWrad, nCol, lon, lat, slmsk, zorl, snowd, sncov
snowd, & ! water equivalent snow depth (mm)
sncovr, & ! Surface snow are fraction (1)
tsfc ! Surface skin temperature (K)
real(kind_phys), dimension(nCol), intent(in) :: &
real(kind_phys), dimension(nCol,nmtvr), intent(in) :: &
hprime ! Standard deviation of subgrid orography

type(ty_gas_optics_rrtmgp),intent(in) :: &
Expand All @@ -72,7 +72,7 @@ subroutine rrtmgp_lw_pre_run (doLWrad, nCol, lon, lat, slmsk, zorl, snowd, sncov
! #######################################################################################
! Call module_radiation_surface::setemis(),to setup surface emissivity for LW radiation.
! #######################################################################################
call setemis (lon, lat, slmsk, snowd, sncovr, zorl, tsfc, tsfc, hprime, nCol, sfc_emiss)
call setemis (lon, lat, slmsk, snowd, sncovr, zorl, tsfc, tsfc, hprime(:,1), nCol, sfc_emiss)

! Assign same emissivity to all bands
do iBand=1,lw_gas_props%get_nband()
Expand Down
8 changes: 4 additions & 4 deletions physics/rrtmgp_lw_pre.meta
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,10 @@
intent = in
optional = F
[hprime]
standard_name = standard_deviation_of_subgrid_orography
long_name = standard deviation of subgrid orography
units = m
dimensions = (horizontal_dimension)
standard_name = statistical_measures_of_subgrid_orography
long_name = orographic metrics
units = various
dimensions = (horizontal_dimension,number_of_statistical_measures_of_subgrid_orography)
type = real
kind = kind_phys
intent = in
Expand Down
10 changes: 5 additions & 5 deletions physics/rrtmgp_lw_rte.F90
Original file line number Diff line number Diff line change
Expand Up @@ -136,11 +136,11 @@ subroutine rrtmgp_lw_rte_run(doLWrad, nCol, nLev, p_lay, t_lay, p_lev, skt, lw_g
!

! Apply diffusivity angle adjustment (RRTMG legacy)
do iCol=1,nCol
do iBand=1,lw_gas_props%get_nband()
lw_optical_props_clouds%tau(iCol,1:nLev,iBand) = lw_optical_props_clouds%tau(iCol,1:nLev,iBand)*secdiff(iBand,iCol)
enddo
enddo
!do iCol=1,nCol
! do iBand=1,lw_gas_props%get_nband()
! lw_optical_props_clouds%tau(iCol,1:nLev,iBand) = lw_optical_props_clouds%tau(iCol,1:nLev,iBand)*secdiff(iBand,iCol)
! enddo
!enddo
! Add cloud optics to clear-sky optics
call check_error_msg('rrtmgp_lw_rte_run',lw_optical_props_clouds%increment(lw_optical_props_clrsky))

Expand Down

0 comments on commit ab6c12e

Please sign in to comment.