Skip to content

Commit

Permalink
- fixed bug for varSCCmapping concerning tornsystems including records
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@18459 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Volker Waurich committed Dec 11, 2013
1 parent d9f7d4a commit ee71ffb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Compiler/BackEnd/HpcOmTaskGraph.mo
Original file line number Diff line number Diff line change
Expand Up @@ -1579,7 +1579,7 @@ end createSccMapping0;


protected function othersInTearComp " gets the remaining algebraic vars and equations from the torn block.
this function is just for checking if there exists an equation with more than one var(because i dont know why theres a list of vars)
Remark: there can be more than 1 var per equation.
author:Waurich TUD 2013-06"
input tuple<Integer,list<Integer>> otherEqnVarTpl;
input tuple<list<Integer>,list<Integer>> othersIn;
Expand All @@ -1595,10 +1595,9 @@ algorithm
case(_,_)
equation
(eq,varTplLst)=otherEqnVarTpl;
true = intEq(listLength(varTplLst),1);
var = listGet(varTplLst,1);
(eqLst,varLst) = othersIn;
varLst = var::varLst;
varLst = listAppend(varTplLst,varLst);
eqLst = eq::eqLst;
then
((eqLst,varLst));
Expand Down

0 comments on commit ee71ffb

Please sign in to comment.