/[escript]/release/5.1/doc/install/trilinos.tex
ViewVC logotype

Contents of /release/5.1/doc/install/trilinos.tex

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6607 - (show annotations)
Thu Jun 8 01:09:29 2017 UTC (4 years, 3 months ago) by jfenwick
File MIME type: application/x-tex
File size: 3587 byte(s)
Fix formatting

1 \chapter{Trilinos}
2 \label{app:trilinos}
3
4 In order to solve PDEs with complex coefficients, escript needs to be compiled with \texttt{Trilinos} support.
5 This requires that your version of Trilinos has certain features enabled.
6 Since some precompiled distributions of \texttt{Trilinos} are not built with these features, you may
7 need to compile \texttt{Trilinos} yourself as well.
8
9 While we can't provide support for building \texttt{Trilinos}, we do list below, a configuration file which seems to work for
10 under Debian 9 ``stretch''\footnote{At time of writing, \texttt{stretch} is still in testing, but is due to release this month}.
11
12 \section{Debian ``stretch'' configuration}
13
14
15 \subsection{Required packages}
16
17 The following packages should be installed to attempt this build:
18 \begin{itemize}
19 \item[] cmake
20 \item[] g++
21 \item[] libsuitesparse-dev
22 \item[] libmumps-dev
23 \item[] libboost-dev
24 \item[] libparmetis-dev
25 \item[] libmetis-dev
26 \item[] libcppunit-dev
27 \end{itemize}
28
29
30
31 \subsection{Configuration file}
32
33 \begin{verbatim}
34 #!/bin/sh
35
36 # SuperLu has build issues and escript doesn't _need_ it.
37
38 DIR=build_hybrid
39 ROOT=`pwd`
40 mkdir -p $DIR || exit 1
41 cd $DIR
42 cmake -D CMAKE_CXX_COMPILER=`which mpic++` \
43 -D CMAKE_C_COMPILER=`which mpicc` \
44 -D CMAKE_Fortran_COMPILER=`which mpif77` \
45 -D CMAKE_INSTALL_PREFIX=/opt/trilinos/ \
46 -D BUILD_SHARED_LIBS=ON \
47 -D TPL_ENABLE_BLAS=ON \
48 -D TPL_ENABLE_Boost=ON \
49 -D TPL_ENABLE_Cholmod=ON \
50 -D TPL_ENABLE_CppUnit=ON \
51 -D TPL_ENABLE_LAPACK=ON \
52 -D TPL_ENABLE_METIS=ON \
53 -D TPL_ENABLE_MPI=ON \
54 -D TPL_ENABLE_MUMPS=ON \
55 -D TPL_ENABLE_ParMETIS=ON \
56 -D TPL_ENABLE_Pthread=OFF \
57 -D TPL_ENABLE_SCALAPACK=ON \
58 -D TPL_ENABLE_Scotch=OFF \
59 -D TPL_ENABLE_SuperLU=OFF \
60 -D TPL_ENABLE_UMFPACK=ON \
61 -D TPL_BLAS_INCLUDE_DIRS=/usr/include/suitesparse \
62 -D TPL_Cholmod_INCLUDE_DIRS=/usr/include/suitesparse \
63 -D TPL_Cholmod_LIBRARIES='/usr/lib/x86_64-linux-gnu/libcholmod.so;/usr/lib/x86_64-linux-gnu/libamd.so;/usr/lib/x86_64-linux-gnu/libcolamd.so' \
64 -D TPL_SuperLU_INCLUDE_DIRS=/usr/include/superlu \
65 -D TPL_UMFPACK_INCLUDE_DIRS=/usr/include/suitesparse \
66 -D TPL_SCALAPACK_LIBRARIES=/usr/lib/libscalapack-openmpi.so \
67 -D Trilinos_ENABLE_Amesos2=ON \
68 -D Trilinos_ENABLE_Belos=ON \
69 -D Trilinos_ENABLE_Ifpack2=ON \
70 -D Trilinos_ENABLE_Kokkos=ON \
71 -D Trilinos_ENABLE_MueLu=ON \
72 -D Trilinos_ENABLE_OpenMP=ON \
73 -D Trilinos_ENABLE_Teuchos=ON \
74 -D Trilinos_ENABLE_Tpetra=ON \
75 -D Trilinos_ENABLE_AztecOO=OFF \
76 -D Trilinos_ENABLE_Galeri=OFF \
77 -D Trilinos_ENABLE_Ifpack=OFF \
78 -D Trilinos_ENABLE_Isorropia=OFF \
79 -D Trilinos_ENABLE_ML=OFF \
80 -D Trilinos_ENABLE_Thyra=OFF \
81 -D Trilinos_ENABLE_Zoltan=ON \
82 -D Trilinos_ENABLE_Zoltan2=ON \
83 -D Trilinos_ENABLE_EXPLICIT_INSTANTIATION=ON \
84 -D Tpetra_INST_COMPLEX_DOUBLE=ON \
85 -D Tpetra_INST_INT_LONG=OFF \
86 -D Tpetra_INST_LONG_LONG=OFF \
87 -D Tpetra_INST_INT_LONG_LONG=OFF \
88 -D TpetraKernels_ENABLE_Experimental=ON \
89 -D Amesos_ENABLE_EpetraExt=OFF \
90 -D Amesos2_ENABLE_MUMPS=ON \
91 -D Amesos2_ENABLE_Epetra=OFF \
92 -D Amesos2_ENABLE_EpetraExt=OFF \
93 -D Belos_ENABLE_Epetra=OFF \
94 -D Belos_ENABLE_EpetraExt=OFF \
95 -D MueLu_ENABLE_Amesos=OFF \
96 -D MueLu_ENABLE_Epetra=OFF \
97 -D MueLu_ENABLE_EpetraExt=OFF \
98 -D Trilinos_ENABLE_TESTS=OFF \
99 -D MueLu_ENABLE_TESTS=OFF \
100 $ROOT 2>&1 | tee config.log
101 \end{verbatim}

  ViewVC Help
Powered by ViewVC 1.1.26