Skip to content

Commit

Permalink
- fix sub-clock partitioning (sub-clock indices were twisted due to a…
Browse files Browse the repository at this point in the history
… wrong listReverse)

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@22125 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
lochel committed Sep 4, 2014
1 parent bb60015 commit 2a078d6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Compiler/BackEnd/SynchronousFeatures.mo
Expand Up @@ -34,6 +34,7 @@ encapsulated package SynchronousFeatures
package: SynchronousFeatures
description: This package contains functions that belong to synchronous features.
- base-clock partitioning
- sub-clock partitioning

RCS: $Id: SynchronousFeatures.mo 21476 2014-07-11 12:08:20Z lochel $"

Expand Down Expand Up @@ -428,7 +429,7 @@ algorithm

// TODO: make this better
eqLst := BackendEquation.equationList(eqs);
eqLst := setSubClockPartition(eqLst, listReverse(arrayList(ixs)));
eqLst := setSubClockPartition(eqLst, arrayList(ixs));
eqs := BackendEquation.listEquation(eqLst);

outEqSystem := BackendDAE.EQSYSTEM(vars, eqs, NONE(), NONE(), BackendDAE.NO_MATCHING(), stateSets, partitionKind);
Expand Down

0 comments on commit 2a078d6

Please sign in to comment.