CAMB: compiling example code

Use of Healpix, camb, CLASS, cosmomc, compilers, etc.
Post Reply
Licia Verde
Posts: 5
Joined: January 13 2005
Affiliation: ICE (CSIC-IEEC) Barcelona

CAMB: compiling example code

Post by Licia Verde » January 13 2005

are there somwehere (simple) instructions on how to call camb from another fortran code? I tried the example code in the "Examples", but that must be relative to an older version of camb because it would not compile.
Thank you


Antony Lewis
Posts: 1413
Joined: September 23 2004
Affiliation: University of Sussex

Re: compiling CAMB

Post by Antony Lewis » January 13 2005

Where did you find the "examples"?

The tester.f90 sample file supplied with CAMB does seem to compile OK for me (edit the Makefile changing inidriver.F90 to tester.f90), and shows how to set up parameters and get out a [tex]C_l[/tex] spectrum.

Another more complicated example is of course the CosmoMC code.

PS. Incidentally, as someone kindly pointed out, in the latest (Nov 2004) version, the lensed_output_file contains just the scalar mode spectrum, not the sum with any tensor contribution as in previous versions. (the tensor spectrum is not lensed)

Post Reply