Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
0d60c25
physics/GFS_PBL_generic.F90: add interstitial code for new satmedmf P…
climbfuji Oct 18, 2018
e58e0f6
physics/GFS_rrtmg_post.F90: update interstitial code with new cloud p…
climbfuji Oct 18, 2018
6f4598a
physics/GFS_rrtmg_pre.F90: update interstitial code with new cloud ph…
climbfuji Oct 18, 2018
a417656
physics/GFS_rrtmg_setup.F90: update interstitial code with new cloud …
climbfuji Oct 18, 2018
f7d7977
physics/cldwat2m_micro.F: trim whitespaces
climbfuji Oct 18, 2018
d88683e
Merge branch 'master' of https://github.com/NCAR/ccpp-physics into cs…
climbfuji Oct 18, 2018
9047fb5
physics/gcycle.F90: update code to match latest VLAB master
climbfuji Oct 18, 2018
bc9e2de
physics/gwdps.f: update code to match latest VLAB master
climbfuji Oct 18, 2018
ac32b1c
physics/physparam.f: update code (documentation only) to match latest…
climbfuji Oct 18, 2018
887541d
physics/radiation_aerosols.f: update code to match latest VLAB master…
climbfuji Oct 18, 2018
7f515af
physics/radiation_clouds.f: update code to match latest VLAB master (…
climbfuji Oct 18, 2018
9706edb
physics/radiation_surface.f: update code to match latest VLAB master
climbfuji Oct 18, 2018
50caa3a
physics/radlw_main.f: update code to match latest VLAB master (clouds)
climbfuji Oct 18, 2018
8cea8b3
physics/radlw_param.f: update code to match latest VLAB master (const…
climbfuji Oct 18, 2018
1d1977a
physics/radsw_datatb.f: update code to match latest VLAB master (new …
climbfuji Oct 18, 2018
0dc3a74
physics/radsw_main.f: update code to match latest VLAB master (clouds…
climbfuji Oct 18, 2018
1607c7f
physics/radsw_param.f: update code to match latest VLAB master (const…
climbfuji Oct 18, 2018
fedc1c1
physics/rrtmg_lw_post.F90: trim whitespaces
climbfuji Oct 18, 2018
ca76625
physics/rrtmg_lw_pre.F90: just indents
climbfuji Oct 18, 2018
eff3d28
physics/cs_conv.F90: add changes for GNU compiler that were made to F…
climbfuji Oct 18, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
73 changes: 47 additions & 26 deletions physics/GFS_PBL_generic.F90

Large diffs are not rendered by default.

18 changes: 10 additions & 8 deletions physics/GFS_rrtmg_post.F90
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ end subroutine GFS_rrtmg_post_init
!! | mtopa | model_layer_number_at_cloud_top | vertical indices for low, middle and high cloud tops | index | 2 | integer | | in | F |
!! | mbota | model_layer_number_at_cloud_base | vertical indices for low, middle and high cloud bases | index | 2 | integer | | in | F |
!! | clouds1 | total_cloud_fraction | layer total cloud fraction | frac | 2 | real | kind_phys | in | F |
!! | clouds10 | cloud_optical_depth_weighted | cloud optical depth, weighted | none | 2 | real | kind_phys | in | F |
!! | clouds11 | cloud_optical_depth_layers_678 | cloud optical depth from bands 6,7,8 | none | 2 | real | kind_phys | in | F |
!! | cldtaulw | cloud_optical_depth_layers_at_10mu_band | approx 10mu band layer cloud optical depth | none | 2 | real | kind_phys | in | F |
!! | cldtausw | cloud_optical_depth_layers_at_0.55mu_band | approx .55mu band layer cloud optical depth | none | 2 | real | kind_phys | in | F |
!! | errmsg | ccpp_error_message | error message for error handling in CCPP | none | 0 | character | len=* | out | F |
!! | errflg | ccpp_error_flag | error flag for error handling in CCPP | flag | 0 | integer | | out | F |
!!
subroutine GFS_rrtmg_post_run (Model, Grid, Diag, Radtend, Statein, &
Coupling, scmpsw, im, lm, ltp, kt, kb, kd, raddt, aerodp, &
cldsa, mtopa, mbota, clouds1, clouds10, clouds11, &
cldsa, mtopa, mbota, clouds1, cldtaulw, cldtausw, &
errmsg, errflg)

use machine, only: kind_phys
Expand Down Expand Up @@ -72,8 +72,8 @@ subroutine GFS_rrtmg_post_run (Model, Grid, Diag, Radtend, Statein, &
real(kind=kind_phys), dimension(size(Grid%xlon,1),5), intent(in) :: cldsa
integer, dimension(size(Grid%xlon,1),3), intent(in) :: mbota, mtopa
real(kind=kind_phys), dimension(size(Grid%xlon,1),Model%levr+LTP), intent(in) :: clouds1
real(kind=kind_phys), dimension(size(Grid%xlon,1),Model%levr+LTP), intent(in) :: clouds10
real(kind=kind_phys), dimension(size(Grid%xlon,1),Model%levr+LTP), intent(in) :: clouds11
real(kind=kind_phys), dimension(size(Grid%xlon,1),Model%levr+LTP), intent(in) :: cldtausw
real(kind=kind_phys), dimension(size(Grid%xlon,1),Model%levr+LTP), intent(in) :: cldtaulw

character(len=*), intent(out) :: errmsg
integer, intent(out) :: errflg
Expand All @@ -86,6 +86,8 @@ subroutine GFS_rrtmg_post_run (Model, Grid, Diag, Radtend, Statein, &
errmsg = ''
errflg = 0

if (.not. (Model%lsswr .or. Model%lslwr)) return

!> - For time averaged output quantities (including total-sky and
!! clear-sky SW and LW fluxes at TOA and surface; conventional
!! 3-domain cloud amount, cloud top and base pressure, and cloud top
Expand Down Expand Up @@ -178,9 +180,9 @@ subroutine GFS_rrtmg_post_run (Model, Grid, Diag, Radtend, Statein, &
! Anning adds optical depth and emissivity output
tem1 = 0.
tem2 = 0.
do k=ibtc+kb,itop+kt
tem1 = tem1 + clouds10(i,k)
tem2 = tem2 + clouds11(i,k)
do k=ibtc,itop
tem1 = tem1 + cldtausw(i,k) ! approx .55 mu channel
tem2 = tem2 + cldtaulw(i,k) ! approx 10. mu channel
end do
Diag%fluxr(i,43-j) = Diag%fluxr(i,43-j) + tem0d * tem1
Diag%fluxr(i,46-j) = Diag%fluxr(i,46-j) + tem0d * (1.0-exp(-tem2))
Expand Down
Loading