Skip to content

Implicit iterator range and expandable arrays. #2560

@qlambert-pro

Description

@qlambert-pro

I was wondering if the following model is valid:

model AugmentArrayLoop
  expandable connector EC
  end EC;

  connector RealOutput = output Real;

  model M
    RealOutput ro = 1.0;
  end M;

  EC ec;
  M m;

  Real x[Boolean];
equation
  for i loop
    x[i] = 0;
    connect(m.ro, ec.ro[i]);
  end for;
end AugmentArrayLoop;

I couldn't find anything forbidding it, so I suppose it is.

Metadata

Metadata

Assignees

No one assigned

    Labels

    decidedA decision has been made (label added before the spec is changed)discussionIndicates that there's a discussion; not clear if bug, enhancement, or working as intended

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions