From 6f4698d5341d680d37148a321306b219491aadcf Mon Sep 17 00:00:00 2001 From: Fredrik Bagge Carlson Date: Mon, 16 Oct 2023 07:46:44 +0200 Subject: [PATCH] allow multibody frame connectors to be unbalanced --- src/systems/connectors.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/systems/connectors.jl b/src/systems/connectors.jl index ac3adcc77f..a0418c28a1 100644 --- a/src/systems/connectors.jl +++ b/src/systems/connectors.jl @@ -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. " *