Skip to content

Commit e0d8fa7

Browse files
committed
remove input annotations on RealInput
This does not work as intended since the annotated variable resides inside a system without internal connections. Until MTK has more formally specified semantics for causal connections, we rely on the explicit passing of input variables to all functions that require it, such as linearize.
1 parent 2b53d55 commit e0d8fa7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Blocks/utils.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
@connector function RealInput(; name, nin = 1, u_start = nin > 1 ? zeros(nin) : 0.0)
22
if nin == 1
3-
@variables u(t)=u_start [input = true]
3+
@variables u(t)=u_start
44
else
5-
@variables u(t)[1:nin]=u_start [input = true]
5+
@variables u(t)[1:nin]=u_start
66
u = collect(u)
77
end
88
ODESystem(Equation[], t, [u...], []; name = name)
@@ -22,9 +22,9 @@ Connector with one input signal of type Real.
2222

2323
@connector function RealOutput(; name, nout = 1, u_start = nout > 1 ? zeros(nout) : 0.0)
2424
if nout == 1
25-
@variables u(t)=u_start [output = true]
25+
@variables u(t)=u_start
2626
else
27-
@variables u(t)[1:nout]=u_start [output = true]
27+
@variables u(t)[1:nout]=u_start
2828
u = collect(u)
2929
end
3030
ODESystem(Equation[], t, [u...], []; name = name)

0 commit comments

Comments
 (0)