kabdelhak / OpenModelica

OpenModelica is an open-source Modelica-based modeling and simulation environment intended for industrial and academic usage.
https://openmodelica.org
Other
0 stars 0 forks source link

Parameter code generation #3

Open AnHeuermann opened 4 years ago

AnHeuermann commented 4 years ago

Generate code for parameter equations to simulate

model helloWorld
  parameter Real a = 0.5;
  Real x (start=1, fixed = true);
equation
  der(x) = a * x;
end helloWorld;

from https://github.com/kabdelhak/OpenModelica/blob/newBackend/testsuite/simulation/modelica/NBackend/sanityTests/helloWorld.mos correctly.

Currently a=0.

kabdelhak commented 4 years ago

As mentioned in my commit this could be considered fixed. There are some refineries possible so i will keep this open for now until it is actually tested with more than one model.