- Index
- » Developer
- » OpenModelica development
- » file _info.json when initial model...
Page Start Prev 1 Next End
file _info.json when initial model contains an array
file _info.json when initial model contains an array
Jun-11-15 08:12:37
Dear Sir,
When we generate the C target output with openModelica compiler, (version 1.9.2) on a Model containing an array x[n] , it seems to me that the resulting new file
nammed _info.json does not contain the definition of the following variable : x[2]
Best regards;
ALAIN_2
model TestNonLinearSystem2
parameter Integer N = 10;
Real x[N];
Real y(start=-1);
equation
x[N] = 1 - x[1];
for i in 2:N loop
y = 10*(x[i]-x[i-1]^2);
end for;
der(y) = 1;
end TestNonLinearSystem2;
Page Start Prev 1 Next End
- Index
- » Developer
- » OpenModelica development
- » file _info.json when initial model...
There are 0 guests and 0 other users also viewing this topic