MIT Photonic Bands Win32

Description

I have compiled the MIT Photonic Bands package for Windows, independent of Cygwin, as an exercise in porting UNIX software to Windows, but mainly because some people insist on running it in Windows. The computational libraries are not optimized, so further tweaking will be needed. The MPB package has been tested by several people now and it seems to run okay. The Meep package below is probably very flaky, and I don't get any feedback for it at all. If you have issues or comments, don't hesitate to let me know!

News

Installation

Quick and dirty setup:

  1. Unzip the binary archive somewhere on your C: drive. The default location at the root of C: should work (i.e. there should be C:/mpb/guile created after unzipping). It is very important to unzip to a directory path that contains no spaces in it (so don't unzip it in C:/Program Files). If you place the directory anywhere not at the root of C:, then h5topng will not work because it won't be able to find the colormaps. You can copy the colormaps you need into your working directory if you insist on installing MPB somewhere else.
  2. Double click setup.bat in the base directory (e.g. C:\mpb\setup.bat).
  3. Run mpbshell.bat to get a shell with environment variables already set up for you.
  4. Type: cd examples/tri-rods
  5. Type: run

You will get errors during the conversion of h5 files because the Windows shell can't do proper name globbing. If you want to convert all the files, run the command in the batch file on each specific file. Also, the h5topng command won't work unless the colormaps are in C:\mpb\h5utils\colormaps, so try to unzip the archive in the root of C:.

The binary archive contains all necessary files other than the C runtime DLLs. Most modern Windows installations should have them already installed (msvcrt.dll and msvcr71.dll).

Since MPB is licensed under the GPL, I am providing the modified sources to libctl, mpb, and h5utils.

Download