Skip to content

Commit 8521f85

Browse files
committed
Default Continuous for equations as well, and stop exporting internal names
1 parent 61b420c commit 8521f85

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/ModelingToolkit.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ export @variables, @parameters, @constants
230230
export @named, @nonamespace, @namespace, extend, compose, complete
231231
export debug_system
232232

233-
export Continuous, Discrete, sampletime, input_timedomain, output_timedomain
233+
#export Continuous, Discrete, sampletime, input_timedomain, output_timedomain
234234
#export has_discrete_domain, has_continuous_domain
235235
#export is_discrete_domain, is_continuous_domain, is_hybrid_domain
236236
export Sample, Hold, Shift, ShiftIndex

src/systems/clock_inference.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ end
88
function ClockInference(ts::TearingState)
99
@unpack fullvars, structure = ts
1010
@unpack graph = structure
11-
eq_domain = Vector{TimeDomain}(undef, nsrcs(graph))
11+
eq_domain = TimeDomain[Continuous() for _ in 1:nsrcs(graph)]
1212
var_domain = Vector{TimeDomain}(undef, ndsts(graph))
1313
inferred = BitSet()
1414
for (i, v) in enumerate(fullvars)
@@ -68,7 +68,6 @@ function infer_clocks!(ci::ClockInference)
6868
vd = var_domain[v]
6969
eqs = 𝑑neighbors(graph, v)
7070
isempty(eqs) && continue
71-
#eq = first(eqs)
7271
for eq in eqs
7372
eq_domain[eq] = vd
7473
end

0 commit comments

Comments
 (0)