-
Notifications
You must be signed in to change notification settings - Fork 64
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
Redefine the N_K parameter per log10 bin #240
Conversation
…as close as possible to 1000 for default kmin and kmax
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm going to approve. Nice job @wagoner47 this is very helpful.
@elisachisari you can review this very quickly and merge it if you want. |
…now outdated with this PR.
@tmcclintock I looked at this some time ago. The problem is that we are not passing the 1e-4 requirement with this implementation. This is part of a bigger problem of convergence of the splines and extrapolation scheme at high-k, however. I'm happy for this to be merged, bearing in mind that the convergence issue needs to be revisited in a wider context (issue #258). I merged master into this branch and all checks pass. The plots in the note discussing spline convergence will become outdated after this PR is merged. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I approve of this new implementation of N_K. I merged master on this branch and re-defined N_K in the note. This PR means that the spline convergence plots are now outdated in the CCL note and should be revisited in the context of issue #258.
I switched the definition of nk in all the places I could find it (I found 3 instances) in src/ccl_power.c to be the number of decades times N_K now. I used ceil to safely cast it to an integer in the case of non-integer number of decades. I also updated the default value of N_K in the parameter file so that it would give as close to 1000 bins as possible for the default kmin and kmax.