Skip to content

Commit e1d93b1

Browse files
fix: use default solver tolerance if not provided in OverrideInit
1 parent 9173f80 commit e1d93b1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/initialization.jl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,11 @@ function get_initial_values(prob, valp, f, alg::OverrideInit,
182182
initdata.update_initializeprob!(initprob, valp)
183183
end
184184

185-
nlsol = solve(initprob, nlsolve_alg; abstol = alg.abstol)
185+
if alg.abstol !== nothing
186+
nlsol = solve(initprob, nlsolve_alg; abstol = alg.abstol)
187+
else
188+
nlsol = solve(initprob, nlsolve_alg)
189+
end
186190

187191
u0 = initdata.initializeprobmap(nlsol)
188192
if initdata.initializeprobpmap !== nothing

0 commit comments

Comments
 (0)