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?

Categories:
Solution Number:
S20659
Last Modified:
2013-08-20
Issue

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?

Solution

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.

Environment

DES Kernel->Error Messages/Logs,Logs and Errors,DES Kernel->Process Modeling/Coding

Attachments
NOTICE: Riverbed® product names have changed. Please refer to the Product List for a complete list of product names.
Can't find an answer? Create a case