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

fix: correct generation of level variables when SMOOTH3[I] input param has subscripts but delay param does not #457

Merged
merged 3 commits into from
Apr 17, 2024

Conversation

chrispcampbell
Copy link
Contributor

Fixes #313

This fixes an issue that we ran into with En-ROADS, but was also reported last week in #449 (will be closed as a duplicate). See #313 for more details on the cause and the fix.

To help verify this fix, I've added new tests for the equation reading phase (when the level vars are synthesized for the implementation of SMOOTH3[I]) and for the code gen phase.

I also verified that this fixes the issue reported in the duplicate issue #449.

I decided to only fix this in the "new" readEquations code, since the old EquationReader is no longer enabled by default and will be removed in the near future.

Copy link
Collaborator

@ToddFincannonEI ToddFincannonEI left a comment

Choose a reason for hiding this comment

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

This fix looks like a straightforward solution that should not cause any problems for EPS.

@chrispcampbell chrispcampbell merged commit fd3bfab into main Apr 17, 2024
6 checks passed
@chrispcampbell chrispcampbell deleted the chris/313-smooth3i-non-subscripted-delay branch April 17, 2024 15:12
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.

Incorrect code generated when SMOOTH3I input param has subscripts but delay param does not
2 participants