-
Notifications
You must be signed in to change notification settings - Fork 159
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
Mismatch of vertical dimensions for ak and bk #430
Comments
It is correct "there will never be any model runs where there are more radiation levels (excluding the extra layers at top LTP, those are treated differently)" Yes, for model runs with fewer radiation levels (levr) than physics levels (levs), it is true that the radiation levels are exactly the same as the physics levels up to the point levr and that the levels above are simply ignored by the radiation. Model%si(1:Model%levr+1) should be defined for the entire atmosphere for all layers, not only for layers where radiation operates. |
Thanks, Fanglin, this is helpful. I will make those changes in a forthcoming PR. |
Just to be clear, pressure corresponding to "Model%levr+1" should be the
model top.
So, for the radiation calculation, the top layer goes from Model%levr to
model top i.e. Model%levs+1.
Moorthi
…On Mon, Nov 22, 2021 at 1:03 PM Dom Heinzeller ***@***.***> wrote:
It is correct "there will never be any model runs where there are more
radiation levels (excluding the extra layers at top LTP, those are treated
differently)"
Yes, for model runs with fewer radiation levels (levr) than physics levels
(levs), it is true that the radiation levels are exactly the same as the
physics levels up to the point levr and that the levels above are simply
ignored by the radiation.
Model%si(1:Model%levr+1) should be defined for the entire atmosphere for
all layers, not only for layers where radiation operates.
Thanks, Fanglin, this is helpful. I will make those changes in a
forthcoming PR.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#430 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALLVRYWX7R62QZTB4Y77VMTUNKAWXANCNFSM5IRRGOMQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
--
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: ***@***.***
Phone: (301) 683-3718 Fax: (301) 683-3718
|
@SMoorthi-emc This is something that needs to be checked - I don't think this is the case, but I could be wrong |
Fixed in #431 |
Description
This bug only affects model runs with different radiation and physics levels. I noticed it when using the newly developed debugging capability in CCPP that checks the dimensions of arrays in the metadata against the actual dimensions of the array.
Variables
ak
andbk
inGFS_typedefs.F90
are provided and used as follows, which at first glance suggests that the dimensionality of these arrays isvertical_interface_dimension_for_radiation = Model%levr + 1
:The
ak
andbk
variables are calculated in subroutineatmosphere_etalvls
in the FV3 dycore:Here,
npz
is the number of vertical model levels that are the vertical levels for all physics except radiation,npz = Model%levs
. Thus, the correct dimension in the CCPP metadata would bevertical_interface_dimension
. This can be changed easily, but I want to make sure the following:For model runs with fewer radiation levels (
levr
) than physics levels (levs
), is it true that the radiation levels are exactly the same as the physics levels up to the pointlevr
and that the levels above are simply ignored by the radiation?If so, should the calculation of
Model%si
be written explicitly as follows?And lastly, can we safely assume that there will never be any model runs where there are more radiation levels (excluding the extra layers at top
LTP
, those are treated differently), i.e. should we add a guard that preventsModel%levr > Model%levs
?@DusanJovic-NOAA @junwang-noaa @yangfanglin @SMoorthi-emc @SajalKar-NOAA can you clarify please?
The text was updated successfully, but these errors were encountered: