Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
more chaining for CPUs too
[simgrid.git] / src / surf / sg_platf.cpp
index b1700c3..2c22bfb 100644 (file)
@@ -77,10 +77,8 @@ void sg_platf_new_host(const simgrid::kernel::routing::HostCreationArgs* args)
   host->pimpl_->set_disks(args->disks, host);
 
   /* Change from the defaults */
-  if (args->state_trace)
-    host->set_state_profile(args->state_trace);
-  if (args->speed_trace)
-    host->set_speed_profile(args->speed_trace);
+  host->set_state_profile(args->state_trace)->set_speed_profile(args->speed_trace);
+
   if (not args->coord.empty())
     new simgrid::kernel::routing::vivaldi::Coords(host->get_netpoint(), args->coord);