Bug 459 - Simulator::Run does nothing after Simulator::Stop is called
: Simulator::Run does nothing after Simulator::Stop is called
Status: RESOLVED FIXED
: ns-3
simulation core
: pre-release
: All All
: P5 normal
Assigned To:
:
:
:
:
  Show dependency treegraph
 
Reported: 2009-01-06 09:42 EDT by
Modified: 2009-01-09 02:54 EDT (History)


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


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2009-01-06 09:42:06 EDT
Created an attachment (id=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 From 2009-01-09 02:54:49 EDT -------
changeset a68a42e667f6