-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge development into main for ZM (#194)
Tag: atmos_phys0_08_000 Use new constituent tendency updater in cam7 SDF #188 MUSICA TUVX scheme: create aerosol radiator, set_aerosol_optics_values #182 Set gas-species profiles in TUV-x and map indices between constituents and MICM #184 Complete Zhang McFarlane conversion to CCPP #186
- Loading branch information
Showing
56 changed files
with
7,423 additions
and
902 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
module cloud_fraction_fice | ||
|
||
use ccpp_kinds, only: kind_phys | ||
implicit none | ||
|
||
contains | ||
|
||
!================================================================================================ | ||
|
||
!=============================================================================== | ||
!> \section arg_table_cloud_fraction_fice_run Argument Table | ||
!! \htmlinclude cloud_fraction_fice_run.html | ||
!! | ||
subroutine cloud_fraction_fice_run(ncol, t, tmelt, top_lev, pver, fice, fsnow) | ||
! | ||
! Compute the fraction of the total cloud water which is in ice phase. | ||
! The fraction depends on temperature only. | ||
! This is the form that was used for radiation, the code came from cldefr originally | ||
! | ||
! Author: B. A. Boville Sept 10, 2002 | ||
! modified: PJR 3/13/03 (added fsnow to ascribe snow production for convection ) | ||
!----------------------------------------------------------------------- | ||
|
||
! Arguments | ||
integer, intent(in) :: ncol ! number of active columns (count) | ||
real(kind_phys), intent(in) :: t(:,:) ! temperature (K) | ||
real(kind_phys), intent(in) :: tmelt ! freezing point of water (K) | ||
integer, intent(in) :: top_lev ! Vertical layer index for highest layer with tropopheric clouds (index) | ||
integer, intent(in) :: pver ! Number of vertical layers (count) | ||
|
||
real(kind_phys), intent(out) :: fice(:,:) ! Fractional ice content within cloud | ||
real(kind_phys), intent(out) :: fsnow(:,:) ! Fractional snow content for convection | ||
|
||
! Local variables | ||
real(kind_phys) :: tmax_fice ! max temperature for cloud ice formation | ||
real(kind_phys) :: tmin_fice ! min temperature for cloud ice formation | ||
real(kind_phys) :: tmax_fsnow ! max temperature for transition to convective snow | ||
real(kind_phys) :: tmin_fsnow ! min temperature for transition to convective snow | ||
|
||
integer :: i,k ! loop indexes | ||
|
||
!----------------------------------------------------------------------- | ||
|
||
tmax_fice = tmelt - 10._kind_phys ! max temperature for cloud ice formation | ||
tmin_fice = tmax_fice - 30._kind_phys ! min temperature for cloud ice formation | ||
tmax_fsnow = tmelt ! max temperature for transition to convective snow | ||
tmin_fsnow = tmelt - 5._kind_phys ! min temperature for transition to convective snow | ||
|
||
fice(:,:top_lev-1) = 0._kind_phys | ||
fsnow(:,:top_lev-1) = 0._kind_phys | ||
|
||
! Define fractional amount of cloud that is ice | ||
do k=top_lev,pver | ||
do i=1,ncol | ||
|
||
! If warmer than tmax then water phase | ||
if (t(i,k) > tmax_fice) then | ||
fice(i,k) = 0.0_kind_phys | ||
|
||
! If colder than tmin then ice phase | ||
else if (t(i,k) < tmin_fice) then | ||
fice(i,k) = 1.0_kind_phys | ||
|
||
! Otherwise mixed phase, with ice fraction decreasing linearly from tmin to tmax | ||
else | ||
fice(i,k) =(tmax_fice - t(i,k)) / (tmax_fice - tmin_fice) | ||
end if | ||
|
||
! snow fraction partitioning | ||
|
||
! If warmer than tmax then water phase | ||
if (t(i,k) > tmax_fsnow) then | ||
fsnow(i,k) = 0.0_kind_phys | ||
|
||
! If colder than tmin then ice phase | ||
else if (t(i,k) < tmin_fsnow) then | ||
fsnow(i,k) = 1.0_kind_phys | ||
|
||
! Otherwise mixed phase, with ice fraction decreasing linearly from tmin to tmax | ||
else | ||
fsnow(i,k) =(tmax_fsnow - t(i,k)) / (tmax_fsnow - tmin_fsnow) | ||
end if | ||
|
||
end do | ||
end do | ||
|
||
end subroutine cloud_fraction_fice_run | ||
|
||
end module cloud_fraction_fice |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
[ccpp-table-properties] | ||
name = cloud_fraction_fice | ||
type = scheme | ||
|
||
[ccpp-arg-table] | ||
name = cloud_fraction_fice_run | ||
type = scheme | ||
[ ncol ] | ||
standard_name = horizontal_loop_extent | ||
units = count | ||
type = integer | ||
dimensions = () | ||
intent = in | ||
[ t ] | ||
standard_name = air_temperature | ||
units = K | ||
type = real | kind = kind_phys | ||
dimensions = (horizontal_loop_extent,vertical_layer_dimension) | ||
intent = in | ||
[ tmelt ] | ||
standard_name = freezing_point_of_water | ||
units = K | ||
type = real | kind = kind_phys | ||
dimensions = () | ||
intent = in | ||
[ top_lev ] | ||
standard_name = vertical_layer_index_of_troposphere_cloud_top | ||
units = index | ||
type = integer | ||
dimensions = () | ||
intent = in | ||
[ pver ] | ||
standard_name = vertical_layer_dimension | ||
units = count | ||
type = integer | ||
dimensions = () | ||
intent = in | ||
[ fice ] | ||
standard_name = mass_fraction_of_ice_content_within_stratiform_cloud | ||
units = fraction | ||
type = real | kind = kind_phys | ||
dimensions = (horizontal_loop_extent,vertical_layer_dimension) | ||
intent = out | ||
[ fsnow ] | ||
standard_name = mass_fraction_of_snow_content_within_stratiform_cloud | ||
units = fraction | ||
type = real | kind = kind_phys | ||
dimensions = (horizontal_loop_extent,vertical_layer_dimension) | ||
intent = out |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.