Skip to content

Commit 593053c

Browse files
committed
Update to use release 3.7 of PETSc
Funded-by: IDEAS Project: xSDK
1 parent cfd9ba9 commit 593053c

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,14 @@ as well as some commonly needed external packages
2525
```no-highlight
2626
git clone https://github.com/xsdk-project/installxSDK.git
2727
cd installxSDK
28+
git checkout v0.1.0
2829
```
2930

3031
or
3132

3233

3334
```no-highlight
34-
curl https://raw.githubusercontent.com/xsdk-project/installxSDK/master/installxSDK.sh > installxSDK.sh
35+
curl https://raw.githubusercontent.com/xsdk-project/installxSDK/v0.1.0/installxSDK.sh > installxSDK.sh
3536
```
3637

3738
##Usage

installxSDK.sh

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
PREFIX="notset"
44
WITHGIT="git"
55
PACKAGEDIR="0"
6+
PETSC_COMMIT="v3.7"
7+
68
for i in "$@"
79
do
810
case $i in
@@ -46,18 +48,14 @@ if [ ! -d xsdk ]; then
4648
fi
4749
cd xsdk
4850

49-
if [ "${PETSC_BRANCH}x" = "x" ]; then
50-
PETSC_BRANCH="maint"
51-
fi
52-
5351
if [ ! -d petsc ]; then
5452
if [ "${PACKAGEDIR}" != "0" ]; then
5553
if [ ! -f ${PACKAGEDIR}/petsc.tar.gz ]; then
5654
echo " "
5755
echo "Running in firewall mode"
5856
echo " "
59-
echo "Obtain the tarball https://bitbucket.org/petsc/petsc/get/master.tar.gz"
60-
echo "put it in the directory ${PACKAGEDIR}"
57+
echo "Obtain the tarball https://bitbucket.org/petsc/petsc/get/${PETSC_COMMIT}.tar.gz"
58+
echo "put it in the directory ${PACKAGEDIR} with the name petsc.tar.gz"
6159
echo "Do not uncompress or untar it. Then run the script again"
6260
echo " "
6361
exit
@@ -71,7 +69,7 @@ if [ ! -d petsc ]; then
7169
${WITHGIT} clone https://bitbucket.org/petsc/petsc.git petsc
7270
cd petsc
7371
else
74-
curl https://bitbucket.org/petsc/petsc/get/maint.tar.gz > petsc.tar.gz
72+
curl https://bitbucket.org/petsc/petsc/get/${PETSC_COMMIT}.tar.gz > petsc.tar.gz
7573
dir=`tar -tzf petsc.tar.gz | head -1`
7674
tar zxf petsc.tar.gz
7775
mv -f ${dir} petsc
@@ -81,7 +79,7 @@ else
8179
if [ "${WITHGIT}" != "0" ]; then
8280
cd petsc
8381
git fetch
84-
git checkout $PETSC_BRANCH
82+
git checkout $PETSC_COMMIT
8583
git pull
8684
fi
8785
fi

0 commit comments

Comments
 (0)