darksusy is hosted by Hepforge, IPPP Durham

DarkSUSY tutorial @ TOOLS, 2021-11-24

In preparation for the DarkSUSY tutorial on November 24, 2021, here are some instructions on how to install DarkSUSY 6.

It is important that you install DarkSUSY before the tutorial so that we can start with physics problems right away. We will use the newest version, DarkSUSY 6.2.6. If you have any troubles with the installation, please send an e-mail to Torsten Bringmann at any time before the tutorial (but feel free to do so afterwards, too). See also the final comments further down. The preferred way to install DarkSUSY is locally on your machine. This gives you the best performance and easy access to both DarkSUSY and other tools you may need on your computer. It should work on most Linux/Unix systems and on Mac OS X. You need to make sure to have compiler tools installed (make, gfortran, gcc, g++ etc). Furthermore, you also need perl, curl (libcurl), autoconf, aclocal and cmake for all contributed code to compile successfully.

On Linux systems

On most Linux systems you already have part of the above requirements installed out of the box, but some you typically still need to install. This is usually done with a pacakge manager (e.g. apt-get on Ubuntu).

On Mac OS X

On Mac OS X you need to install Xcode and the command-line tools (xcode-select --install). You also need to install gcc, g++ and gfortran. This can be done from either MacPorts or homebrow or by downloading the binary tar-files from here.

DarkSUSY installation

Download darksusy-6.2.6.tgz from darksusy.org (click 'Downloads' and then select the current release).

Unpack it, configure and install

tar zxvf darksusy-6.2.6.tar.gz
cd darksusy-6.2.6
./configure
make

and then test the installation by

cd examples/test
./dstest

It takes about a minute to run and should end with

    ====================================
Summary of performed DarkSUSY tests
====================================
Number of errors reported by dstest_mssm: 0
Number of errors reported by dstest_silveira_zee: 0
Number of errors reported by dstest_genWIMP: 0
====================================

In the configure step above, you can also provide further options to improve compiler performance (e.g. by running ./conf.gfortran instead of configure in case you use gfortran). If something went wrong, you can undo only the make step with 'make clean', or undo the full installation with 'make distclean'.

Problems with the installation? Let me know!
NB: Contributed packages (i.e. code not part of DarkSUSY, but included in the installation for convenience) are built first; these sompilations steps are often much more 'picky' about the system requirements than the actual DarkSUSY code. If there is a compilation problem with any of the contributed packages that you cannot fix, consider building a 'light' version of DarkSUSY (not making use of any contributed code): Fully uninstall with 'make distclean', followed by './configure' and 'make darksusy_light'. This will still allow access to most parts of DarkSUSY and only disable particle modules like the mssm that strongly rely on code in /contrib.

Final comments

If you have managed to get DarkSUSY up and running by following the above steps you are well prepared for the DarkSUSY tutorial. If you have any troubles, please contact me by e-mail.

Technically, DarkSUSY is a library of routines written in FORTRAN (mostly following FORTRAN77 standard, but this is not strictly enforced). In order to use it, some basic knowledge of FORTRAN is thus very helpful. If you have never used FORTRAN before, you should therefore seriously consider to spend additional 15 minutes before the tutorial to write your first little program, e.g. by following the instructions in section 4.4 of this short intro. A next good step might be to look at a very brief overview of the basics of FORTRAN, but there are of course many more (and more detailed) tutorials online available.

If you want to learn more about DarkSUSY 6 already before the school, consider taking a closer look (in roughly this order) at the DarkSUSY webpage , the example programs in the /examples folder, the DarkSUSY article ( JCAP 07 (2018) [arXiv:1802.03399] ) and the manual.



Torsten Bringmann, 2021-11-22 (building on earlier instructions by Joakim Edsjö)