Changeset 7c3ddb9c in OpenModelica


Ignore:
Timestamp:
2021-11-24T14:03:09+01:00 (2 years ago)
Author:
GitHub <noreply@…>
Branches:
maintenance/v1.19, maintenance/v1.20, maintenance/v1.21, maintenance/v1.22, maintenance/v1.23, master, omlib-staging
Children:
3b96b9d9, 4aff2018, 8213b2c
Parents:
4ff85b39
git-author:
perost <perost86@…> (11/24/21 14:03:09)
git-committer:
GitHub <noreply@…> (11/24/21 14:03:09)
Message:

Flat Modelica fixes (#8215)

  • Use Flat Modelica for the dumpFlatModel output if the -f is used.
  • Also check the for-range in FlatModel.collectEquationFlatTypes.
Location:
OMCompiler/Compiler/NFFrontEnd
Files:
2 edited

Legend:

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

    r9f0cb452 r7c3ddb9c  
    357357      case Equation.FOR()
    358358        algorithm
     359          types := Util.applyOptionOrDefault(eq.range,
     360            function collectExpFlatTypes(types = types), types);
    359361          types := List.fold(eq.body, collectEquationFlatTypes, types);
    360362        then
  • OMCompiler/Compiler/NFFrontEnd/NFInstUtil.mo

    r9f0cb452 r7c3ddb9c  
    5959      print("\n########################################\n\n");
    6060
    61       FlatModel.printString(flat_model);
     61      if Flags.getConfigBool(Flags.FLAT_MODELICA) then
     62        FlatModel.printFlatString(flat_model, FunctionTree.listValues(functions));
     63      else
     64        FlatModel.printString(flat_model);
     65      end if;
     66
    6267      print("\n");
    6368    end if;
Note: See TracChangeset for help on using the changeset viewer.