Skip to content

Commit

Permalink
[Janitor mode] Fix whitespace
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@24717 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
OpenModelica-Hudson committed Feb 23, 2015
1 parent 37ff87a commit 6acedf7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Compiler/SimCode/SimCodeUtil.mo
Expand Up @@ -7242,25 +7242,25 @@ algorithm
equation
true = realLe(r,0.0);
then (expIn,varsIn);

// time >= -1.0 or similar
case(DAE.RELATION(exp1=DAE.CREF(componentRef=DAE.CREF_IDENT(ident="time")),operator=DAE.GREATEREQ(),exp2=DAE.RCONST(real=r),index=idx,optionExpisASUB=optionExpisASUB),_)
equation
true = realLe(r,0.0);
then (expIn,varsIn);

// -1.0 < time or similar
case(DAE.RELATION(exp1=DAE.RCONST(real=r),operator=DAE.LESS(),exp2=DAE.CREF(componentRef=DAE.CREF_IDENT(ident="time")),index=idx,optionExpisASUB=optionExpisASUB),_)
equation
true = realLe(r,0.0);
then (expIn,varsIn);
then (expIn,varsIn);

// -1.0 <= time or similar
case(DAE.RELATION(exp1=DAE.RCONST(real=r),operator=DAE.LESSEQ(),exp2=DAE.CREF(componentRef=DAE.CREF_IDENT(ident="time")),index=idx,optionExpisASUB=optionExpisASUB),_)
equation
true = realLe(r,0.0);
then (expIn,varsIn);

case(DAE.RELATION(exp1=exp1,operator=op,exp2=exp2,index=idx,optionExpisASUB=optionExpisASUB),_)
equation
exp1 = replaceCrefWithStartValue(exp1,varsIn);
Expand Down

0 comments on commit 6acedf7

Please sign in to comment.