예제 #1
0
static void mdlGetTimeOfNextVarHit(SimStruct *S)
{
  debug("( trace )");

  if (delta_time == 0) {
    debug("Received a DELTA step of zero, progressing time by %e."
         , MINIMUM_DELTA);
    delta_time = MINIMUM_DELTA;
  }

  ssSetTNext(S, ssGetT(S) + (time_T) delta_time);
}
예제 #2
0
 static void mdlGetTimeOfNextVarHit(SimStruct *S)
 {
     time_T timeOfNextHit = ssGetT(S) /* + offset */ ;
     ssSetTNext(S, timeOfNextHit);
 }