Installation

In a debian/ubuntu system

If you have a problem installing the packages, please report it as a bug.

Edit /etc/apt/sources.list and add the following lines:

deb http://apt.dim.uchile.cl distro main
deb-src http://apt.dim.uchile.cl distro main

where

distro = debian xor ubuntu,

then, do a aptitude update and aptitude install python-getfem.

In a general unix/linux based systems

Since we use standard GNU tools, the installation of the Python GetFEM++ is somewhat standard.

Requirements

It requires the python developpement files (python.h etc.) to be available (package python-all-dev in debian distribution), and also the numpy and scipy packages to be installed (package python-numpy and python-scipy in debian distribution). In case of troubles with a non-GNU compiler, gcc/g++ (>= 4.1) should be a safe solution (package build-essential in debian distribution).

If you want mesh generation, it requires the package qhull installed on your system (package libqhull-dev in debian distribution).

If you want to build binaries from svn to get the latest changes, improvements, bugfixes, new bugs, etc. It requires an svn client, automake, and libtool.

Download sources

There are two ways to get GetFEM++, either as a compressed package (stable release) or via anonymous svn access (unstable releases).

The latest stable release of GetFEM++ is getfem++-4.0.0.tar.gz

The latest unstable releases is:

  • checkout over SVN protocol (TCP 3690):

    svn co svn://svn.gna.org/svn/getfem/trunk getfem
  • or checkout over HTTP protocol (TCP 80):

    svn co http://svn.gna.org/svn/getfem/trunk getfem
  • go to the root directory of getfem:

    cd getfem/getfem++
  • and run autogen.sh script:

    bash autogen.sh

Compilling

Configure with:

./configure --enable-python=yes

If you want to use a specific BLAS library, you may have to supply the necessary link flags and libs to the configure script, for example with:

./configure --enable-python=yes BLAS_LIBS="-L/usr/lib/sse2/atlas -lblas"

More specific instruccions can be found in the README* files of the distribution.

Warning

  • you should not use a different compiler than the one that was used for GetFEM++.
  • you should have built the GetFEM++ static library (i.e. do not use ./configure --disable-static when building GetFEM++).
  • On linux/x86_64 platforms, a mandatory option when building GetFEM++ (and any static library linked to them) is the --with-pic option of their ./configure script.

Then start the compilation with:

make

and finally install with:

make install