Skip to content
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

MARCO should handle start attributes applied to elements of arrays #12

Closed
casella opened this issue Jan 8, 2024 · 1 comment
Closed
Assignees

Comments

@casella
Copy link
Contributor

casella commented Jan 8, 2024

In order to fix #8, MARCO should be able to handle models such as this one:

model M
  record R
    Real x;
    Real y;
  end R;
  
  R r(x(start = 1), y(start = 2));
  R[2] rv(x(start = fill(1,2)), y(start = fill(2,2)));
equation
  r = R(0,0);
  for i in 1:2 loop
    rv[i] = R(0,0);
  end for;
end M;
@mscuttari
Copy link
Member

Fixed with e3ff1b2

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

No branches or pull requests

2 participants