]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Update the Trilinos build instructions.
authorDavid Wells <wellsd2@rpi.edu>
Thu, 14 Jul 2016 19:03:12 +0000 (15:03 -0400)
committerDavid Wells <wellsd2@rpi.edu>
Thu, 14 Jul 2016 21:01:27 +0000 (17:01 -0400)
Credit goes to Jean-Paul Pelteret for suggesting this change and
compiling the list of libraries.

doc/external-libs/trilinos.html

index 10c68f2b06d21272a6cf83ba1bee503b643f099a..5f4d7fbb96593c4281363b603aa2105a39dc6b77 100644 (file)
     </p>
 
     <p>
+      deal.II uses the following libraries from Trilinos and will fail to
+      compile with Trilinos if they are not present:
+      <ul>
+        <li> Amesos,
+        <li> AztecOO,
+        <li> Epetra,
+        <li> Ifpack,
+        <li> ML,
+        <li> MueLu (if using Trilinos 11.14 or newer),
+        <li> Sacado, and
+        <li> Teuchos.
+      </ul>
+
       Trilinos uses <a href="http://cmake.org/">cmake</a> to configure and
       build. The following slightly longish set of commands will set up a
       reasonable configuration (we require MueLu starting from 12.0):
       <pre>
 
-       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
       </pre>
       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 <code>-DTPL_ENABLE_MPI=OFF</code> instead. Additionally, if
+      your computer has enough memory available, it may also be useful to pass
+      the flag <code>-DTrilinos_ENABLE_EXPLICIT_INSTANTIATION=ON</code>, which
+      will improve compilation times of deal.II programs that use Trilinos.
     </p>
 
 

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.