Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
control better random, returning to assertion
[simgrid.git] / teshsuite / surf / surf_usage / surf_usage2.cpp
index ed16cdb..3230aa2 100644 (file)
@@ -9,7 +9,6 @@
 #include <stdio.h>
 #include "simgrid/sg_config.h"
 #include "surf/surf.h"
-#include "surf/surfxml_parse.h" // for reset callback
 #include "src/surf/surf_interface.hpp"
 #include "src/surf/cpu_interface.hpp"
 
@@ -58,8 +57,8 @@ void test(char *platform)
   XBT_DEBUG("%s : %p", sg_host_get_name(hostB), hostB);
 
   /* Let's do something on it */
-  hostA->p_cpu->execute(1000.0);
-  hostB->p_cpu->execute(1000.0);
+  hostA->pimpl_cpu->execution_start(1000.0);
+  hostB->pimpl_cpu->execution_start(1000.0);
   surf_host_sleep(hostB, 7.32);
 
   surf_network_model_communicate(surf_network_model, hostA, hostB, 150.0, -1.0);