Skip to content

Commit

Permalink
- improve readability of aliasset-warning for several free start values
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@16048 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
lochel committed May 15, 2013
1 parent 67b5175 commit d307bf4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Compiler/BackEnd/RemoveSimpleEquations.mo
Original file line number Diff line number Diff line change
Expand Up @@ -3060,20 +3060,20 @@ algorithm
case ({},NONE(),_,_) then inVar;
case ({},SOME((e,cr,_)),_,_)
equation
s = iStr +& "Select value from " +& ComponentReference.printComponentRefStr(cr) +& "(start = " +& ExpressionDump.printExpStr(e) +& ")";
s = iStr +& " Select value from " +& ComponentReference.printComponentRefStr(cr) +& "(start = " +& ExpressionDump.printExpStr(e) +& ")";
Error.addMessage(Error.COMPILER_WARNING,{s});
v = BackendVariable.setVarStartValue(inVar, e);
then
v;
case ((e,cr)::zerofreevalues,NONE(),_,_)
equation
s = iStr +& "Candidate " +& ComponentReference.printComponentRefStr(cr) +& "(start = " +& ExpressionDump.printExpStr(e) +& ")\n";
s = iStr +& " Candidate " +& ComponentReference.printComponentRefStr(cr) +& "(start = " +& ExpressionDump.printExpStr(e) +& ")\n";
i = ComponentReference.crefDepth(cr);
then
selectFreeValue1(zerofreevalues,SOME((e,cr,i)),s,inVar);
case ((e,cr)::zerofreevalues,SOME((_,_,i1)),_,_)
equation
s = iStr +& "Candidate " +& ComponentReference.printComponentRefStr(cr) +& "(start = " +& ExpressionDump.printExpStr(e) +& ")\n";
s = iStr +& " Candidate " +& ComponentReference.printComponentRefStr(cr) +& "(start = " +& ExpressionDump.printExpStr(e) +& ")\n";
i = ComponentReference.crefDepth(cr);
favorit = Util.if_(intLt(i,i1),SOME((e,cr,i)),iFavorit);
then
Expand Down

0 comments on commit d307bf4

Please sign in to comment.