I get error messages stating that I cannot schedule an event for the past. I don't believe that I am scheduling my events incorrectly. What could be wrong?
I get error messages stating that I cannot schedule an event for the past. I don't believe that I am scheduling my events incorrectly. What could be wrong?
Most kernel procedures that schedule events take a simulation time argument that is of type 'double'. The error about scheduling events for the past may occur if this value is not being calculated properly.Make sure that you don't have any division by zero errors, and that the value you pass in to the event scheduling Kernel Procedures is a double and not an integer. Finally, make sure that any functions you call that return doubles are prototyped to return doubles. Otherwise, C will assume a function with a missing prototype returns an integer, which would cause problems in interpreting the return value.
DES Kernel->Error Messages/Logs,Logs and Errors,DES Kernel->Process Modeling/Coding