Skip to content

Commit 790fb89

Browse files
committed
fix: fix FMI tests and parameter dependency tests
1 parent c9ca03e commit 790fb89

File tree

7 files changed

+131
-122
lines changed

7 files changed

+131
-122
lines changed

ext/MTKFMIExt.jl

+3-4
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ with the name `namespace__variable`.
9393
- `name`: The name of the system.
9494
"""
9595
function MTK.FMIComponent(::Val{Ver}; fmu = nothing, tolerance = 1e-6,
96-
communication_step_size = nothing, reinitializealg = SciMLBase.NoInit(), type, name) where {Ver}
96+
communication_step_size = nothing, type, name) where {Ver}
9797
if Ver != 2 && Ver != 3
9898
throw(ArgumentError("FMI Version must be `2` or `3`"))
9999
end
@@ -238,7 +238,7 @@ function MTK.FMIComponent(::Val{Ver}; fmu = nothing, tolerance = 1e-6,
238238
finalize_affect = MTK.FunctionalAffect(fmiFinalize!, [], [wrapper], [])
239239
step_affect = MTK.FunctionalAffect(Returns(nothing), [], [], [])
240240
instance_management_callback = MTK.SymbolicDiscreteCallback(
241-
(t != t - 1), step_affect; finalize = finalize_affect, reinitializealg = reinitializealg)
241+
(t != t - 1), step_affect; finalize = finalize_affect)
242242

243243
push!(params, wrapper)
244244
append!(observed, der_observed)
@@ -279,8 +279,7 @@ function MTK.FMIComponent(::Val{Ver}; fmu = nothing, tolerance = 1e-6,
279279
fmiCSStep!; observed = cb_observed, modified = cb_modified, ctx = _functor)
280280
instance_management_callback = MTK.SymbolicDiscreteCallback(
281281
communication_step_size, step_affect; initialize = initialize_affect,
282-
finalize = finalize_affect, reinitializealg = reinitializealg
283-
)
282+
finalize = finalize_affect)
284283

285284
# guarded in case there are no outputs/states and the variable is `[]`.
286285
symbolic_type(__mtk_internal_o) == NotSymbolic() || push!(params, __mtk_internal_o)

0 commit comments

Comments
 (0)