Skip to content

Commit

Permalink
- move only equalityConstraint with array[0] return value to removed …
Browse files Browse the repository at this point in the history
…equations

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@13701 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Jens Frenkel committed Oct 29, 2012
1 parent d38fdc4 commit 0721299
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Compiler/BackEnd/BackendDAECreate.mo
Expand Up @@ -234,7 +234,7 @@ algorithm
list<DAE.Exp> explst;
DAE.Exp e2;
Boolean b;

// class for external object
case (DAE.EXTOBJECTCLASS(path,source),_,_,_,_,_,_,_,_,_,_,_,_)
equation
Expand Down Expand Up @@ -274,9 +274,10 @@ algorithm
(inVars,inKnVars,inExVars,eqns,reqns,ieqns,inConstraintLst,inClassAttributeLst,inWhenClauseLst,inExtObjClasses,iAliaseqns);

// equalityConstraint equations, moved to removed equations
case (DAE.ARRAY_EQUATION(exp = DAE.ARRAY(ty=_),array=DAE.CALL(path=path)),_,_,_,_,_,_,_,_,_,_,_,_)
case (DAE.ARRAY_EQUATION(exp = DAE.ARRAY(array={}),array=DAE.CALL(path=path)),_,_,_,_,_,_,_,_,_,_,_,_)
equation
b = stringEq(Absyn.pathLastIdent(path),"equalityConstraint");
print(boolString(b) +& "\n" +& DAEDump.dumpEquationStr(inElement));
eqns = Util.if_(b,inREqnsLst,inEqnsLst);
eqns = lowerEqn(inElement,functionTree,eqns);
((eqns,reqns)) = Util.if_(b,(inEqnsLst,eqns),(eqns,inREqnsLst));
Expand Down

0 comments on commit 0721299

Please sign in to comment.