X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/ff3eea1f5a18fdbdc861435f6ea9122f075d7249..03d87ef83eada5a3cf9aacce9e6a5dc0d169aaa3:/src/surf/surfxml_parseplatf.cpp diff --git a/src/surf/surfxml_parseplatf.cpp b/src/surf/surfxml_parseplatf.cpp index 63df75bb5e..51ce41a759 100644 --- a/src/surf/surfxml_parseplatf.cpp +++ b/src/surf/surfxml_parseplatf.cpp @@ -191,6 +191,17 @@ void parse_platform_file(const char *file) cpu->set_state_trace(trace); } + xbt_dict_foreach(trace_connect_list_host_speed, cursor, trace_name, elm) { + tmgr_trace_t trace = (tmgr_trace_t) xbt_dict_get_or_null(traces_set_list, trace_name); + xbt_assert(trace, "Trace %s undefined", trace_name); + + simgrid::s4u::Host *host = sg_host_by_name(elm); + xbt_assert(host, "Host %s undefined", elm); + simgrid::surf::Cpu *cpu = host->pimpl_cpu; + + cpu->set_speed_trace(trace); + } + /* Free my data */ xbt_dict_free(&trace_connect_list_host_avail);