Throw a nicer error if eltype is not a number #976
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
are both initial conditions which would be compatible with
the solvers.
Element type:
Matrix{Float64}
Some of the types have been truncated in the stacktrace for improved reading. To emit complete information
in the stack trace, evaluate
TruncatedStacktraces.VERBOSE[] = true
and re-run the code.Stacktrace:
[1] solve_call(_prob::ODEProblem{…}, args::Tsit5{…}; merge_callbacks::Bool, kwargshandle::Nothing, kwargs::@kwargs{})
@ DiffEqBase c:\Users\accou.julia\dev\DiffEqBase\src\solve.jl:591
[2] solve_call(_prob::ODEProblem{…}, args::Tsit5{…})
@ DiffEqBase c:\Users\accou.julia\dev\DiffEqBase\src\solve.jl:565
[3] solve_up(prob::ODEProblem{…}, sensealg::Nothing, u0::Vector{…}, p::SciMLBase.NullParameters, args::Tsit5{…}; kwargs::@kwargs{})
@ DiffEqBase C:\Users\accou.julia\packages\DiffEqBase\a6p43\src\solve.jl:1010
[4] solve_up(prob::ODEProblem{…}, sensealg::Nothing, u0::Vector{…}, p::SciMLBase.NullParameters, args::Tsit5{…})
@ DiffEqBase C:\Users\accou.julia\packages\DiffEqBase\a6p43\src\solve.jl:996
[5] solve(prob::ODEProblem{…}, args::Tsit5{…}; sensealg::Nothing, u0::Nothing, p::Nothing, wrap::Val{…}, kwargs::@kwargs{})
@ DiffEqBase C:\Users\accou.julia\packages\DiffEqBase\a6p43\src\solve.jl:933
[6] solve(prob::ODEProblem{…}, args::Tsit5{…})
@ DiffEqBase C:\Users\accou.julia\packages\DiffEqBase\a6p43\src\solve.jl:923
[7] top-level scope
@ REPL[5]:1
Some type information was truncated. Use
show(err)
to see complete types.