-
-
Notifications
You must be signed in to change notification settings - Fork 79
Closed
Description
The MWE
using NonlinearSolve
using Sundials
p = [2.0,3.0]
f(u,p) = u .* u .- p
u0 = [1.0, 1.0]
probN = NonlinearProblem(f, u0, p)
s = KINSOL(;linear_solver=:GMRES)
solver = solve(probN, s, reltol = 1e-7)
fails
with
UndefVarError: LS not defined
Stacktrace:
[1] kinsol(f::Function, y0::Vector{Float64}; userdata::Nothing, linear_solver::Symbol, jac_upper::Int64, jac_lower::Int64)
@ Sundials ~/.julia/packages/Sundials/4gP3E/src/simple.jl:15
[2] __solve(prob::NonlinearProblem{Vector{Float64}, false, Vector{Float64}, NonlinearFunction{false, SciMLBase.FullSpecialize, typeof(f), LinearAlgebra.UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED_NO_TIME), Nothing, Nothing}, Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}}, SciMLBase.StandardNonlinearProblem}, alg::KINSOL{:GMRES}, timeseries::Vector{Any}, ts::Vector{Any}, ks::Vector{Any}, recompile::Type{Val{true}}; kwargs::Base.Pairs{Symbol, Float64, Tuple{Symbol}, NamedTuple{(:reltol,), Tuple{Float64}}})
@ Sundials ~/.julia/packages/Sundials/4gP3E/src/common_interface/solve.jl:80
Metadata
Metadata
Assignees
Labels
No labels