X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/1fbd3090585708e05603e5c708c6a37412227f51..c527cde5e1ee1bfe22dd33b3bbb77aaae8bcdcb1:/src/surf/sg_platf.cpp diff --git a/src/surf/sg_platf.cpp b/src/surf/sg_platf.cpp index 9294509daa..c002ec7d21 100644 --- a/src/surf/sg_platf.cpp +++ b/src/surf/sg_platf.cpp @@ -111,8 +111,7 @@ void sg_platf_new_host(sg_platf_host_cbarg_t host) if (host->speed_trace) cpu->setSpeedTrace(host->speed_trace); - simgrid::surf::HostImpl* hi = new simgrid::surf::HostImpl(surf_host_model, host->id, mount_list); - hi->attach(h); + new simgrid::surf::HostImpl(h, mount_list); xbt_lib_set(storage_lib, host->id, ROUTING_STORAGE_HOST_LEVEL, (void*)mount_list); mount_list = nullptr;