src/lte/helper/lte-hex-grid-enb-topology-helper.cc
changeset 9063 32755d0516f4
parent 8690 a41a55c9a0a2
child 9787 c7e8ae541c12
equal deleted inserted replaced
9062:d14e2430213d 9063:32755d0516f4
   101 NetDeviceContainer 
   101 NetDeviceContainer 
   102 LteHexGridEnbTopologyHelper::SetPositionAndInstallEnbDevice (NodeContainer c)
   102 LteHexGridEnbTopologyHelper::SetPositionAndInstallEnbDevice (NodeContainer c)
   103 {
   103 {
   104   NS_LOG_FUNCTION (this);
   104   NS_LOG_FUNCTION (this);
   105   NetDeviceContainer enbDevs;
   105   NetDeviceContainer enbDevs;
   106   const double xydfactor = sqrt (0.75);
   106   const double xydfactor = std::sqrt (0.75);
   107   double yd = xydfactor*m_d;
   107   double yd = xydfactor*m_d;
   108   for (uint32_t n = 0; n < c.GetN (); ++n)
   108   for (uint32_t n = 0; n < c.GetN (); ++n)
   109     {
   109     {
   110       uint32_t currentSite = n / 3; 
   110       uint32_t currentSite = n / 3; 
   111       uint32_t biRowIndex = (currentSite / (m_gridWidth + m_gridWidth + 1));
   111       uint32_t biRowIndex = (currentSite / (m_gridWidth + m_gridWidth + 1));