Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Help running properly after last XML parsing/DTD changes.
authoralegrand <alegrand@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Wed, 5 Mar 2008 01:51:07 +0000 (01:51 +0000)
committeralegrand <alegrand@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Wed, 5 Mar 2008 01:51:07 +0000 (01:51 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@5254 48e7efb5-ca39-0410-a469-dd3cf9ba447f

testsuite/surf/surf_usage2.c

index e068a45..0a1f0ab 100644 (file)
@@ -47,7 +47,15 @@ void test(char *platform)
   surf_action_t commAB = NULL;
   double now = -1.0;
 
   surf_action_t commAB = NULL;
   double now = -1.0;
 
-  surf_workstation_model_init_CLM03(platform);
+  int workstation_id =
+      find_model_description(surf_workstation_model_description,
+                            surf_workstation_model_description_size,
+                            "CLM03");
+
+  surf_workstation_model_description[workstation_id].model_init(platform);
+  parse_platform_file(platform);
+  if (surf_workstation_model_description[workstation_id].create_ws)
+    surf_workstation_model_description[workstation_id].create_ws();
 
   /*********************** WORKSTATION ***********************************/
   workstationA =
 
   /*********************** WORKSTATION ***********************************/
   workstationA =