Skip to content

Identical systems that contain events are no longer equal #3907

@TorkelE

Description

@TorkelE

After the v10 update, the events are created with identical input, but are no longer parsed as identical systems.

using ModelingToolkit
using ModelingToolkit: t_nounits as t, D_nounits as D
@parameters p d
@variables X(t)
eqs = [D(X) ~ p - d*X]
continuous_events = [X ~ 1] => [X ~ Pre(X) + 1.0]
@mtkcompile sys1 = System(eqs, t; continuous_events)
@mtkcompile sys2 = System(eqs, t; continuous_events)
isequal(sys1, sys2) # false

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions