Sm jul212020#481
Conversation
… Whole Atmosphere Model
…e physics routines
…uous run from a restart run - works for both NEMS mediator and CMEPS
|
This PR supersedes #466 - for a description and a discussion/first review of the proposed changes see there. |
| stress(i) = sqrt(dusfc(i)*dusfc(i) + dvsfc(i)*dvsfc(i)) * tem | ||
|
|
||
| snwdph(i) = snowd(i) * 1000.0_kind_phys | ||
| weasd(i) = snwdph(i) * 0.33_kind_phys |
There was a problem hiding this comment.
Where does the hard-coded 0.33 come from? Should it be a parameter?
|
I reviewed for CCPP-specific stuff, not any of the science or logic changes, necessarily. I understand the need for specifying precision for hard-coded constants, but I don't necessarily understand using "r8" as the string. It was my understanding that r8 was short for real(8) or double precision. But, in comments, it was said that using r8 was to facilitate the ability to switch to single-precision as needed in the future. Wasn't that the purpose of kind_phys to begin with? If kind_phys is too much to type, fine, but could we agree on something like "kp" instead of "r8" and then be ruthlessly consistent throughout CCPP schemes? |
|
Grant, |
|
Hi Grant,
That parameter "0.33" represents the ratio of water density to average
snow density over
arctic sea ice. The same value of 0.33 was also used in "sfc_sice.f" It
could be a parameter, if one wishes.
I am just trying to fix a bug that exists in the current code.
Moorthi
…On Tue, Jul 28, 2020 at 5:32 PM grantfirl ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In physics/sfc_cice.f
<#481 (comment)>:
> hflx(i) = dtsfc(i) * tem * cpinv
evap(i) = dqsfc(i) * tem * hvapi
stress(i) = sqrt(dusfc(i)*dusfc(i) + dvsfc(i)*dvsfc(i)) * tem
+
+ snwdph(i) = snowd(i) * 1000.0_kind_phys
+ weasd(i) = snwdph(i) * 0.33_kind_phys
Where does the hard-coded 0.33 come from? Should it be a parameter?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#481 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALLVRYSSBTVFFGPMES5YTFDR547WFANCNFSM4PKQF3VA>
.
--
Dr. Shrinivas Moorthi
Research Meteorologist
Modeling and Data Assimilation Branch
Environmental Modeling Center / National Centers for Environmental
Prediction
5830 University Research Court - (W/NP23), College Park MD 20740 USA
Tel: (301)683-3718
e-mail: Shrinivas.Moorthi@noaa.gov
Phone: (301) 683-3718 Fax: (301) 683-3718
|
Can I suggest a compromise and use and be consistent throughout the file to only use Yesterday was the first time that I heard about the requirements to compile all physics in single precision or even mix precisions per user request. The former should be relatively straightforward as long as we clean up the physics code beforehand and use |
|
I will try to change to "_kp" in some codes. |
This mystery was solved - |
|
Superseded by #486. |
Changing pull request from SM_Jun142020 to SM_Jul212020 as the later one is up to date with the master