Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
resource file of context usage project
[simgrid.git] / testsuite / surf / surf_usage2.c
index 7ca1c67..2adbbad 100644 (file)
@@ -42,9 +42,6 @@ void test(char *platform)
   surf_action_t actionB = NULL;
   surf_action_t actionC = NULL;
   surf_action_t commAB = NULL;
-  e_surf_action_state_t stateActionA;
-  e_surf_action_state_t stateActionB;
-  e_surf_action_state_t stateActionC;
   double now = -1.0;
 
   surf_workstation_resource_init_CLM03(platform);
@@ -106,7 +103,6 @@ void test(char *platform)
 
   DEBUG0("Simulation Terminated\n");
 
-  surf_finalize();
 }
 
 int main(int argc, char **argv)
@@ -114,8 +110,11 @@ int main(int argc, char **argv)
   surf_init(&argc, argv);      /* Initialize some common structures */
   if(argc==1) {
      fprintf(stderr,"Usage : %s platform.txt\n",argv[0]);
+     surf_exit();
      return 1;
   }
   test(argv[1]);
+
+  surf_exit();
   return 0;
 }