Skip to content
This repository was archived by the owner on May 18, 2019. It is now read-only.

Commit c68882d

Browse files
Willi BraunOpenModelica-Hudson
authored andcommitted
[SimCode] dump algorithms in correct sorting
Belonging to [master]: - #2198
1 parent c15e7bd commit c68882d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Compiler/SimCode/SimCodeUtil.mo

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7972,14 +7972,12 @@ algorithm
79727972
case(SimCode.SES_ALGORITHM(index=idx,statements=stmts))
79737973
equation
79747974
sLst = List.map(stmts,DAEDump.ppStatementStr);
7975-
sLst = List.map1(sLst, stringAppend, "\t");
7976-
s = intString(idx) +": "+ List.fold(sLst,stringAppend,"");
7975+
s = intString(idx) +": "+ List.foldr(sLst, stringAppend, "");
79777976
then s;
79787977

79797978
case(SimCode.SES_INVERSE_ALGORITHM(index=idx,statements=stmts)) equation
79807979
sLst = List.map(stmts, DAEDump.ppStatementStr);
7981-
sLst = List.map1(sLst, stringAppend, "\t");
7982-
s = intString(idx) +": "+ List.fold(sLst, stringAppend, "");
7980+
s = intString(idx) +": "+ List.foldr(sLst, stringAppend, "");
79837981
then s;
79847982

79857983
// no dynamic tearing

0 commit comments

Comments
 (0)