Open genye00 opened 11 months ago
How did you encounter this?
How did you encounter this?
It's been some time. I do not remember the details. I think I discovered this when trying to draw out the raw P(k,z) or P(k, tau) and playing with the limit on k and z and tau.
This should be the same problem as #471, and is actually the solution.
It looks like v3.2.1 fixes this issue, as the starting index was changed to 0 (or just index_tau
for tau_sampling
), and index_ln_tau_pk
is not used.
In https://github.com/lesgourg/class_public/blob/aa92943e4ab86b56970953589b4897adf2bd0f99/source/perturbations.c#L2066C5-L2066C25 ppt->index_ln_tau_pk is the starting index of of the earliest time when pk is calculated in the log(tau) array, it probably should be changed to
ppt->index_ln_tau_pk = index_tau_pk + ppt->ln_tau_size - ppt->tau_size;