Skip to content

Commit

Permalink
- bugfix tearing
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@12878 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Jens Frenkel committed Sep 11, 2012
1 parent bf1821a commit 5546db6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions Compiler/BackEnd/BackendDAEOptimize.mo
Original file line number Diff line number Diff line change
Expand Up @@ -10713,8 +10713,7 @@ algorithm
case (clst::rest,_,_,_,_,_)
equation
elst = List.map1r(clst,arrayGet,mapIncRowEqn);
c::{} = List.unique(elst);
e = mapIncRowEqn[c];
e::{} = List.unique(elst);
e = eindxarr[e];
vlst = List.map1r(clst,arrayGet,ass2);
vlst = List.map1r(vlst,arrayGet,varindxarr);
Expand Down
2 changes: 1 addition & 1 deletion Compiler/BackEnd/SimCodeUtil.mo
Original file line number Diff line number Diff line change
Expand Up @@ -4584,7 +4584,6 @@ algorithm
tcrs = List.map(tvars,BackendVariable.varCref);
repl = makeResidualReplacements(tcrs);
// x = xloc
// x=..,y=..
(crefs,elst) = BackendVarTransform.getAllReplacements(repl);
ecrlst = List.map(crefs,Expression.crefExp);
exptl = List.threadTuple(ecrlst,elst);
Expand Down Expand Up @@ -4678,6 +4677,7 @@ algorithm
equation
print("SimCodeUtil.createTornSystemOtherEqns1 failed for\n");
BackendDump.dumpEqns({eqn});
print("Eqn: " +& intString(eqnindx) +& " Vars: " +& stringDelimitList(List.map(varindx,intString),", ") +& "\n");
then
fail();
end match;
Expand Down

0 comments on commit 5546db6

Please sign in to comment.