-
-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ERROR: MethodError: no method matching (ODEProblem{false, SciMLBase.FullSpecialize})(::ODEFunction{false, SciMLBase.FullSpecialize, var"#9#10", ...}, ::Vector{Float64}, ::Tuple{Float64, Float64}, ::Vector{Float64}, ::Tsit5{...}) #482
Comments
To construct an For detailed usage, please refer to https://docs.sciml.ai/DiffEqDocs/stable/getting_started/ |
but ODEProblem{false}(fode, ones(1), (0.0, 1.0), ones(1), Tsit5()) and ODEProblem(fode, ones(1), (0.0, 1.0), ones(1), Tsit5()) both work. |
Yeah, but I think both of them are incorrect usages, you can use this: julia> ODEProblem{false, SciMLBase.FullSpecialize}(fode, ones(1), (0.0, 1.0), ones(1))
ODEProblem with uType Vector{Float64} and tType Float64. In-place: false
timespan: (0.0, 1.0)
u0: 1-element Vector{Float64}:
1.0 |
Alright, should we add a warning to them? So it would be clear that solver should be given to solve function, not the problem definition. |
I mean, if you want to add it sure. I would be surprised if anyone attempts this: this has never been the documented syntax. |
Oh, it's a bug: julia> pb = ODEProblem(fode, ones(1), (0.0, 1.0), ones(1), Tsit5())
ODEProblem with uType Vector{Float64} and tType Float64. In-place: false
timespan: (0.0, 1.0)
u0: 1-element Vector{Float64}:
1.0
julia> pb.problem_type
Tsit5(; stage_limiter! = trivial_limiter!, step_limiter! = trivial_limiter!, thread = static(false),)
julia> pb2 = ODEProblem{false}(fode, ones(1), (0.0, 1.0), ones(1), Tsit5())
ODEProblem with uType Vector{Float64} and tType Float64. In-place: false
timespan: (0.0, 1.0)
u0: 1-element Vector{Float64}:
1.0
julia> pb2.problem_type
Tsit5(; stage_limiter! = trivial_limiter!, step_limiter! = trivial_limiter!, thread = static(false),) |
Accepting solver as problem type is definitely a bug that must be fixed. How can I help? |
I think it must work, Am I missing something?
The text was updated successfully, but these errors were encountered: