python CAMB: changing constants at runtime

Use of Healpix, camb, CLASS, cosmomc, compilers, etc.
Post Reply
Graeme Addison
Posts: 27
Joined: July 17 2014
Affiliation: Johns Hopkins University

python CAMB: changing constants at runtime

Post by Graeme Addison » July 25 2019

Is there any way to change the values of constants (e.g., Thomson cross-section, c, etc.) without recompiling CAMB? I see a python camb file [...]/site-packages/camb/constants.py that seems to be read into camb.constants when I import camb but the values in camb.constants don't seem to make any difference to e.g. power spectra calculations.

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

Re: python CAMB: changing constants at runtime

Post by Antony Lewis » July 26 2019

No, you can't change values of constants that are defined as "parameter" in Fortran (they are removed at compile time).

Post Reply