From: adrien gougeon Date: Tue, 29 Sep 2020 13:54:28 +0000 (+0200) Subject: moved a line for comprehension X-Git-Tag: v3.26~418^2~3 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/aa4c8eeb3051e5adfef317cda2ae590ca13e6f3e moved a line for comprehension --- diff --git a/src/surf/network_ns3.cpp b/src/surf/network_ns3.cpp index 76215d9a9c..824a3bf606 100644 --- a/src/surf/network_ns3.cpp +++ b/src/surf/network_ns3.cpp @@ -353,7 +353,6 @@ LinkNS3::LinkNS3(NetworkNS3Model* model, const std::string& name, double bandwid ns3::NetDeviceContainer netA; WifiZone* zone = WifiZone::by_name(name); xbt_assert(zone != 0, "Link name '%s' does not match the 'wifi_link' property of a host.", name.c_str()); - NetPointNs3* netpoint_ns3 = zone->get_host()->get_netpoint()->extension(); wifi.SetRemoteStationManager ("ns3::ConstantRateWifiManager", "ControlMode", ns3::StringValue ("HtMcs0"), @@ -382,6 +381,7 @@ LinkNS3::LinkNS3(NetworkNS3Model* model, const std::string& name, double bandwid zone->set_network(number_of_networks); zone->set_link(number_of_links); + NetPointNs3* netpoint_ns3 = zone->get_host()->get_netpoint()->extension(); int nodeNum = netpoint_ns3->node_num; if (IPV4addr.size() <= (unsigned)nodeNum) IPV4addr.resize(nodeNum + 1);