Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions src/initialization.jl
Original file line number Diff line number Diff line change
Expand Up @@ -267,9 +267,6 @@ function get_initial_values(prob, valp, f, alg::OverrideInit,
success = true
else
nlsolve_alg = something(nlsolve_alg, alg.nlsolve, Some(nothing))
if nlsolve_alg === nothing && state_values(initprob) !== nothing
throw(OverrideInitMissingAlgorithm())
end
if alg.abstol !== nothing
_abstol = alg.abstol
elseif abstol !== nothing
Expand Down
3 changes: 1 addition & 2 deletions test/downstream/initialization.jl
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,7 @@ end
integ = init(prob; initializealg = NoInit())

@testset "Errors without `nlsolve_alg`" begin
@test_throws SciMLBase.OverrideInitMissingAlgorithm SciMLBase.get_initial_values(
prob, integ, fn, SciMLBase.OverrideInit(), Val(false))
SciMLBase.get_initial_values(prob, integ, fn, SciMLBase.OverrideInit(), Val(false))
end

abstol = 1e-10
Expand Down
Loading