X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/6b71bd071fd5a43e0c31a344b534f3b4dcddd5a6..fcfc0ea5eb247b371f85af9dd1e730d93f5c7f38:/src/kernel/routing/AsFloyd.cpp diff --git a/src/kernel/routing/AsFloyd.cpp b/src/kernel/routing/AsFloyd.cpp index 77047752fb..78d60e1db9 100644 --- a/src/kernel/routing/AsFloyd.cpp +++ b/src/kernel/routing/AsFloyd.cpp @@ -27,7 +27,7 @@ AsFloyd::AsFloyd(const char*name) } AsFloyd::~AsFloyd(){ - int table_size = static_cast(xbt_dynar_length(vertices_)); + int table_size = static_cast(vertices_.size()); if (linkTable_ == nullptr) // Dealing with a parse error in the file? return; /* Delete link_table */ @@ -42,7 +42,7 @@ AsFloyd::~AsFloyd(){ void AsFloyd::getRouteAndLatency(NetCard *src, NetCard *dst, sg_platf_route_cbarg_t route, double *lat) { - size_t table_size = xbt_dynar_length(vertices_); + size_t table_size = vertices_.size(); getRouteCheckParams(src, dst); @@ -85,7 +85,7 @@ void AsFloyd::getRouteAndLatency(NetCard *src, NetCard *dst, sg_platf_route_cbar void AsFloyd::addRoute(sg_platf_route_cbarg_t route) { /* set the size of table routing */ - int table_size = static_cast(xbt_dynar_length(vertices_)); + int table_size = static_cast(vertices_.size()); addRouteCheckParams(route); @@ -147,9 +147,8 @@ void AsFloyd::addRoute(sg_platf_route_cbarg_t route) } void AsFloyd::seal(){ - /* set the size of table routing */ - size_t table_size = xbt_dynar_length(vertices_); + size_t table_size = vertices_.size(); if(!linkTable_) { /* Create Cost, Predecessor and Link tables */