Skip to content

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

Merged
chrispcampbell merged 3 commits into
mainfrom
chris/313-smooth3i-non-subscripted-delay
Apr 17, 2024
Merged

fix: correct generation of level variables when SMOOTH3[I] input param has subscripts but delay param does not#457
chrispcampbell merged 3 commits into
mainfrom
chris/313-smooth3i-non-subscripted-delay

Conversation

@chrispcampbell
Copy link
Copy Markdown
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
Copy Markdown
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
@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