An Optimal Monte-carlo Markov chAiN Driven EstimatoR or simply Commander is fast and efficient Gibbs sampling code for joint CMB component separation.
The latest version - Commander 3 - brings together critical features such as:
- Modern Linear Solver
- Map Making
- Parallelism
- Sky and instrumental modelling
To successfully run Commander, you need the following libraries:
After you cloned the lastest version of the repo, you need to do the following:
- Determine the locations of your MPI compilers (mpif90, mpif77, mpicc, etc), and ensure that they function correctly.
- Determine the locations of the CFITSIO and LAPACK libraries, and how to link to these libraries.
- Look in the
config/
directory and see if a configuration already exists which is similar to your machine. Copy theconfig
(or theconfig.example
) to a new file in the same directory. Call this new fileconfig.<machine>
where<machine>
is the name of the system you will be building the software on. - Edit the
config
file and specify all the options for your system. cd
into the top level commander directory and set theCOMMANDER
environment variable to the string you used above as the<machine>
. For example, if your config is namedconfig.mylaptop
, then you would set the environment variable in.bashrc
as:- For Bourne-like shells
$ export COMMANDER=mylaptop
- For csh-like shells
% setenv COMMANDER mylaptop
- To view some additional help about the available make targets:
$ make help
- To build and install the software:
$ make
$ make install
To run Commander 1 use:
$ export OMP_NUM_THREADS=1
then create the chain directory as specified in parameter file:
$ mkdir chains_dir
copy parameter file into it:
$ cp param_file.txt chains_dir/
and, finally, run the commander via following command:
$ mpirun -n num_proc ~/Commander/commander1/src/commander/commander param_file.txt 2>&1 | tee chains_dir/slurm.txt
Here, num_proc
is the number of processors to use, slurm.txt
is the file to store output logs.
To run Commander 2 & 3 the above steps are similar, but you need to use appropriate parameter file. The last command is also modified:
$ mpirun -np num_proc ~/Commander/src/commander/commander param_file.txt 2>&1 | tee chains_dir/slurm.txt
- Jewell et al. 2004, ApJ, 609, 1
- Wandelt et al. 2004, Phys. Rev. D, 70, 083511
- Eriksen et al. 2004, ApJS, 155, 227 (Commander)
- Eriksen et al. 2008, ApJ, 676, 10 (Joint FG + CMB)