Skip to content

Commit

Permalink
Fix metis install link
Browse files Browse the repository at this point in the history
Close #84
  • Loading branch information
mhuguesaws committed Jan 10, 2023
1 parent ad5721c commit 0570990
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion apps/mpas/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ export I_MPI_OFI_LIBRARY_INTERNAL=0
export I_MPI_OFI_PROVIDER=efa
module purge
module load metis/5.1.0-gcc-10.3.0
module load metis/5.2.1-gcc-10.3.0
module load mpas-omp/7.1-intel-2022.2.0
#Create mesh decomposition for the specified MPI ranks
Expand Down
15 changes: 10 additions & 5 deletions scripts/install/metis_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ MODULES_PATH="/usr/share/Modules/modulefiles"

PACKAGE_NAME="metis"

PACKAGE_VERSION="5.1.0"
PACKAGE_VERSION="5.2.1"

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

ENVIRONMENT="gcc/10.3.0;openmpi/4.1.4"

Expand Down Expand Up @@ -90,17 +90,22 @@ do
# Retrieve archive
if [ ! -f ${PACKAGE_TAR} ]; then
echo "Download archive"
wget ${PACKAGE_URL}
curl -o ${PACKAGE_ARCHIVE} ${PACKAGE_URL}
fi

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

cd ${PACKAGE_NAME}-${PACKAGE_VERSION}

# Download and Install GKlib for metis
git clone https://github.com/KarypisLab/GKlib.git ${WORKDIR}/GKlib && cd ${WORKDIR}/GKlib
make config prefix=${PACKAGE_PATH}
make install

cd ${WORKDIR}/${PACKAGE_NAME}-${PACKAGE_VERSION}
make config prefix=${PACKAGE_PATH}
make install

Expand Down

0 comments on commit 0570990

Please sign in to comment.