]> https://gitweb.dealii.org/ - candi.git/commitdiff
deal.II: trilinos package: safe major versioning
authorUwe Köcher <koecher@hsu-hamburg.de>
Sat, 24 Oct 2015 08:59:26 +0000 (10:59 +0200)
committerUwe Köcher <koecher@hsu-hamburg.de>
Sat, 24 Oct 2015 08:59:26 +0000 (10:59 +0200)
deal.II/packages/trilinos.package

index 9422db8ad718902ffbf74e320b1637696d525030..0c031d9accb471e93efbad40b823f590983a4745 100644 (file)
@@ -1,17 +1,16 @@
-if [ ${TRILINOS_MAJOR_VERSION} = "AUTO" ]; then
-  TRILINOS_MAJOR_VERSION=12
-fi
+if [ ${TRILINOS_MAJOR_VERSION} = "AUTO" ] || [ ${TRILINOS_MAJOR_VERSION} = "12" ]; then
+  SOURCE=http://trilinos.csbsju.edu/download/files/
+  VERSION=12.2.1
+  CHECKSUM=760f14cbce482b4b9a41d1c18297b531
 
-if [ ${TRILINOS_MAJOR_VERSION} = "11" ]; then
+elif [ ${TRILINOS_MAJOR_VERSION} = "11" ]; then
   SOURCE=https://trilinos.org/oldsite/download/files/
   VERSION=11.6.2
   CHECKSUM=15ea6af5559f872919ff19fe5a322eb6
-fi
 
-if [ ${TRILINOS_MAJOR_VERSION} = "12" ]; then
-  SOURCE=http://trilinos.csbsju.edu/download/files/
-  VERSION=12.2.1
-  CHECKSUM=760f14cbce482b4b9a41d1c18297b531
+else
+  cecho ${BAD} "Unknown Trilinos version ${TRILINOS_MAJOR_VERSION} forced, please use AUTO|12|11."
+  exit
 fi
 
 NAME=trilinos-${VERSION}-Source

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.