X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/28874d42ad02de8c1ec9d26b34086b377371d2c1..8d9b5170925fd2a7873c619c5d6cdff8616f9bfc:/src/surf/sg_platf.cpp diff --git a/src/surf/sg_platf.cpp b/src/surf/sg_platf.cpp index 6319f16675..eef11b53d6 100644 --- a/src/surf/sg_platf.cpp +++ b/src/surf/sg_platf.cpp @@ -198,8 +198,8 @@ void sg_platf_new_cluster(simgrid::kernel::routing::ClusterCreationArgs* cluster simgrid::s4u::Link* loopback = current_zone->create_link(loopback_name, std::vector{cluster->loopback_bw}) ->set_sharing_policy(simgrid::s4u::Link::SharingPolicy::FATPIPE) - ->set_latency(cluster->loopback_lat); - loopback->seal(); + ->set_latency(cluster->loopback_lat) + ->seal(); current_zone->add_private_link_at(current_zone->node_pos(rankId), {loopback->get_impl(), loopback->get_impl()}); } @@ -209,8 +209,8 @@ void sg_platf_new_cluster(simgrid::kernel::routing::ClusterCreationArgs* cluster std::string limiter_name = std::string(link_id) + "_limiter"; XBT_DEBUG("", limiter_name.c_str(), cluster->limiter_link); - simgrid::s4u::Link* limiter = current_zone->create_link(limiter_name, std::vector{cluster->limiter_link}); - limiter->seal(); + simgrid::s4u::Link* limiter = + current_zone->create_link(limiter_name, std::vector{cluster->limiter_link})->seal(); current_zone->add_private_link_at(current_zone->node_pos_with_loopback(rankId), {limiter->get_impl(), limiter->get_impl()}); @@ -240,8 +240,8 @@ void sg_platf_new_cluster(simgrid::kernel::routing::ClusterCreationArgs* cluster simgrid::s4u::Link* backbone = current_zone->create_link(backbone_name, std::vector{cluster->bb_bw}) ->set_sharing_policy(cluster->bb_sharing_policy) - ->set_latency(cluster->bb_lat); - backbone->seal(); + ->set_latency(cluster->bb_lat) + ->seal(); routing_cluster_add_backbone(backbone->get_impl()); }