X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/bbe1883648093b16f04fc6b017ff745ffa22de5f..aef8fd294476c4bebf7c61d934183845e7f11d77:/src/surf/xml/surfxml_parseplatf.cpp diff --git a/src/surf/xml/surfxml_parseplatf.cpp b/src/surf/xml/surfxml_parseplatf.cpp index f95634f31b..810b4f52b3 100644 --- a/src/surf/xml/surfxml_parseplatf.cpp +++ b/src/surf/xml/surfxml_parseplatf.cpp @@ -107,9 +107,7 @@ void parse_platform_file(const std::string& file) simgrid::s4u::Host* host = simgrid::s4u::Host::by_name_or_null(elm.second); xbt_assert(host, "Host %s undefined", elm.second.c_str()); - simgrid::kernel::resource::Cpu* cpu = host->pimpl_cpu; - - cpu->set_state_profile(profile); + host->set_state_profile(profile); } for (auto const& elm : trace_connect_list_host_speed) { @@ -118,9 +116,7 @@ void parse_platform_file(const std::string& file) simgrid::s4u::Host* host = simgrid::s4u::Host::by_name_or_null(elm.second); xbt_assert(host, "Host %s undefined", elm.second.c_str()); - simgrid::kernel::resource::Cpu* cpu = host->pimpl_cpu; - - cpu->set_speed_profile(profile); + host->set_speed_profile(profile); } for (auto const& elm : trace_connect_list_link_avail) {