Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add a new module allowing to interact with the platform directly
[simgrid.git] / src / surf / surfxml_parseplatf.c
index 3d2ff37..9cfd8ea 100644 (file)
@@ -8,6 +8,7 @@
 #include "xbt/log.h"
 #include "xbt/str.h"
 #include "xbt/dict.h"
+#include "simgrid/platf.h"
 #include "surf/surfxml_parse_private.h"
 #include "surf/surf_private.h"
 
@@ -75,7 +76,6 @@ static char *trace_id = NULL;
 
 static void parse_Stag_trace(void)
 {
-  surf_parse_models_setup(); /* ensure that the models are created after the last <config> tag. See comment in simgrid.dtd */
   trace_id = xbt_strdup(A_surfxml_trace_id);
   trace_file = xbt_strdup(A_surfxml_trace_file);
   surf_parse_get_double(&trace_periodicity, A_surfxml_trace_periodicity);
@@ -103,8 +103,6 @@ static void parse_Etag_trace(void)
 
 static void parse_Stag_trace_connect(void)
 {
-  surf_parse_models_setup(); /* ensure that the models are created after the last <config> tag. See comment in simgrid.dtd */
-
   xbt_assert(xbt_dict_get_or_null
               (traces_set_list, A_surfxml_trace_connect_trace),
               "Cannot connect trace %s to %s: trace unknown",
@@ -144,10 +142,10 @@ static void parse_Stag_trace_connect(void)
 
 /* Call the right C function when we see the <AS> tags */
 static void parse_S_AS(void) {
-  routing_AS_init(A_surfxml_AS_id, A_surfxml_AS_routing);
+  sg_platf_new_AS_open(A_surfxml_AS_id, A_surfxml_AS_routing);
 }
 static void parse_E_AS(void) {
-  routing_AS_end(A_surfxml_AS_id);
+  sg_platf_new_AS_close();
 }