From aef8fd294476c4bebf7c61d934183845e7f11d77 Mon Sep 17 00:00:00 2001 From: Frederic Suter Date: Thu, 24 Oct 2019 12:28:47 +0200 Subject: [PATCH] remove direct accesses to pimpl_cpu --- src/surf/xml/surfxml_parseplatf.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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) { -- 2.20.1