My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
Windows  

Featured
Updated Feb 16, 2012 by pcir...@gmail.com

Windows 7.2 Release

This 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 Release

Windows Distribution (NOTE. These executable codes should NOT be used for benchmark purposes because they were not optimized)

File Description Purpose Notes
DDSCAT.exe DDSCAT REQUIRED Calculates scattering G95 -O2 -mno-cygwin, single precision, CYGWIN (use this version)
DDSCAT.exe DDSCAT Calculates scattering G95 -O2 -mno-cygwin, double precision, CYGWIN
ddscat.par ddscat.par REQUIRED input file download and rename to ddscat.par
diel.tab diel.tab REQUIRED defines dielectric constant keep in ../diel directory
CALLTARGET.exe Calltarget Create shape file G95 -O2 -mno-cygwin, single precision, CYGWIN
DDFIELD.exe DDFIELD Calculate near field G95 -O2 -mno-cygwin, single precision, CYGWIN

Running DDSCAT on Windows

If 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.

  • Download ddscat...exe executable file (it has extension .exe)
  • Download ddscat...par file, rename it to ddscat.par
  • Download example dielectric constant tabulation
  • Place ddscat.exe ddscat.par in the same directory and diel.tab in ../diel directory (or make simple modification in ddscat.par to point to diel.tab file)
  • Enter windows command mode ("run" and "cmd")
  • Execute DDSCAT by entering ddscat.exe in the Windows command mode

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).


Sign in to add a comment
Powered by Google Project Hosting