Changeset 13920
- Timestamp:
- 2012-11-16T14:30:59+01:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Compiler/FrontEnd/Expression.mo
r13907 r13920 3350 3350 local 3351 3351 list<DAE.Exp> expl; 3352 case({}, inExp) then inExp;3353 case( dims,inExp)3352 case({},_) then inExp; 3353 case(_,_) 3354 3354 equation 3355 3355 oExp = arrayFill2(dims,inExp); … … 3360 3360 3361 3361 protected function arrayFill2 3362 input DAE.Dimensions dims;3362 input DAE.Dimensions iDims; 3363 3363 input DAE.Exp inExp; 3364 3364 output DAE.Exp oExp; 3365 3365 algorithm 3366 oExp := matchcontinue( dims,inExp)3366 oExp := matchcontinue(iDims,inExp) 3367 3367 local 3368 3368 Integer i; … … 3370 3370 Type ty; 3371 3371 list<DAE.Exp> expl; 3372 3373 case({d}, inExp)3372 DAE.Dimensions dims; 3373 case({d},_) 3374 3374 equation 3375 3375 ty = typeof(inExp); … … 3379 3379 DAE.ARRAY(DAE.T_ARRAY(ty,{DAE.DIM_INTEGER(i)},DAE.emptyTypeSource),true,expl); 3380 3380 3381 case(_::dims, inExp)3381 case(_::dims,_) 3382 3382 equation 3383 3383 print(" arrayFill2 not implemented for matrixes, only single arrays \n"); … … 3395 3395 output list<DAE.Exp> expl; 3396 3396 algorithm expl := matchcontinue(n,e) 3397 case( n,e)3397 case(_,_) 3398 3398 equation 3399 3399 true = intEq(n,0); 3400 3400 then 3401 3401 {}; 3402 case( n,e)3402 case(_,_) 3403 3403 equation 3404 3404 true = n>0;
Note: See TracChangeset
for help on using the changeset viewer.