Changeset 93027da0 in OpenModelica


Ignore:
Timestamp:
2020-09-10T11:11:37+02:00 (4 years ago)
Author:
Per Östlund <perost86@…>
Parents:
08661c9
git-author:
Per Östlund <perost86@…> (09/10/20 11:10:47)
git-committer:
Per Östlund <perost86@…> (09/10/20 11:11:37)
Message:

[NF] Fix top-level input handling.

  • Treat components inside a top-level input as top-level inputs.
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • OMCompiler/Compiler/NFFrontEnd/NFConvertDAE.mo

    re84fce5 r93027da0  
    212212
    213213function getComponentDirection
    214   "Returns the given direction if the cref refers to a top-level component or to
    215    a component in a top-level connector, otherwise returns Direction.NONE."
     214  "Returns the given direction if the cref refers to a top-level component,
     215   a component in a top-level connector, or a component in a top-level input
     216   component, otherwise returns Direction.NONE."
    216217  input output Direction dir;
    217218  input ComponentRef cref;
     
    222223    case ComponentRef.EMPTY() then dir;
    223224    case ComponentRef.CREF()
    224       then if InstNode.isConnector(rest_cref.node) then
     225      then if InstNode.isConnector(rest_cref.node) or InstNode.isInput(rest_cref.node) then
    225226        getComponentDirection(dir, rest_cref) else Direction.NONE;
    226227  end match;
  • testsuite/flattening/modelica/scodeinst/Makefile

    r1623955a r93027da0  
    847847Time2.mo \
    848848Time3.mo \
     849TopLevelInputs1.mo \
    849850TupleInvalid1.mo \
    850851TupleInvalid2.mo \
Note: See TracChangeset for help on using the changeset viewer.