Adding derived parameters

Use of Cobaya. camb, CLASS, cosmomc, compilers, etc.
Post Reply
María Pía Piccirilli
Posts: 5
Joined: September 17 2016
Affiliation: Facultad de Ciencias Astronómicas y Geofísicas - Universidad de La Plata

Adding derived parameters

Post by María Pía Piccirilli » April 05 2017

Hi everyone!
I am working with modified camb modules with extra parameters and succeeded in adding them to cosmomc. Now I wish to add some derived params related to this new ones and already existing ones. Do I have make special consideration to add them or is just the same as the others? How does cosmomc distinguish between main and derived parameters?
Thanks a lot!

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

Re: Adding derived parameters

Post by Antony Lewis » April 05 2017

The places to look are

TP_Init in CosmologyParameterization.f90 (to read in the derived parameter names; or just edit one of the existing .paramnames files)

TP_CalcDerivedParams in CosmologyParameterization (to set derived parameters)
or
CAMBCalc_SetDerived in Calculator_CAMB.f90 (to set the derived parameters from CAMB as part of the standard derived parameters array)

María Pía Piccirilli
Posts: 5
Joined: September 17 2016
Affiliation: Facultad de Ciencias Astronómicas y Geofísicas - Universidad de La Plata

Adding derived parameters

Post by María Pía Piccirilli » April 05 2017

Thank you very much, Antony! It has been very helpful!

Post Reply