Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[mc] do not ignore MC_ASSERT in replay mode
[simgrid.git] / src / kernel / routing / NetZoneImpl.cpp
index babab5a07bdce6551d3981aade51cfebae63aaca..670720c3cf61d550270e5d7540929e433629220e 100644 (file)
@@ -105,8 +105,7 @@ simgrid::s4u::Host* NetZoneImpl::create_host(const char* name, const std::vector
   surf_cpu_model_pm->create_cpu(res, speed_per_pstate, coreAmount);
 
   if (props != nullptr)
   surf_cpu_model_pm->create_cpu(res, speed_per_pstate, coreAmount);
 
   if (props != nullptr)
-    for (auto const& kv : *props)
-      res->set_property(kv.first, kv.second);
+    res->set_properties(*props);
 
   simgrid::s4u::Host::on_creation(*res); // notify the signal
 
 
   simgrid::s4u::Host::on_creation(*res); // notify the signal