Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
save some hidden calls to Engine::get_instance
[simgrid.git] / examples / cpp / network-wifi / s4u-network-wifi.cpp
index 4ac5f12..8d30241 100644 (file)
@@ -41,7 +41,7 @@ int main(int argc, char* argv[])
   simgrid::s4u::Actor::create("receiver", station2, receiver, mailbox);
 
   /* Declare that the stations are not at the same distance from their AP */
-  auto ap = simgrid::s4u::Link::by_name("AP1");
+  auto ap = e.link_by_name("AP1");
   ap->set_host_wifi_rate(station1, 1); // The host "Station 1" uses the second level of bandwidths on that AP
   ap->set_host_wifi_rate(station2, 0); // This is perfectly useless as level 0 is used by default