Skip to content

Commit

Permalink
Merge pull request NOAA-EMC#9 from JessicaMeixner-NOAA/new/scotchfix
Browse files Browse the repository at this point in the history
Update to CMAKE and CI testing for SCOTCH
  • Loading branch information
aliabdolali authored Feb 12, 2023
2 parents 1401eda + 3007ca8 commit 8184ada
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/gnu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ concurrency:
cancel-in-progress: true

env:
cache_key: gnu7
cache_key: gnu8
CC: gcc-10
FC: gfortran-10
CXX: g++-10
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/intel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ concurrency:

# Set I_MPI_CC/F90 so Intel MPI wrapper uses icc/ifort instead of gcc/gfortran
env:
cache_key: intel8
cache_key: intel9
CC: icc
FC: ifort
CXX: icpc
Expand Down
4 changes: 1 addition & 3 deletions cmake/FindSCOTCH.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,7 @@ set_target_properties(PTSCOTCHparmetis::PTSCOTCHparmetis PROPERTIES


## Interfaces and links
target_link_libraries(PTSCOTCHparmetis::PTSCOTCHparmetis INTERFACE PTSCOTCHerr::PTSCOTCHerr SCOTCHerr::SCOTCHerr PTSCOTCH::PTSCOTCH SCOTCH::SCOTCH)

target_link_libraries(ww3_lib PUBLIC PTSCOTCHparmetis::PTSCOTCHparmetis SCOTCHerr::SCOTCHerr)
target_link_libraries(PTSCOTCHparmetis::PTSCOTCHparmetis INTERFACE PTSCOTCH::PTSCOTCH PTSCOTCHerr::PTSCOTCHerr SCOTCH::SCOTCH)


## Finalize find_package
Expand Down
2 changes: 1 addition & 1 deletion model/bin/switch_ite_pdlib
Original file line number Diff line number Diff line change
@@ -1 +1 @@
NOGRB PDLIB METIS TRKNC DIST MPI PR3 UQ FLX0 LN1 ST4 STAB0 NL1 BT4 DB1 TR0 BS0 IC0 IS0 REF1 WNT2 WNX1 RWND CRT1 CRX1 TIDE O0 O1 O2 O2a O2b O2c O3 O4 O5 O6 O7
NOGRB PDLIB SCOTCH TRKNC DIST MPI PR3 UQ FLX0 LN1 ST4 STAB0 NL1 BT4 DB1 TR0 BS0 IC0 IS0 REF1 WNT2 WNX1 RWND CRT1 CRX1 TIDE O0 O1 O2 O2a O2b O2c O3 O4 O5 O6 O7
3 changes: 2 additions & 1 deletion model/ci/spack_gnu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ spack:
specs:
- [email protected]~shared
- [email protected]~shared
- [email protected]+mpi+metis~shared
- [email protected]~dap
- [email protected]
- [email protected]
Expand All @@ -15,4 +16,4 @@ spack:
- [email protected]~pio~pnetcdf~xerces
view: true
concretizer:
unify: true
unify: when_possible
3 changes: 2 additions & 1 deletion model/ci/spack_intel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ spack:
specs:
- [email protected]~shared
- [email protected]~shared
- [email protected]+mpi+metis~shared
- [email protected]~dap
- [email protected]
- [email protected]
Expand All @@ -17,4 +18,4 @@ spack:
- intel-oneapi-mpi %intel
view: true
concretizer:
unify: true
unify: when_possible
2 changes: 1 addition & 1 deletion model/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ if("PDLIB" IN_LIST switches)
if("SCOTCH" IN_LIST switches)
find_package(SCOTCH REQUIRED)
target_sources(ww3_lib PRIVATE ${pdlib_src})
target_link_libraries(ww3_lib PUBLIC SCOTCH::SCOTCH)
target_link_libraries(ww3_lib PUBLIC PTSCOTCHparmetis::PTSCOTCHparmetis)
elseif("METIS" IN_LIST switches)
find_package(ParMETIS REQUIRED)
target_sources(ww3_lib PRIVATE ${pdlib_src})
Expand Down

0 comments on commit 8184ada

Please sign in to comment.