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

A 'inner' component may have an 'outer' declaration to itself

A 'inner' component may have an 'outer' declaration to itself

Please refer to this issue: https://github.com/modelica/VehicleInterfaces/issues/18

The problem is:

model myModel
  inner Road road;
end myModel;

model Road
VisualizeSimpleRoads simpleShape;
end road;

model VisualizeSimpleRoads
outer Road road;
end VisualizeSimpleRoads;

Is this possible?
I cannot find any clear statement into the Modelica Specifications.

In Dymola it seems that this can work!

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