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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6605 - (hide annotations)
Wed Jun 7 23:24:04 2017 UTC (4 years, 3 months ago) by jfenwick
File MIME type: application/x-tex
File size: 3395 byte(s)
Added in wrong branch

1 jfenwick 6605 \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    
19    
20    
21    
22     \subsection{Configuration file}
23    
24     \begin{verbatim}
25     #!/bin/sh
26    
27     # SuperLu has build issues and escript doesn't _need_ it.
28    
29     DIR=build_hybrid
30     ROOT=`pwd`
31     mkdir -p $DIR || exit 1
32     cd $DIR
33     cmake -D CMAKE_CXX_COMPILER=`which mpic++` \
34     -D CMAKE_C_COMPILER=`which mpicc` \
35     -D CMAKE_Fortran_COMPILER=`which mpif77` \
36     -D CMAKE_INSTALL_PREFIX=/opt/trilinos/ \
37     -D BUILD_SHARED_LIBS=ON \
38     -D TPL_ENABLE_BLAS=ON \
39     -D TPL_ENABLE_Boost=ON \
40     -D TPL_ENABLE_Cholmod=ON \
41     -D TPL_ENABLE_CppUnit=ON \
42     -D TPL_ENABLE_LAPACK=ON \
43     -D TPL_ENABLE_METIS=ON \
44     -D TPL_ENABLE_MPI=ON \
45     -D TPL_ENABLE_MUMPS=ON \
46     -D TPL_ENABLE_ParMETIS=ON \
47     -D TPL_ENABLE_Pthread=OFF \
48     -D TPL_ENABLE_SCALAPACK=ON \
49     -D TPL_ENABLE_Scotch=OFF \
50     -D TPL_ENABLE_SuperLU=OFF \
51     -D TPL_ENABLE_UMFPACK=ON \
52     -D TPL_BLAS_INCLUDE_DIRS=/usr/include/suitesparse \
53     -D TPL_Cholmod_INCLUDE_DIRS=/usr/include/suitesparse \
54     -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' \
55     -D TPL_SuperLU_INCLUDE_DIRS=/usr/include/superlu \
56     -D TPL_UMFPACK_INCLUDE_DIRS=/usr/include/suitesparse \
57     -D TPL_SCALAPACK_LIBRARIES=/usr/lib/libscalapack-openmpi.so \
58     -D Trilinos_ENABLE_Amesos2=ON \
59     -D Trilinos_ENABLE_Belos=ON \
60     -D Trilinos_ENABLE_Ifpack2=ON \
61     -D Trilinos_ENABLE_Kokkos=ON \
62     -D Trilinos_ENABLE_MueLu=ON \
63     -D Trilinos_ENABLE_OpenMP=ON \
64     -D Trilinos_ENABLE_Teuchos=ON \
65     -D Trilinos_ENABLE_Tpetra=ON \
66     -D Trilinos_ENABLE_AztecOO=OFF \
67     -D Trilinos_ENABLE_Galeri=OFF \
68     -D Trilinos_ENABLE_Ifpack=OFF \
69     -D Trilinos_ENABLE_Isorropia=OFF \
70     -D Trilinos_ENABLE_ML=OFF \
71     -D Trilinos_ENABLE_Thyra=OFF \
72     -D Trilinos_ENABLE_Zoltan=ON \
73     -D Trilinos_ENABLE_Zoltan2=ON \
74     -D Trilinos_ENABLE_EXPLICIT_INSTANTIATION=ON \
75     -D Tpetra_INST_COMPLEX_DOUBLE=ON \
76     -D Tpetra_INST_INT_LONG=OFF \
77     -D Tpetra_INST_LONG_LONG=OFF \
78     -D Tpetra_INST_INT_LONG_LONG=OFF \
79     -D TpetraKernels_ENABLE_Experimental=ON \
80     -D Amesos_ENABLE_EpetraExt=OFF \
81     -D Amesos2_ENABLE_MUMPS=ON \
82     -D Amesos2_ENABLE_Epetra=OFF \
83     -D Amesos2_ENABLE_EpetraExt=OFF \
84     -D Belos_ENABLE_Epetra=OFF \
85     -D Belos_ENABLE_EpetraExt=OFF \
86     -D MueLu_ENABLE_Amesos=OFF \
87     -D MueLu_ENABLE_Epetra=OFF \
88     -D MueLu_ENABLE_EpetraExt=OFF \
89     -D Trilinos_ENABLE_TESTS=OFF \
90     -D MueLu_ENABLE_TESTS=OFF \
91     $ROOT 2>&1 | tee config.log
92     \end{verbatim}

  ViewVC Help
Powered by ViewVC 1.1.26