Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Reset the clock to 0 in surf_exit so that it gets zeroed in MSG_clean for people...
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Sat, 27 Oct 2007 09:21:27 +0000 (09:21 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Sat, 27 Oct 2007 09:21:27 +0000 (09:21 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4902 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/surf/surf.c

index 92c0864..46b0c8e 100644 (file)
@@ -417,6 +417,7 @@ void surf_exit(void)
     free(path_name);
     path_name = NULL;
   }
     free(path_name);
     path_name = NULL;
   }
+  NOW=0; /* Just in case the user plans to restart the simulation afterward */
   xbt_exit();
 }
 
   xbt_exit();
 }