Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Kill the surf::Host subclasses (surf::HostModel remain subclassed)
[simgrid.git] / src / surf / host_ptask_L07.cpp
index 3fb1fa6..f8e7b04 100644 (file)
@@ -272,7 +272,9 @@ Action *HostL07Model::executeParallelTask(int host_nb,
 
 Host *HostL07Model::createHost(const char *name,RoutingEdge *netElm, Cpu *cpu, xbt_dict_t props)
 {
-  return new HostL07(this, name, props, netElm, cpu);
+  return new simgrid::surf::Host(this, name, props,
+                 (xbt_dynar_t)xbt_lib_get_or_null(storage_lib, name, ROUTING_STORAGE_HOST_LEVEL),
+                 netElm, cpu);
 }
 
 Action *NetworkL07Model::communicate(RoutingEdge *src, RoutingEdge *dst,