From: Wolfgang Bangerth Date: Sat, 12 Dec 2009 05:02:48 +0000 (+0000) Subject: Document Trilinos-10 installation. X-Git-Tag: v8.0.0~6736 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c910d27ccc10b0c6a25171a1b560e318124ad89a;p=dealii.git Document Trilinos-10 installation. git-svn-id: https://svn.dealii.org/trunk@20240 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/doc/readme-petsc-trilinos.html b/deal.II/doc/readme-petsc-trilinos.html index 9ac6fb1dca..c0ae43591a 100644 --- a/deal.II/doc/readme-petsc-trilinos.html +++ b/deal.II/doc/readme-petsc-trilinos.html @@ -5,7 +5,7 @@ The deal.II Readme on interfacing to PETSc and Trilinos - + @@ -56,7 +56,7 @@

-
PETSc
+
PETSc

PETSc usually requires you to set the @@ -100,7 +100,7 @@

-
Trilinos
+
Trilinos

As above, set the TRILINOS_DIR @@ -116,18 +116,84 @@

deal.II and its tutorial programs use several of the - Trilinos sub-packages. Configuring Trilinos with a command - like the following should do the trick: + Trilinos sub-packages. +

+ +
Trilinos up to and including version 9.0.x
+ +

+ Up to version 9.0, Trilinos was configured and built using autoconf and + related tools. Configuring and building Trilinos with a sequence of + commands like the following should do the trick:

+cd trilinos-9.0.2
+mkdir build
+cd build
 ../configure --enable-shared \
       --with-cflags=-fPIC --with-cxxflags=-fPIC --with-fflags=-fPIC \
       --enable-thyra --enable-stratimikos --enable-rtop --enable-teuchos \
       --enable-sacado --enable-ml --enable-ifpack --enable-epetra \
       --enable-belos --enable-aztecoo --enable-amesos \
-      --prefix=/home/bangerth/bin/trilinos-9.0.1
+      --prefix=/home/bangerth/bin/trilinos-9.0.2
+make
+make install
+      
+ + Obviously the path names in the first line and at the end of the + configure line need to be adjusted. +

+ + +
Trilinos starting with version 10.0
+ +

+ Starting with version 10.0, Trilinos uses cmake to configure and + build. This is a bit cumbersome because you first have to install a + version of cmake that is at least a cmake 2.8 prerelease, and then enter + the following slightly longish set of commands: + +

+cd trilinos-9.0.2
+mkdir build
+cd build
+cmake \
+          -D CMAKE_BUILD_TYPE:STRING=RELEASE \
+          -D CMAKE_CXX_FLAGS:STRING="-ggdb -O2 -march=native" \
+          -D CMAKE_C_FLAGS:STRING="-ggdb -O3 -march=native" \
+          -D CMAKE_FORTRAN_FLAGS:STRING="-ggdb -O5 -march=native" \
+          -D Trilinos_ENABLE_DEFAULT_PACKAGES:BOOL=OFF \
+          -D Trilinos_ENABLE_Epetra:BOOL=ON \
+          -D Trilinos_ENABLE_Tpetra:BOOL=ON \
+          -D Trilinos_ENABLE_ML:BOOL=ON \
+          -D Trilinos_ENABLE_Ifpack:BOOL=ON \
+          -D Trilinos_ENABLE_AztecOO:BOOL=ON \
+          -D Trilinos_ENABLE_Amesos:BOOL=ON \
+          -D Trilinos_ENABLE_Teuchos:BOOL=ON \
+          -D Trilinos_ENABLE_Sacado:BOOL=ON \
+          -D Trilinos_ENABLE_Thyra:BOOL=ON \
+          -D Trilinos_ENABLE_Didasko:BOOL=ON \
+          -D Trilinos_ENABLE_Stratimikos:BOOL=ON \
+          -D Trilinos_ENABLE_Belos:BOOL=ON \
+          -D Trilinos_ENABLE_EpetraExt:BOOL=ON \
+          -D Trilinos_ENABLE_Kokkos:BOOL=ON \
+          -D Trilinos_ENABLE_CTrilinos:BOOL=ON \
+          -D Trilinos_ENABLE_ForTrilinos:BOOL=ON \
+          -D Trilinos_ENABLE_TESTS:BOOL=OFF \
+          -D Trilinos_ENABLE_EXAMPLES:BOOL=OFF \
+          -D TPL_ENABLE_MPI:BOOL=ON \
+          -D Trilinos_EXTRA_LINK_FLAGS:STRING="-lgfortran" \
+          -D CMAKE_VERBOSE_MAKEFILE:BOOL=FALSE       \
+          -D Trilinos_VERBOSE_CONFIGURE:BOOL=FALSE   \
+          -D BUILD_SHARED_LIBS:BOOL=ON \
+          -D CMAKE_INSTALL_PREFIX:PATH=/w/bangerth/share/x86_64/trilinos-10.0.2-mpi \
+          `pwd`/../
+make
+make install
       
+ Again, the path into which you want to install Trilinos in the second to + last line of the cmake command needs to be adjusted.