Computational Cluster Programs

How to Use Trilinos on ATS-Hosted Clusters

Installation location: /u/local/apps/trilinos/current

Trilinos is a set of sophisticated software tools, containing more than 20 packages. If you are a new Trilinos user, we recommend reading the Trilinos documentation first. Didasko is the Trilinos tutorial, and contains several examples, detailed descriptions, tips, and suggestions for most Trilinos packages. Choose the documentation for the appropriate Trilinos Release from the left side menu.

You will have to include all necessary header files in your code, depending on which Trilinos packages you use.

It is recommended to use C++ to access the full power of Trilinos, as Trilinos has limited support for C programs, and very limited support for Fortran programs.

To compile example code ex2.cpp which uses Aztecoo, Galeri and Teuchos packages in Trilinos, type:


mpicxx ex2.cpp -I/u/local/apps/trilinos/current/include      \
-L/u/local/apps/trilinos/current/lib                         \
-laztecoo -lgaleri -lepetraext -ltriutils -lepetra -lteuchos \
-L/u/local/apps/lapack/current -llapack                      \
-L/u/local/apps/blas/current -lblas                          \
-L/u/local/compilers/intel/fce/current/lib -lifcore -limf
   

In the example above, the last link line -L/u/local/compilers/intel/fce/current/lib -lifcore -limf is necessary because the LAPACK library and the BLAS library were compiled with the Intel Fortran compiler.