15 swhtr, sfcalb1, sfcalb2, sfcalb3, sfcalb4, htswc, htsw0, &
16 nirbmdi, nirdfdi, visbmdi, visdfdi, nirbmui, nirdfui, visbmui,&
17 visdfui, sfcdsw, sfcnsw, htrsw, swhc, scmpsw, sfcfsw, topfsw, &
20 use machine,
only: kind_phys
26 integer,
intent(in) :: im, levr, levs, &
28 logical,
intent(in) :: lsswr, swhtr
29 real(kind=kind_phys),
dimension(:),
intent(in) :: sfcalb1, sfcalb2, &
31 real(kind=kind_phys),
dimension(:,:),
intent(in) :: htswc, htsw0
33 real(kind=kind_phys),
dimension(:),
intent(inout) :: nirbmdi, nirdfdi, &
38 real(kind=kind_phys),
dimension(:,:),
intent(inout) :: htrsw, swhc
40 type(
cmpfsw_type),
dimension(:),
intent(inout) :: scmpsw
41 type(
sfcfsw_type),
dimension(:),
intent(inout) :: sfcfsw
42 type(
topfsw_type),
dimension(:),
intent(inout) :: topfsw
44 character(len=*),
intent(out) :: errmsg
45 integer,
intent(out) :: errflg
57 htrsw(1:im,k) = htswc(1:im,k1)
63 htrsw(1:im,k) = htrsw(1:im,lm)
70 swhc(1:im,k) = htsw0(1:im,k1)
75 swhc(1:im,k) = swhc(1:im,lm)
85 nirbmdi(i) = scmpsw(i)%nirbm
86 nirdfdi(i) = scmpsw(i)%nirdf
87 visbmdi(i) = scmpsw(i)%visbm
88 visdfdi(i) = scmpsw(i)%visdf
90 nirbmui(i) = scmpsw(i)%nirbm * sfcalb1(i)
91 nirdfui(i) = scmpsw(i)%nirdf * sfcalb2(i)
92 visbmui(i) = scmpsw(i)%visbm * sfcalb3(i)
93 visdfui(i) = scmpsw(i)%visdf * sfcalb4(i)
102 scmpsw =
cmpfsw_type( 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 )
124 sfcnsw(i) = sfcfsw(i)%dnfxc - sfcfsw(i)%upfxc
125 sfcdsw(i) = sfcfsw(i)%dnfxc
subroutine rrtmg_sw_post_run(im, levr, levs, ltp, nday, lm, kd, lsswr, swhtr, sfcalb1, sfcalb2, sfcalb3, sfcalb4, htswc, htsw0, nirbmdi, nirdfdi, visbmdi, visdfdi, nirbmui, nirdfui, visbmui, visdfui, sfcdsw, sfcnsw, htrsw, swhc, scmpsw, sfcfsw, topfsw, errmsg, errflg)
This module contains RRTMG-SW scheme post.