Skip to content

Commit

Permalink
- Don't treat outer parameters without binding as a special case in
Browse files Browse the repository at this point in the history
  Static.elabCref2, to enable vectorization.
  • Loading branch information
perost committed May 26, 2015
1 parent df2d272 commit b98a5eb
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Compiler/FrontEnd/Static.mo
Expand Up @@ -11090,13 +11090,13 @@ algorithm
(cache,e,DAE.C_PARAM(),attr);

// outer parameters without value is ok.
case (cache,_,cr,attr as DAE.ATTR(variability = SCode.PARAM(), innerOuter = io),_,_,tt,DAE.UNBOUND(),_,_,_,_,_)
equation
(_,true) = InnerOuter.innerOuterBooleans(io);
expTy = Types.simplifyType(tt);
cr_1 = fillCrefSubscripts(cr, tt);
then
(cache,Expression.makeCrefExp(cr_1,expTy),DAE.C_PARAM(),attr);
//case (cache,_,cr,attr as DAE.ATTR(variability = SCode.PARAM(), innerOuter = io),_,_,tt,DAE.UNBOUND(),_,_,_,_,_)
// equation
// (_,true) = InnerOuter.innerOuterBooleans(io);
// expTy = Types.simplifyType(tt);
// cr_1 = fillCrefSubscripts(cr, tt);
// then
// (cache,Expression.makeCrefExp(cr_1,expTy),DAE.C_PARAM(),attr);

// parameters without value with fixed=true or no fixed attribute set produce warning (as long as not for iterator)
case (cache,_,cr,attr as DAE.ATTR(variability = SCode.PARAM()),_,_,tt,DAE.UNBOUND(),doVect,InstTypes.SPLICEDEXPDATA(sexp,idTp),_,_,_)
Expand Down

0 comments on commit b98a5eb

Please sign in to comment.