Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apparent numerical instability of delta_cdm at very high k #603

Open
davidcato opened this issue Nov 2, 2024 · 0 comments
Open

Apparent numerical instability of delta_cdm at very high k #603

davidcato opened this issue Nov 2, 2024 · 0 comments

Comments

@davidcato
Copy link

Hi all,

I'm trying to use CLASS to follow the evolution of delta_cdm at very high k and I have stumbled into a weird issue.

Basically, for k=5e3, I found that setting start_large_k_at_tau_h_over_tau_k = 0.007 and curvature_ini = 1.00001, leads to a 35% of the value of delta_cdm today compared to the default setting start_large_k_at_tau_h_over_tau_k = 0.05 and curvature_ini = 1. This 35% change is inconsistent with the subtle change in the initial conditions. See figure below:

Screenshot 2024-11-01 at 5 42 35 PM

Playing around I noticed that this spurious and inconsistent enhancement of delta_cdm is presented, although with different magnitudes, for basically any value of start_large_k_at_tau_h_over_tau_k < 0.05. When using the default value, I get at a 1e-5 change in delta_cdm consistent with curvature_ini = 1.00001, see figure below:

Screenshot 2024-11-01 at 5 41 18 PM

It looks like this funny behavior starts around the TCA (see the vertical dashed lines in the plots), but I do not have an intuition of why changing start_large_k_at_tau_h_over_tau_k will mess up with the TCA approximation. I'm using CLASS v3.2.0 (although I've found the same problem with v2.6.3) and in both cases I've set P_k_max_h/Mpc = 1e4. I've found similar results for k=5e2.

Do you have an idea of what would causing this issue? Perhaps I need to tune other precision params?

Thanks in advance!

Best,
David

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant