diff --git a/Compiler/Template/CodegenCpp.tpl b/Compiler/Template/CodegenCpp.tpl index 5071a6abb06..d9a7c58bb3d 100644 --- a/Compiler/Template/CodegenCpp.tpl +++ b/Compiler/Template/CodegenCpp.tpl @@ -9806,7 +9806,7 @@ case SIMCODE(modelInfo = MODELINFO(__)) then case SUBPARTITION(subClock=SUBCLOCK(factor=RATIONAL(nom=fnom, denom=fres), shift=RATIONAL(nom=snom, denom=sres))) then << <%preExp%> - _clockInterval[<%i%>] = <%intvl%> * <%fnom%>.0 / <%fres%>.0; + _clockInterval[<%i%>] =0.0/* <%intvl%> * <%fnom%>.0 / <%fres%>.0*/; _clockShift[<%i%>] = 0.0;/*<%snom%>.0 / <%sres%>.0;*/ _clockTime[<%i%>] = _simTime; /*+ _clockShift[<%i%>] * _clockInterval[<%i%>];*/ <%i%> ++;