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

Commit 9a067c8

Browse files
rfrankeOpenModelica-Hudson
authored andcommitted
Fix clock ordering in FMI model description
1 parent edd5dda commit 9a067c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Compiler/SimCode/SimCodeUtil.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ algorithm
529529
//BaseHashTable.dumpHashTable(varToArrayIndexMapping);
530530
//print("END MAPPING\n\n");
531531

532-
(crefToClockIndexHT, _) := List.fold(inBackendDAE.eqs, collectClockedVars, (HashTable.emptyHashTable(), 1));
532+
(crefToClockIndexHT, _) := List.fold(listReverse(inBackendDAE.eqs), collectClockedVars, (HashTable.emptyHashTable(), 1));
533533

534534
simCode := SimCode.SIMCODE(modelInfo,
535535
{}, // Set by the traversal below...

0 commit comments

Comments
 (0)