Bug 459 - Simulator::Run does nothing after Simulator::Stop is called
Simulator::Run does nothing after Simulator::Stop is called
Status: RESOLVED FIXED
Product: ns-3
Classification: Unclassified
Component: core
pre-release
All All
: P5 normal
Assigned To: ns-bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-01-06 09:42 UTC by Mathieu Lacage
Modified: 2009-01-09 02:54 UTC (History)
0 users

See Also:


Attachments
allow calling Simulator::Run after Simulator::Stop is called. (821 bytes, patch)
2009-01-06 09:42 UTC, Mathieu Lacage
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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