One additional function is needed in the Or1ksim library to
support temporal decoupling. The or1ksim_run
already allows the user to specify a duration for which the
simulation will run. A function, is added to change the duration of a
run already in progress.
void or1ksim_reset_duration( double duration );
or1ksim_reset_duration
resets the
duration of a call to or1ksim_run
which
is already in progress. The argument is the duration for which
the run should continue from the current
time (i.e. not from the time of the original call to
or1ksim_run
).
This function is needed because upcalls may lead to a synchronization, increasing the time for which the ISS may run before needing resynchronization.
This function is a standard part of the Or1ksim 0.3.0 and Or1ksim 0.4.0 libraries.