Skip to content

Commit

Permalink
Merge pull request #2316 from SciML/fb/no_frame_warn
Browse files Browse the repository at this point in the history
allow multibody frame connectors to be unbalanced
  • Loading branch information
baggepinnen authored Nov 3, 2023
2 parents ee4ad4d + 6f4698d commit 7926a69
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)
@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 7926a69

Please sign in to comment.