Skip to content

Commit

Permalink
- use ComponentReference.printComponentRefStr instead of ComponentRef…
Browse files Browse the repository at this point in the history
…erence.crefStr to consider subscripts for tempvariable

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@13666 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Jens Frenkel committed Oct 27, 2012
1 parent 63415d5 commit acd3215
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Compiler/BackEnd/SimCodeUtil.mo
Original file line number Diff line number Diff line change
Expand Up @@ -4385,7 +4385,7 @@ algorithm
case ((BackendDAE.ALGORITHM(alg=DAE.ALGORITHM_STMTS(algStatements),source=source) :: rest),_,_)
equation
crefs = CheckModel.algorithmOutputs(DAE.ALGORITHM_STMTS(algStatements));
// BackendDump.debugStrCrefLstStr(("Crefs : ", crefs, ",", "\n"));
//BackendDump.debugStrCrefLstStr(("Crefs : ", crefs, ",", "\n"));
(crefstmp,repl) = createTmpCrefs(crefs, iuniqueEqIndex, {}, BackendVarTransform.emptyReplacements());
//BackendDump.debugStrCrefLstStr(("Crefs : ", crefstmp, ",", "\n"));
explst = List.map(crefs,Expression.crefExp);
Expand Down Expand Up @@ -4439,7 +4439,7 @@ algorithm
case({},_,_,_) then (listReverse(inCrefsAcc),iRepl);
case(cref::rest,_,_,_)
equation
ident = ComponentReference.crefStr(cref);
ident = ComponentReference.printComponentRefStr(cref);
ident = System.stringReplace(ident,".","$P");
ident = System.stringReplace(ident,"[","$rB");
ident = System.stringReplace(ident,"]","$lB");
Expand Down

0 comments on commit acd3215

Please sign in to comment.