Skip to content

Limit arrays#3828

Open
HansOlsson wants to merge 4 commits intomodelica:masterfrom
HansOlsson:LimitArrays
Open

Limit arrays#3828
HansOlsson wants to merge 4 commits intomodelica:masterfrom
HansOlsson:LimitArrays

Conversation

@HansOlsson
Copy link
Copy Markdown
Collaborator

Closes #3820
I think this covers all of the discussed cases.

As far as I can see it is also consistent with the previous intent, but just missed:

  • Enumeration constructor is part of list that can be called vectorized.
  • Record cast (but not record constructor) explicitly listed that it could be called vectorized
  • Lookup of classes in components restricted it to scalar components; and lookup for classes is described as constructing a component of the class.

@HansOlsson HansOlsson requested a review from henrikt-ma February 6, 2026 14:32
@HansOlsson HansOlsson added this to the 2026-March milestone Mar 4, 2026
@HansOlsson HansOlsson requested a review from qlambert-pro March 5, 2026 15:05
Copy link
Copy Markdown
Collaborator

@henrikt-ma henrikt-ma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am leaving it for @qlambert-pro to provide a review with approval.

@HansOlsson HansOlsson modified the milestones: 2026-March, 2026-April Mar 26, 2026
@HansOlsson
Copy link
Copy Markdown
Collaborator Author

I am leaving it for @qlambert-pro to provide a review with approval.

Pinging @qlambert-pro

In the modification, all input parameters are used to set the corresponding record variables.

A record constructor can only be called if the referenced record class is found in the global scope, and thus cannot be modified.
The record constructor can be used in vectorized form according to \cref{scalar-functions-applied-to-array-arguments}.
Copy link
Copy Markdown
Collaborator

@qlambert-pro qlambert-pro Mar 6, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to address the record constructor of operator record. Since nothing is said of the conflict it could create.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

An operator record shouldn't have an automatically generated record constructor, as that would cause conflicts with the defined operator record constructors, so their shouldn't be any conflict.

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.

Modelica array class

3 participants