Skip to content

Conversation

@TorkelE
Copy link
Member

@TorkelE TorkelE commented Oct 26, 2025

Should close #2612

Looking at the code, my impression is that stuff like

@parameters p(t) d
@variables X(t)
SymbolicDiscreteCallback([X < 5.0, X > 10.0] => [X ~ Pre(X) + 10.0]

should not be allowed. It eventually yields an error (but a hard-to-interpret one). This throws an error as soon as someone tries to create the event (happy to modify if this is something we'd actually want to supprot).

@AayushSabharwal AayushSabharwal merged commit e822248 into SciML:master Oct 28, 2025
44 of 51 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MTK allows you to create faulty events without throwing an error.

2 participants