From charlesreid1

Revision as of 05:49, 13 October 2010 by Admin (talk | contribs) (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 ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

Configuration

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

On a Mac, there's no stock gfortran, 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:

#!/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).