Skip to content

Commit

Permalink
[SimCode] dump algorithms in correct sorting
Browse files Browse the repository at this point in the history
Belonging to [master]:
  - OpenModelica/OMCompiler#2198
  • Loading branch information
Willi Braun authored and OpenModelica-Hudson committed Feb 14, 2018
1 parent c15e7bd commit c68882d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Compiler/SimCode/SimCodeUtil.mo
Expand Up @@ -7972,14 +7972,12 @@ algorithm
case(SimCode.SES_ALGORITHM(index=idx,statements=stmts))
equation
sLst = List.map(stmts,DAEDump.ppStatementStr);
sLst = List.map1(sLst, stringAppend, "\t");
s = intString(idx) +": "+ List.fold(sLst,stringAppend,"");
s = intString(idx) +": "+ List.foldr(sLst, stringAppend, "");
then s;

case(SimCode.SES_INVERSE_ALGORITHM(index=idx,statements=stmts)) equation
sLst = List.map(stmts, DAEDump.ppStatementStr);
sLst = List.map1(sLst, stringAppend, "\t");
s = intString(idx) +": "+ List.fold(sLst, stringAppend, "");
s = intString(idx) +": "+ List.foldr(sLst, stringAppend, "");
then s;

// no dynamic tearing
Expand Down

0 comments on commit c68882d

Please sign in to comment.