Skip to content

Commit

Permalink
Don't modify input parameters when setting uninitialized wavenumber
Browse files Browse the repository at this point in the history
  • Loading branch information
hersle committed Dec 19, 2024
1 parent 7120720 commit e73e350
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/solve.jl
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ function solve(M::CosmologyModel, pars, ks::AbstractArray; aini = 1e-8, solver =
ics0 = unknowns(M.bg) .=> th_sol.bg[unknowns(M.bg)][backwards ? end : begin]
ics0 = filter(ic -> !contains(String(Symbol(ic.first)), "aˍt"), ics0) # remove D(a)
ics0 = Dict(ics0)
pars[k] = NaN
pars = merge(pars, Dict(k => NaN)) # must be set, even for the uninitialized problem
ode_prob0 = ODEProblem(M.pt, ics0, (tini, tend), pars; fully_determined = true, jac, sparse)

# If the thermodynamics solution should be splined,
Expand Down

0 comments on commit e73e350

Please sign in to comment.