From 9f7bb728a04db3091a1ad24ff0257e2f77b0f022 Mon Sep 17 00:00:00 2001
From: =?utf8?q?Uwe=20K=C3=B6cher?= <koecher@hsu-hamburg.de>
Date: Mon, 26 Oct 2015 18:41:14 +0100
Subject: [PATCH] deal.II: ubuntu14 (14.04): set Trilinos to v11 if
 STABLE_BUILD + deal.II v8.3.0

---
 deal.II/platforms/supported/ubuntu14.platform | 21 +++++++++++++++----
 1 file changed, 17 insertions(+), 4 deletions(-)

diff --git a/deal.II/platforms/supported/ubuntu14.platform b/deal.II/platforms/supported/ubuntu14.platform
index 416bced..c4abc03 100644
--- a/deal.II/platforms/supported/ubuntu14.platform
+++ b/deal.II/platforms/supported/ubuntu14.platform
@@ -1,13 +1,14 @@
 # ubuntu 14
 # 
-# WARNING: please install deal.II with
-#   STABLE_BUILD=false
-# since there is an issue with the stable build of deal.II v8.3.0.
 # 
 # This build script assumes that you have several packages already
 # installed via ubuntu's apt-get using the following commands:
 #
-# > sudo apt-get install build-essential automake autoconf gfortran openmpi-bin openmpi-common libopenmpi-dev cmake subversion git libblas-dev liblapack-dev libblas3gf liblapack3gf splint tcl tcl-dev environment-modules libsuitesparse-dev libtool libboost-all-dev qt4-dev-tools
+# > sudo apt-get install build-essential automake autoconf gfortran \
+#   openmpi-bin openmpi-common libopenmpi-dev cmake subversion \
+#   git libblas-dev liblapack-dev libblas3gf liblapack3gf splint \
+#   tcl tcl-dev environment-modules libsuitesparse-dev \
+#   libtool libboost-all-dev qt4-dev-tools
 # 
 # Then reboot and run candi again.
 ##
@@ -27,3 +28,15 @@ once:slepc
 dealii
 )
 
+# The default compiler on ubuntu14 does not support Trilinos 12
+# together with deal.II v8.3.0.
+# Note: this issue is resolved in the current development trunc
+# of deal.II (v8.4pre).
+# Anyhow, the user can decide to use Trilinos 11 or 12, if the
+# version number is not set to AUTO.
+# The last point is due to own compilers (e.g. intel) which support
+# Trilinos 12.
+if [ ${STABLE_BUILD} == "true" ] && [ ${DEAL_II_VERSION} == "v8.3.0" ] && [ ${TRILINOS_MAJOR_VERSION} == "AUTO" ]; then
+  TRILINOS_MAJOR_VERSION=11
+fi
+
-- 
2.39.5