Skip to content

Commit

Permalink
add COMPLEX_EQUATION and INITIAL_COMPLEX_EQUATION to dump2
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@7510 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Jens Frenkel committed Dec 20, 2010
1 parent 9689222 commit fc9918f
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions Compiler/FrontEnd/DAEDump.mo
Expand Up @@ -389,6 +389,26 @@ algorithm
dump2(DAE.DAE(xs));
then
();
case DAE.DAE((DAE.COMPLEX_EQUATION(lhs = e1,rhs = e2) :: xs))
equation
Print.printBuf("COMPLEX_EQUATION(");
ExpressionDump.printExp(e1);
Print.printBuf(" = ");
ExpressionDump.printExp(e2);
Print.printBuf(")\n");
dump2(DAE.DAE(xs));
then
();
case DAE.DAE((DAE.INITIAL_COMPLEX_EQUATION(lhs = e1,rhs = e2) :: xs))
equation
Print.printBuf("INITIAL_COMPLEX_EQUATION(");
ExpressionDump.printExp(e1);
Print.printBuf(" = ");
ExpressionDump.printExp(e2);
Print.printBuf(")\n");
dump2(DAE.DAE(xs));
then
();
case (DAE.DAE(elementLst = {})) then ();

//BZ Could be nice to know when this failes (when new elements are introduced)
Expand Down

0 comments on commit fc9918f

Please sign in to comment.