Skip to content

Commit

Permalink
Revert output counting changes until we fix all the issues.
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@24986 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
mahge committed Mar 8, 2015
1 parent 66c19d2 commit d0a0016
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion Compiler/FrontEnd/CheckModel.mo
Expand Up @@ -473,7 +473,16 @@ algorithm
// a := expr; // where a is array
case (DAE.STMT_ASSIGN_ARR(lhs=exp1), _, _)
equation
(_, (_, ht)) = Expression.traverseExpTopDown(exp1, statementOutputsCrefFinder, (inCrefExpansion, iht));
// (_, (_, ht)) = Expression.traverseExpTopDown(exp1, statementOutputsCrefFinder, (inCrefExpansion, iht));
cr = Expression.expCref(exp1);
subs = ComponentReference.crefLastSubs(cr);
if not listEmpty(subs) // not an empty subs list
then
subs = List.fill(DAE.WHOLEDIM(), listLength(subs));
cr = ComponentReference.crefSetLastSubs(cr, subs);
end if;
crlst = ComponentReference.expandCref(cr, true);
ht = List.fold(crlst, BaseHashSet.add, iht);
then ht;

case(DAE.STMT_IF(statementLst = stmts, else_ = elsebranch), _, _)
Expand Down

0 comments on commit d0a0016

Please sign in to comment.