surf_cpu_model_init_Cas01();
surf_network_model_init_LegrandVelho();
- simgrid::surf::Model *model = surf_host_model;
- xbt_dynar_push(all_existing_models, &model);
+ xbt_dynar_push(all_existing_models, &surf_host_model);
}
void surf_host_model_init_compound()
sg_platf_postparse_add_cb(host_add_traces);
surf_host_model = new simgrid::surf::HostL07Model();
- simgrid::surf::Model *model = surf_host_model;
- xbt_dynar_push(all_existing_models, &model);
+ xbt_dynar_push(all_existing_models, &surf_host_model);
}
if (!ptask_maxmin_system)
ptask_maxmin_system = lmm_system_new(1);
p_maxminSystem = ptask_maxmin_system;
- surf_host_model = NULL;
surf_network_model = new NetworkL07Model(this,ptask_maxmin_system);
surf_cpu_model_pm = new CpuL07Model(this,ptask_maxmin_system);
simgrid::surf::Model *model = NULL;
unsigned int iter;
- XBT_DEBUG ("First Run! Let's \"purge\" events and put models in the right state");
-
+ XBT_DEBUG ("Consume all trace events occurring before the starting time.");
while ((next_event_date = tmgr_history_next_date(history)) != -1.0) {
if (next_event_date > NOW)
break;
}
}
}
+
+ XBT_DEBUG ("Set every models in the right state by updating them to 0.");
xbt_dynar_foreach(all_existing_models, iter, model)
model->updateActionsState(NOW, 0.0);
}