enable building stochastic_physics using CMake#3
Open
guoqing-noaa wants to merge 6 commits intodtcenter:gsl/MPAS_stoch_physicsfrom
Open
enable building stochastic_physics using CMake#3guoqing-noaa wants to merge 6 commits intodtcenter:gsl/MPAS_stoch_physicsfrom
guoqing-noaa wants to merge 6 commits intodtcenter:gsl/MPAS_stoch_physicsfrom
Conversation
Author
|
Note: it is better to merge this PR dtcenter/stochastic_physics#3 first. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This PR enable building stochastic_physics using CMake.
core_atmosphere/CMakeLists.txtto build stochastic_physics as a module for MPAS-Modelstochastic_physicsto usempiinstead ofmpi_f08as the default MPAS-Model compiles withmpi.This is the first step to make the stochastic compiling successfully using CMake. Future PR will introduce
#ifdef MPAS_USE_MPI_F08as has been done in MPAS-Model.fmslibrary and this capability may be added in future PRs (so,halo_exchange.fv3.F90, cellular_automata_global.F90, cellular_automata_sgs.F90, update_ca.F90are excluded in CMakeLists.txt for now).CCPP_32BITis defined. The parent MPAS-Model sets this or not depending on whether to build with double precision.core_atmosphere/stochastic_physics/CMakeLists.txtis NOT used by the parent MPAS-Model. So any changes in that file will not affect the MPAS-Model. This is consistent with the current MPAS-Model practice.If needed, a
-DSTOCHASTIC_PHYSICS=ONoption may be added to turn on/off the building of stochastic_physics in a future PR.