Page 1 of 1

Adding derived parameters

Posted: April 05 2017
by María Pía Piccirilli
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!

Re: Adding derived parameters

Posted: April 05 2017
by Antony Lewis
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)

Adding derived parameters

Posted: April 05 2017
by María Pía Piccirilli
Thank you very much, Antony! It has been very helpful!