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

Code Generation Failed

Code Generation Failed

Just learning OM & OMEdit. I'm continually getting a code gen error: Non-array modification 'true' for array component 'fixed', possibly due to missing self.  How can I diagnose & fix this

Re: Code Generation Failed

It says missing "each", right?

Code:

model M

  Real r[3](start = 3.0) = {1,2,3};
end M;

vs. valid model:

Code:

model M

  Real r[3](each start = 3.0) = {1,2,3};
end M;

There are 0 guests and 0 other users also viewing this topic