Closed tshort closed 8 months ago
This also fails:
using Sundials
sys = ODESystem([sin(t) ~ x^2], t)
sys = DAEProblem(sys, [D(x) => 0.0], [x => 0.0], (0, 5))
sol = solve(prob, IDA())
It's a NonlinearSystem
julia> prob = NonlinearProblem(sys, [1.0], [1.0])
NonlinearProblem with uType Vector{Float64}. In-place: true
u0: 1-element Vector{Float64}:
1.0
julia> using NonlinearSolve
julia> solve(prob, NewtonRaphson())
u: 1-element Vector{Float64}:
0.9173172760000521
I'll leave this open because technically we could handle this a bit nicer in the solvers, exiting early and all of that, but in any case the user has a workaround.
@oscardssmith opened enough issues that we got this working.
Here's a basic example that fails during solving:
The error is: