-
Notifications
You must be signed in to change notification settings - Fork 543
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
ww3 scotch #849
Merged
Merged
ww3 scotch #849
Changes from 9 commits
Commits
Show all changes
42 commits
Select commit
Hold shift + click to select a range
bb58f83
add scotch to dev
ba2f34f
add options for METIS and SCOTCH to GNU build
3655fac
add cmake capability to scotch
faa8d28
Merge remote-tracking branch 'upstream/develop' into ww3_scotch_dev
771e72f
few fixes
7135e29
update regtests
2c0d832
remove tmp link and comp
cc9bf72
fix typo
12baa6b
update regtests/bin/run_test
55f72e8
fix model/src/CMakeLists.txt
4014f78
add SCOTCH/METIS to bin/switch*pdlib*
4d1fba6
update cache_key for github action
604f04c
consolidate cmake/Find*.cmake files
0d2e4b3
some check
588fc54
more check
7fa9ebd
more checks
68ddc3a
another try
13cf941
another try2
65e8061
another try3
25fc80b
another try4
c65eadc
revert switch in model/bin/switch_ite_pdlib
1e9ab18
Update spack.yaml
aliabdolali da5716a
Update spack.yaml
aliabdolali 28b1ff0
Merge remote-tracking branch 'upstream/develop' into ww3_scotch_dev
4a1b270
merge dev
ca072e4
Merge remote-tracking branch 'upstream/develop' into ww3_scotch_dev
b0e025a
Merge remote-tracking branch 'EMCWW3/develop' into new/scotchfix
JessicaMeixner-NOAA 3007ca8
updates to cmake and ci
JessicaMeixner-NOAA 158cc6d
sync dev
1401eda
rename COASTAL to STI on Hera
8184ada
Merge pull request #9 from JessicaMeixner-NOAA/new/scotchfix
aliabdolali 1eb026f
merge upstream dev
3ac6cb9
matrix_cmake_ncep: add updated SCOTCH_PATH
MatthewMasarik-NOAA 8cf103a
matrix_cmake_ncep: add updated SCOTCH_PATH for orion
MatthewMasarik-NOAA 1211770
matrix_cmake_ncep: re-order module loads
MatthewMasarik-NOAA 98509cb
matrix_cmake_ncep: re-order module loads for hera
MatthewMasarik-NOAA 445a3df
matrix_cmake_ncep: gnu module use/loads
MatthewMasarik-NOAA 9340d8f
matrix_cmake_ncep: re-order gnu mods
MatthewMasarik-NOAA a3c8bb8
re-re-order of module loads
MatthewMasarik-NOAA 1ca5152
matrix_cmake_ncep: remove gnu module related
MatthewMasarik-NOAA 67c91ff
Merge pull request #10 from MatthewMasarik-NOAA/ww3_scotch_dev
thesser1 d6b5427
merge upstream
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
There are no files selected for viewing
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,20 @@ | ||
message(STATUS "Searching for PTSCOTCH library ...") | ||
|
||
find_library(ptscotch_lib NAMES libptscotch.a HINTS ENV SCOTCH_PATH PATH_SUFFIXES lib) | ||
find_path(ptscotch_inc ptscotch.h HINTS ENV SCOTCH_PATH PATH_SUFFIXES include) | ||
|
||
add_library(PTSCOTCH::PTSCOTCH STATIC IMPORTED) | ||
|
||
set_target_properties(PTSCOTCH::PTSCOTCH PROPERTIES | ||
IMPORTED_LOCATION "${ptscotch_lib}" | ||
INTERFACE_INCLUDE_DIRECTORIES "${ptscotch_inc}") | ||
|
||
## Finalize find_package | ||
include(FindPackageHandleStandardArgs) | ||
|
||
find_package_handle_standard_args( | ||
${CMAKE_FIND_PACKAGE_NAME} | ||
REQUIRED_VARS ptscotch_lib | ||
ptscotch_inc) | ||
|
||
message(STATUS "Found PTSCOTCH: ${ptscotch_lib}") |
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,20 @@ | ||
message(STATUS "Searching for PTSCOTCHerr library ...") | ||
|
||
find_library(ptscotcherr_lib NAMES libptscotcherr.a HINTS ENV SCOTCH_PATH PATH_SUFFIXES lib) | ||
find_path(ptscotcherr_inc ptscotch.h HINTS ENV SCOTCH_PATH PATH_SUFFIXES include) | ||
|
||
add_library(PTSCOTCHerr::PTSCOTCHerr STATIC IMPORTED) | ||
|
||
set_target_properties(PTSCOTCHerr::PTSCOTCHerr PROPERTIES | ||
IMPORTED_LOCATION "${ptscotcherr_lib}" | ||
INTERFACE_INCLUDE_DIRECTORIES "${ptscotcherr_inc}") | ||
|
||
## Finalize find_package | ||
include(FindPackageHandleStandardArgs) | ||
|
||
find_package_handle_standard_args( | ||
${CMAKE_FIND_PACKAGE_NAME} | ||
REQUIRED_VARS ptscotcherr_lib | ||
ptscotcherr_inc) | ||
|
||
message(STATUS "Found PTSCOTCHerr: ${ptscotcherr_lib}") |
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,20 @@ | ||
message(STATUS "Searching for PTSCOTCHparmetis library ...") | ||
find_library(ptscotchparmetis_lib NAMES libptscotchparmetisv3.a HINTS ENV SCOTCH_PATH PATH_SUFFIXES lib) | ||
find_path(ptscotchparmetis_inc parmetis.h HINTS ENV SCOTCH_PATH PATH_SUFFIXES include) | ||
|
||
add_library(PTSCOTCHparmetis::PTSCOTCHparmetis STATIC IMPORTED) | ||
|
||
set_target_properties(PTSCOTCHparmetis::PTSCOTCHparmetis PROPERTIES | ||
IMPORTED_LOCATION "${ptscotchparmetis_lib}" | ||
INTERFACE_INCLUDE_DIRECTORIES "${ptscotchparmetis_inc}") | ||
|
||
## Finalize find_package | ||
include(FindPackageHandleStandardArgs) | ||
|
||
find_package_handle_standard_args( | ||
${CMAKE_FIND_PACKAGE_NAME} | ||
REQUIRED_VARS ptscotchparmetis_lib | ||
ptscotchparmetis_inc) | ||
|
||
message(STATUS "Found PTSCOTCHparmetis: ${ptscotchparmetis_lib}") | ||
|
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,21 @@ | ||
message(STATUS "Searching for SCOTCH library ...") | ||
|
||
find_library(scotch_lib NAMES libscotch.a HINTS ENV SCOTCH_PATH PATH_SUFFIXES lib) | ||
find_path(scotch_inc scotch.h HINTS ENV SCOTCH_PATH PATH_SUFFIXES include) | ||
|
||
add_library(SCOTCH::SCOTCH STATIC IMPORTED) | ||
|
||
set_target_properties(SCOTCH::SCOTCH PROPERTIES | ||
IMPORTED_LOCATION "${scotch_lib}" | ||
INTERFACE_INCLUDE_DIRECTORIES "${scotch_inc}") | ||
|
||
## Finalize find_package | ||
include(FindPackageHandleStandardArgs) | ||
|
||
find_package_handle_standard_args( | ||
${CMAKE_FIND_PACKAGE_NAME} | ||
REQUIRED_VARS scotch_lib | ||
scotch_inc) | ||
|
||
message(STATUS "Found SCOTCH: ${scotch_lib}") | ||
|
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,22 @@ | ||
message(STATUS "Searching for SCOTCHerr library ...") | ||
|
||
find_library(scotcherr_lib NAMES libscotcherr.a HINTS ENV SCOTCH_PATH PATH_SUFFIXES lib) | ||
find_path(scotcherr_inc scotch.h HINTS ENV SCOTCH_PATH PATH_SUFFIXES include) | ||
|
||
add_library(SCOTCHerr::SCOTCHerr STATIC IMPORTED) | ||
|
||
|
||
set_target_properties(SCOTCHerr::SCOTCHerr PROPERTIES | ||
IMPORTED_LOCATION "${scotcherr_lib}" | ||
INTERFACE_INCLUDE_DIRECTORIES "${scotcherr_inc}") | ||
|
||
|
||
## Finalize find_package | ||
include(FindPackageHandleStandardArgs) | ||
|
||
find_package_handle_standard_args( | ||
${CMAKE_FIND_PACKAGE_NAME} | ||
REQUIRED_VARS scotcherr_lib | ||
scotcherr_inc) | ||
|
||
message(STATUS "Found SCOTCHerr: ${scotcherr_lib}") |
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
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Continuous Integration | ||
WW3 uses Github Actions for continuous integration. | ||
|
||
This directory contains a Spack environment file to build library dependencies such as NetCDF, ESMF, ParMETIS, and g2. | ||
This directory contains a Spack environment file to build library dependencies such as NetCDF, ESMF, ParMETIS, SCOTCH and g2. |
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 |
---|---|---|
|
@@ -5,6 +5,7 @@ spack: | |
specs: | ||
- [email protected]~shared | ||
- [email protected]~shared | ||
- [email protected]~shared | ||
- [email protected]~dap | ||
- [email protected] | ||
- [email protected] | ||
|
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
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
Oops, something went wrong.
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.
Why not have this in the same "if("PDLIB" IN_LIST switches)" if statement as above?
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.
Done