Skip to content

Commit 77c1962

Browse files
committed
use Pre in the affect definition
1 parent c509e94 commit 77c1962

File tree

5 files changed

+170
-85
lines changed

5 files changed

+170
-85
lines changed

src/ModelingToolkit.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,7 @@ export initialization_equations, guesses, defaults, parameter_dependencies, hier
270270
export structural_simplify, expand_connections, linearize, linearization_function,
271271
LinearizationProblem
272272
export solve
273+
export Pre
273274

274275
export calculate_jacobian, generate_jacobian, generate_function, generate_custom_function
275276
export calculate_control_jacobian, generate_control_jacobian
@@ -302,7 +303,7 @@ export debug_system
302303
#export ContinuousClock, Discrete, sampletime, input_timedomain, output_timedomain
303304
#export has_discrete_domain, has_continuous_domain
304305
#export is_discrete_domain, is_continuous_domain, is_hybrid_domain
305-
export Sample, Hold, Shift, ShiftIndex, sampletime, SampleTime, Next, Prev
306+
export Sample, Hold, Shift, ShiftIndex, sampletime, SampleTime
306307
export Clock, SolverStepClock, TimeDomain
307308

308309
export MTKParameters, reorder_dimension_by_tunables!, reorder_dimension_by_tunables

src/discretedomain.jl

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -70,19 +70,6 @@ Base.literal_pow(f::typeof(^), D::Shift, ::Val{n}) where {n} = Shift(D.t, D.step
7070

7171
hasshift(eq::Equation) = hasshift(eq.lhs) || hasshift(eq.rhs)
7272

73-
"""
74-
Next(x)
75-
76-
An alias for Shift(t, 1)(x).
77-
"""
78-
Next(x) = Shift(t, 1)(x)
79-
"""
80-
Prev(x)
81-
82-
An alias for Shift(t, -1)(x).
83-
"""
84-
Prev(x) = Shift(t, -1)(x)
85-
8673
"""
8774
hasshift(O)
8875

0 commit comments

Comments
 (0)