Skip to content

Commit 901a0e4

Browse files
authored
Merge pull request #85 from mhuguesaws/bugfix/#83_metis
Fix metis install link
2 parents ad5721c + 0570990 commit 901a0e4

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

apps/mpas/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ export I_MPI_OFI_LIBRARY_INTERNAL=0
175175
export I_MPI_OFI_PROVIDER=efa
176176
177177
module purge
178-
module load metis/5.1.0-gcc-10.3.0
178+
module load metis/5.2.1-gcc-10.3.0
179179
module load mpas-omp/7.1-intel-2022.2.0
180180
181181
#Create mesh decomposition for the specified MPI ranks

scripts/install/metis_install.sh

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ MODULES_PATH="/usr/share/Modules/modulefiles"
2222

2323
PACKAGE_NAME="metis"
2424

25-
PACKAGE_VERSION="5.1.0"
25+
PACKAGE_VERSION="5.2.1"
2626

2727
PACKAGE_ARCHIVE="${PACKAGE_NAME}-${PACKAGE_VERSION}.tar.gz"
2828
PACKAGE_TAR=$(echo $PACKAGE_ARCHIVE | cut -d'/' -f2)
29-
PACKAGE_URL="http://glaros.dtc.umn.edu/gkhome/fetch/sw/${PACKAGE_NAME}/${PACKAGE_ARCHIVE}"
29+
PACKAGE_URL="https://codeload.github.com/KarypisLab/METIS/tar.gz/refs/tags/v${PACKAGE_VERSION}"
3030

3131
ENVIRONMENT="gcc/10.3.0;openmpi/4.1.4"
3232

@@ -90,17 +90,22 @@ do
9090
# Retrieve archive
9191
if [ ! -f ${PACKAGE_TAR} ]; then
9292
echo "Download archive"
93-
wget ${PACKAGE_URL}
93+
curl -o ${PACKAGE_ARCHIVE} ${PACKAGE_URL}
9494
fi
9595

9696
# Check if archive already exist untar
9797
if [ ! -d ${PACKAGE_TAR} ]; then
9898
echo "Extract archive"
99-
tar xzf ${PACKAGE_TAR}
99+
mkdir -p ${PACKAGE_NAME}-${PACKAGE_VERSION} && tar xzf ${PACKAGE_TAR} -C ${PACKAGE_NAME}-${PACKAGE_VERSION} --strip-components 1
100100
fi
101101

102-
cd ${PACKAGE_NAME}-${PACKAGE_VERSION}
103102

103+
# Download and Install GKlib for metis
104+
git clone https://github.com/KarypisLab/GKlib.git ${WORKDIR}/GKlib && cd ${WORKDIR}/GKlib
105+
make config prefix=${PACKAGE_PATH}
106+
make install
107+
108+
cd ${WORKDIR}/${PACKAGE_NAME}-${PACKAGE_VERSION}
104109
make config prefix=${PACKAGE_PATH}
105110
make install
106111

0 commit comments

Comments
 (0)