|
Windows
Windows 7.2 ReleaseThis Windows release is based on "gfortran". User Guide contains description of options to run and compile DDSCAT on Windows. The executable file discussed in "native executable" section was compiled using “gfortran” in the MINGW environment (http://www.mingw.org/). Once you have MINGW and MSYS installed, in “all programs” there is now the MinGW program "MinGW shell". Once you open this shell one can now compile Fortran code using "gfortran". The "make" and "tar" utilities are available. The command "pwd" shows which directory corresponds to the initial "MinGW" shell. For example it can be "/home/Piotr" which corresponds to windows directory "c:\mingw\msys\1.0\home\piotr". You now need to copy ddscat.tar files and untar them. To make a native executable, edit "Makefile" so that the "LFLAGS" string is defined to be LFLAGS=-static-libgcc -static-libgfortran and then execute "make all". The resulting ddscat.exe doesn’t require any non-windows libraries. This can be checked with the objdump -x ddscat.exe | grep "DLL" command (it should give KERNEL32.dll, msvcrt.dll). Windows code contains documentation, examples, source code, and binaries. We use Inno Setup5 to create self-extracting file. Windows 7.1 ReleaseWindows Distribution (NOTE. These executable codes should NOT be used for benchmark purposes because they were not optimized)
Running DDSCAT on WindowsIf you use Windows you should be able to run DDSCAT by downloading just 3 files - executable "ddscat.exe", example input file "ddscat.par" and example dieletric constant file "diel.tab". Native Windows executables do not require additional libraries. There are 2 versions - single and double precision; use the single precision. Note that these codes were compiled with basic options without optimizations. If you plan to do large multiprocessor calculations you may want to recompile the code from the source.
There are other options to run the code on Windows. One possibility it to install Sun Virtualbox add Ubuntu Linux operating system. Install gfortran under Ubuntu. Once this is done you can follow instructions provided in the DDSCAT user manual (i.e. compile the code). | ||||||||||||||||||||||||||||