Events scheduled to occur beyond the end of the MAX_TIME macro (as defined in constant.h) are still currently scheduled despite the length of the event list arrays only being length MAX_TIME. This behaviour only occurs if the simulation is run for a long period of time (close to MAX_TIME) or if the waiting time distributions are set to be very long. The behaviour introduced here is that if the event is scheduled to be beyond MAX_TIME then it's not schedule and this event is ignored.
Events scheduled to occur beyond the end of the
MAX_TIME
macro (as defined inconstant.h
) are still currently scheduled despite the length of the event list arrays only being lengthMAX_TIME
. This behaviour only occurs if the simulation is run for a long period of time (close to MAX_TIME) or if the waiting time distributions are set to be very long. The behaviour introduced here is that if the event is scheduled to be beyondMAX_TIME
then it's not schedule and this event is ignored.