X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/be5b1909ae03fa305b6aff11ef16e19de82966b5..872d65264714799b25eb231609c3f05bae3d03dc:/src/surf/instr_routing.cpp diff --git a/src/surf/instr_routing.cpp b/src/surf/instr_routing.cpp index 1512a6a2c6..ad7511791a 100644 --- a/src/surf/instr_routing.cpp +++ b/src/surf/instr_routing.cpp @@ -6,7 +6,7 @@ #include "src/instr/instr_private.h" -#include "simgrid/s4u/as.hpp" +#include "src/surf/AsImpl.hpp" #include "simgrid/s4u/engine.hpp" #include "surf/surf.h" #include "src/surf/xml/platf_private.hpp" @@ -152,7 +152,7 @@ static void recursiveGraphExtraction (simgrid::s4u::As *as, container_t containe xbt_dict_cursor_t cursor = NULL; char *edge_name; - as->getGraph(graph, nodes, edges); + static_cast(as)->getGraph(graph, nodes, edges); xbt_dict_foreach(edges,cursor,edge_name,edge) { linkContainers( PJ_container_get((const char*) edge->src->data), @@ -269,7 +269,7 @@ void sg_instr_new_host(sg_platf_host_cbarg_t host) } double current_speed_state; - xbt_dynar_get_cpy(host->speed_peak, host->pstate, ¤t_speed_state); + xbt_dynar_get_cpy(host->speed_per_pstate, host->pstate, ¤t_speed_state); new_pajeSetVariable (0, container, speed, current_speed_state); } if (TRACE_uncategorized()){ @@ -459,7 +459,7 @@ static void recursiveXBTGraphExtraction (xbt_graph_t graph, xbt_dict_t nodes, xb } } - as->getGraph(graph, nodes, edges); + static_cast(as)->getGraph(graph, nodes, edges); } xbt_graph_t instr_routing_platform_graph (void)