Installing DarkSusy: Difference between revisions

From ift
No edit summary
(Added info on how to compile subprograms)
Line 1: Line 1:
==Installing==
To install DarkSusy, make sure to download both the latest version and the galprop patch from the DarkSusy [http://www.physto.se/~edsjo/darksusy/ page].
To install DarkSusy, make sure to download both the latest version and the galprop patch from the DarkSusy [http://www.physto.se/~edsjo/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''
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''
Line 7: Line 8:


In the end, move to the ''test'' directory, and run ''./dstest''. You should receive output similar to the file ''dstest.output''.
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'', the one above compiles ''dstest''


[[Category:Installing]]
[[Category:Installing]]

Revision as of 10:50, 18 January 2012

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 modify the configure command to 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, the one above compiles dstest