Skip to content

Commit

Permalink
update shtns install script
Browse files Browse the repository at this point in the history
  • Loading branch information
tgastine committed Oct 22, 2024
1 parent 84ab005 commit ec68155
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions bin/install-shtns.sh
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
#!/bin/bash

ver="3.5.2"
ver="3.7"

if test ! -d $HOME/local; then
mkdir $HOME/local
fi

wget https://bitbucket.org/nschaeff/shtns/downloads/shtns-$ver.tar.gz
tar -xvf shtns-$ver.tar.gz
rm shtns-$ver.tar.gz
wget https://gricad-gitlab.univ-grenoble-alpes.fr/schaeffn/shtns/-/archive/v$ver/shtns-v$ver.tar.gz
tar -xvf shtns-v$ver.tar.gz
rm shtns-v$ver.tar.gz

if [ -d "shtns-$ver" ]
if [ -d "shtns-v$ver" ]
then
mv shtns-$ver shtns
mv shtns-v$ver shtns
fi

cd shtns
Expand Down Expand Up @@ -43,7 +44,7 @@ else
fi
fi

opts="--enable-magic-layout --prefix=$HOME/local --enable-ishioka"
opts="--enable-magic-layout --prefix=$HOME/local"
if [[ -n $MKLROOT ]]
then
echo "MKL found, installing with MKL"
Expand Down

0 comments on commit ec68155

Please sign in to comment.