Skip to content

Commit 8781223

Browse files
fix: fix flatten_equations for higher-dimension array equations
1 parent 4792360 commit 8781223

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/systems/diffeqs/abstractodesystem.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1230,7 +1230,7 @@ function flatten_equations(eqs)
12301230
error("LHS ($(eq.lhs)) and RHS ($(eq.rhs)) must either both be array expressions or both scalar")
12311231
size(eq.lhs) == size(eq.rhs) ||
12321232
error("Size of LHS ($(eq.lhs)) and RHS ($(eq.rhs)) must match: got $(size(eq.lhs)) and $(size(eq.rhs))")
1233-
return collect(eq.lhs) .~ collect(eq.rhs)
1233+
return vec(collect(eq.lhs) .~ collect(eq.rhs))
12341234
else
12351235
eq
12361236
end

0 commit comments

Comments
 (0)