-
Notifications
You must be signed in to change notification settings - Fork 22
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
ALLOCATE AVAILABLE uses the wrong priority subscript #377
Comments
I dug into this more a couple weeks ago since it was one of the issues that Hazhir was running into with the model he posted in discussion #557. It turns out there are problems with how subscripts are handled in the arguments to I've implemented fixes for the issues below and added many new tests to cover different combinations of subscripted and non-subscripted arguments for Read equationsIn That code failed to get the correct index. It would always access Additionally, it would use text substitution to determine the correct priority and width refIds, which would result in incorrect Code genIn |
ALLOCATE AVAILABLE takes a priority profile argument. There is one extra subscript on the profile variable. For instance, if the LHS variable has one subscript, the profile variable has two. See the doc page for an example.
The variable visitor assumes that the profile variable has two subscripts. This is incorrect if the LHS variable has more than on subscript, in which case the profile variable has more than two subscripts. For instance, adding a subscript to the equations in the current test model:
The text was updated successfully, but these errors were encountered: