Compiling, running and analysing chains

This file is for the release v1.0 (July 2007).

Compilation options and commands

In source/Makefile, the swith -DMPI turns on (if present) and off (if absent) the multi-chains MPI support. When the switch is present, the number of chains is automatically set equal to the number of processors used in the run. Each chain then produces output files with an id tag "_i", with i=1,...,n (n being the number of processors).

From the source directory, the command

make cleanall

cleans all the compiled files and executables. The command

make all

then recompiles the whole package building static libraries for each of the codes included into the package. Then those are linked to the MonteCarlo source files. The command

make superbayes

only recompiles the MCMC files in the source directory. Use

make getplots

to compile the getplots routine (for chain analysis and plotting).

Testing SuperBayes

For testing purposes the testing.90 file is provided. The command

make tester

will compile it.

The run is made from the command line with the command

tester

The parameters for running the tester are hardcoded in the source\tester.f90 file, and are the same as described below. Setting debug=.true. will write the full output with detailed info about the point being considered to the file spectrum.out. By default a file called ifort.* containing the formatted output is created too. The tester works in single-point mode if test_chain = .false., otherwise it can read in a list of points from an existing chain (filename of the chain file hardcoded in tester.f90), which can be useful for testing purpose.

Running SuperBayes

If MPI is turned off, Superbayes is invoked in single-processors mode from the command line with the command

superbayes SampleIniFile.ini

The corresponding MPI command depends on the configuration of your machine. The SampleIniFile.ini file contains all parameters for the run. Currently, only the Constrained MSSM is supported, but the package is easily customizable to extend the MCMC to the general MSSM if required. The syntax of the .ini file is mutuated from the cosmomc package, and the meaning of the parameters is explained here .

SuperBayeS can be run in MCMC mode (using Metropolis-Hastings) or in grid-scan mode (which returns the likelihood on a multi-dimensional grid at pre-defined spacings in parameter space). See running options for details.

(top)

Analysing the chains and plotting

SuperBayeS comes with GetPlots, a routine for analysing the MCMC chains and plotting the results (which is largely based on GetDist, from the cosmomc package - refer to cosmomc website for futher details).

GetPlots is invoked with the command (from SuperBayeS root directory)

getplots GetPlotsSample.ini

It produces files .margestats (marginalized 1D statistics), .likestats (best-fit point and mean quality of fit limits) and .converge (converge statistics about the chains, refer to the cosmomc website for details). Those files are saved in the output_files folder (any pre-existing files are overwritten).

It also produces matlab files for 2 and 3 dimensional plotting and SuperMongo (SM) files for 1D plots of probability distributions. Those files are stored in the output_files folder, with suffixes .sm and .m

To produce corresponding plots, call SM (for 1D plots) with the command

sm < filename.sm

or matlab via the command

matlab < filename_2D.m or matlab < filename_3D.m

Details of the format of the ensuing plots can be custom-edited in the source files source\matlab.f90 and source\GetPlots.f90 (the latter for SM plots customization).

Analysis and plotting options are explained here.

(top)

Running options

(top)

Plotting options

Plotting options are set in the GetPlotsSample.ini file as follows:

(top)