diff --git a/src/point-to-point/helper/point-to-point-helper.cc b/src/point-to-point/helper/point-to-point-helper.cc index 9e8f7fc53..9b5c3df8a 100644 --- a/src/point-to-point/helper/point-to-point-helper.cc +++ b/src/point-to-point/helper/point-to-point-helper.cc @@ -47,9 +47,6 @@ PointToPointHelper::PointToPointHelper () m_queueFactory.SetTypeId ("ns3::DropTailQueue"); m_deviceFactory.SetTypeId ("ns3::PointToPointNetDevice"); m_channelFactory.SetTypeId ("ns3::PointToPointChannel"); -#ifdef NS3_MPI - m_remoteChannelFactory.SetTypeId ("ns3::PointToPointRemoteChannel"); -#endif } void @@ -78,9 +75,6 @@ void PointToPointHelper::SetChannelAttribute (std::string n1, const AttributeValue &v1) { m_channelFactory.Set (n1, v1); -#ifdef NS3_MPI - m_remoteChannelFactory.Set (n1, v1); -#endif } void @@ -273,11 +267,13 @@ PointToPointHelper::Install (Ptr a, Ptr b) } if (useNormalChannel) { + m_channelFactory.SetTypeId ("ns3::PointToPointChannel"); channel = m_channelFactory.Create (); } else { - channel = m_remoteChannelFactory.Create (); + m_channelFactory.SetTypeId ("ns3::PointToPointRemoteChannel"); + channel = m_channelFactory.Create (); Ptr mpiRecA = CreateObject (); Ptr mpiRecB = CreateObject (); mpiRecA->SetReceiveCallback (MakeCallback (&PointToPointNetDevice::Receive, devA)); diff --git a/src/point-to-point/helper/point-to-point-helper.h b/src/point-to-point/helper/point-to-point-helper.h index a401f665c..052081327 100644 --- a/src/point-to-point/helper/point-to-point-helper.h +++ b/src/point-to-point/helper/point-to-point-helper.h @@ -184,9 +184,6 @@ private: ObjectFactory m_queueFactory; //!< Queue Factory ObjectFactory m_channelFactory; //!< Channel Factory ObjectFactory m_deviceFactory; //!< Device Factory -#ifdef NS3_MPI - ObjectFactory m_remoteChannelFactory; //!< Remote Channel Factory -#endif }; } // namespace ns3