Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion fortran/cmbmain.f90
Original file line number Diff line number Diff line change
Expand Up @@ -1693,7 +1693,8 @@ subroutine IntegrateSourcesBessels(IV,ThisCT,j,l,nu)
if (ThisSources%SourceNum > 3) call MpiStop('Non-flat not implemented for extra sources')
!Integrate chi down in dissipative region
! cuts off when ujl gets small
miny1= 0.5d-4/l/BessIntBoost
! Fix for ujl discontinuity in near-flat models - adaptive formula provides superior performance
miny1= 0.5d-4/(l+max(0,30-l))/BessIntBoost ! Adaptive formula for Omega_k discontinuity fix, see https://github.com/cmbant/CAMB/pull/185
sums=0
qmax_int= max(850,ThisCT%ls%l(j))*3*BessIntBoost/(State%chi0*State%curvature_radius)*1.2
DoInt = ThisSources%SourceNum/=3 .or. IV%q < qmax_int
Expand Down