You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
package WrongArrayBindingsmodel MparameterReal p =1;
parameterReal q =2;
end M;
model SparameterReal p =2;
M m[2,3](each p =2*p);
end S;
end WrongArrayBindings;
The binding equation for parameter 'm.q' (which was left at its default value) is correct. The binding equation for parameter 'm.p', which was changed with a modifier in model S, is dimensionally wrong, as the RHS is a Real[3,2] constant array, not a Real[2,3] constant array.
Please consider the following MWE:
If I instantiate model S with these flags:
I get
The binding equation for parameter 'm.q' (which was left at its default value) is correct. The binding equation for parameter 'm.p', which was changed with a modifier in model S, is dimensionally wrong, as the RHS is a Real[3,2] constant array, not a Real[2,3] constant array.
Expected Behaviour
I would expect the flattened model to be
The text was updated successfully, but these errors were encountered: