LineGeneration does check if the finalSimulationTime is equal to the...

LineGeneration does check if the finalSimulationTime is equal to the lastExitTime before deciding whether the simulation produced nothing or not
parent ad3245f3
......@@ -689,7 +689,7 @@ def main(argv=[], input_data=None):
endList.append(exit.timeLastEntityLeft)
# identify the time of the last event
if float(max(endList))!=0 and G.env.now==float('inf'): #do not let G.maxSimTime=0 so that there will be no crash
if float(max(endList))!=0 and (G.env.now==float('inf') or G.env.now == max(endList)): #do not let G.maxSimTime=0 so that there will be no crash
G.maxSimTime=float(max(endList))
else:
print "simulation ran for 0 time, something may have gone wrong"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment