Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
give informative names to Host methods
[simgrid.git] / src / surf / host_clm03.cpp
index 955331a..a54d733 100644 (file)
@@ -53,7 +53,7 @@ Host *HostCLM03Model::createHost(const char *name,RoutingEdge *netElm, Cpu *cpu)
                  netElm, cpu);
   surf_callback_emit(hostCreatedCallbacks, host);
   XBT_DEBUG("Create host %s with %ld mounted disks", name, xbt_dynar_length(host->p_storage));
-  simgrid::Host::find_host(name)->set_facet(SURF_HOST_LEVEL, host);
+  simgrid::Host::by_name_or_null(name)->set_facet(SURF_HOST_LEVEL, host);
   return host;
 }