-
Notifications
You must be signed in to change notification settings - Fork 242
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 support for cmake build system. #11
Merged
DusanJovic-NOAA
merged 17 commits into
ufs-community:ufs_public_release
from
DusanJovic-NOAA:ufs_public_release
Dec 5, 2019
Merged
Changes from 1 commit
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
2464455
Add CMakeLists.txt
DusanJovic-NOAA 575c1d0
Merge branch 'develop' into cmake_rt
DusanJovic-NOAA 186cf76
update after merge with develop (move ccpp under FV3)
DusanJovic-NOAA cf8e622
update ccpp prebuild step for out-of-source build. run all compiles c…
DusanJovic-NOAA 0e7ff41
add INLINE_POST cmake option
DusanJovic-NOAA ea43231
update FV3 submodule
DusanJovic-NOAA b8b2472
update cmake an regtest on jet
DusanJovic-NOAA ed950b6
Update .gitmodule to point to DusanJovic-NOAA/fv3atm
DusanJovic-NOAA 82412ab
remove cmake/configure_theia.*. set AVX2 to OFF in cmake/configure_li…
DusanJovic-NOAA 575a188
Update CMakeLists.txt. Enable WW3 on hera.
DusanJovic-NOAA 7ccd3ea
Add build.sh
DusanJovic-NOAA 39ec12f
Enable inline post on Hera
DusanJovic-NOAA b174df7
Update build.sh to use BUILD_JOBS environment variable if set. Update…
DusanJovic-NOAA d018c21
Merge remote-tracking branch 'origin/cmake_rt' into ufs_public_release
DusanJovic-NOAA e7dcda0
Remove comments about serialized ccpp builds. All build jobs are now …
DusanJovic-NOAA d62d01a
Updates for compiling on macOS with clang/gfortran or gcc/gfortran (#1)
climbfuji d909be3
Update .gitmodules and fv3atm submodule pointer
DusanJovic-NOAA File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
add INLINE_POST cmake option
- Loading branch information
commit 0e7ff414024439b1d17f1396dbbdc0676e643905
There are no files selected for viewing
Submodule FV3
updated
6 files
+3 −1 | ccpp/driver/CMakeLists.txt | |
+3 −1 | gfsphysics/CMakeLists.txt | |
+7 −2 | io/CMakeLists.txt | |
+3 −1 | ipd/CMakeLists.txt | |
+3 −1 | namphysics/CMakeLists.txt | |
+3 −1 | stochastic_physics/CMakeLists.txt |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
message("") | ||
DusanJovic-NOAA marked this conversation as resolved.
Show resolved
Hide resolved
|
||
message("Setting configuration for $ENV{CMAKE_Platform}") | ||
message("") | ||
|
||
get_filename_component (C_COMPILER_NAME ${CMAKE_C_COMPILER} NAME) | ||
get_filename_component (CXX_COMPILER_NAME ${CMAKE_CXX_COMPILER} NAME) | ||
get_filename_component (Fortran_COMPILER_NAME ${CMAKE_Fortran_COMPILER} NAME) | ||
message("C compiler: ${CMAKE_C_COMPILER_ID} ${CMAKE_C_COMPILER_VERSION} (${C_COMPILER_NAME})") | ||
message("CXX compiler: ${CMAKE_CXX_COMPILER_ID} ${CMAKE_CXX_COMPILER_VERSION} (${CXX_COMPILER_NAME})") | ||
message("Fortran compiler: ${CMAKE_Fortran_COMPILER_ID} ${CMAKE_Fortran_COMPILER_VERSION} (${Fortran_COMPILER_NAME})") | ||
message("") | ||
|
||
option(DEBUG "Enable DEBUG mode" OFF) | ||
option(REPRO "Enable REPRO mode" OFF) | ||
option(VERBOSE "Enable VERBOSE mode" OFF) | ||
option(32BIT "Enable 32BIT (single precision arithmetic in dycore)" OFF) | ||
option(OPENMP "Enable OpenMP threading" ON) | ||
option(AVX2 "Enable AVX2 instruction set" ON) | ||
|
||
option(INLINE_POST "Enable inline post" OFF) | ||
|
||
include( cmake/${CMAKE_Fortran_COMPILER_ID}.cmake ) | ||
|
||
set(NEMSIO_INC $ENV{NEMSIO_INC}) | ||
set(NCEP_LIBS $ENV{NEMSIO_LIB} $ENV{BACIO_LIB4} $ENV{SP_LIBd} $ENV{W3EMC_LIBd} $ENV{W3NCO_LIBd}) | ||
|
||
set(ESMF_MOD ${ESMF_F90COMPILEPATHS}) | ||
set(ESMF_LIBS "${ESMF_F90ESMFLINKRPATHS} ${ESMF_F90ESMFLINKPATHS} ${ESMF_F90ESMFLINKLIBS}") | ||
|
||
set(NETCDF_INC_DIR $ENV{NETCDF}/include) | ||
set(NETCDF_LIBDIR $ENV{NETCDF}/lib) | ||
set(NETCDF_LIBS -L$ENV{NETCDF}/lib -lnetcdff -lnetcdf) | ||
|
||
message("") |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
message("") | ||
message("Setting configuration for $ENV{CMAKE_Platform}") | ||
message("") | ||
|
||
get_filename_component (C_COMPILER_NAME ${CMAKE_C_COMPILER} NAME) | ||
get_filename_component (CXX_COMPILER_NAME ${CMAKE_CXX_COMPILER} NAME) | ||
get_filename_component (Fortran_COMPILER_NAME ${CMAKE_Fortran_COMPILER} NAME) | ||
message("C compiler: ${CMAKE_C_COMPILER_ID} ${CMAKE_C_COMPILER_VERSION} (${C_COMPILER_NAME})") | ||
message("CXX compiler: ${CMAKE_CXX_COMPILER_ID} ${CMAKE_CXX_COMPILER_VERSION} (${CXX_COMPILER_NAME})") | ||
message("Fortran compiler: ${CMAKE_Fortran_COMPILER_ID} ${CMAKE_Fortran_COMPILER_VERSION} (${Fortran_COMPILER_NAME})") | ||
message("") | ||
|
||
option(DEBUG "Enable DEBUG mode" OFF) | ||
option(REPRO "Enable REPRO mode" OFF) | ||
option(VERBOSE "Enable VERBOSE mode" OFF) | ||
option(32BIT "Enable 32BIT (single precision arithmetic in dycore)" OFF) | ||
option(OPENMP "Enable OpenMP threading" ON) | ||
option(AVX2 "Enable AVX2 instruction set" OFF) | ||
|
||
option(INLINE_POST "Enable inline post" OFF) | ||
|
||
include( cmake/${CMAKE_Fortran_COMPILER_ID}.cmake ) | ||
|
||
set(NEMSIO_INC $ENV{NEMSIO_INC}) | ||
set(POST_INC $ENV{POST_INC}) | ||
set(NCEP_LIBS $ENV{POST_LIB} $ENV{NEMSIO_LIB} $ENV{G2_LIB4} $ENV{G2TMPL_LIB} $ENV{BACIO_LIB4} $ENV{SP_LIBd} $ENV{W3EMC_LIBd} $ENV{W3NCO_LIBd} $ENV{CRTM_LIB} $ENV{PNG_LIB} $ENV{JASPER_LIB} $ENV{Z_LIB}) | ||
|
||
set(ESMF_MOD ${ESMF_F90COMPILEPATHS}) | ||
set(ESMF_LIBS "${ESMF_F90ESMFLINKRPATHS} ${ESMF_F90ESMFLINKPATHS} ${ESMF_F90ESMFLINKLIBS}") | ||
|
||
set(NETCDF_INC_DIR $ENV{NETCDF}/include) | ||
set(NETCDF_LIBDIR $ENV{NETCDF}/lib) | ||
set(NETCDF_LIBS -L$ENV{NETCDF}/lib -lnetcdff -lnetcdf) | ||
|
||
message("") |
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.
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 would also add a mechanism to either abort if both REPRO and DEBUG are requested, or make one of the two superior (I suggest DEBUG). In the latter case, issue a warning that both REPRO and DEBUG where requested, and that DEBUG will be used (and REPRO disabled).