Skip to content

Fix the CMB lensing kernel to handle models with non-zero curvature.#1231

Merged
damonge merged 2 commits intomasterfrom
fix_cmb_lensing_kernel
Apr 4, 2025
Merged

Fix the CMB lensing kernel to handle models with non-zero curvature.#1231
damonge merged 2 commits intomasterfrom
fix_cmb_lensing_kernel

Conversation

@vitenti
Copy link
Contributor

@vitenti vitenti commented Mar 5, 2025

No description provided.

double chi = chi_arr[ichi];
double a = ccl_scale_factor_of_chi(cosmo, chi, status);
wchi[ichi] = lens_prefac*(ccl_sinn(cosmo,chi_source-chi,status))*chi/a;
if (chi != 0.0)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@damonge This "if" is necessary to avoid 0/0 when chi == 0. If it is safe to assume that the chi_arr only contain 0.0 in its first element this can be simplified.

@coveralls
Copy link

Pull Request Test Coverage Report for Build 14246188854

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 97.458%

Totals Coverage Status
Change from base Build 13315009901: 0.0%
Covered Lines: 6555
Relevant Lines: 6726

💛 - Coveralls

@vitenti vitenti requested a review from damonge April 3, 2025 15:11
Copy link
Collaborator

@damonge damonge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Thanks a lot @vitenti

@damonge damonge merged commit ef45260 into master Apr 4, 2025
4 checks passed
@damonge damonge deleted the fix_cmb_lensing_kernel branch April 4, 2025 08:39
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

Successfully merging this pull request may close these issues.

3 participants