CIFASIS / modelicacc

Modelica C Compiler implemented in C++ to develop and test novel algorithms for large scale models.
GNU General Public License v3.0
11 stars 9 forks source link

Remove addition from unary minus exps or wrap them in parethesis. #37

Closed joaquinffernandez closed 3 years ago

joaquinffernandez commented 3 years ago

This is from the RLC generated model:

  for i in 2:1:4 loop
    R_n_i[1*i+-1]+R_p_i[1*i+0]+C_p_i[1*i+-1] = 0;
  end for;

OpenModelica compiler won't work.