lesgourg / class_public

Public repository of the Cosmic Linear Anisotropy Solving System (master for the most recent version of the standard code; GW_CLASS to include Cosmic Gravitational Wave Background anisotropies; classnet branch for acceleration with neutral networks; ExoCLASS branch for exotic energy injection; class_matter branch for FFTlog)
223 stars 292 forks source link

Label issue with transfer functions #442

Closed emiliobellini closed 3 years ago

emiliobellini commented 3 years ago

Hi all, I think there is a label inconsistency in the transfer functions output. The name of the k column is called "k (h/Mpc)", but then the values that are stored there are k_over_h. In the current class version these are at lines 220 and 316

Best wishes, Emilio

ThomasTram commented 3 years ago

Hi Emilio

It is correct as it is, since (h/Mpc) denotes the unit of k, it is not a multiplicative factor. If you got k in units of Mpc, and you wish to express k in units of h/Mpc you must of course divide k by h as you say..

Cheers, Thomas

emiliobellini commented 3 years ago

Hi Thomas, you are absolutely right! My bad.. :)

Cheers, Emilio