Page 1 of 1

CAMB: compiling example code

Posted: January 13 2005
by Licia Verde
HI,
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

Licia

Re: compiling CAMB

Posted: January 13 2005
by Antony Lewis
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)