Skip to content

Commit 58f4450

Browse files
authored
Merge pull request #2155 from SciML/myb/typofix
Fix typo in domain handling
2 parents 4e31765 + 730ca4e commit 58f4450

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/systems/connectors.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,6 @@ function Graphs.outneighbors(g::SystemDomainGraph, n::Int)
379379
var2idx = Dict(reverse(en) for en in enumerate(ts.fullvars))
380380
vidx = get(var2idx, states(s.sys.namespace, states(sys, s.v)), 0)
381381
iszero(vidx) && continue
382-
ppp = string(fullvars[vidx]) == "valve₊port_a₊dm(t)"
383382
ies = 𝑑neighbors(graph, vidx)
384383
for ie in ies
385384
ie in lineqs || continue
@@ -388,7 +387,8 @@ function Graphs.outneighbors(g::SystemDomainGraph, n::Int)
388387
fv = ts.fullvars[iv]
389388
vtype = get_connection_type(fv)
390389
vtype === Flow || continue
391-
n′ = g.sys2id[getname(fv)]
390+
n′ = get(g.sys2id, getname(fv), nothing)
391+
n′ === nothing && continue
392392
n′ in visited && continue
393393
push!(visited, n′)
394394
append!(ids, g.cset2id[g.id2cset[n′][1]])

0 commit comments

Comments
 (0)