]> https://gitweb.dealii.org/ - candi.git/commitdiff
Add support for automatic choice of Trilinos version.
authorBruno Turcksin <bruno.turcksin@gmail.com>
Thu, 22 Oct 2015 21:38:24 +0000 (16:38 -0500)
committerBruno Turcksin <bruno.turcksin@gmail.com>
Thu, 22 Oct 2015 21:38:24 +0000 (16:38 -0500)
candi.sh
project-deal.II.cfg

index 26daff2dfc59efadcde4cc6944c97f8031c59a55..b45acad375753afd58a0ebeb1ebae8873f379686 100755 (executable)
--- a/candi.sh
+++ b/candi.sh
@@ -415,7 +415,7 @@ guess_platform() {
         local CODENAME=$(lsb_release -c -s)
         local DESCRIPTION=$(lsb_release -d -s)
         case ${DISTRO}:${CODENAME}:${DESCRIPTION} in
-            *:*:*Ubuntu*\ 13*)     echo ubuntu13;;
+            *:*:*Ubuntu*\ 12*)     echo ubuntu12;;
             *:*:*Ubuntu*\ 14*)     echo ubuntu14;;
             *:*:*Ubuntu*\ 15*)     echo ubuntu15;;
             *:Tikanga*:*)          echo rhel5;;
@@ -706,6 +706,15 @@ guess_architecture
 # Reset timings
 TIMINGS=""
 
+# If TRILINOS_MAJOR_VERSION is set to AUTO, pick Trilinos 11 except for Ubuntu 12
+if [[ ${TRILINOS_MAJOR_VERSION} == "AUTO" ]]; then
+  if [[ ${PLATFORM} == *"ubuntu12"* ]]; then
+    TRILINOS_MAJOR_VERSION=11
+  else
+    TRILINOS_MAJOR_VERSION=12
+  fi
+fi
+
 # Fetch and build individual packages
 for PACKAGE in ${PACKAGES[@]}; do
     # Start timer
index 9ce6ebe661ecff2ccc48a1aefd3b31ad0680e822..633806f95f7ab121dda7df92b7b7f99ddf42bdde 100644 (file)
@@ -73,7 +73,9 @@ fi
 #########################################################################
 
 # If you want to use Trilions, decide if you want v11.x.x or v12.x.x
-TRILINOS_MAJOR_VERSION=12
+TRILINOS_MAJOR_VERSION=AUTO
+#TRILINOS_MAJOR_VERSION=11
+#TRILINOS_MAJOR_VERSION=12
 
 #########################################################################
 

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.