Skip to content

Commit 7926a69

Browse files
authored
Merge pull request #2316 from SciML/fb/no_frame_warn
allow multibody frame connectors to be unbalanced
2 parents ee4ad4d + 6f4698d commit 7926a69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/systems/connectors.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ function connector_type(sys::AbstractSystem)
4747
if n_flow == 1 && length(sts) == 1
4848
return DomainConnector()
4949
end
50-
if n_flow != n_regular
50+
if n_flow != n_regular && !isframe(sys)
5151
@warn "$(nameof(sys)) contains $n_flow flow variables, yet $n_regular regular " *
5252
"(non-flow, non-stream, non-input, non-output) variables. " *
5353
"This could lead to imbalanced model that are difficult to debug. " *

0 commit comments

Comments
 (0)