﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
6173	Inconsistent flattening of for loops in NF with -d=nonfScalarize	Francesco Casella	Per Östlund	"Please consider the following test case
{{{
package TestNoScalarize
  model A
    B[100] b;
  equation
    for i in 1:100 loop
      b[i].c[10] = 2;
    end for;
  end A;

  model B
    Real[10] c;
  end B;
end TestNoScalarize;
}}}

The output of non-scalarized flattening of {{{A}}} is
{{{
class TestNoScalarize.A
  Real[100, 10] b.c;
equation
  for i in 1:100 loop
    b[i].c[10] = 2.0;
  end for;
end TestNoScalarize.A;
}}}

For consistency with the declarations, it should rather be
{{{
class TestNoScalarize.A
  Real[100, 10] b.c;
equation
  for i in 1:100 loop
    b.c[i,10] = 2.0;
  end for;
end TestNoScalarize.A;
}}}

@perost, would it be possible to fix this without too much effort?

Thanks!"	defect	closed	high	1.17.0	New Instantiation		fixed		massimo.fioravanti@… federico.terraneo@… Adrian Pop Martin Sjölund
