From: David Wells Date: Thu, 14 Jul 2016 19:03:12 +0000 (-0400) Subject: Update the Trilinos build instructions. X-Git-Tag: v8.5.0-rc1~869^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=507abc63a625012ddbb7ca30b761f6e5302a7c54;p=dealii.git Update the Trilinos build instructions. Credit goes to Jean-Paul Pelteret for suggesting this change and compiling the list of libraries. --- diff --git a/doc/external-libs/trilinos.html b/doc/external-libs/trilinos.html index 10c68f2b06..5f4d7fbb96 100644 --- a/doc/external-libs/trilinos.html +++ b/doc/external-libs/trilinos.html @@ -55,36 +55,53 @@

+ deal.II uses the following libraries from Trilinos and will fail to + compile with Trilinos if they are not present: +

+ Trilinos uses cmake to configure and build. The following slightly longish set of commands will set up a reasonable configuration (we require MueLu starting from 12.0):
 
-	cd trilinos-12.4.2
-	mkdir build
-	cd build
-
-	cmake \
-	-D Trilinos_ENABLE_Sacado=ON \
-	-D Trilinos_ENABLE_MueLu:BOOL=ON \
-	-D Trilinos_ENABLE_Stratimikos=ON \
-	-D CMAKE_BUILD_TYPE=RELEASE \
-	-D CMAKE_CXX_FLAGS="-g -O3" \
-	-D CMAKE_C_FLAGS="-g -O3" \
-	-D CMAKE_FORTRAN_FLAGS="-g -O5" \
-	-D Trilinos_EXTRA_LINK_FLAGS="-lgfortran" \
-	-D CMAKE_VERBOSE_MAKEFILE=FALSE \
-	-D Trilinos_VERBOSE_CONFIGURE=FALSE \
-	-D Trilinos_ENABLE_EXPLICIT_INSTANTIATION=ON \
-	-D TPL_ENABLE_MPI=ON \
-	-D BUILD_SHARED_LIBS=ON \
-	-D CMAKE_INSTALL_PREFIX:PATH=$HOME/share/trilinos \
-	..
-
-	make install
+    cd trilinos-12.4.2
+    mkdir build
+    cd build
+
+    cmake                                            \
+    -DTrilinos_ENABLE_Amesos=ON                      \
+    -DTrilinos_ENABLE_Epetra=ON                      \
+    -DTrilinos_ENABLE_Ifpack=ON                      \
+    -DTrilinos_ENABLE_AztecOO=ON                     \
+    -DTrilinos_ENABLE_Sacado=ON                      \
+    -DTrilinos_ENABLE_Teuchos=ON                     \
+    -DTrilinos_ENABLE_MueLu=ON                       \
+    -DTrilinos_ENABLE_ML=ON                          \
+    -DTrilinos_VERBOSE_CONFIGURE=OFF                 \
+    -DTPL_ENABLE_MPI=ON                              \
+    -DBUILD_SHARED_LIBS=ON                           \
+    -DCMAKE_VERBOSE_MAKEFILE=OFF                     \
+    -DCMAKE_BUILD_TYPE=RELEASE                       \
+    -DCMAKE_INSTALL_PREFIX:PATH=$HOME/share/trilinos \
+    ../
+
+    make install
       
You will need to adjust the path into which you want to install Trilinos - in the CMAKE_INSTALL_PREFIX line. + in the CMAKE_INSTALL_PREFIX line. If you do not have MPI installed you + should use -DTPL_ENABLE_MPI=OFF instead. Additionally, if + your computer has enough memory available, it may also be useful to pass + the flag -DTrilinos_ENABLE_EXPLICIT_INSTANTIATION=ON, which + will improve compilation times of deal.II programs that use Trilinos.