Main navigation

How to use Trilinos

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

Trilinos Documentation

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 Project Documentation.

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.

How to run Trilinos from a C++ Program

It is recommended you use C++ to access the full power of Trilinos, as Trilinos has limited support for C programs, and very limited support for Fortran programs. You need to include multiple header files in your code, depending on which Trilinos packages you use.

To compile the example code ex2.cpp which uses AztecOO, Galeri and Teuchos Trilinos packages, enter:

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.

Report Typos and Errors
UCLA OIT

© 2016 UC REGENTS TERMS OF USE & PRIVACY POLICY