Adding Pico to CAMB

You can add Pico as a front end for CAMB by doing the following:

1. Download Pico.

2. Download a Pico data file from the download section.

3. Untar Pico inside the CAMB source directory. This should give a pico subdirectory.

4. Untar the Pico data file inside the pico subdirectory.

5. Edit the Pico Makefile for your compiler. Remove -DCOSMOMC from the F90FLAGS variable. Edit the INCLUDE variable to contain the location of the CAMB root directory (if you untared Pico inside the CAMB directory, it would be INCLUDE = -I..).

6. Copy the 3 files contained in pico/camb_files to the CAMB root directory. These files are a modified Makefile for CAMB, a modified driver routine and an example parameter file for CAMB. The only changes required in the driver routine are an additional use statement and a call to Pico_GetResults instead of CAMB_GetResults.

7. Edit Makefile.camb for your compiler. If the Pico libraries are not in the pico subdirectory you will need to change PICODIR variable appropriately.

8. Lastly compile with make -f Makefile.camb pcamb and run with ./pcamb params.ini.pico_example. If you compile with make, CAMB will be built without Pico and will run as usual.

Be careful not to use the -DCOSMOMC if you are not using Pico with CosmoMC.


Questions or comments, please e-mail