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); }
static void mdlGetTimeOfNextVarHit(SimStruct *S) { time_T timeOfNextHit = ssGetT(S) /* + offset */ ; ssSetTNext(S, timeOfNextHit); }