-
Notifications
You must be signed in to change notification settings - Fork 297
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
Missing each when setting start values for arrays with dialog #7750
Labels
Comments
@adeas31 I guess ElementProperties.cpp needs to be changed a bit. |
Sorry, I don't see why this is a duplicate of #5405. This issue has nothing to do with the check, the by OMEdit generated code is simply wrong for arrays. |
I had provided the wrong link, sorry. Now it points where it should. |
If I remember correctly this is because of |
3 tasks
adeas31
added a commit
to adeas31/OpenModelica
that referenced
this issue
Nov 2, 2023
Fixes OpenModelica#5395, Fixes OpenModelica#5405, Fixes OpenModelica#5489, Fixes OpenModelica#5737, Fixes OpenModelica#7750 and Fixes OpenModelica#10226 Apply the modifiers with one call of `setElementModifierValue`. Added a new button for final and each context menu. Improved the handling of modifiers.
adeas31
added a commit
to adeas31/OpenModelica
that referenced
this issue
Nov 14, 2023
…odelica#11019) Fixes OpenModelica#5395, Fixes OpenModelica#5405, Fixes OpenModelica#5489, Fixes OpenModelica#5737, Fixes OpenModelica#7750 and Fixes OpenModelica#10226 Apply the modifiers with one call of `setElementModifierValue`. Added a new button for final and each context menu. Improved the handling of modifiers.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Description
When changing a start value of an array state variable with a dialog in diagram view in OMEdit and setting it to
true: start value is used to initialize
the resulting model is missing theeach
key word. Because of that the model can't be simulated.Steps to Reproduce
Create some model with an array state variable:
Drag the model
TestComp
into a new modelmwe
using the diagram view in OMEdit.Then change the start value of
x
to{1,2}
with theElement Parameter
dialog and activatetrue: start-value is used to initialize
.The resulting model will look like:
Simulating this will result in an error message:
Expected Behavior
OMC should detect that the variable
testComp.x
has type array and needseach
.The resulting model should have the
each
key word in front offixed=true
:Version and OS
The text was updated successfully, but these errors were encountered: