Bug 459

Summary: Simulator::Run does nothing after Simulator::Stop is called
Product: ns-3 Reporter: Mathieu Lacage <mathieu.lacage>
Component: coreAssignee: ns-bugs <ns-bugs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P5    
Version: pre-release   
Hardware: All   
OS: All   
Attachments: allow calling Simulator::Run after Simulator::Stop is called.

Description Mathieu Lacage 2009-01-06 09:42:06 UTC
Created attachment 346 [details]
allow calling Simulator::Run after Simulator::Stop is called.

If I run this:
Simulator::Stop (Seconds (1.0));
Simulator::Run ();
std::cout << Simulator::Now () << std::endl;
Simulator::Stop (Seconds (1.0));
Simulator::Run ();
std::cout << Simulator::Now () << std::endl;

I get:
1.0s
1.0s

I expected to get:
1.0s
2.0s

The attached patch gets me the expected output. I will check it in in a day or two.
Comment 1 Mathieu Lacage 2009-01-09 02:54:49 UTC
changeset a68a42e667f6