We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 901046a + fd73c57 commit b0452e7Copy full SHA for b0452e7
src/systems/clock_inference.jl
@@ -25,8 +25,8 @@ struct NotInferedTimeDomain end
25
function error_sample_time(eq)
26
error("$eq\ncontains `SampleTime` but it is not an infered discrete equation.")
27
end
28
-function substitute_sample_time(ci::ClockInference)
29
- @unpack ts, eq_domain = ci
+function substitute_sample_time(ci::ClockInference, ts::TearingState)
+ @unpack eq_domain = ci
30
eqs = copy(equations(ts))
31
@assert length(eqs) == length(eq_domain)
32
for i in eachindex(eqs)
@@ -112,7 +112,7 @@ function infer_clocks!(ci::ClockInference)
112
113
114
115
- ci = substitute_sample_time(ci)
+ ci = substitute_sample_time(ci, ts)
116
return ci
117
118
0 commit comments