From: bangerth
-
- cd trilinos-11.4.1
- mkdir build
- cd build
-
- cmake -D Trilinos_ENABLE_Sacado=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 TPL_ENABLE_MPI=ON \
- -D BUILD_SHARED_LIBS=ON \
- -D CMAKE_INSTALL_PREFIX:PATH=$HOME/share/trilinos \
- ..
-
- make install
-
+
+
+ cd trilinos-11.4.1
+ mkdir build
+ cd build
+
+ cmake -D Trilinos_ENABLE_Sacado=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 TPL_ENABLE_MPI=ON \
+ -D BUILD_SHARED_LIBS=ON \
+ -D CMAKE_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.
cmake
. For example, this may mean to add the
following flags to the call above:
- +@@ -132,26 +132,26 @@ solvers:- -D BLAS_LIBRARY_NAMES:STRING=goto \ - -D BLAS_LIBRARY_DIRS:STRING=/apps/GotoBLAS/lib64 \ - -D LAPACK_LIBRARY_NAMES:STRING=lapack \ - -D LAPACK_LIBRARY_DIRS:STRING=/apps/lapack-3.2.1/lib64 -+ -D BLAS_LIBRARY_NAMES:STRING=goto \ + -D BLAS_LIBRARY_DIRS:STRING=/apps/GotoBLAS/lib64 \ + -D LAPACK_LIBRARY_NAMES:STRING=lapack \ + -D LAPACK_LIBRARY_DIRS:STRING=/apps/lapack-3.2.1/lib64 +
- -D TPL_ENABLE_UMFPACK:BOOL=ON \ - -D TPL_ENABLE_SuperLU:BOOL=ON \ - -D TPL_ENABLE_SuperLUDist:BOOL=ON \ - -D TPL_UMFPACK_INCLUDE_DIRS="/usr/include" \ - -D SuperLUDist_INCLUDE_DIRS:FILEPATH="/path/to/SuperLU_DIST_3.2/SRC" \ --D TPL_SuperLUDist_LIBRARIES:FILEPATH="/path/to/SuperLU_DIST_3.2/lib/libsuperlu_dist.a" \ - -D SuperLU_INCLUDE_DIRS:FILEPATH="/path/to/SuperLU_4.3/SRC" \ - -D TPL_SuperLU_LIBRARIES:FILEPATH="/path/to/SuperLU_4.3/lib/libsuperlu_4.3.a" + -D TPL_ENABLE_UMFPACK:BOOL=ON \ + -D TPL_ENABLE_SuperLU:BOOL=ON \ + -D TPL_ENABLE_SuperLUDist:BOOL=ON \ + -D TPL_UMFPACK_INCLUDE_DIRS="/usr/include" \ + -D SuperLUDist_INCLUDE_DIRS:FILEPATH="/path/to/SuperLU_DIST_3.2/SRC" \ + -D TPL_SuperLUDist_LIBRARIES:FILEPATH="/path/to/SuperLU_DIST_3.2/lib/libsuperlu_dist.a" \ + -D SuperLU_INCLUDE_DIRS:FILEPATH="/path/to/SuperLU_4.3/SRC" \ + -D TPL_SuperLU_LIBRARIES:FILEPATH="/path/to/SuperLU_4.3/lib/libsuperlu_4.3.a"Similarly, to enable MUMPS, commands should include
- -D TPL_ENABLE_MUMPS:BOOL=ON \ - -D TPL_ENABLE_SCALAPACK:BOOL=ON + -D TPL_ENABLE_MUMPS:BOOL=ON \ + -D TPL_ENABLE_SCALAPACK:BOOL=ONand possibly followed by
- -D TPL_MUMPS_INCLUDE_DIRS:PATH=/usr/include/openmpi-x86_64 \ - -D SCALAPACK_LIBRARY_DIRS:PATH=/lib64/openmpi/lib \ + -D TPL_MUMPS_INCLUDE_DIRS:PATH=/usr/include/openmpi-x86_64 \ + -D SCALAPACK_LIBRARY_DIRS:PATH=/lib64/openmpi/lib \where you need to adjust the exact paths, of course.