We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
solve(nlcache)
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Describe the bug 🐞
solve(prob) does not error for complex valued problems, but solve(nlcache) does.
solve(prob)
Minimal Reproducible Example 👇
f(u, p) = u .* u .- p u0 = [1.0im] prob = NonlinearProblem(f, u0, [1])
Now
returns successfully. But
nlcache = init(prob) solve(nlcache)
errors.
Error & Stacktrace ⚠️
ERROR: MethodError: no method matching init(::NonlinearSolve.NonlinearSolvePolyAlgorithmCache{false, 4, Tuple{…}, NonlinearSolvePolyAlgorithm{…}}) Closest candidates are: init(::SciMLBase.AbstractJumpProblem, Any...; kwargs...) @ DiffEqBase ~/.julia/packages/DiffEqBase/eLhx9/src/solve.jl:545 init(::NonlinearProblem{<:Union{Number, var"#s157"} where var"#s157"<:AbstractArray, iip, <:Union{var"#s156", var"#s155"} where {var"#s156"<:ForwardDiff.Dual{T, V, P}, var"#s155"<:(AbstractArray{<:ForwardDiff.Dual{T, V, P}})}}, ::Union{Nothing, SciMLBase.AbstractNonlinearAlgorithm}, ::Any...; kwargs...) where {T, V, P, iip} @ NonlinearSolve ~/.julia/packages/NonlinearSolve/UPIol/src/internal/forward_diff.jl:37 init(::PDEProblem, ::SciMLBase.AbstractDEAlgorithm, ::Any...; kwargs...) @ DiffEqBase ~/.julia/packages/DiffEqBase/eLhx9/src/solve.jl:1140 ... Stacktrace: [1] solve(args::NonlinearSolve.NonlinearSolvePolyAlgorithmCache{…}; kwargs::@Kwargs{}) @ CommonSolve ~/.julia/packages/CommonSolve/JfpfI/src/CommonSolve.jl:23 [2] top-level scope @ REPL[97]:1 Some type information was truncated. Use `show(err)` to see complete types.
Environment (please complete the following information):
NonlinearSolve v3.5.3
versioninfo()
julia> versioninfo() Julia Version 1.10.0 Commit 3120989f39b (2023-12-25 18:01 UTC) Build Info: Official https://julialang.org/ release Platform Info: OS: macOS (arm64-apple-darwin22.4.0) CPU: 8 × Apple M1 WORD_SIZE: 64 LIBM: libopenlibm LLVM: libLLVM-15.0.7 (ORCJIT, apple-m1) Threads: 1 on 4 virtual cores
The text was updated successfully, but these errors were encountered:
You meant solve!?
solve!
Sorry, something went wrong.
Just changing to solve! works.
Sorry, I get confused with solve and solve!
solve
No branches or pull requests
Describe the bug 🐞
solve(prob)
does not error for complex valued problems, butsolve(nlcache)
does.Minimal Reproducible Example 👇
Now
solve(prob)
returns successfully. But
errors.
Error & Stacktrace⚠️
Environment (please complete the following information):
NonlinearSolve v3.5.3
versioninfo()
The text was updated successfully, but these errors were encountered: