You are not logged in.
Currently I'm doing research at a 2D photonic crystal and for this I also have to do simulations to check my measurements.
MIT Photonic-Bands (MPB) is the program for this task. It's only a beast to install which goes far beyond my linux skills.
If someone would like to give it a shot, I would be very gratefull.
Else I'm forced to switch to debian, since they have it in there repro.
Info: http://ab-initio.mit.edu/wiki/index.php … onic_Bands
Installation: http://ab-initio.mit.edu/wiki/index.php … stallation
PS: the program HDF5 is a requirement for me, the MPI isn't
Offline
Here's a rundown on the dependencies, and where they can be found (if at all):
blas - community
lapack - community
hdf5 - old forum thread
fftw2 - extra
readine - current (part of base install)
guile - extra
libctl - nowhere (yet)
In other words, the only ones that need building are hdf5, libctl, and mpb itself. As I wrote that old hdf5 PKGBUILD, I'll have another look at it, and update it if necessary. libctl and mpb appear to be bog-standard configure/make/make install builds, so I'll do PKGBUILDs for those as well.
Not such a beast now, right?
Offline
I have all the deps built and installed, and I'm about to build mpb, but I need guidance on the first two config options listed here, i.e.
--with-inv-symmetry
--with-hermitian-eps
The first one sounds like a good thing, but it's disabled by default, and the second is too specific to the application for me.
Offline
great!
--with-inv-symmetry, would be nice to have.
--with-hermitian-eps, it not something I will need for my simulations. But since it looks to me it gives some extra support in the program, I would say it's not a bad thing to build it in also.
Offline
Everything's built and installed now, and seems to be working- I have to say "seems to be", because I've only the vaguest idea what mpb actually does!
I'll put the PKGBUILDs for hdf5, libctl, and mpb in the AUR now - after that, it's over to you.
<edit>
They are here, here, and here.
Something to be aware of - my machine runs on the Arch testing repo, and is therefore using gcc-fortran 4.1.1. blas and lapack, however, are in the community repo, and were compiled with gcc-fortran 4.0.3. I had to rebuild them on my machine before mpb could make use of them. If you are not using the testing repo, these rebuilds should not be necessary.
Offline
Wonderfull, it build perfect for me, and I'm not using the testing repo....I'm very happy now
Perhaps I have to tip the creator of mpb that arch has a package for it now too.
Offline
Well, if you're happy, I'm happy. Couldn't have you degenerating into a Debian user, could we?!
And when you're rich and famous after the earth-shattering discovery you're going to make from 2D photonic crystal research, I'm confident you'll remember all those who got you there - or me, anyway.
Offline
Don't worry, I won't forget....tomk was it, right?
I noticed that I forgot to request the h5utils ( http://ab-initio.mit.edu/wiki/index.php/H5utils ),
to make actually pictures from the .h5 files generated by hdf5.
So I gave it a shot myself and it seems to work:
# Contributor: Bob Day
pkgname=h5utils
pkgver=1.10
pkgrel=1
pkgdesc="Set of utilities for visualization and conversion of scientific data"
depends=('hdf5')
source=(http://ab-initio.mit.edu/h5utils/$pkgname-$pkgver.tar.gz)
md5sums=('de78cf9c9e69009f38fc9dcc5fcf4d87')
url="http://ab-initio.mit.edu/wiki/index.php/H5utils"
build() {
cd $startdir/src/$pkgname-$pkgver
./configure --prefix=/usr
make || return 1
make prefix=$startdir/pkg/usr install
}
Offline
Looking good, Bob - nice work.
Stick a Contributor line at the top, and you can put it in the AUR.
Offline
those who need mpb also might need at some point Meep ( http://ab-initio.mit.edu/wiki/index.php/Meep )
Two extra PKGBUILDs are needed besides most of the mpb PKGBUILDs. Here they are:
harminv/PKGBUILD:
# Contributor: Bob Day
pkgname=harminv
pkgver=1.3.1
pkgrel=1
pkgdesc="A program (and accompanying library) to solve the problem of harmonic inversion."
depends=('blas' 'lapack')
makedepends=('gcc-fortran')
source=(http://ab-initio.mit.edu/$pkgname/$pkgname-$pkgver.tar.gz)
md5sums=('d3f49f1c90856b3b2e8b77dc4a99c37a')
url="http://ab-initio.mit.edu/wiki/index.php/Harminv"
license="GPL"
build() {
cd $startdir/src/$pkgname-$pkgver
sed -i '/for ac_prog in g77/s|g95|g95 gfortran|' configure
./configure --prefix=/usr
make || return 1
make prefix=$startdir/pkg/usr install || return 1
}
meep/PKGBUILD:
# Contributor: Bob Day
pkgname=meep
pkgver=0.9
pkgrel=1
pkgdesc="A finite-difference time-domain (FDTD) simulation software package developed at MIT to model electromagnetic systems."
depends=('harminv' 'hdf5' 'libctl')
makedepends=('gcc-fortran')
source=(http://ab-initio.mit.edu/$pkgname/$pkgname-$pkgver.tar.gz)
md5sums=('70400d999537134d14c5f90d19fc0d81')
url="http://ab-initio.mit.edu/wiki/index.php/Meep"
license="GPL"
build() {
cd $startdir/src/$pkgname-$pkgver
sed -i '/for ac_prog in g77/s|g95|g95 gfortran|' configure
./configure --prefix=/usr
make || return 1
make prefix=$startdir/pkg/usr install || return 1
}
Offline
I think meep should be in AUR By the way, libctl in AUR need to be updated.
"Physics is like sex: sure, it may give some practical results, but that's not why we do it."
Richard P. Feynman.
Offline