Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix example: seal zone
authorBruno Donassolo <bruno.donassolo@inria.fr>
Mon, 10 May 2021 12:24:40 +0000 (14:24 +0200)
committerBruno Donassolo <bruno.donassolo@inria.fr>
Mon, 10 May 2021 12:24:40 +0000 (14:24 +0200)
examples/cpp/clusters-multicpu/s4u-clusters-multicpu.cpp

index b0775fe..49becd8 100644 (file)
@@ -118,6 +118,8 @@ create_hostzone(const sg4::NetZone* zone, const std::vector<unsigned int>& /*coo
     /* link DOWN, connection from outer to CPU */
     host_zone->add_route(nullptr, host->get_netpoint(), nullptr, nullptr, std::vector<sg4::Link*>{link_down}, false);
   }
+  /* seal newly created netzone */
+  host_zone->seal();
   return std::make_pair(host_zone->get_netpoint(), gateway->get_netpoint());
 }