Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register

file _info.json when initial model contains an array

file _info.json when initial model contains an array

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;

There are 0 guests and 0 other users also viewing this topic
You are here: