From: Martin Quinson Date: Fri, 25 Dec 2015 20:39:32 +0000 (+0100) Subject: cosmetics and informative comments X-Git-Tag: v3_13~1390 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/02ab34d66cc774d632b28630bf773ab89c0810b4 cosmetics and informative comments --- diff --git a/src/surf/host_clm03.cpp b/src/surf/host_clm03.cpp index 21fd55e5e0..d74a419202 100644 --- a/src/surf/host_clm03.cpp +++ b/src/surf/host_clm03.cpp @@ -31,8 +31,7 @@ void surf_host_model_init_current_default(void) 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() diff --git a/src/surf/host_ptask_L07.cpp b/src/surf/host_ptask_L07.cpp index dcf61d6122..7c53f9b480 100644 --- a/src/surf/host_ptask_L07.cpp +++ b/src/surf/host_ptask_L07.cpp @@ -42,8 +42,7 @@ void surf_host_model_init_ptask_L07(void) 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); } @@ -54,7 +53,6 @@ HostL07Model::HostL07Model() : HostModel() { 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); diff --git a/src/surf/surf_c_bindings.cpp b/src/surf/surf_c_bindings.cpp index 5dc27ce46e..8002a4511a 100644 --- a/src/surf/surf_c_bindings.cpp +++ b/src/surf/surf_c_bindings.cpp @@ -37,8 +37,7 @@ void surf_presolve(void) 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; @@ -51,6 +50,8 @@ void surf_presolve(void) } } } + + 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); }