-
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
Add manage externals to access MMM-physics repo #2126
Conversation
The regression test results:
|
@weiwangncar After talking it over a bit with @mgduda, I think it would be best in this case to use manage externals from the top-level directory (changing the This would allow future usage of manage_externals with less of an implicit path to run a config file located in |
@islas What does this mean? '... or have the Externals.cfg file in the location it is meant to be run.' Which location does this refer to? |
In that case the config file would be directly in the location the command |
@weiwangncar Thanks! Though, just to clarify, my original recommendation should not have cluttered the top directory as the command would have looked like: |
@islas Are you saying instread of running tools/manage_externals/checkout_externals from phys/Makefile, I should add it and run it in the top-level Makefile? I'm still missing the point, sorry. |
I think the simplest way might just be in the So like:
You can also see an example of changing directories within a single subshell call in make in The above with the change to the |
@islas If I have (cd .. && .....), do I need to have a 'cd phys' to come back to phys directory to execute the following 'make' command? |
I don't think you will need to as it will be executed in a subshell that then exits at the end of the parentheses |
Use the execute_process function to checkout externals always before adding sources. Run the command from the top level project root directory.
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.
I will approve this based on not seeing anything to question.
@weiwangncar Good point. We need to remember to do that. It may already be newer than the MPAS tag. |
TYPE: enhancement, no impact
KEYWORDS: manage_externals, some physics for tropical suite
SOURCE: internal
DESCRIPTION OF CHANGES:
Add the use of manage_externals tool to access physics in MMM-physics repository. The physics we access are part of the 'tropical' suite: YSU PBL, revised MM5 surface layer, WSM6 microphysics, and new Tiedtke scheme. It also accesses GWDO option 1 routine. These modules have been residing in phys/physics_mmm/ in 4.6. Instead of copied files in this directory, we now use manage_externals to access these modules from MMM-physics repository.
Will need to update the tags specified in Externals.cfg before final release.
LIST OF MODIFIED FILES:
A arch/Externals.cfg
M phys/Makefile
D phys/physics_mmm/bl_gwdo.F90
D phys/physics_mmm/bl_ysu.F90
D phys/physics_mmm/cu_ntiedtke.F90
D phys/physics_mmm/module_libmassv.F90
D phys/physics_mmm/mp_radar.F90
D phys/physics_mmm/mp_wsm6.F90
D phys/physics_mmm/mp_wsm6_effectRad.F90
D phys/physics_mmm/sf_sfclayrev.F90
A tools/manage_externals/
TESTS CONDUCTED:
RELEASE NOTE: Add manage_externals tool to access physics modules in MMM-physics git repository.