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
Say goodbye to last global: surf_host_model
[simgrid.git]
/
src
/
surf
/
ptask_L07.cpp
diff --git
a/src/surf/ptask_L07.cpp
b/src/surf/ptask_L07.cpp
index
6961a27
..
570e3aa
100644
(file)
--- a/
src/surf/ptask_L07.cpp
+++ b/
src/surf/ptask_L07.cpp
@@
-20,9
+20,9
@@
void surf_host_model_init_ptask_L07()
{
XBT_CINFO(xbt_cfg, "Switching to the L07 model to handle parallel tasks.");
-
surf_
host_model = new simgrid::surf::HostL07Model();
- all_existing_models.push_back(
surf_
host_model);
- models_by_type[simgrid::kernel::resource::Model::Type::HOST].push_back(
surf_
host_model);
+
auto
host_model = new simgrid::surf::HostL07Model();
+ all_existing_models.push_back(host_model);
+ models_by_type[simgrid::kernel::resource::Model::Type::HOST].push_back(host_model);
}
namespace simgrid {