Only build the two supported CCPP suites; allow user to overwrite default suites #47
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
DESCRIPTION OF CHANGES:
The fv3 dycore release/public-v2 branch is being updated (NOAA-EMC/fv3atm#190) to only include the two supported CCPP suites (FV3_GFS_v15p2 and FV3_RRFS_v1beta). Since CMake is currently hardcoded to build many more suites than this, I need to update the list to only include these two.
Additionally, I included logic to allow the user to overwrite the default suites on the command line, by including the line "-DCCPP_SUITES=suite1,suite2,etc." in the cmake command.
TESTS CONDUCTED:
NOTE: After this change is committed, all tests that do not use one of the above two CCPP suites will fail unless you specify a different set of suites at build time!
Successfully built the app on MacOS with gnu-10 compilers (using a pending UFS_UTILS change) and on Hera with intel. Ran the suggested core suite of tests on Hera, and all passed:
When I pass the flag "-DCCPP_SUITES=FV3_GFS_v15p2 " at the cmake step, the "RRFS_v1beta" tests fail as expected, since that suite is not built.
ISSUE:
I could have sworn there was an issue for removing the unsupported CCPP suites from the release branch, but I can't find it if it still exists...