X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/1fd664b43fb86c61c7f394c6d23de727cee5bc46..82f71f716643bf7c4ba1c63793439b753fcfa954:/src/surf/surf_routing.cpp diff --git a/src/surf/surf_routing.cpp b/src/surf/surf_routing.cpp index 69ab7ead30..35df0801cc 100644 --- a/src/surf/surf_routing.cpp +++ b/src/surf/surf_routing.cpp @@ -32,18 +32,18 @@ namespace surf { */ xbt_dict_t host_list = nullptr; -int COORD_HOST_LEVEL=0; //Coordinates level +int COORD_HOST_LEVEL = -1; //Coordinates level -int MSG_FILE_LEVEL; //Msg file level +int MSG_FILE_LEVEL = -1; //Msg file level -int SIMIX_STORAGE_LEVEL; //Simix storage level -int MSG_STORAGE_LEVEL; //Msg storage level +int SIMIX_STORAGE_LEVEL = -1; //Simix storage level +int MSG_STORAGE_LEVEL = -1; //Msg storage level xbt_lib_t as_router_lib; -int ROUTING_ASR_LEVEL; //Routing level -int COORD_ASR_LEVEL; //Coordinates level -int NS3_ASR_LEVEL; //host node for ns3 -int ROUTING_PROP_ASR_LEVEL; //Where the properties are stored +int ROUTING_ASR_LEVEL = -1; //Routing level +int COORD_ASR_LEVEL = -1; //Coordinates level +int NS3_ASR_LEVEL = -1; //host node for ns3 +int ROUTING_PROP_ASR_LEVEL = -1; //Where the properties are stored /** @brief Retrieve a netcard from its name * @@ -65,7 +65,7 @@ simgrid::surf::RoutingPlatf *routing_platf = NULL; void sg_platf_new_trace(sg_platf_trace_cbarg_t trace) { tmgr_trace_t tmgr_trace; - if (!trace->file || strcmp(trace->file, "") != 0) { + if (trace->file && strcmp(trace->file, "") != 0) { tmgr_trace = tmgr_trace_new_from_file(trace->file); } else { xbt_assert(strcmp(trace->pc_data, ""),