-
Notifications
You must be signed in to change notification settings - Fork 706
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
Implementation of MYNN-EDMF submodule #2148
base: develop
Are you sure you want to change the base?
Conversation
|
Results after the latest update:
|
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.
Fine from rest-of-physics perspective
@if [ \( ! -f module_bl_mynnedmf.F \) -o \( ! -f module_bl_mynedmf_common.F \) -o \ | ||
\( ! -f module_bl_mynnedmf_driver.F \) ] ; then \ | ||
echo Pulling in MYNN-EDMF submodule ; \ | ||
( cd .. ; git submodule update --init --recursive ) ; \ |
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.
Does this always get the latest modules/files from the MYNN repository?
No. When you do the "git add MYNN-EDMF" from the physics directory, it ties
WRF to that specific hash of the MYNN-EDMF.
I would have to make another PR to update the specific version of the
MYNN-EDMF that is automatically cloned when cloning WRF.
That said, anyone can go into the MYNN-EDMF directory and do a "git pull"
to get the latest if they so desire.
…-joe
On Mon, Jan 13, 2025 at 1:06 AM weiwangncar ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In phys/Makefile
<#2148 (comment)>:
> @@ -270,7 +270,17 @@ submodules :
else \
echo No action required for NoahMP submodule ; \
fi
-
+ @if [ \( ! -f module_bl_mynnedmf.F \) -o \( ! -f module_bl_mynedmf_common.F \) -o \
+ \( ! -f module_bl_mynnedmf_driver.F \) ] ; then \
+ echo Pulling in MYNN-EDMF submodule ; \
+ ( cd .. ; git submodule update --init --recursive ) ; \
Does this always get the latest modules/files from the MYNN repository?
—
Reply to this email directly, view it on GitHub
<#2148 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADLRR3SBCHU773OXZWHEM2D2KNQWXAVCNFSM6AAAAABUN5MS3KVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDKNBVHA2TOMBZGM>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
--
Joseph Olson
Numerical Weather Prediction Model Developer
Environmental Prediction Advancement Division
NOAA-Global Systems Laboratory
Boulder, Colorado
|
OK. That's the behavior we want. We want the hash to stay fixed for a release. |
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.
Is there any specific reason we want to continue using git submodules for new changes, as opposed to manage_externals
?
Also this needs to be updated for the CMake build as well.
In this case the developer found it easier to follow the existing NoahMP
example as we didn't have manage_externals in the last release.
…On Tue, Jan 14, 2025 at 12:05 PM Anthony Islas ***@***.***> wrote:
***@***.**** requested changes on this pull request.
Is there any specific reason we want to continue using git submodules for
new changes, as opposed to manage_externals?
Also this needs to be updated for the CMake build as well.
—
Reply to this email directly, view it on GitHub
<#2148 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEIZ77HDP3HE4OAJNZ7UMRL2KVNW3AVCNFSM6AAAAABUN5MS3KVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDKNJQG44TCMJVGQ>
.
You are receiving this because your review was requested.Message ID:
***@***.***>
|
@dudhia I understand, however as we now have If our plans are not to move things under |
Not knowing what it entails myself, what would such a change look like from
the point of view of the developer with his own repository and the way they
do updates.
I also want to see if the CCPP people have a preferred way of doing this.
…On Tue, Jan 14, 2025 at 1:10 PM Anthony Islas ***@***.***> wrote:
@dudhia <https://github.com/dudhia> I understand, however as we now have
manage_externals in place within the develop branch, if we plan on
managing submodules that way we have the opportunity to implement these
changes with manage_externals right now while this is still in review.
Deferring this adds technical debt that must be address by *someone* at
some future time.
If our plans are not to move things under manage_externals, then that's
fine but it does beg the question why manage_externals was introduced in
the first place...
—
Reply to this email directly, view it on GitHub
<#2148 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEIZ77ERM5IXC7QUK4ILYSD2KVVK7AVCNFSM6AAAAABUN5MS3KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKOJRGAYTANBQHA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
My understanding is that whether using manage externals or submodule does not have impact on how the source code repositories are maintained. It is the choice of the host model. |
I agree with that. So far my thinking was that only shared physics had to
be manage externals.
…On Tue, Jan 14, 2025 at 6:10 PM weiwangncar ***@***.***> wrote:
My understanding is that whether using manage externals or submodule does
not have impact on how the source code repositories are maintained. It is
the choice of the host model.
Since Joe is not familiar with the use of manage externals, one way to
work with this is to merge this PR first, and I can make the change to use
manage externals after that.
—
Reply to this email directly, view it on GitHub
<#2148 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEIZ77GUBU64EQXHMMGUCND2KWYPDAVCNFSM6AAAAABUN5MS3KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKOJRGQZDINRUGI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
This replaces the original (non submodule) MYNN with the public-facing MYNN-EDMF submodule, which will the central point of development for the MYNN-EDMF in WRF, MPAS, and CCPP.
TYPE: bug fix, enhancement, and new feature
KEYWORDS: refactored, submodule, MYNN-EDMF
SOURCE: Joseph Olson (NOAA/GSL)
DESCRIPTION OF CHANGES:
LIST OF MODIFIED FILES: list of changed files (use
git diff --name-status master
to get formatted list)M .gitmodules
M Makefile
M Registry/Registry.EM_COMMON
M clean
M dyn_em/module_first_rk_step_part1.F
M main/depend.common
A phys/MYNN-EDMF
M phys/Makefile
D phys/module_bl_mynn.F
D phys/module_bl_mynn_common.F
D phys/module_bl_mynn_wrapper.F
M phys/module_pbl_driver.F
M phys/module_physics_init.F
TESTS CONDUCTED:
RELEASE NOTE: Submodule implementation of the MYNN-EDMF (https://github.com/NCAR/MYNN-EDMF). The module names changed from mynn to mynnedmf to resolve a version conflict in MPAS. This version was originally developed within FV3/CCPP for RRFSv1, but has been refactored (to a k-only scheme) resulting in a speed-up of about 10-15% and it has since been tuned to better perform in MPAS and WRF compared to previous versions which were primarily developed for use in FV3.