Skip to content

Commit

Permalink
allow multibody frame connectors to be unbalanced
Browse files Browse the repository at this point in the history
  • Loading branch information
baggepinnen committed Nov 3, 2023
1 parent ee4ad4d commit 6f4698d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/systems/connectors.jl
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function connector_type(sys::AbstractSystem)
if n_flow == 1 && length(sts) == 1
return DomainConnector()
end
if n_flow != n_regular
if n_flow != n_regular && !isframe(sys)

Check warning on line 50 in src/systems/connectors.jl

View check run for this annotation

Codecov / codecov/patch

src/systems/connectors.jl#L50

Added line #L50 was not covered by tests
@warn "$(nameof(sys)) contains $n_flow flow variables, yet $n_regular regular " *
"(non-flow, non-stream, non-input, non-output) variables. " *
"This could lead to imbalanced model that are difficult to debug. " *
Expand Down

0 comments on commit 6f4698d

Please sign in to comment.