-
Notifications
You must be signed in to change notification settings - Fork 146
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
Sm nov222021 #824
Merged
Merged
Sm nov222021 #824
Changes from all commits
Commits
Show all changes
47 commits
Select commit
Hold shift + click to select a range
738ce45
Merge branch 'SM_Sept21_PR' of https://github.com/SMoorthi-emc/ccpp-p…
SMoorthi-emc cc1cbe7
Merge branch 'SM_Sept21_PR' of https://github.com/SMoorthi-emc/ccpp-p…
SMoorthi-emc 24884b0
Merge branch 'SM_Sep142021' of https://github.com/SMoorthi-emc/ccpp-p…
SMoorthi-emc 949ca84
reverting to my versions of GFS_rrtmgp_*post.F90 files
SMoorthi-emc 215c80e
additional updates to emissivity calculation etc
SMoorthi-emc 3d9b79c
updating .gitmodules
SMoorthi-emc c557c33
Merge branch 'SM_Sep142021' of https://github.com/SMoorthi-emc/ccpp-p…
SMoorthi-emc 6ae5461
after merging wiht SM_Sept21_PR
SMoorthi-emc c4c8bad
changes consistent with branch SM_Sept21_PR
SMoorthi-emc 52ca358
Merge remote-tracking branch 'upstream/main' into SM_Sep142021
SMoorthi-emc d71cd82
Merge remote-tracking branch 'upstream/main' into SM_Sep142021
SMoorthi-emc 7482c15
Merge remote-tracking branch 'upstream/main' into SM_Sep142021
SMoorthi-emc 3d9d437
Merge remote-tracking branch 'upstream/main' into SM_Sep142021
SMoorthi-emc c458be1
after merging with ccpp/main
SMoorthi-emc 3233eba
after submodule sync
SMoorthi-emc cf05d9d
Merge branch 'SM_Sep142021' of https://github.com/SMoorthi-emc/ccpp-p…
SMoorthi-emc a34ad95
Merge remote-tracking branch 'upstream/main' into SM_Sep142021
SMoorthi-emc 5ea113c
Merge remote-tracking branch 'upstream/main' into SM_Sep142021
SMoorthi-emc 25f84dc
Merge remote-tracking branch 'upstream/main' into SM_Sep142021
SMoorthi-emc ce37043
Merge branch 'SM_Sep142021' of https://github.com/SMoorthi-emc/ccpp-p…
SMoorthi-emc 4cbfa30
Merge remote-tracking branch 'upstream/main' into SM_Sep142021
SMoorthi-emc 7822e9c
Merge remote-tracking branch 'upstream/main' into SM_Nov222021
SMoorthi-emc 49bf5c4
some cosmetic change in mg3
SMoorthi-emc c41612c
adding/removing some blanks in sfc_sice
SMoorthi-emc d88751b
Merge remote-tracking branch 'upstream/main' into SM_Nov222021
SMoorthi-emc f51ee84
Merge remote-tracking branch 'upstream/main' into SM_Nov222021
SMoorthi-emc 4c62ee2
cleanup/fix GFS_surface_composites
SMoorthi-emc 083a2ff
Merge remote-tracking branch 'upstream/main' into SM_Nov222021
SMoorthi-emc b8a6380
after merging with ccpp-physics/main
SMoorthi-emc 326b852
Merge remote-tracking branch 'upstream/main' into SM_Nov222021
SMoorthi-emc 7aa8caa
some cosmetic change in a routine
SMoorthi-emc 52709ac
Merge remote-tracking branch 'upstream/main' into SM_Nov222021
SMoorthi-emc 2de6ce3
Merge remote-tracking branch 'upstream/main' into SM_Nov222021
SMoorthi-emc 61d6292
Merge remote-tracking branch 'upstream/main' into SM_Nov222021
SMoorthi-emc 08a5dcc
Merge remote-tracking branch 'upstream/main' into SM_Nov222021
SMoorthi-emc 07dc9c1
after merge with ccpp-hysics/main
SMoorthi-emc 9cce481
Merge remote-tracking branch 'upstream/main' into SM_Nov222021
SMoorthi-emc 8434333
testing with zorli related change
SMoorthi-emc 12763d6
Merge remote-tracking branch 'upstream/main' into SM_Nov222021
SMoorthi-emc baad60a
Merge remote-tracking branch 'upstream/main' into SM_Nov222021
SMoorthi-emc cc0b5dd
Merge remote-tracking branch 'upstream/main' into SM_Nov222021
SMoorthi-emc 88fcf4c
updating GFS_surface_composites to address crash in cpld_debug_p7
SMoorthi-emc 01a91fa
reverting some change
SMoorthi-emc 30a7afd
still more mods
SMoorthi-emc 7a70875
yet more mods
SMoorthi-emc d187957
Merge remote-tracking branch 'upstream/main' into SM_Nov222021
SMoorthi-emc 8d97f46
fix a typo
SMoorthi-emc File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
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 |
---|---|---|
|
@@ -211,6 +211,7 @@ subroutine GFS_surface_composites_pre_run (im, flag_init, flag_restart, lkm, fra | |
uustar_wat(i) = uustar(i) | ||
tsfc_wat(i) = tsfco(i) | ||
tsurf_wat(i) = tsfco(i) | ||
zorlo(i) = max(1.0e-5, min(one, zorlo(i))) | ||
! DH* | ||
else | ||
zorlo(i) = huge | ||
|
@@ -233,6 +234,7 @@ subroutine GFS_surface_composites_pre_run (im, flag_init, flag_restart, lkm, fra | |
tsurf_ice(i) = tisfc(i) | ||
ep1d_ice(i) = zero | ||
gflx_ice(i) = zero | ||
zorli(i) = max(1.0e-5, min(one, zorli(i))) | ||
! DH* | ||
else | ||
zorli(i) = huge | ||
|
@@ -256,39 +258,38 @@ subroutine GFS_surface_composites_pre_run (im, flag_init, flag_restart, lkm, fra | |
endif | ||
enddo | ||
! | ||
if (.not. cplflx .or. kdt == 1) then | ||
if (frac_grid) then | ||
do i=1,im | ||
if (dry(i)) then | ||
if (icy(i)) then | ||
if (frac_grid) then | ||
do i=1,im | ||
if (dry(i)) then | ||
if (icy(i)) then | ||
if (kdt == 1 .or. (.not. cplflx .or. lakefrac(i) > zero)) then | ||
tem = one / (cice(i)*(one-frland(i))) | ||
snowd_ice(i) = max(zero, (snowd(i) - snowd_lnd(i)*frland(i)) * tem) | ||
weasd_ice(i) = max(zero, (weasd(i) - weasd_lnd(i)*frland(i)) * tem) | ||
endif | ||
elseif (icy(i)) then | ||
endif | ||
elseif (icy(i)) then | ||
if (kdt == 1 .or. (.not. cplflx .or. lakefrac(i) > zero)) then | ||
tem = one / cice(i) | ||
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. Same here, with RUC LSM it should not be done. 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. I just disagree. |
||
snowd_lnd(i) = zero | ||
snowd_ice(i) = snowd(i) * tem | ||
weasd_lnd(i) = zero | ||
weasd_ice(i) = weasd(i) * tem | ||
endif | ||
enddo | ||
else | ||
do i=1,im | ||
if (dry(i)) then | ||
snowd_lnd(i) = snowd(i) | ||
weasd_lnd(i) = weasd(i) | ||
snowd_ice(i) = zero | ||
weasd_ice(i) = zero | ||
elseif (icy(i)) then | ||
endif | ||
enddo | ||
else | ||
do i=1,im | ||
if (icy(i)) then | ||
if (kdt == 1 .or. (.not. cplflx .or. lakefrac(i) > zero)) then | ||
snowd_lnd(i) = zero | ||
weasd_lnd(i) = zero | ||
tem = one / cice(i) | ||
snowd_ice(i) = snowd(i) * tem | ||
weasd_ice(i) = weasd(i) * tem | ||
endif | ||
enddo | ||
endif | ||
endif | ||
enddo | ||
endif | ||
|
||
! write(0,*)' minmax of ice snow=',minval(snowd_ice),maxval(snowd_ice) | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Moorthi, with RUC LSM snowd_ice and weasd_ice should not be recomputed here because they are computed internally. I think we have to add to the condition in brackets: lsm /= lsm_ruc.
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.
Tanya,
I think all LSM's are called after calling this routine. As long as grid mean values are computed correctly, there should be no issue. When the coupled model is used, it is different. This loop takes care of the case when there is a new icy points if they happen to be defined within this routine.
Moorthi
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.
Moorthi, the snow depth on the land and ice fractions could be very different, and because RUC LSM computes both weasd_ice and weasd_lnd, it wants to carry them along separately. Therefore, they should not be recomputed here from the grid mean when RUC LSM is used. The grid mean snow depth could be used as the diagnostics variable, convenient for plotting.
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.
I originally wanted to do this computation on only new icy points, but unfortunately, there is no memory of previous "icy" points. I should also point out that "sfc_sice.f" also computes ice point variables, just like RUC does. While the computation here is not necessary for the icy points that remain icy, it does not hurt.
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.
Again, this is not special to RUC as what you stated is true for non-RUC also as in those cases ice is computed in sfc_sice.f
Well, I welcome anyone to come up with better alternative.
I should point out that this is already happening in the current code- so this should not be a point for rejecting my update as it improves on what currently exists.