[Ns-bugs] [Bug 459] New: Simulator::Run does nothing after Simulator::Stop is called

code@nsnam.ece.gatech.edu code at nsnam.ece.gatech.edu
Tue Jan 6 06:42:06 PST 2009


http://www.nsnam.org/bugzilla/show_bug.cgi?id=459

           Summary: Simulator::Run does nothing after Simulator::Stop is
                    called
           Product: ns-3
           Version: pre-release
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P5
         Component: simulation core
        AssignedTo: ns-bugs at isi.edu
        ReportedBy: mathieu.lacage at sophia.inria.fr
   Estimated Hours: 0.0


Created an attachment (id=346)
 --> (http://www.nsnam.org/bugzilla/attachment.cgi?id=346)
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.


-- 
Configure bugmail: http://www.nsnam.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Ns-bugs mailing list