@@ -587,6 +587,7 @@ algorithm
587587 DAE . Exp exp,e1;
588588 DAE . Exp scalar "scalar" ;
589589 String s;
590+ Integer p;
590591 case (_,{h},_,_,_,_,true ,_,_)
591592 equation
592593 BackendDAE . EQUATION (exp= exp as DAE . CREF (ty = DAE . T_BOOL (_,_)),scalar= scalar) = BackendDAEUtil . equationNth(eqs,h- 1 );
@@ -607,7 +608,6 @@ algorithm
607608 then s;
608609
609610 case (_,{h},_,_,_,_,true ,zc_exps,offset)
610- local Integer p;
611611 equation
612612 BackendDAE . EQUATION (exp= exp,scalar= scalar) = BackendDAEUtil . equationNth(eqs,h- 1 );
613613 s = stringAppend("/* We are adding a new discrete variable for " ,"" );
@@ -640,7 +640,6 @@ algorithm
640640 ((e1,_))= Expression . replaceExp(scalar,condition,DAE . RCONST (0 . 0 ));
641641 then s;
642642 case (_,{h},_,_,_,_,false ,zc_exps,offset)
643- local Integer p;
644643 equation
645644 BackendDAE . EQUATION (exp= exp,scalar= scalar) = BackendDAEUtil . equationNth(eqs,h- 1 );
646645 s = stringAppend("/* We are adding a new discrete variable for " ,"" );
0 commit comments