Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add a add_route for hosts, without gateways
[simgrid.git] / examples / cpp / network-nonlinear / s4u-network-nonlinear.cpp
index c403d2b..0e1c821 100644 (file)
@@ -131,8 +131,7 @@ static void load_platform()
   link->set_latency(10e-6)->seal();
 
   /* create routes between nodes */
-  zone->add_route(sender->get_netpoint(), receiver->get_netpoint(), nullptr, nullptr,
-                  {{link, sg4::LinkInRoute::Direction::UP}}, true);
+  zone->add_route(sender, receiver, {{link, sg4::LinkInRoute::Direction::UP}}, true);
   zone->seal();
 
   /* create actors Sender/Receiver */