X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/fc8be6494932e66a359ae5d47103a566cc8234f4..ff498d2432d650dc50282b04e3bd175a588eef8c:/src/kernel/routing/FullZone.cpp diff --git a/src/kernel/routing/FullZone.cpp b/src/kernel/routing/FullZone.cpp index 3c1e64826a..779c949776 100644 --- a/src/kernel/routing/FullZone.cpp +++ b/src/kernel/routing/FullZone.cpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2009-2018. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2009-2019. The SimGrid Team. All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ @@ -16,7 +16,7 @@ XBT_LOG_NEW_DEFAULT_SUBCATEGORY(surf_route_full, surf, "Routing part of surf"); namespace simgrid { namespace kernel { namespace routing { -FullZone::FullZone(NetZoneImpl* father, std::string name, resource::NetworkModel* netmodel) +FullZone::FullZone(NetZoneImpl* father, const std::string& name, resource::NetworkModel* netmodel) : RoutedZone(father, name, netmodel) { } @@ -30,13 +30,13 @@ void FullZone::seal() routing_table_ = new RouteCreationArgs*[table_size * table_size](); /* Add the loopback if needed */ - if (surf_network_model->loopback_ && hierarchy_ == RoutingMode::base) { + if (network_model_->loopback_ && hierarchy_ == RoutingMode::base) { for (unsigned int i = 0; i < table_size; i++) { - RouteCreationArgs* e_route = TO_ROUTE_FULL(i, i); - if (not e_route) { - e_route = new RouteCreationArgs(); - e_route->link_list.push_back(surf_network_model->loopback_); - TO_ROUTE_FULL(i, i) = e_route; + RouteCreationArgs* route = TO_ROUTE_FULL(i, i); + if (not route) { + route = new RouteCreationArgs(); + route->link_list.push_back(network_model_->loopback_); + TO_ROUTE_FULL(i, i) = route; } } }