Install packages libtrilinos and libtrilinos-dev. In Ubuntu 6.06 (Dapper) or newer, you can use the Synaptic package manager for that, or type:
sudo apt-get install libtrilinos libtrilinos-dev
Now go to the directory with Hermes. Create the file CMake.vars with the following line (or append to the existing one):
set(WITH_TRILINOS YES)
Finally execute:
rm CMakeCache.txt
cmake .
make
Find more about Using TRILINOS in Hermes.
mkdir build_dir cd build_dir cmake
-D CMAKE_BUILD_TYPE:STRING=DEBUG -D CLAPACK_DIR:STRING={CLAPACK_DIR} -D CMAKE_Fortran_FLAGS:STRING=”-fPIC” -D Trilinos_ENABLE_ALL_PACKAGES:BOOL=OFF -D Trilinos_ENABLE_Teuchos:BOOL=ON -D Trilinos_ENABLE_Epetra:BOOL=ON -D Trilinos_ENABLE_EpetraExt:BOOL=ON -D Trilinos_ENABLE_AztecOO:BOOL=ON -D Trilinos_ENABLE_Ifpack:BOOL=ON -D Trilinos_ENABLE_ML:BOOL=ON -D Trilinos_ENABLE_Amesos:BOOL=ON -D Trilinos_ENABLE_NOX:BOOL=ON -D Trilinos_ENABLE_Anasazi:BOOL=ON -D Trilinos_ENABLE_Komplex:BOOL=ON -D Trilinos_ENABLE_Claps:BOOL=ON -D Trilinos_ENABLE_TESTS:BOOL=ON -D Trilinos_ENABLE_MPI:BOOL=OFF -D DART_TESTING_TIMEOUT:STRING=600 -D CMAKE_INSTALL_PREFIX:STRING={CMAKE_INSTALL_PREFIX} ..
SET(CMAKE_INSTALL_CONFIG_NAME “Release”)
for:
SET(CMAKE_INSTALL_CONFIG_NAME "Debug")
Install Trilinos into the path specified by the {CMAKE_INSTALL_PREFIX} variable by running:
cmake -P cmake_install.cmake
You may also need to create a dummy file “unistd.h” in the include folder under dependencies folder. This header is not present in certain versions of Microsoft C library. Go to the directory with Hermes. Add the following lines into CMake.vars:
set(WITH_TRILINOS YES)
set(TRILINOS_ROOT {CMAKE_INSTALL_PREFIX})
again, replace {CMAKE_INSTALL_PREFIX} with the folder where you installed Trilinos.
Find more about Using TRILINOS in Hermes.
In preparation.
You may now select either SOLVER_AMESOS as the direct matrix solver or SOLVER_AZTECOO as the iterative matrix solver for your finite element problem, as detailed in the Poisson tutorial, or use it just to solve a standalone matrix problem
as in the Using Matrix Solvers tutorial. Note that Trilinos is also required for using the advanced nonlinear solver NOX (see e.g. the Trilinos - Nonlinear tutorial).