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)
225 stars 282 forks source link

How to make q_size_ncdm smaller? #507

Closed ash2223 closed 1 year ago

ash2223 commented 1 year ago

Hello! I was wondering if there’s a way to sample neutrino momenta over a smaller momentum grid, i.e. to make q_size_ncdm = 3 instead of 5 in background.c? I turned on verbose for background and it confirms that this value is 5 in the line “ncdm species i=1 sampled with 11 (resp. 5) points for purpose of background (resp. perturbation) integration”:

BB5B25C3-239C-45E0-BBE5-9B33874597C9

I’m trying to find a way to adjust this parameter but it seems like its value is defined in quadrature.c. Not sure if I’m correct about this though. Thank you so much!

-Adam

ThomasTram commented 1 year ago

Hi

Just read explanatory.ini: https://github.com/lesgourg/class_public/blob/aa92943e4ab86b56970953589b4897adf2bd0f99/explanatory.ini#L385-L400

Cheers, Thomas