Skip to content

Commit

Permalink
Fixed bug in solving linear system of equations (DAEexample.mo).
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@2740 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Peter Aronsson committed Mar 5, 2007
1 parent 83934c0 commit 23ec061
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Compiler/Exp.mo
Expand Up @@ -2912,7 +2912,7 @@ algorithm
/* terms( (b+c)*a) => {b*a, c*a} */
case (e as BINARY(e1,MUL(tp),e2)) equation
(f1 as _::_::_) = allTerms(e1);
f1 = Util.listMap1(f1,makeProduct,e1);
f1 = Util.listMap1(f1,makeProduct,e2);
f1 = Util.listFlatten(Util.listMap(f1,allTerms));
then f1;
case ((e as BINARY(operator = MUL(ty = _)))) then {e};
Expand Down

0 comments on commit 23ec061

Please sign in to comment.