You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am like 95% sure that this 287 number is the gas constant for dry air. I might vote to either just use the actual physical constant, or if that changes answers too much to just create a new parameter here labeling it as the gas constant but keeping the actual value the same.
@jimmielin wrote:
This should be rair but the numbers in shr_const_rdair work out to something closer to ~287.04:
Breakpoint 1, physconst::physconst_readnl (nlfile=..., _nlfile=_nlfile@entry=80) at ...CAMdev64_075/src/utils/physconst.F90:273
273 end subroutine physconst_readnl
(gdb) p rair
$1 = 287.03999999999996
It is used RK_stratiform to calculate the ice/liquid water content
What is the feature/what would you like to discuss?
This was discovered in code review for #1271
There are a few instances of a magic number (
287.15
) being used in CAM code that is not referencingphysconst
.@nusbaume wrote:
@jimmielin wrote:
This should be
rair
but the numbers inshr_const_rdair
work out to something closer to ~287.04:It is used RK_stratiform to calculate the ice/liquid water content
and a couple of other places for diagnostics:
So maybe they should all be updated in one go as there will be answer changes.
Is there anyone in particular you want to be part of this conversation?
@nusbaume
Will this change (regression test) answers?
Yes
Will you be implementing this enhancement yourself?
Any CAM SE can do this
The text was updated successfully, but these errors were encountered: