From 63c279a5803bf4d60d2bbe18b7bd258813241bee Mon Sep 17 00:00:00 2001
From: Incardona Pietro <incardon@mpi-cbg.de>
Date: Wed, 24 Nov 2021 11:15:33 +0100
Subject: [PATCH] Downgrade to SuiteSparse 5.7.2

---
 script/install_SUITESPARSE.sh | 14 +++++++-------
 script/remove_old             |  4 ++--
 2 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/script/install_SUITESPARSE.sh b/script/install_SUITESPARSE.sh
index c3b9b2ba4..a7414e7f9 100755
--- a/script/install_SUITESPARSE.sh
+++ b/script/install_SUITESPARSE.sh
@@ -6,21 +6,21 @@ source script/discover_os
 discover_os
 
 # check if the directory $1/SUITESPARSE exist
-rm -rf SuiteSparse-5.10.1
+rm -rf SuiteSparse-5.7.2
 if [ -d "$1/SUITESPARSE"  -a -f "$1/SUITESPARSE/include/umfpack.h" ]; then
   echo "SUITESPARSE is already installed"
   exit 0
 fi
 
-rm SuiteSparse-5.10.1.tar.gz
-wget http://ppmcore.mpi-cbg.de/upload/SuiteSparse-5.10.1.tar.gz
+rm SuiteSparse-5.7.2.tar.gz
+wget http://ppmcore.mpi-cbg.de/upload/SuiteSparse-5.7.2.tar.gz
 rm -rf SuiteSparse
-tar -xf SuiteSparse-5.10.1.tar.gz
+tar -xf SuiteSparse-5.7.2.tar.gz
 if [ $? != 0 ]; then
   echo "Failed to download SuiteSparse"
   exit 1
 fi
-cd SuiteSparse-5.10.1
+cd SuiteSparse-5.7.2
 
 if [ x"$CXX" == x"icpc" ]; then
     export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/$1/OPENBLAS/lib"
@@ -45,5 +45,5 @@ make library "CC=$CC" "CXX=$CXX" "CUDA=no" "INSTALL=$1/SUITESPARSE" "INSTALL_LIB
 echo "Making install"
 make install "CC=$CC" "CXX=$CXX" "CUDA=no" "INSTALL=$1/SUITESPARSE" "INSTALL_LIB=$1/SUITESPARSE/lib" "INSTALL_INCLUDE=$1/SUITESPARSE/include" "BLAS=-L$1/OPENBLAS/lib -lopenblas -pthread" "LAPACK="
 # Mark the installation
-echo 3 > $1/SUITESPARSE/version
-rm SuiteSparse-5.10.1.tar.gz
+echo 4 > $1/SUITESPARSE/version
+rm SuiteSparse-5.7.2.tar.gz
diff --git a/script/remove_old b/script/remove_old
index 639453e98..3e5082e87 100755
--- a/script/remove_old
+++ b/script/remove_old
@@ -131,9 +131,9 @@ function remove_old()
 
     if [ -d $1/SUITESPARSE ]; then
         version=$(cat $1/SUITESPARSE/version)
-        if [ x"$version" != x"3"  ]; then
+        if [ x"$version" != x"4"  ]; then
             echo -e "\033[1;34;5m  ------------------------------------------------------------------------------------------- \033[0m"
-            echo -e "\033[1;34;5m  SuiteSparse has been updated to version 5.10.1, the component will be updated automatically      \033[0m"
+            echo -e "\033[1;34;5m  SuiteSparse has been updated to version 5.7.2, the component will be updated automatically      \033[0m"
             echo -e "\033[1;34;5m  ------------------------------------------------------------------------------------------- \033[0m"
             sleep 5
 	    rm -rf $1/EIGEN
-- 
GitLab