Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
tiny cosmetics
[simgrid.git] / src / surf / host_interface.cpp
index a639622..4585220 100644 (file)
@@ -37,9 +37,10 @@ simgrid::xbt::Extension<simgrid::Host, Host> Host::EXTENSION_ID;
  * Model *
  *********/
 Host *HostModel::createHost(const char *name,NetCard *netElm, Cpu *cpu, xbt_dict_t props){
+  xbt_dynar_t storageList = (xbt_dynar_t)xbt_lib_get_or_null(storage_lib, name, ROUTING_STORAGE_HOST_LEVEL);
+
   Host *host = new simgrid::surf::Host(surf_host_model, name, props,
-                 (xbt_dynar_t)xbt_lib_get_or_null(storage_lib, name, ROUTING_STORAGE_HOST_LEVEL),
-                 netElm, cpu);
+                 storageList, netElm, cpu);
   XBT_DEBUG("Create host %s with %ld mounted disks", name, xbt_dynar_length(host->p_storage));
   return host;
 }