-
Notifications
You must be signed in to change notification settings - Fork 153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EMC flake #471
EMC flake #471
Changes from 3 commits
1c64f9f
8ecadc4
ccec758
e228481
e0422ea
3373999
9d43e41
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,8 +24,8 @@ end subroutine GFS_surface_composites_pre_finalize | |
!> \section arg_table_GFS_surface_composites_pre_run Argument Table | ||
!! \htmlinclude GFS_surface_composites_pre_run.html | ||
!! | ||
subroutine GFS_surface_composites_pre_run (im, frac_grid, flag_cice, cplflx, cplwav2atm, & | ||
landfrac, lakefrac, oceanfrac, & | ||
subroutine GFS_surface_composites_pre_run (im, lkm, frac_grid, flag_cice, cplflx, cplwav2atm, & | ||
landfrac, lakefrac, lakedepth, oceanfrac, & | ||
frland, dry, icy, lake, ocean, wet, cice, cimin, zorl, zorlo, zorll, zorl_wat, & | ||
zorl_lnd, zorl_ice, snowd, snowd_wat, snowd_lnd, snowd_ice, tprcp, tprcp_wat, & | ||
tprcp_lnd, tprcp_ice, uustar, uustar_wat, uustar_lnd, uustar_ice, & | ||
|
@@ -38,12 +38,12 @@ subroutine GFS_surface_composites_pre_run (im, frac_grid, flag_cice, cplflx, cpl | |
implicit none | ||
|
||
! Interface variables | ||
integer, intent(in ) :: im | ||
integer, intent(in ) :: im, lkm | ||
logical, intent(in ) :: frac_grid, cplflx, cplwav2atm | ||
logical, dimension(im), intent(in ) :: flag_cice | ||
logical, dimension(im), intent(inout) :: dry, icy, lake, ocean, wet | ||
real(kind=kind_phys), intent(in ) :: cimin | ||
real(kind=kind_phys), dimension(im), intent(in ) :: landfrac, lakefrac, oceanfrac | ||
real(kind=kind_phys), dimension(im), intent(in ) :: landfrac, lakefrac, lakedepth, oceanfrac | ||
real(kind=kind_phys), dimension(im), intent(inout) :: cice | ||
real(kind=kind_phys), dimension(im), intent( out) :: frland | ||
real(kind=kind_phys), dimension(im), intent(in ) :: zorl, snowd, tprcp, uustar, weasd, qss, hflx | ||
|
@@ -182,6 +182,19 @@ subroutine GFS_surface_composites_pre_run (im, frac_grid, flag_cice, cplflx, cpl | |
endif | ||
enddo | ||
|
||
! to prepare to separate lake from ocean in later | ||
do i = 1, im | ||
if(lkm == 1) then | ||
if(lakefrac(i) .ge. 0.15 .and. lakedepth(i) .gt. 1.0) then | ||
lake(i) = .true. | ||
else | ||
lake(i) = .false. | ||
endif | ||
else | ||
lake(i) = .false. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why not use "flake" instead of "lake"? Even without flake model, lakes exist. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @YihuaWu-NOAA said that there will be additional options later (lkm=0,1,2,...), so in this case it is ok to keep it as an integer as far as I am concerned. |
||
endif | ||
enddo | ||
|
||
! Assign sea ice temperature to interstitial variable | ||
do i = 1, im | ||
tice(i) = tisfc(i) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This comment is a bit confusing - can you remove the
in later
part, please?