-
-
Notifications
You must be signed in to change notification settings - Fork 210
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
Array parameters are not correctly scoped with ParentScope #2252
Array parameters are not correctly scoped with ParentScope #2252
Comments
This is likely caused by #2247. I must've missed a case with handling array variables in the scoping recursion. I will likely take a look Saturday. |
I did some more poking at this one, I think the problem is actually in Symbolics. By the time |
@ChrisRackauckas I think I have fixed this with JuliaSymbolics/Symbolics.jl#1010 and #2352 |
I think the solution generally looks fine, I just want to check with @YingboMa that the metadata for a scalar arrived from an array should propagate the same one, or if we want to amend it a bit. |
This used to work in ModelingToolkit 8.65.0 but stopped in 8.66.0.
The first signs of trouble appear here,
level0₊a[1]
should not exist because ofParentScope
, but the initial condition fory
is scoped correctly.The equations show the same pattern
And constructing a problem fails.
The text was updated successfully, but these errors were encountered: