-
Notifications
You must be signed in to change notification settings - Fork 18
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
Update to MYNN surface layer scheme #131
Conversation
This change requires modifications to two regression tests, which @SamuelTrahanNOAA is working on now. |
@joeolson42 @SamuelTrahanNOAA I think it would be good to have the names of these new namelist options related to the MYNN surface layer scheme, for example: change sfclay_compute_flux to mynnsfc_compute_flux in GFS_typedefs.F90/meta. |
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.
@SamuelTrahanNOAA Sam, is tests/tests/hrrr_control should be changed?
I don't know. I didn't make that test. |
Sam,
You probably already know this, but not specifying the nst parameters in
the namelist are equivalent to keeping it off, which is what we want in
RRFS-like configurations:
default values in GFS_typdefs.F90:
!--- near surface sea temperature model
logical :: nst_anl = .false. !< flag for
NSSTM analysis in gcycle/sfcsub
integer :: nstf_name(5) = (/0,0,1,0,5/) !< flag 0 for
no nst 1 for uncoupled nst and 2 for coupled NST
!< nstf_name(1)
: 0 = NSSTM off, 1 = NSSTM on but uncoupled
!<
2 = NSSTM on and coupled
!< nstf_name(2)
: 1 = NSSTM spin up on, 0 = NSSTM spin up off
!< nstf_name(3)
: 1 = NSSTM analysis on, 0 = NSSTM analysis off
!< nstf_name(4)
: zsea1 in mm
!< nstf_name(5)
: zsea2 in mm
…-joe
On Thu, Mar 31, 2022 at 2:27 PM Samuel Trahan (NOAA contractor) < ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In tests/parm/rrfs_conus13km_hrrr.nml.IN
<#131 (comment)>
:
> @@ -222,8 +223,8 @@
lwhtr = .true.
n_var_lndp = @[N_VAR_LNDP]
nsradar_reset = 3600
- nst_anl = .false.
- nstf_name = 2, 0, 0, 0, 0
+ nst_anl = .true.
This is only used for the two configurations that try to reproduce the
RRFS_dev at 13km (one with and one without radar-tten). The suite is
FV3_HRRR.
—
Reply to this email directly, view it on GitHub
<#131 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADLRR3RQOOMSCA33RZNAMZTVCYDCDANCNFSM5RVPBMAA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
--
Joseph Olson
Model Physics Branch Chief
Environmental Prediction Advancement Division
NOAA-Global Systems Laboratory
Boulder, Colorado
|
@joeolson42 @tanyasmirnova I think you're both telling me to remove the nst_anl and nstf_name options from the namelist. (That'll make nst_anl false rather than true.) I'll run that now. |
Results are the same, so I've removed those two lines. |
One of the tests segfaulted. Joe is debugging, but if anyone else can look at it, that may speed us up. I've copied the failed test here: HERA: /scratch2/BMC/wrfruc/Samuel.Trahan/gsl-PR/PR131/SEGFAULT |
@SamuelTrahanNOAA @joeolson42 It looks like this test runs FV3_HRRR but has in input.nml: |
I've removed them, and I'm rerunning the test. |
It still segfaults: /scratch2/BMC/wrfruc/Samuel.Trahan/gsl-PR/PR131/AGAIN_SEGFAULT |
@joeolson42 @SamuelTrahanNOAA It crashes in MYNN surface: 7: libpthread-2.17.s 00002AAFE5512630 Unknown Unknown Unknown |
There is definitely NaNs coming in as input:
39: === important input to mynnsfclayer, i: 32
39: wet= T pblh= 1212.08648578968 tsk= 300.397041985179
tsurf=
39: 300.397041985179 qsfc= NaN znt=
39: 1.090987141272514E-004 ust= 0.272792206002891 snowh=
39: 0.000000000000000E+000 psfcpa= NaN dz=
39: NaN qflx= 9.969209968386869E+036 hflx=
39: 9.969209968386869E+036 hpbl= 1212.08648578968
This could take a while to track down how it evolves...
On Thu, Mar 31, 2022 at 4:18 PM Joseph Olson - NOAA Federal <
***@***.***> wrote:
… Yes, I'm rerunning this case with printouts.
When it crashed at this point in the past, there was always bad input.
On Thu, Mar 31, 2022 at 4:15 PM tanyasmirnova ***@***.***>
wrote:
> @joeolson42 <https://github.com/joeolson42> @SamuelTrahanNOAA
> <https://github.com/SamuelTrahanNOAA> It crashes in MYNN surface: 7:
> libpthread-2.17.s 00002AAFE5512630 Unknown Unknown Unknown
> 7: fv3.exe 0000000003369872 module_sf_mynn_mp *3756 module_sf_mynn.F90*
> 7: fv3.exe 0000000003369469 module_sf_mynn_mp 3494 module_sf_mynn.F90
>
> —
> Reply to this email directly, view it on GitHub
> <#131 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ADLRR3VK5A5VBBVBWLGLHFLVCYPWVANCNFSM5RVPBMAA>
> .
> You are receiving this because you were mentioned.Message ID:
> ***@***.***>
>
--
Joseph Olson
Model Physics Branch Chief
Environmental Prediction Advancement Division
NOAA-Global Systems Laboratory
Boulder, Colorado
--
Joseph Olson
Model Physics Branch Chief
Environmental Prediction Advancement Division
NOAA-Global Systems Laboratory
Boulder, Colorado
|
I recompiled in debug mode, and it gives a more useful response:
|
The community repository also fails that test if
The error is here:
|
The stochastic physics runs at the end of the physics timestep, which is after microphysics. The |
Also, nothing is ever assigned to |
Sam,
Thanks for the debugging. Jeff is looking into it.
I did some code clean-up in the surface layer scheme. I'd like to commit
that. Nothing else (since there was no debugging success to fix a problem).
…-joe
On Fri, Apr 1, 2022 at 10:20 AM Samuel Trahan (NOAA contractor) < ***@***.***> wrote:
Also, nothing is ever assigned to min_rand. I don't know what the author
was intending, but it won't work until min_rand=something
—
Reply to this email directly, view it on GitHub
<#131 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADLRR3RSRHCBRYPSZ7PYWSLVC4O47ANCNFSM5RVPBMAA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
--
Joseph Olson
Model Physics Branch Chief
Environmental Prediction Advancement Division
NOAA-Global Systems Laboratory
Boulder, Colorado
|
Where? Is there a PR for this? |
I would just add it to the current PR:
NOAA-GSL/ccpp-physics#143
…On Fri, Apr 1, 2022 at 11:26 AM Samuel Trahan (NOAA contractor) < ***@***.***> wrote:
I did some code clean-up in the surface layer scheme. I'd like to commit
that. Nothing else (since there was no debugging success to fix a problem).
Where? Is there a PR for this?
—
Reply to this email directly, view it on GitHub
<#131 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADLRR3WRPWLNGOWHTFOIRPDVC4WTJANCNFSM5RVPBMAA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
--
Joseph Olson
Model Physics Branch Chief
Environmental Prediction Advancement Division
NOAA-Global Systems Laboratory
Boulder, Colorado
|
You need to remove the current changes first, as they are breaking the other regression test. |
When you say "breaking", you mean changing results, right? Don't we just
need new baselines for mynn surface tests?
…On Fri, Apr 1, 2022 at 11:29 AM Samuel Trahan (NOAA contractor) < ***@***.***> wrote:
You need to remove the current changes first, as they are breaking the
other regression test.
—
Reply to this email directly, view it on GitHub
<#131 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADLRR3RDH2L45XYHGDHCG6DVC4W6JANCNFSM5RVPBMAA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
--
Joseph Olson
Model Physics Branch Chief
Environmental Prediction Advancement Division
NOAA-Global Systems Laboratory
Boulder, Colorado
|
The test crashes due to an invalid floating point operation. The community would not find that acceptable, so if this is PR'd to the community repos, it would be rejected. Edit: The error is "floating invalid - possible uninitialized real/complex variable" not a segmentation violation. |
I submitted an issue here: |
Sam,
I meant after the stochastic physics bug is fixed, then we should be back
to these simple changes to the mynn sfc layer code. It would make more
sense to add the code clean-up (indentations, uppercase to lowercase, ets)
to this PR.
…-joe
On Fri, Apr 1, 2022 at 11:37 AM Samuel Trahan (NOAA contractor) < ***@***.***> wrote:
The test segfaults. The community would not find that acceptable, so if
this is PR'd to the community repos, it would be rejected.
—
Reply to this email directly, view it on GitHub
<#131 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADLRR3SU3ZYTNJ3NOHM6TQTVC4X5ZANCNFSM5RVPBMAA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
--
Joseph Olson
Model Physics Branch Chief
Environmental Prediction Advancement Division
NOAA-Global Systems Laboratory
Boulder, Colorado
|
I also submitted this PR, to remove the broken regression test: |
I want to be clear: the failing regression test is not due to changes in this PR. It is due to that regression test's use of uninitialized memory. It is unreasonable to expect that test to work at all, and its failures should not hold up valid development. |
Yes, but there's no telling how long it would take to fix the stochastic physics. I would rather remove that regression test until its bugs are fixed. |
These changes are in ufs-community#1195 and will be merged back to gsl/develop after the community repositories are updated. |
#138 will merge these changes |
Yes, I'm rerunning this case with printouts.
When it crashed at this point in the past, there was always bad input.
…On Thu, Mar 31, 2022 at 4:15 PM tanyasmirnova ***@***.***> wrote:
@joeolson42 <https://github.com/joeolson42> @SamuelTrahanNOAA
<https://github.com/SamuelTrahanNOAA> It crashes in MYNN surface: 7:
libpthread-2.17.s 00002AAFE5512630 Unknown Unknown Unknown
7: fv3.exe 0000000003369872 module_sf_mynn_mp *3756 module_sf_mynn.F90*
7: fv3.exe 0000000003369469 module_sf_mynn_mp 3494 module_sf_mynn.F90
—
Reply to this email directly, view it on GitHub
<#131 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADLRR3VK5A5VBBVBWLGLHFLVCYPWVANCNFSM5RVPBMAA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
--
Joseph Olson
Model Physics Branch Chief
Environmental Prediction Advancement Division
NOAA-Global Systems Laboratory
Boulder, Colorado
|
Description
Edit again by @SamuelTrahanNOAA The regional_spp_sppt_shum_skeb fails in this PR, but that is not due to this PR's changes. The thompson scheme uses uninitialized memory when stochastic physics is enabled, and that's what regional_spp_sppt_shum_skeb tests. This PR changes totally unrelated portions of the code, but it is just enough to put nonphysical values in the uninitialized thompson scheme variables. PR ufs-community#1152 in the community repository should fix this.
"To Do" List
sfclay_compute_flux=.true.