2020-05-09 13:02:53 +02:00
|
|
|
mpb (computes electromagnetic band structures and modes)
|
|
|
|
|
2020-10-12 00:29:15 +02:00
|
|
|
MPB is a free and open-source software package for computing
|
|
|
|
electromagnetic band structures and modes. It saves results in hdf5
|
|
|
|
format.
|
2020-05-09 13:02:53 +02:00
|
|
|
|
2020-05-11 05:10:55 +02:00
|
|
|
This package requires: hdf5, libctl, lapack
|
|
|
|
|
2020-05-09 13:02:53 +02:00
|
|
|
You may wish to also install: h5utils
|
|
|
|
|
|
|
|
You very probably want to build a multi-processor version of this
|
|
|
|
code by adding the "--with-openmp" configure option.
|
|
|
|
|
|
|
|
Configuration:
|
2020-05-11 05:10:55 +02:00
|
|
|
|
2020-10-12 00:29:15 +02:00
|
|
|
If the build script can find the ATLAS libraries, it will adapt the
|
|
|
|
configure options to use them rather than the default lapack.
|
2020-05-09 13:02:53 +02:00
|
|
|
|
2020-10-12 00:29:15 +02:00
|
|
|
You can add additional options to the command line using
|
|
|
|
the environment variable SBOPTIONS_MPB; e.g. to enable MPI
|
|
|
|
(multi-processor calculation) using openmp, use:
|
2020-05-09 13:02:53 +02:00
|
|
|
|
|
|
|
SBOPTIONS_MPB="--with-openmp" ./mpb.Slackbuild
|
|
|
|
|
2020-10-12 00:29:15 +02:00
|
|
|
Alternatively, if building non-interactively (e.g. if using slpkg),
|
|
|
|
use/create the file /etc/sbo_pkg_options.conf since this slackbuild
|
|
|
|
script will search it for options. Simply include a line starting
|
|
|
|
"mpb:" followed by options, e.g.:
|
2020-05-09 13:02:53 +02:00
|
|
|
|
|
|
|
mpb: --with-openmp
|
|
|
|
|
2020-10-12 00:29:15 +02:00
|
|
|
If you want to use mpich instead of openmp, you will have to recompile
|
|
|
|
the installed slackware fftw library with two additional configure
|
|
|
|
options, i.e. not only "--with-mpi" but also "--enable-type-prefix".
|
2020-05-11 05:10:55 +02:00
|
|
|
|
2020-05-09 13:02:53 +02:00
|
|
|
Note:
|
|
|
|
|
2020-10-12 00:29:15 +02:00
|
|
|
This mpb build script does *two* passes. This is so that when
|
|
|
|
MPI support is enabled, the first compiles the mpb-data utility,
|
|
|
|
then the second builds the full MPI version. The resulting package
|
|
|
|
includes both, with any MPI version of the files replacing the non-
|
|
|
|
MPI version.
|