Skip to content

Commit

Permalink
Also support array indexing in bc
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikQQY committed Dec 19, 2024
1 parent 665592e commit eb13500
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/BoundaryValueDiffEqCore/src/misc_utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,11 @@
t
cache::C
end

Base.size(e::EvalSol) = (size(e.u[1])..., length(e.u))
Base.size(e::EvalSol, i) = size(e)[i]

Base.axes(e::EvalSol) = Base.OneTo.(size(e))
Base.axes(e::EvalSol, i) = Base.OneTo.(size(e)[d])

Base.getindex(e::EvalSol, args...) = Base.getindex(VectorOfArray(e.u), args...)

0 comments on commit eb13500

Please sign in to comment.