Skip to content

Commit 55c4593

Browse files
fix: handle usage of FMU in initialization
1 parent 3811644 commit 55c4593

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

ext/MTKFMIExt.jl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,14 @@ struct FMI2MEFunctor{T}
191191
output_value_references::Vector{UInt32}
192192
end
193193

194+
@register_array_symbolic (fn::FMI2MEFunctor)(
195+
wrapper::FMI2InstanceWrapper, states::Vector{<:Real},
196+
inputs::Vector{<:Real}, params::Vector{<:Real}, t::Real) begin
197+
size = (length(states) + length(fn.output_value_references),)
198+
eltype = eltype(states)
199+
ndims = 1
200+
end
201+
194202
function (fn::FMI2MEFunctor)(wrapper::FMI2InstanceWrapper, states, inputs, params, t)
195203
instance = get_instance!(wrapper, states, inputs, params, t)
196204

0 commit comments

Comments
 (0)