--- a/src/simulator/simulator.cc Tue Nov 10 07:45:32 2009 +0100
+++ b/src/simulator/simulator.cc Tue Nov 10 10:31:51 2009 +0100
@@ -297,6 +297,12 @@
NS_FATAL_ERROR ("It is not possible to set the implementation after calling any Simulator:: function. Call Simulator::SetImplementation earlier or after Simulator::Destroy.");
}
*PeekImpl () = impl;
+ // Set the default scheduler
+ ObjectFactory factory;
+ StringValue s;
+ g_schedTypeImpl.GetValue (s);
+ factory.SetTypeId (s.Get ());
+ impl->SetScheduler (factory.Create<Scheduler> ());
//
// Note: we call LogSetTimePrinter _after_ creating the implementation
// object because the act of creation can trigger calls to the logging