X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/5de55298b58930e1c9f0d92bafa39e91ce55fc05..c7f3c30ef936dacf568b44009d3948c8dc64228c:/src/surf/network_vivaldi.c diff --git a/src/surf/network_vivaldi.c b/src/surf/network_vivaldi.c index 7b9b40bb10..3be1d3172a 100644 --- a/src/surf/network_vivaldi.c +++ b/src/surf/network_vivaldi.c @@ -1,6 +1,5 @@ -/* $Id$ */ - -/* Copyright (c) 2004 Arnaud Legrand. All rights reserved. */ +/* Copyright (c) 2010. The SimGrid Team. + * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ @@ -216,6 +215,10 @@ static void netviva_parse_host(void) { coord->y = atof(xbt_dynar_get_as(ctn, 1, char*)); coord->h = atof(xbt_dynar_get_as(ctn, 2, char*)); +#ifdef HAVE_TRACING + TRACE_surf_host_vivaldi_parse (A_surfxml_host_id, coord->x, coord->y, coord->h); +#endif + xbt_dynar_free(&ctn); xbt_dict_set(coords, A_surfxml_host_id,coord,NULL); } @@ -265,6 +268,12 @@ void surf_network_model_init_Vivaldi(const char *filename) update_model_description(surf_network_model_description, "Vivaldi", surf_network_model); +#ifdef HAVE_TRACING + __TRACE_host_variable(0,"vivaldi_x",0,"declare"); + __TRACE_host_variable(0,"vivaldi_y",0,"declare"); + __TRACE_host_variable(0,"vivaldi_h",0,"declare"); +#endif + xbt_cfg_set_string(_surf_cfg_set, "routing", "none"); routing_model_create(sizeof(double), NULL); }