CAMB: the dimension of Hz in recfast.f90

Use of Cobaya. camb, CLASS, cosmomc, compilers, etc.
Post Reply
Xin Wang
Posts: 43
Joined: January 11 2012
Affiliation: NAOC/NJU

CAMB: the dimension of Hz in recfast.f90

Post by Xin Wang » May 27 2012

Hi, Antony,

As in the "Arguments" of recfast.f90 from the latest version of CAMB, we know within this subroutine,

Code: Select all

!CA     H is Hubble constant in units of 100 km/s/Mpc
...
!CA	  Hz is the value of H at the specific z (in ION)
and afterwards, Hz is assigned a value via,

Code: Select all

Hz = 1/dtauda(1/(1._dl+z))*(1._dl+z)**2/MPC_in_sec 
However, if I'm not mistaken, dtauda, which is defined in equations.f90, has a dimension of Mpc. Thus, Hz given by the above calculation does not have the dimension of 100 km/s/Mpc. Does this problem has some side effects on other related calculations?

BTW, I suggest using the following way to output the right Hz

Code: Select all

Hz = 1/dtauda(1/(1._dl+z))*(1._dl+z)**2*c/100000.

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

Re: CAMB: the dimension of Hz in recfast.f90

Post by Antony Lewis » May 27 2012

I think it has SI units, compare with the original Recfast code if in doubt.

Xin Wang
Posts: 43
Joined: January 11 2012
Affiliation: NAOC/NJU

Re: CAMB: the dimension of Hz in recfast.f90

Post by Xin Wang » May 28 2012

Antony Lewis wrote:I think it has SI units, compare with the original Recfast code if in doubt.
and it has the value of H(z)=100h, rather than h itself. right?

Post Reply