Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[NF] implement a sanity check for discrete reals #992

Merged
merged 3 commits into from
Jun 25, 2020

Conversation

kabdelhak
Copy link
Contributor

@kabdelhak kabdelhak requested a review from perost June 24, 2020 14:08
@kabdelhak kabdelhak force-pushed the whenEquationFix_5836 branch 2 times, most recently from dba29ee to 2d8d543 Compare June 24, 2020 15:13
hashTable := BaseHashTable.add((cref, 0), hashTable);
then hashTable;

// kabdelhak: is checking connect necessary? Can there be connects in when equations?
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, connects are not allowed in when-equations and are rejected during the instantiation by the NF.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay!

@kabdelhak kabdelhak force-pushed the whenEquationFix_5836 branch 3 times, most recently from 0317905 to 90d0623 Compare June 25, 2020 07:53
 - discrete real variables have to be determined by a when equation or algorithm
 - throw error if any discrete variables are not determined in such
 - ticket OpenModelica#5836
  - check nested if equations in when equations for discrete Real definitions
  - update model to be legal
@adrpo adrpo merged commit 16da56c into OpenModelica:master Jun 25, 2020
@kabdelhak kabdelhak deleted the whenEquationFix_5836 branch March 10, 2022 12:55
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.

None yet

3 participants