A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cosmetics: use C++ type names
[simgrid.git]
/
src
/
surf
/
sg_platf.cpp
diff --git
a/src/surf/sg_platf.cpp
b/src/surf/sg_platf.cpp
index
9294509
..
c002ec7
100644
(file)
--- 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);
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;
xbt_lib_set(storage_lib, host->id, ROUTING_STORAGE_HOST_LEVEL, (void*)mount_list);
mount_list = nullptr;