Changeset 2bb2a8d5 in OpenModelica


Ignore:
Timestamp:
2013-12-10T16:23:20+01:00 (10 years ago)
Author:
OpenModelica Hudson <openmodelica@…>
Branches:
Added-citation-metadata, maintenance/v1.14, maintenance/v1.15, maintenance/v1.16, maintenance/v1.17, maintenance/v1.18, maintenance/v1.19, maintenance/v1.20, maintenance/v1.21, maintenance/v1.22, master, omlib-staging
Children:
2e4ce737
Parents:
58a5c639
Message:

[Janitor mode] Fix tabs

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@18456 f25d12d1-65f4-0310-ae8a-bbce733d8d8e

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Compiler/BackEnd/SimCodeUtil.mo

    r58a5c639 r2bb2a8d5  
    53715371protected function findSimVarsCompare
    53725372   input tuple<SimCode.SimVar, tuple<list<DAE.ComponentRef>, list<SimCode.SimVar>>> inTuple;
    5373    output tuple<SimCode.SimVar, tuple<list<DAE.ComponentRef>, list<SimCode.SimVar>>> outTuple;
    5374   algorithm
    5375       outTuple := matchcontinue(inTuple)
    5376       local
    5377         DAE.ComponentRef cref;
    5378         list<DAE.ComponentRef> crefs;
    5379         list<SimCode.SimVar> simvars;
    5380         SimCode.SimVar var;
    5381       case((var as (SimCode.SIMVAR(name=cref)), (crefs, simvars)))
    5382         equation
    5383           true = listMember(cref, crefs);
    5384           true = not List.isMemberOnTrue(var, simvars, compareSimVarName);
    5385         then ((var, (crefs,  listAppend(simvars, {var}))));
    5386       case(_) then inTuple;
    5387       end matchcontinue;
     5373   output tuple<SimCode.SimVar, tuple<list<DAE.ComponentRef>, list<SimCode.SimVar>>> outTuple;
     5374   algorithm
     5375       outTuple := matchcontinue(inTuple)
     5376       local
     5377         DAE.ComponentRef cref;
     5378         list<DAE.ComponentRef> crefs;
     5379         list<SimCode.SimVar> simvars;
     5380         SimCode.SimVar var;
     5381       case((var as (SimCode.SIMVAR(name=cref)), (crefs, simvars)))
     5382         equation
     5383           true = listMember(cref, crefs);
     5384           true = not List.isMemberOnTrue(var, simvars, compareSimVarName);
     5385         then ((var, (crefs,  listAppend(simvars, {var}))));
     5386       case(_) then inTuple;
     5387       end matchcontinue;
    53885388end findSimVarsCompare;
    53895389
     
    53925392  input SimCode.SimVar var1;
    53935393  output Boolean b;
    5394   algorithm
    5395       b := matchcontinue(var, var1)
    5396         local
    5397           DAE.ComponentRef name, name1;
    5398         case (SimCode.SIMVAR(name = name), SimCode.SIMVAR(name = name1))     
    5399           equation
    5400             true = ComponentReference.crefEqual(name, name1);
    5401           then true;
    5402          
    5403         else false;
    5404       end matchcontinue;
     5394   algorithm
     5395       b := matchcontinue(var, var1)
     5396         local
     5397           DAE.ComponentRef name, name1;
     5398         case (SimCode.SIMVAR(name = name), SimCode.SIMVAR(name = name1))     
     5399           equation
     5400             true = ComponentReference.crefEqual(name, name1);
     5401           then true;
     5402          
     5403         else false;
     5404       end matchcontinue;
    54055405end compareSimVarName;
    5406   
     5406  
    54075407protected function creatallDiffedVars
    54085408  // function: help function for creatallDiffedVars
Note: See TracChangeset for help on using the changeset viewer.