Skip to content

Commit 3a837ca

Browse files
fix: fix indexing array discrete stored in solution
1 parent 349aa02 commit 3a837ca

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/systems/parameter_buffer.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -805,6 +805,10 @@ function Base.getindex(ngi::NestedGetIndex, idx::Tuple)
805805
i, j, k... = idx
806806
return ngi.x[i][j][k...]
807807
end
808+
function Base.getindex(ngi::NestedGetIndex, idx::NTuple{2})
809+
i, j = idx
810+
return ngi.x[i][j]
811+
end
808812

809813
# Required for DiffEqArray constructor to work during interpolation
810814
Base.size(::NestedGetIndex) = ()

0 commit comments

Comments
 (0)