xzackli / Bolt.jl

differentiable boltzmann code
MIT License
42 stars 5 forks source link

recfast improvements #85

Closed xzackli closed 1 year ago

xzackli commented 1 year ago

This implements a RECFAST that takes 1 ms, as it should. It also makes improvements to reionization. Instead of having some intermediary arrays for storing the ionization history, it keeps each of the different ODEs that RECFAST solves for different redshift ranges in a structure,

struct RECFASTHistory{T, R, HES, HS}
    đť•Ł::R
    zinitial::T
    zfinal::T
    z_He_evo_start::T
    z_H_He_evo_start::T
    sol_He::HES
    sol_H_He::HS
end

download

Similarly a reionization history is kept like

struct TanhReionizationHistory{T, IH, TS}
    zre_ini::T
    ionization_history::IH
    sol_reionization_Tmat::TS
end

download

codecov-commenter commented 1 year ago

Codecov Report

Merging #85 (1441649) into main (f048e40) will decrease coverage by 8.43%. The diff coverage is 84.61%.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@            Coverage Diff             @@
##             main      #85      +/-   ##
==========================================
- Coverage   79.41%   70.99%   -8.43%     
==========================================
  Files          11       11              
  Lines         996     1124     +128     
==========================================
+ Hits          791      798       +7     
- Misses        205      326     +121     
Impacted Files Coverage Δ
src/Bolt.jl 0.00% <ø> (ø)
src/ionization/recfast.jl 59.71% <84.61%> (-32.08%) :arrow_down:

... and 1 file with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.