Skip to content
This repository was archived by the owner on Nov 18, 2026. It is now read-only.

Bugfix/ecbuild35 support - #21

Merged
jjguerrette merged 6 commits into
release-stablefrom
bugfix/ecbuild35-support
Jun 2, 2021
Merged

jjguerrette merged 6 commits into
release-stablefrom
bugfix/ecbuild35-support

Conversation

@markjolah

@markjolah markjolah commented May 11, 2021 •

Copy link
Copy Markdown

DESCRIPTION OF CHANGES: Update for ecbuild3.5+ support. This builds on initial work by @byoung-joo.

  • I now use ${PROJECT_NAME} variable everywhere appropriate to make the switch of names easier. Currently it is MPAS.
  • Fix a problem in the PackageConfig.cmake.in which certain properties are not present when using the MPAS target as an imported interface target from downstream dependencies.

This should be backwards compatible with older ecbuilds also.

LIST OF MODIFIED FILES:
M CMakeLists.txt
M cmake/PackageConfig.cmake.in
M src/core_atmosphere/CMakeLists.txt
M src/external/esmf_time_f90/CMakeLists.txt
M src/external/ezxml/CMakeLists.txt
M src/framework/CMakeLists.txt
M src/operators/CMakeLists.txt
M src/tools/input_gen/CMakeLists.txt
M src/tools/registry/CMakeLists.txt

TESTS CONDUCTED:
mpasjedi ctests pass on Cheyenne with jedi/gnu-openmpi/9.1.0-v0.4.

byoung-joo and others added 5 commits April 7, 2021 15:47
 On branch feature/ecbuild35
 Changes to be committed:
	modified:   CMakeLists.txt
	modified:   cmake/PackageConfig.cmake.in
	modified:   src/core_atmosphere/CMakeLists.txt
	modified:   src/core_init_atmosphere/CMakeLists.txt
	modified:   src/core_sw/CMakeLists.txt
	modified:   src/core_test/CMakeLists.txt
	modified:   src/external/esmf_time_f90/CMakeLists.txt
	modified:   src/external/ezxml/CMakeLists.txt
	modified:   src/framework/CMakeLists.txt
	modified:   src/operators/CMakeLists.txt
	modified:   src/tools/input_gen/CMakeLists.txt
	modified:   src/tools/registry/CMakeLists.txt
@markjolah markjolah added bug Something is not working JEDI1 labels May 11, 2021
@markjolah markjolah self-assigned this May 11, 2021
@jjguerrette

jjguerrette commented May 12, 2021 •

Copy link
Copy Markdown

Do we absolutely need to change the project name to mpas instead of MPAS? This is getting further away from my own preference of having it be the same name as the actual repo, MPAS-Model.

@byoung-joo

Copy link
Copy Markdown
Collaborator

Do we absolutely need to change the project name to mpas instead of MPAS? This is getting further away from my own preference of having it be the same name as the actual repo, MPAS-Model.

It might not be necessary, per @markjolah's previous comment. I will test the build with changing mpas back to MPAS.

@markjolah

Copy link
Copy Markdown
Author

@jjguerrette @byoung-joo From a technical standpoint, you can make the name whatever you want. You just have to make sure it gets capitalized correctly everywhere universally. I changed many of the locations to use the generic variable ${PROJECT_NAME} already. What capitalization is the most logical/readable?

@markjolah

Copy link
Copy Markdown
Author

I would probably suggest you go back to the original capitalization of MPAS. I was assuming from the existing changes you wanted lowercase. There are some complications with using a - in the name because the exported variable names can't use the - character.

@byoung-joo

Copy link
Copy Markdown
Collaborator

Thank you for changing the name, @markjolah. Tested on Cheyenne with release and debug build of jedi/gnu-openmpi/ecbuild35 and release build of jedi/intel-impi/ecbuild35.

@jjguerrette

Copy link
Copy Markdown

Can this be merged without changes in mpas-bundle and mpas-jedi? If so, @byoung-joo do you mind merging?

@byoung-joo

Copy link
Copy Markdown
Collaborator

Can this be merged without changes in mpas-bundle and mpas-jedi?

I don't know. Let me test that on Cheyenne first. If everything looks good, I will merge this first.

@byoung-joo

Copy link
Copy Markdown
Collaborator

Hi @jjguerrette ,
This PR works well with current develop branch of mpasjedi within jedi/gnu-openmpi/9.1.0-v0.4 module on Cheyenne. I had to test this explicitly. I will merge this PR now.

@jjguerrette

Copy link
Copy Markdown

Thank you @byoung-joo!

@byoung-joo

Copy link
Copy Markdown
Collaborator

Oh I just realized that I don't have permission to merge this PR. Perhaps release-stable is a restricted branch. @jjguerrette, you can merge this. I tested this PR on Cheyenne.

@jjguerrette

jjguerrette commented Jun 2, 2021 •

Copy link
Copy Markdown

I tested this PR on Cheyenne.

@byoung-joo, you tested with ecbuild35? Also with old ecbuild? The only distinction is in how we leave the env-setup scripts before merging. If they remain with ecbuild35 modules on Cheyenne, then we need a follow-up issue to revert them to the default module names after the modules on Cheyenne are updated.

@jjguerrette

Copy link
Copy Markdown

Nevermind @byoung-joo. I got confused with mpas-bundle.

@jjguerrette
jjguerrette merged commit fbbba08 into release-stable Jun 2, 2021
@jjguerrette
jjguerrette deleted the bugfix/ecbuild35-support branch June 2, 2021 23:35
climbfuji pushed a commit that referenced this pull request Aug 26, 2022
DESCRIPTION OF CHANGES: Update for ecbuild3.5+ support.  This builds on initial work by @byoung-joo.
-  I now use `${PROJECT_NAME}` variable everywhere appropriate to make the switch of names easier.  Currently it is `MPAS`.
- Fix a problem in the `PackageConfig.cmake.in` which certain properties are not present when using the `MPAS` target as an imported interface target from downstream dependencies.

This should be backwards compatible with older ecbuilds also.

LIST OF MODIFIED FILES:
M       CMakeLists.txt
M       cmake/PackageConfig.cmake.in
M       src/core_atmosphere/CMakeLists.txt
M       src/external/esmf_time_f90/CMakeLists.txt
M       src/external/ezxml/CMakeLists.txt
M       src/framework/CMakeLists.txt
M       src/operators/CMakeLists.txt
M       src/tools/input_gen/CMakeLists.txt
M       src/tools/registry/CMakeLists.txt

TESTS CONDUCTED:
mpasjedi ctests pass on Cheyenne with jedi/gnu-openmpi/9.1.0-v0.4.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

bug Something is not working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants