Skip to content

Commit

Permalink
- added case for SCode.EQ_NORETCALL in SCode.equationEqual2.
Browse files Browse the repository at this point in the history
  fixes duplicate elements not identical error in model:
  Modelica.Mechanics.MultiBody.Examples.Constraints.ConstrainPrismaticJoint
  however, the model seems to go in an infinite loop in the back-end.


git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@13505 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
adrpo committed Oct 19, 2012
1 parent 4c52004 commit 4bb77db
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Compiler/FrontEnd/SCode.mo
Original file line number Diff line number Diff line change
Expand Up @@ -1504,6 +1504,12 @@ algorithm
true = Absyn.crefEqual(cr1,cr2);
then
true;

case (EQ_NORETCALL(exp = e1), EQ_NORETCALL(exp = e2))
equation
true = Absyn.expEqual(e1,e2);
then
true;

// otherwise false
case(_,_) then false;
Expand Down

0 comments on commit 4bb77db

Please sign in to comment.