@rveltz Could you help me out a bit with HOODESolver.jl? I basically copied this from the documentation:
using Symbolics, DifferentialEquations, Plots, HOODESolver
ϵ = 0.0001
A = [ -im 0 ;
0 -im ]
f1 = LinearHOODEOperator(ϵ, A)
f2 = (u,p,t) -> [0, 0]
tspan = (0.0, 100.0)
u0 = [1.0+0.0*im, 0.0]
prob = SplitODEProblem(f1, f2, u0, tspan) # seems to run fine till this point
S = solve(prob, HOODEAB(), dt=0.1)
This last step throws up an error:
MethodError: no method matching HOODEProblem(::var"#9#10", ::Vector{ComplexF64}, ::Tuple{Float64, Float64}, ::Missing, ::Matrix{Complex{Int64}}, ::Float64, ::Missing)
Closest candidates are:
HOODEProblem(::Any, ::Any, ::Any, ::Any, ::Any, ::Any) at C:\Users\shiha\.julia\packages\HOODESolver\5dr9W\src\interface.jl:70
HOODEProblem(::Any, ::Vector{T}, ::Tuple{T, T}, ::Any, ::AbstractMatrix, ::T, ::Union{Missing, Matrix}) where T at C:\Users\shiha\.julia\packages\HOODESolver\5dr9W\src\interface.jl:47
Stacktrace:
[1] HOODEProblem(f::Function, u0::Vector{ComplexF64}, tspan::Tuple{Float64, Float64}, p::Missing, A::Matrix{Complex{Int64}}, epsilon::Float64)
@ HOODESolver C:\Users\shiha\.julia\packages\HOODESolver\5dr9W\src\interface.jl:71
[2] solve(prob::ODEProblem{Vector{ComplexF64}, Tuple{Float64, Float64}, false, SciMLBase.NullParameters, SplitFunction{false, SciMLBase.FullSpecialize, ODEFunction{false, SciMLBase.FullSpecialize, LinearHOODEOperator{Float64}, LinearAlgebra.UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED), Nothing, Nothing}, ODEFunction{false, SciMLBase.FullSpecialize, var"#9#10", LinearAlgebra.UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED), Nothing, Nothing}, LinearAlgebra.UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED), Nothing, Nothing}, Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}}, SplitODEProblem{false}}, alg::HOODEAB{4, 32}; dt::Int64, kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
@ HOODESolver C:\Users\shiha\.julia\packages\HOODESolver\5dr9W\src\common_interface.jl:107
[3] top-level scope
@ In[49]:1
I tried a couple of things, but can’t seem to figure it out.