Installing DarkSusy

From ift
Revision as of 13:45, 2 February 2012 by Kmo078 (talk | contribs)

Installing

To install DarkSusy, make sure to download both the latest version and the galprop patch from the DarkSusy page. Unpack darksusy-5.0.5.tar.gz, and move the patch into the resulting folder(darksusy-5.0.5). Now, unpack the patch as well with: tar zxvf galprop-patch.tar.gz

  • If you are running linux, run ./configure if you wish to compile with g77 or ./conf.gfortran for gfortran, then make and sudo make install
  • If you run mac (tested on mac osx 10.6), the c++ and fortran compilers will not compile for the same architecture unless you preface configure command with CFLAGS="-m32".

In the end, move to the test directory, and run ./dstest. You should receive output similar to the file dstest.output.

Compiling programs

To compile your own Fortran program written with DarkSusy, the call should be similar to (if you've configured with gfortran):

gfortran -I$PWD/../include -L$PWD/../lib -o ProgramName ProgramName.f -ldarksusy -lFH -lHB


For examples, one can look in the makefile in test.