Skip to content

Add missing each to displayUnit of arg_u/arg_y in FromSymmetricalComponents - #4845

Open
hubertus65 wants to merge 1 commit into
modelica:masterfrom
hubertus65:fix-FromSymmetricalComponents-each
Open

hubertus65 wants to merge 1 commit into
modelica:masterfrom
hubertus65:fix-FromSymmetricalComponents-each

Conversation

@hubertus65

Copy link
Copy Markdown
Member

Modelica.Electrical.QuasiStatic.Polyphase.Blocks.FromSymmetricalComponents modifies the array outputs arg_u[m] and arg_y[m] with a scalar displayUnit="deg" but no each:

output SI.Angle arg_u[m](displayUnit="deg") = arg(u) "Argument of input";
output SI.Angle arg_y[m](displayUnit="deg") = arg(y) "Argument of output";

OpenModelica 1.27.1 rejects the block:

Error: Non-array modification '"deg"' for array component 'displayUnit', possibly due to missing 'each'.

This PR adds the missing each to both declarations. A scan of Modelica and ModelicaTest found no other array attribute modifications of this form.

Found while writing new ModelicaTest coverage tests. After the change, a test model instantiating the block passes checkModel in OpenModelica.

🤖 Generated with Claude Code

…onents

Modelica.Electrical.QuasiStatic.Polyphase.Blocks.FromSymmetricalComponents
modified the array components arg_u[m] and arg_y[m] with a scalar
displayUnit="deg" without each. OpenModelica rejects the block ("Non-array
modification '"deg"' for array component 'displayUnit', possibly due to
missing 'each'").

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
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.

1 participant