Required Software


BLAS and LAPACK are required for PETSc. It is highly recommended to use any vendor specific (and therefore highly optimized) BLAS and LAPACK libraries (cf. FAQ : Optimized BLAS libraries). The generic implementation is available from netlib:

Optimized BLAS libraries can be found on the website of the ATLAS project:


If possible it is again recommended to use any vendor specific MPI libraries, which are highly optimized for your specific hardware platform. If you do not have any MPI implementation readily available, you can use MPICH, OpenMPI, or LAM/MPI.

However, magpar/PETSc can also be compiled without MPI support: Single processor version without MPI


The parallel time integrator PVODE from the SUNDIALS package is used for the dynamic time integration of the Landau-Lifshitz-Gilbert equation, which describes the time evolution of the magnetization distribution.

mapgar can also be compiled without SUNDIALS and just with TAO for energy minimization.


PETSc is the core package for magpar. It provides the parallel data types, matrix-vector operations, data input and output, many utility functions, etc.

Optional Packages


The Metis library can be used for mesh partitioning - to split the problem (i.e. the finite element mesh) into a number of submeshes, which are then dealt with by different processors. Metis uses a very efficient multilevel k-way partitioning algorithm, which gives high quality partitionings.

Without ParMETIS magpar can still perform bandwidth optimization or just work with the natural ordering (see options "-metispartition" and "-optimizebw" in allopt.txt).


"The Advanced Optimization" library is used for the static energy minimzation method.


This compression library is used to reduce the size of the output files. Especially, the inp-files for AVS, which store snapshots of the magnetization distribution, are compressed very effectively.


The libpng library allows magpar to save snapshots of the magnetization distribution as PNG graphics files.


High performance preconditioners for solving large, sparse linear systems of equations on massively parallel computers


SuperLU is a general purpose library for the direct solution of large, sparse, nonsymmetric systems of linear equations on high performance machines.


Each external software package has its own licensing conditions and copyright. However, they are all freely available as open source and most of them published under GNU Public or other OSI approved licenses. Please refer to the list of Licenses.

magpar - Parallel Finite Element Micromagnetics Package
Copyright (C) 2002-2010 Werner Scholz