Skip to content

Commit

Permalink
Add scotch library
Browse files Browse the repository at this point in the history
  • Loading branch information
DusanJovic-NOAA committed Nov 1, 2023
1 parent 10169ef commit c3250b9
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
8 changes: 8 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,8 @@ export GFTL_SHARED_ROOT=${ufslibs_install_prefix}/gftl_shared
export YAFYAML_ROOT=${ufslibs_install_prefix}/yafyaml
export MAPL_ROOT=${ufslibs_install_prefix}/mapl

export SCOTCH_ROOT=${ufslibs_install_prefix}/scotch

#
# preproc
#
Expand Down Expand Up @@ -214,6 +216,12 @@ printf '%-.30s ' "Building model ..........................."
# -DCCPP_SUITES="FV3_GFS_v16" \
# -DCMAKE_INSTALL_PREFIX=install

# cmake .. -DAPP=S2SWA \
# -DCCPP_SUITES="FV3_GFS_v17_coupled_p8_ugwpv1" \
# -D32BIT=ON \
# -DPDLIB=ON \
# -DCMAKE_INSTALL_PREFIX=install

make -j 8
make install

Expand Down
23 changes: 23 additions & 0 deletions libs/ufslibs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -568,3 +568,26 @@ ExternalProject_Add(mapl
LOG_INSTALL ON
)
ExternalProject_Add_StepDependencies(mapl build esmf ecbuild cmakemodules esma_cmake yafyaml)

##
## scotch
##
ExternalProject_Add(scotch
URL https://gitlab.inria.fr/scotch/scotch/-/archive/v7.0.4/scotch-v7.0.4.tar.gz
URL_HASH MD5=da80cae85216f666fc31c45558fee832
BUILD_IN_SOURCE OFF
LIST_SEPARATOR ,
CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${install_prefix}/scotch
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_C_STANDARD=99
-DBUILD_LIBSCOTCHMETIS=ON
-DINSTALL_METIS_HEADERS=ON
-DBUILD_LIBESMUMPS=OFF
-DBUILD_SHARED_LIBS=OFF
-DBUILD_PTSCOTCH=ON
-DTHREADS=OFF
-DMPI_THREAD_MULTIPLE=OFF
LOG_DOWNLOAD ON
LOG_CONFIGURE ON
LOG_BUILD ON
)

0 comments on commit c3250b9

Please sign in to comment.