Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add model Reno, NewReno and Tahoe with ns3
[simgrid.git] / src / surf / surf.c
index f1eb0f5..8acdd35 100644 (file)
@@ -134,8 +134,8 @@ s_surf_model_description_t surf_network_model_description[] = {
 #endif
 #ifdef HAVE_NS3
   {"NS3",
-   "TODO",
-   NULL, surf_network_model_init_NS3},
+   "Use NS3 tcp model",
+       NULL, surf_network_model_init_NS3},
 #endif
   {"Reno",
    "Model using lagrange_solve instead of lmm_solve (experts only)", NULL,
@@ -457,7 +457,7 @@ double surf_solve(double max_date)
   XBT_DEBUG("Min for other resources : %f", min);
 
 
-  if(!strcmp(surf_network_model->name,"network NS3")){
+  if(surf_network_model->name && !strcmp(surf_network_model->name,"network NS3")){
        // run until min or next flow
        model_next_action_end = surf_network_model->model_private->share_resources(min);
        XBT_DEBUG("Min for NS3 : %f", model_next_action_end);