Skip to content

Commit 1aa0002

Browse files
fix: fix unnecessary warnings when no stream connections in expand_connections
1 parent 183e778 commit 1aa0002

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
@@ -862,7 +862,8 @@ function expand_connections(sys::AbstractSystem; tol = 1e-10)
862862
eqs = [equations(sys); ceqs; stream_eqs]
863863
# substitute `instream(..)` expressions with their new values
864864
for i in eachindex(eqs)
865-
eqs[i] = fixpoint_sub(eqs[i], instream_subs; maxiters = length(instream_subs))
865+
eqs[i] = fixpoint_sub(
866+
eqs[i], instream_subs; maxiters = max(length(instream_subs), 10))
866867
end
867868
# get the defaults for domain networks
868869
d_defs = domain_defaults(sys, domain_csets)

0 commit comments

Comments
 (0)