Skip to content

Commit ee5f493

Browse files
author
Brad Carman
committed
Yingbo fix
1 parent 20e4de9 commit ee5f493

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/systems/connectors.jl

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -263,12 +263,6 @@ function generate_connection_set(sys::AbstractSystem, find = nothing, replace =
263263
!any(s -> is_domain_connector(s.sys.sys), cset.set)
264264
end
265265

266-
# Calling merge(connectionsets, true)
267-
# needs to run with sys expanded equations, if we have more connectionsets then domain_free, then a domain exits, run again...
268-
if length(connectionsets) > length(domain_free_connectionsets)
269-
# connectionsets_ = ConnectionSet[]
270-
sys = generate_connection_set!(connectionsets, sys, find, replace)
271-
end
272266
_, domainset = merge(connectionsets, true)
273267
sys, (merge(domain_free_connectionsets), domainset)
274268
end
@@ -402,7 +396,7 @@ function Graphs.outneighbors(g::SystemDomainGraph, n::Int)
402396
for s in g.csets[i].set
403397
sys = s.sys.sys
404398
is_domain_connector(s.sys.sys) && continue
405-
ts = TearingState(s.sys.namespace)
399+
ts = TearingState(expand_connections(s.sys.namespace))
406400
graph = ts.structure.graph
407401
mm = linear_subsys_adjmat!(ts)
408402
lineqs = BitSet(mm.nzrows)

0 commit comments

Comments
 (0)