Skip to content

Cosmoglobe/Commander4

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Commander4

How to run

Commander4 has to be run with MPI, and a parameter file has to be indicated using the -p argument. Example usage:

mpirun -n 15 python -u src/python/commander4.py -p params/param_default.yml

(The -u makes stdout unbuffered, which I have found to be necessary in order to make MPI programs print properly to the terminal).

Compiling Ctypes libraries

The code depends on C++ Ctypes libraries which are located in the src/cpp/ directory. There should be a file named src/cpp/compilation.sh which contains the compilation procedure for all C++ files.

Initializing the submodules

Commander4 pulls in the ducc0 sources to make developing of C++ helper functions easier.

To install this submodule directly when cloning the Commander4 repository you can do

git clone --recurse-submodules <Commander4 repo URL>

If you have already cloned Commander 4, the easiest way is to go to the Commender4 directory and then do

git submodule init
git submodule update