Clone wiki

cosmosis / Running cosmosis

Assuming the appropriate script in the config directory has been sourced, cosmosis may be run from any directory with a command of the form

cosmosis path/to/params.ini [options]

where the params.ini file is the one which defines the top-level parameters for the run, and is mandatory.

The options can be any of

OptionDescription
--mpiThe presence of this option causes cosmosis to run in MPI mode, spawning the process across compute nodes to allow the exploration of parameter space (sampling) to take advantage of parallel processing.
-p section.name1=value1 section.name2=value2 ...
--params section.name1=value1 section.name2=value2 ...(Same as -p, above). This option causes the parameter values, which may have been specified in the main .ini file, to be overridden with value1, value2, etc, respectively. Note that if this option appears more than once then an error message will be displayed.
-v section.name1=value1 section.name2=value2 ...
--variables section.name1=value1 section.name2=value2 ...(Same as -v, above). Similar to the --params option above, but this time setting the relevant variables in the values ini file.

Updated