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

Ignore asserts while calling simulationUpdate() #8118

Merged
merged 3 commits into from Nov 12, 2021

Conversation

AnHeuermann
Copy link
Member

  • While searching for an event asserts can be ignored
  • If no event was found but an assert triggered, throw an error at end of
    simulationUpdate()
  • Output info message when assert was triggered, but ignored

Related Issues

Fixes #6195

Purpose

Ignore asserts while searching for an event.

Approach

Added new variables noThrowAsserts and needToReThrow to SIMULATION_INFO. Store information if asserts can be ignored and if an assert was encountered.

* While searching for an event asserts can be ignored
* If no event was found but an assert triggered, throw an error at end of
  simulationUpdate()
* Output info message when assert was triggered, but ignored
@AnHeuermann AnHeuermann self-assigned this Nov 12, 2021
@AnHeuermann AnHeuermann enabled auto-merge (squash) November 12, 2021 15:51
@AnHeuermann AnHeuermann merged commit 1cbaefa into OpenModelica:master Nov 12, 2021
@AnHeuermann AnHeuermann deleted the suppres-asserts branch November 15, 2021 09:39
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.

Assert triggered incorrectly on variable computed with conditional expression
1 participant