X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/7f6d6d56876d2e286d0f11bfb390af6de6c9863e..60e944f1af4491a8c921b29d5ad56ef5ecbf7960:/src/surf/surf.c diff --git a/src/surf/surf.c b/src/surf/surf.c index f1eb0f5053..09c7ccd220 100644 --- a/src/surf/surf.c +++ b/src/surf/surf.c @@ -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);