Skip to content

c-abird/magnum.fe

Repository files navigation

magnum.fe

Moved

The development of magnum.fe has been moved to https://github.com/micromagnetics/magnum.fe ! This repository is no longer updated.

Installation

Prerequisites

magnum.fe requires the following software/libraries to be installed:

  • dev-version of FEniCS
  • dev-version of cbc.block
  • gmsh >= 2.8.0 (headers and library)
  • cmake

magnum.fe is tested with dolfin dev version from 10 June 2013 (1.2.x), but should also work with more recent versions.

Install dev-version of dolfin

The dev-version of FEniCS is best installed with dorsal (https://launchpad.net/dorsal).

bzr branch lp:dorsal
cd dorsal

Set STABLE_BUILD=false in the dorsal.cfg. Then run

./dorsal.sh

and follow the instructions.

Install dev-version of cbc.block

The dev-version of cbc.block can be installed by checking out the current version from the launchpad repository

bzr branch lp:cbc.block
cd cbc.block
sudo python setup.py install

Build

To build magenum.fe with cmake do

cd /path/to/magnum.fe
mkdir build
cd build
cmake ..
make

Right now there is no install rule for make. There are however symlinks in the site-packages/magnumfe directory which point to the compiled swig wrapper code in the build directory. Thus you can use magnum.fe by adding the site-packages directory to your PYTHONPATH

export PYTHONPATH=/path/to/magnum.fe/site-packages

Test

You can test your installation by running the unit tests

cd tests
python run_all.py

License

Released under the GNU General Public License 3 (included).

About

No description, website, or topics provided.

Resources

License

LGPL-3.0, GPL-3.0 licenses found

Licenses found

LGPL-3.0
COPYING.LESSER
GPL-3.0
COPYING

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published