Skip to content

Commit b86cc52

Browse files
fix: fix unnecessary warnings when no stream connections in expand_connections
1 parent 29eee6d commit b86cc52

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/systems/connectors.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -872,7 +872,8 @@ function expand_connections(sys::AbstractSystem; tol = 1e-10)
872872
eqs = [equations(sys); ceqs; stream_eqs]
873873
# substitute `instream(..)` expressions with their new values
874874
for i in eachindex(eqs)
875-
eqs[i] = fixpoint_sub(eqs[i], instream_subs; maxiters = length(instream_subs))
875+
eqs[i] = fixpoint_sub(
876+
eqs[i], instream_subs; maxiters = max(length(instream_subs), 10))
876877
end
877878
# get the defaults for domain networks
878879
d_defs = domain_defaults(sys, domain_csets)

0 commit comments

Comments
 (0)