Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
tracing router existence with the new parser
authorschnorr <schnorr@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Fri, 1 Oct 2010 15:20:48 +0000 (15:20 +0000)
committerschnorr <schnorr@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Fri, 1 Oct 2010 15:20:48 +0000 (15:20 +0000)
details:
- a router is represented in the trace as a host with no power

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@8324 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/surf/surf_routing.c

index 51ac317..ab33612 100644 (file)
@@ -132,6 +132,9 @@ static void parse_S_router(void) {
       "no defined method \"set_processing_unit\" in \"%s\"",current_routing->name);
   (*(current_routing->set_processing_unit))(current_routing,A_surfxml_router_id);
   xbt_dict_set(global_routing->where_network_elements,A_surfxml_router_id,(void*)current_routing,NULL); 
+#ifdef HAVE_TRACING
+  TRACE_surf_host_declaration (A_surfxml_router_id, 0);
+#endif
 }
 
 /**