Skip to content

Commit

Permalink
- do not declare complexEquations of size 1 to single equations(fix f…
Browse files Browse the repository at this point in the history
…or kc_evenGapLaminar)

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@20579 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Volker Waurich committed May 13, 2014
1 parent 74f94a2 commit 1933c50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Compiler/BackEnd/EvaluateFunctions.mo
Expand Up @@ -242,7 +242,7 @@ algorithm
sizeL = getScalarExpSize(lhsExp);
sizeR = getScalarExpSize(rhsExp);
size = intMax(sizeR,sizeL);
eq = Util.if_(intEq(size,0) or intEq(size,1),BackendDAE.EQUATION(lhsExp,rhsExp,source,diff,kind),BackendDAE.COMPLEX_EQUATION(size,lhsExp,rhsExp,source,diff,kind));
eq = Util.if_(intEq(size,0),BackendDAE.EQUATION(lhsExp,rhsExp,source,diff,kind),BackendDAE.COMPLEX_EQUATION(size,lhsExp,rhsExp,source,diff,kind));
//since tuple=tuple is not supported, these equations are converted into a list of simple equations
(eq,addEqs) = convertTupleEquations(eq,addEqs);
then
Expand Down

0 comments on commit 1933c50

Please sign in to comment.