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
CAMB: compiling example code
-
- Posts: 5
- Joined: January 13 2005
- Affiliation: ICE (CSIC-IEEC) Barcelona
- Contact:
-
- Posts: 1943
- Joined: September 23 2004
- Affiliation: University of Sussex
- Contact:
Re: compiling CAMB
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)
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)