lesgourg / class_public

Public repository of the Cosmic Linear Anisotropy Solving System (master for the most recent version of the standard code; GW_CLASS to include Cosmic Gravitational Wave Background anisotropies; classnet branch for acceleration with neutral networks; ExoCLASS branch for exotic energy injection; class_matter branch for FFTlog)
220 stars 291 forks source link

Question or problem in `lensing_cl_at_l` #511

Open tyxie2003 opened 1 year ago

tyxie2003 commented 1 year ago

At line 562 in output.c, when calling lensing_cl_at_l, it use argument (double)l instead of l.

However, lensing_cl_at_l is defined in lensing.c with argument int l at line 39.

This sometimes arise error message. When you transfer a double type l into lensing_cl_at_l but declare it is int type, then it is said condition (l > ple->l_lensed_max) is true .

So I think lensing_cl_at_l should have argument double l, like the function harmonic_cl_at_l.

I think this is a tiny problem in the code, or should it have other explanation? I'll appreciate it if someone could explain it. Thanks!