Disable physics for MPAS dycore-only build #1281
Merged
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.
When building MPAS as a dynamical core, all physics-related components are disabled. This build configuration is usually used by CAM/CAM-SIMA, and can be achieved by defining the
MPAS_CAM_DYCORE
macro inCPPFLAGS
.On the other hand, the
PHYSICS
Makefile variable controls whether physics are enabled in MPAS, but its logic is decoupled from theMPAS_CAM_DYCORE
macro. Disabling physics in MPAS currently requires manual interventions.This PR disables physics automatically when the
MPAS_CAM_DYCORE
macro is found inCPPFLAGS
. It mainly benefits CAM-SIMA, which reuses the build infrastructure of MPAS for building it as a dynamical core.For stand-alone MPAS and CAM, this PR is an NFC (No Functional Change).