Skip to content

Commit abef362

Browse files
Merge pull request #1020 from AayushSabharwal/as/hotfix
fix: fix usage of undefined variable in `get_initial_values`
2 parents 80e6ea5 + 9a2c5c5 commit abef362

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/initialization.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,8 +287,7 @@ function get_initial_values(prob, valp, f, alg::OverrideInit,
287287
# Do not accept StalledSuccess as a solution
288288
# A good local minima is not a success
289289
resid = nlsol.resid
290-
normresid = isdefined(integrator.opts, :internalnorm) ?
291-
integrator.opts.internalnorm(resid, t) : norm(resid)
290+
normresid = norm(resid)
292291
SciMLBase.successful_retcode(nlsol) && normresid <= abstol
293292
else
294293
SciMLBase.successful_retcode(nlsol)

0 commit comments

Comments
 (0)