You can get the release version of OOFEM from its download page. After downloading, unpack the distribution. For example on unix-like system, by running
gunzip -c oofem-x.y.tar.gz | tar xof -
Alternatively, you can get the bleeding edge version of OOFEM from the OOFEM SVN repository. To grab a copy of the latest version of OOFEM using anonymous svn access, use following command:
svn co http://www.oofem.org/svn/trunk
The trunk directory has been created with OOFEM source tree. Run autoconf command to generare configure script
cd trunk; autoconf
Once you've checked out a copy of the source tree, you can update your source tree at any time so it is in sync with the latest and greatest by entering your oofem directory and running the command:
svn update
Be aware, however, that this is the development version of the code, which is not guaranteed to be stable. This option is intended mainly for active oofem developers, giving access to the most up-to-date version.
Pre-build packages are available in the PPA for Václav Šmilauer.
deb http://ppa.launchpad.net/eudoxos/ppa/ubuntu karmic main deb-src http://ppa.launchpad.net/eudoxos/ppa/ubuntu karmic main
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 92DE8183
sudo apt-get update && sudo apt-get install oofem oofem-mpi oofem-oofeg oofem-doc
sudo apt-get install build-essential xorg-dev
./configure
cd targets/default; make all
All configure parameters that describe location of
optional package installation directories should be specified using
absolute paths, since different makefiles in different directories
depend on these parameters.
Full list of configure options can be obtained running 'configure --help'
To build target named “oofem-release”, compiled with compiler optimization flag ”-O2”, with IML and DSS libraries use
./configure OOFEM_TARGET=oofem-release --enable-dss --enable-iml CXXFLAGS="-O2"
Run make to compile the required targets as:
make OOFEM_TARGET="target_name"
or
cd targets/target_name; make
or
export OOFEM_TARGET="target_name" make
Supply valid target name (as set up when running configure script) as “target_name”.
The target executable will be created in target_name/bin directory.
From oofem top dir, change to tools directory:
cd tools
Run make:
make all
To test solver compiled under “target_name” target, change working directory to target directory:
cd targets/target_name
Run make with tests target (takes a while)
make tests
Check if tests were successful
less ./test_results
Optionally, to test parallel target, named “target_name”: (requires that parallel version is compiled with PETSc and existing target of serial solver version):