Skip to content

Commit

Permalink
fix: use default solver tolerance if not provided in OverrideInit
Browse files Browse the repository at this point in the history
  • Loading branch information
AayushSabharwal committed Nov 12, 2024
1 parent 705bf97 commit efaa9f2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/initialization.jl
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,11 @@ function get_initial_values(prob, valp, f, alg::OverrideInit,
initdata.update_initializeprob!(initprob, valp)
end

nlsol = solve(initprob, nlsolve_alg; abstol = alg.abstol)
if alg.abstol !== nothing
nlsol = solve(initprob, nlsolve_alg; abstol = alg.abstol)
else
nlsol = solve(initprob, nlsolve_alg)
end

u0 = initdata.initializeprobmap(nlsol)
if initdata.initializeprobpmap !== nothing
Expand Down

0 comments on commit efaa9f2

Please sign in to comment.