CosmoMC: Adding/changing derived parameters

Use of Healpix, camb, CLASS, cosmomc, compilers, etc.
Post Reply
Vimal Simha
Posts: 13
Joined: May 11 2006
Affiliation: Ohio State University

CosmoMC: Adding/changing derived parameters

Post by Vimal Simha » May 25 2006

I would like to add some derived parameters or perhaps redefine some of the existing ones. Could someone please tell me how I could do this?

Also where is the code for calculating the current derived parameters?

Thanks

Jun-Qing Xia
Posts: 22
Joined: January 02 2005
Affiliation: SISSA, Italy

CosmoMC: Adding/changing derived parameters

Post by Jun-Qing Xia » May 25 2006

Hi,

In ./source/params_CMB.f90, there is a subroutine :

subroutine WriteParams(P, mult, like)

You can add some derived parameters behind this:

Code: Select all

     fmt = trim(numcat('(2E16.7,',num_params))//'E16.7,7E16.7)'
     write (outfile_unit,fmt) mult,like, P%P, C%omv,P%Info%Theory%Age, C%omdm+C%omb, &
          P%Info%Theory%Sigma_8, C%zre,r10,C%H0
and do some tiny changes correspondingly.

Jun-Qing Xia

Vimal Simha
Posts: 13
Joined: May 11 2006
Affiliation: Ohio State University

CosmoMC: Adding/changing derived parameters

Post by Vimal Simha » May 26 2006

Sorry if I was unclear in my question.
I was aware of the writeparams subroutine.

Also, is there a way to do this in getdist? without having to recompute the chains?

Post Reply