From charlesreid1

(Created page with "Trilinos is a suite of object-oriented C++ libraries designed to help facilitate multiphysics simulations. It consists of a whole bunch of different packages, each with its own ...")
 
Line 4: Line 4:


= Installation =
= Installation =
== Dependencies ==
If you're installing Trilinos 10.x, you'll need to install [[CMake]], a build system with some similarities to, and many differences from, GNU autotools.  See the [[Presentations]] page - the "Software" Scientific Computing Summer Workshop covers CMake, as well as differences in the build process between CMake and GNU autotools.  (GNU autotools require the usual "configure, make, make install" sequence.)


== Configuration ==
== Configuration ==
=== Trilinos 10.x (CMake) ===
To build with CMake, you should create a build directory, and put a run_cmake.sh script in your build directory.  This script will contain the CMake directives. 
<syntaxhighlight lang="bash">
#!/bin/sh
=== Trilinos 9.x (Autotools) ===


Configuring Trilinos is a pain if you haven't done it before, because you have to have a version of <code>gcc</code>, <code>g++</code>, and <code>gfortran</code> with matching version numbers - but it won't tell you that.
Configuring Trilinos is a pain if you haven't done it before, because you have to have a version of <code>gcc</code>, <code>g++</code>, and <code>gfortran</code> with matching version numbers - but it won't tell you that.

Revision as of 06:08, 13 October 2010

Trilinos is a suite of object-oriented C++ libraries designed to help facilitate multiphysics simulations. It consists of a whole bunch of different packages, each with its own problem-focus and its own capabilities.

http://trilinos.sandia.gov/

Installation

Dependencies

If you're installing Trilinos 10.x, you'll need to install CMake, a build system with some similarities to, and many differences from, GNU autotools. See the Presentations page - the "Software" Scientific Computing Summer Workshop covers CMake, as well as differences in the build process between CMake and GNU autotools. (GNU autotools require the usual "configure, make, make install" sequence.)


Configuration

Trilinos 10.x (CMake)

To build with CMake, you should create a build directory, and put a run_cmake.sh script in your build directory. This script will contain the CMake directives.

#!/bin/sh


=== Trilinos 9.x (Autotools) ===

Configuring Trilinos is a pain if you haven't done it before, because you have to have a version of <code>gcc</code>, <code>g++</code>, and <code>gfortran</code> with matching version numbers - but it won't tell you that.

On a Mac, there's no stock <code>gfortran</code>, and if you can find one, it usually doesn't match the GNU C/C++ compiler versions.  So, I use [[Fink]] to install the entire GNU compiler collection, so that everything is the same version.  I can point Trilinos' configure to the compilers to use with the following configure line:

<syntaxhighlight lang="bash">
#!/bin/sh
#
# run configure
# make 
# make install

./configure \
  CC=/sw/bin/gcc-4     \
  CXX=/sw/bin/g++-4    \
  F77=/sw/bin/gfortran \
  --prefix=/path/to/trilinos \
  --disable-default-packages \
  --enable-aztecoo \
  MACOSX_DEPLOYMENT_TARGET=10.5 \

This will only install the package aztecoo, but there are a plethora of others to install (see http://trilinos.sandia.gov/packages/ for the full list).