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
- 2008-02-02 - Updated the distribution to include a setup batch file. Fixed the missing colormaps problem. Added installation instructions. Thansk to Ali Shareef, Ivan Prieto, and Bob Marshall for giving feedback and finally annoying me to the point of fixing these problems :)
Installation
Quick and dirty setup:
- 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.
- Double click setup.bat in the base directory (e.g. C:\mpb\setup.bat).
- Run mpbshell.bat to get a shell with environment variables already set up for you.
- Type: cd examples/tri-rods
- 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
- MIT Photonic Bands Win32 (original version 1.4.2) - Updated Feb. 2, 2008 to make setting it up much easier. Now just run mpbshell.bat to open an MPB shell. Fixed missing colormaps problem. Contains all the h5utils. Does not support MPI.
- Modified libctl and mpb sources (versions 3.0.2 and 1.4.2)
- Modified h5utils sources (version 1.10.1) (The VS project files are very unorganized, but they work)
- Meep compiled with Cygwin (original version 0.10)
- ~/downloads/mpb/meep_ctl.zip "Meep libctl files"> - You will need to put a copy of the libctl files in C:/cygwin/usr/local/share, as well as these ctl files. You should have C:/cygwin/usr/local/share/libctl/base/include.scm, C:/cygwin/usr/local/share/meep/meep.scm, etc.