Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Remove 'using namespace foo;' in headers
[simgrid.git] / src / surf / sg_platf.cpp
index 9085bf2..e96281d 100644 (file)
@@ -62,10 +62,10 @@ void sg_platf_new_host(sg_platf_host_cbarg_t host)
 
   Cpu *cpu = surf_cpu_model_pm->createCpu(
         host->id,
-        host->power_peak,
+        host->speed_peak,
         host->pstate,
-        host->power_scale,
-        host->power_trace,
+        host->speed_scale,
+        host->speed_trace,
         host->core_amount,
         host->initial_state,
         host->state_trace,
@@ -129,7 +129,10 @@ void sg_platf_new_link(sg_platf_link_cbarg_t link){
   }
 }
 
-void sg_platf_new_cluster(sg_platf_cluster_cbarg_t cluster){
+void sg_platf_new_cluster(sg_platf_cluster_cbarg_t cluster)
+{
+  routing_new_cluster(cluster);
+
   unsigned int iterator;
   sg_platf_cluster_cb_t fun;
   xbt_dynar_foreach(sg_platf_cluster_cb_list, iterator, fun) {