Commit 3936385f authored by Georgios Dagkakis's avatar Georgios Dagkakis

enhancement in main script so that it does not crash when it runs for 0 (only...

enhancement in main script so that it does not crash when it runs for 0 (only warning) ans trace can be viewed
parent 3925a2c6
......@@ -1296,7 +1296,7 @@ def main(argv=[], input_data=None):
endList.append(exit.timeLastEntityLeft)
# identify the time of the last event
if G.env.now!=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'): #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