Wednesday, September 1, 2010

Deploying the MIT Photonic-Bands (MPB) package

The MIT Photonic-Bands (MPB) package is a free program for computing the band structures (dispersion relations) and electromagnetic modes of periodic dielectric structures, on both serial and parallel computers.


MPB Information:
  1. MPB Download Page
  2. MPB Installation Guide

Software Requisites:
  1. Basic linear Algebra Subroutines (BLAS). For more information on BLAS installation, see the Section on BLAS
  2. Linear Algebra PACKage (LAPACK). For more information see the Section on LAPACK
  3. FFTW For more information see my Blog Entry Installing FFTW
  4. HDF (Hierarchical Data Format)
  5. GNU Guile. Guile is a library designed to help programmers create flexible applications. Using Guile in an application allows programmers to write plug-ins, or modules
  6. libctl is a free Guile-based library implementing flexible control files for scientific simulations. 
Sample Installation of prerequisites using F77 - GNU Fortran:
# f77=gfortran CFLAGS="-I/usr/local/fftw-mpi-2.1.5/gnu/include -I/usr/local/hdf5-1.8.5/gnu/include" 
CPPFLAGS="-I/usr/local/fftw-mpi-2.1.5/gnu/include -I/usr/local/hdf5-1.8.5/gnu/include -DH5_USE_16_API=1" 
LDFLAGS="-L/usr/local/fftw-mpi-2.1.5/gnu/lib -L/usr/local/hdf5-1.8.5/gnu/lib"


Finally the Installtion of MIT PB, for our installation, we use some of the settings
# ./configure --prefix=/usr/local/mpb-1.4.2 --with-mpi 
--with-blas=/usr/local/gotoblas2-unthreaded/libgoto2.a 
--with-lapack=/usr/local/octave/lib/octave-3.2.4/lapack_LINUX.a

No comments: