Closed avinashresearch1 closed 6 months ago
works with latest versions
julia> prob = ODEProblem(sysRed, [], (0.0, 1.0))
ODEProblem with uType Nothing and tType Float64. In-place: true
timespan: (0.0, 1.0)
u0: nothing
julia> sol = solve(prob, Rodas5())
retcode: Success
Interpolation: 1st order linear
t: 2-element Vector{Float64}:
0.0
1.0
u: 2-element Vector{Vector{Float64}}:
[]
[]
julia>
julia> sol[x]
2-element Vector{Float64}:
1.0
1.0
If I have a trivial ODE after structural simplification (no states), only observed vars, assuming I want to solve such a problem, it appears getting sol[] breaks e.g.,
MWE:
gives the following stacktrace
It appears to be related to the broadcast of
observed
here: https://github.com/SciML/RecursiveArrayTools.jl/blob/e78cb7443ebb68d910606ab03b2b915316eb6e98/src/vector_of_array.jl#L367so: