Skip to content

Commit a78fbf1

Browse files
committed
Fix a typo
1 parent 9dcf55f commit a78fbf1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/systems/systemstructure.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module SystemStructures
22

33
using ..ModelingToolkit
4-
using ..ModelingToolkit: isdiffeq, var_from_nested_derivative, vars!
4+
using ..ModelingToolkit: isdiffeq, var_from_nested_derivative, vars!, flatten
55
using SymbolicUtils: arguments
66
using ..BipartiteGraphs
77
using UnPack
@@ -76,7 +76,7 @@ end
7676
eqtype(s::SystemStructure, eq::Integer)::EquationType = s.algeqs[eq] ? ALGEBRAIC_EQUATION : DIFFERENTIAL_EQUATION
7777

7878
function initialize_system_structure(sys)
79-
sys, dxvar_offset, fullvars, varassoc, algeqs, graph, solvable_graph = init_graph(sys)
79+
sys, dxvar_offset, fullvars, varassoc, algeqs, graph, solvable_graph = init_graph(flatten(sys))
8080
@set sys.structure = SystemStructure(
8181
dxvar_offset,
8282
fullvars,

0 commit comments

Comments
 (0)