Skip to content

Commit c0061d4

Browse files
committed
Add broadcast support
1 parent 78d4200 commit c0061d4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Blocks/analysis_points.jl

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
using ModelingToolkit: get_eqs, vars, @set!, get_iv
22

3-
Base.@kwdef mutable struct AnalysisPoint <: Real
3+
Base.@kwdef mutable struct AnalysisPoint
44
in = nothing
55
out = nothing
66
name::Symbol = :nothing
77
end
8+
Base.broadcastable(x::AnalysisPoint) = (x,)
89
if Base.isdefined(ModelingToolkit, :isconnection)
910
ModelingToolkit.isconnection(::AnalysisPoint) = true
1011
end

0 commit comments

Comments
 (0)