Cobaya: Requiring the CAMB Pk nonlin_ratio
Posted: December 09 2022
Hi,
I have introduced some scale-independent scaling into the CAMB nonlinear module halofit.f90, basically modifying the growth factor D^2(z).
Now I wonder if there is a way to access directly the CAMB_PK%nonlin_ratio within the get_requirements() or get_theory() inside a cobaya likelihood class. (I actually need D(z) but I can get that easily from the nonlin_ratio)
I guess I could call get_Pk_grid() twice, one for linear and one for nonlinear, then take the ratio, if there's no direct access.
Thanks!!
EDIT: Actually, I had to change get_Pk_grid() -> get_Pk_interpolator() since the latter works, but the former didn't, at least for me. It kept complaining that Matter power delta_tot, delta_tot not computed. Not really sure why, esp. given that the way the delta components are specified is exactly the same for both functions?
I have introduced some scale-independent scaling into the CAMB nonlinear module halofit.f90, basically modifying the growth factor D^2(z).
Now I wonder if there is a way to access directly the CAMB_PK%nonlin_ratio within the get_requirements() or get_theory() inside a cobaya likelihood class. (I actually need D(z) but I can get that easily from the nonlin_ratio)
I guess I could call get_Pk_grid() twice, one for linear and one for nonlinear, then take the ratio, if there's no direct access.
Thanks!!
EDIT: Actually, I had to change get_Pk_grid() -> get_Pk_interpolator() since the latter works, but the former didn't, at least for me. It kept complaining that Matter power delta_tot, delta_tot not computed. Not really sure why, esp. given that the way the delta components are specified is exactly the same for both functions?