Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
fix build and typo
[simgrid.git] / teshsuite / surf / surf_usage2 / surf_usage2.cpp
index c1ab1b9..4419b39 100644 (file)
@@ -45,8 +45,8 @@ int main(int argc, char **argv)
     double now = surf_get_clock();
     XBT_INFO("Next Event : %g", now);
 
-    for (auto const& model : *all_existing_models) {
-      if (surf_model_running_action_set_size(model)) {
+    for (auto const& model : all_existing_models) {
+      if (model->get_started_action_set()->size() != 0) {
         XBT_DEBUG("\t Running that model");
         running = 1;
       }