-
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
adding updated RAS #585
adding updated RAS #585
Conversation
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.
Looks good to me. This PR will be combined with an fv3atm PR from my side (for updating the submodule pointer for ccpp-physics and potential updates in GFS_typedefs.F90
, if needed), and a ufs-weather-model PR that enables the fv3_rasmgshoc
regression test.
physics/rascnv.F90
Outdated
@@ -8,7 +8,7 @@ module rascnv | |||
implicit none | |||
public :: rascnv_init, rascnv_run, rascnv_finalize | |||
private | |||
logical :: is_initialized = .False. | |||
logical, save :: is_initialized = .False. |
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 should not be necessary, module variables are by default 'save' variables. But it doesn't hurt to have it. Same for all of the module variables below.
|
||
CNV_MFD(ipt,ll) = CNV_MFD(ipt,ll) + flx(ib)/dt | ||
|
||
! CNV_DQLDT(ipt,ll) = CNV_DQLDT(ipt,ll) | ||
! & + max(0.,(QLI(ib)+QII(ib)-qiid-qlid))/dt | ||
!! CNV_DQLDT(ipt,ll) = CNV_DQLDT(ipt,ll) |
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.
Are these double exclamation marks !!
intentional? They will probably be picked by doxygen when creating the scientific documentation (same a few lines below).
Dom,
That double "!!" was intentional to the extent that it is different from
the single "!". No particular significance.
Moorthni
…On Wed, Mar 3, 2021 at 9:25 PM Dom Heinzeller ***@***.***> wrote:
***@***.**** commented on this pull request.
Looks good to me. This PR will be combined with an fv3atm PR from my side
(for updating the submodule pointer for ccpp-physics and potential updates
in GFS_typedefs.F90, if needed), and a ufs-weather-model PR that enables
the fv3_rasmgshoc regression test.
------------------------------
In physics/rascnv.F90
<#585 (comment)>:
> @@ -8,7 +8,7 @@ module rascnv
implicit none
public :: rascnv_init, rascnv_run, rascnv_finalize
private
- logical :: is_initialized = .False.
+ logical, save :: is_initialized = .False.
This should not be necessary, module variables are by default 'save'
variables. But it doesn't hurt to have it. Same for all of the module
variables below.
------------------------------
In physics/rascnv.F90
<#585 (comment)>:
>
CNV_MFD(ipt,ll) = CNV_MFD(ipt,ll) + flx(ib)/dt
-! CNV_DQLDT(ipt,ll) = CNV_DQLDT(ipt,ll)
-! & + max(0.,(QLI(ib)+QII(ib)-qiid-qlid))/dt
+!! CNV_DQLDT(ipt,ll) = CNV_DQLDT(ipt,ll)
Are these double exclamation marks !! intentional? They will probably be
picked by doxygen when creating the scientific documentation (same a few
lines below).
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#585 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALLVRYRZ4RH342JHAAZA24TTB3VQVANCNFSM4YSIKIKQ>
.
--
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: [email protected]
Phone: (301) 683-3718 Fax: (301) 683-3718
|
Ok, thanks. @ligiabernardet as our doxygen expert, do you think these |
@mzhangw Can you please check this? |
It is OK with single line starting with "!!" |
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.
@SMoorthi-emc can you also say something about the MG microphysics changes and the radsw_main.F90 changes, please? The description of the PR says only two files are changed (RAS .F90 and .meta), plus what I added for the DCNV convective mass flux tendencies. Thank you!
@mjiacono there are some small changes in |
In MG2 and MG3 the single if loop below |
Great, thank you Moorthi. I'll copy & paste this into the description at the top. |
Dom, The proposed changes to radsw_main.F90 look OK to me. Mike
From: Dom Heinzeller ***@***.***>
Reply-To: NCAR/ccpp-physics ***@***.***>
Date: Monday, March 15, 2021 at 6:51 PM
To: NCAR/ccpp-physics ***@***.***>
Cc: "Iacono, Mike" ***@***.***>, Mention ***@***.***>
Subject: Re: [NCAR/ccpp-physics] adding updated RAS (#585)
Caution: This email originated outside of the organization
@mjiacono<https://urldefense.com/v3/__https:/github.com/mjiacono__;!!CAFLEWIB!WrNJiyZ8s3SKcPOIqf4mYADNJ0j_sQXHbyyyPunR36-PU8zw6tQaOWR90j4$> there are some small changes in radsw_main.F90, do you want to take a look?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<https://urldefense.com/v3/__https:/github.com/NCAR/ccpp-physics/pull/585*issuecomment-799807013__;Iw!!CAFLEWIB!WrNJiyZ8s3SKcPOIqf4mYADNJ0j_sQXHbyyyPunR36-PU8zw6tQadTCVbWo$>, or unsubscribe<https://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/AE7W55D3WMIH35QAA6V4HTTTD2FPJANCNFSM4YSIKIKQ__;!!CAFLEWIB!WrNJiyZ8s3SKcPOIqf4mYADNJ0j_sQXHbyyyPunR36-PU8zw6tQaEaOv7Js$>.
…________________________________
This email is intended solely for the recipient. It may contain privileged, proprietary or confidential information or material. If you are not the intended recipient, please delete this email and any attachments and notify the sender of the error.
|
Thanks, Mike! |
Thanks Dom.
…On Wed, Mar 17, 2021 at 7:07 PM Dom Heinzeller ***@***.***> wrote:
Merged #585 <#585> into master.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#585 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALLVRYXNMYGKVAFDGODWK5LTEEYZTANCNFSM4YSIKIKQ>
.
--
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
|
This PR is to replace current RAS with an updated one that fixes a potential issue that can cause model crash.
Further changes:
if (lamr(i,k) > qsmall .and. one/lamr(i,k) < Dcs) then
is expanded to two nested ifs likebecause on some computers the first if may lead to divide by zero leading to crash.
radsw_main.F90
, the code is slightly rewritten to avoid sqrt of a negative number and potential divide by zero.These issues were encountered during debugging. After fixing these two issues runs haven't crashed.
GFS_DCNV_generic_post
(from @climbfuji).Associated PRs:
#585
NOAA-EMC/fv3atm#252
ufs-community/ufs-weather-model#448
For regression testing, see ufs-community/ufs-weather-model#448