File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -895,10 +895,12 @@ function expand_connections(sys::AbstractSystem; tol = 1e-10)
895
895
stream_eqs, instream_subs = expand_instream (instream_csets, sys; tol = tol)
896
896
897
897
eqs = [equations (sys); ceqs; stream_eqs]
898
- # substitute `instream(..)` expressions with their new values
899
- for i in eachindex (eqs)
900
- eqs[i] = fixpoint_sub (
901
- eqs[i], instream_subs; maxiters = max (length (instream_subs), 10 ))
898
+ if ! isempty (instream_subs)
899
+ # substitute `instream(..)` expressions with their new values
900
+ for i in eachindex (eqs)
901
+ eqs[i] = fixpoint_sub (
902
+ eqs[i], instream_subs; maxiters = max (length (instream_subs), 10 ))
903
+ end
902
904
end
903
905
# get the defaults for domain networks
904
906
d_defs = domain_defaults (sys, domain_csets)
You can’t perform that action at this time.
0 commit comments