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
[surf] Fix bad cast, CpuL07::getModel() is a CpuL07Model* not a HostL07Model*
[simgrid.git]
/
src
/
surf
/
host_ptask_L07.cpp
diff --git
a/src/surf/host_ptask_L07.cpp
b/src/surf/host_ptask_L07.cpp
index
45148d9
..
20b4d50
100644
(file)
--- a/
src/surf/host_ptask_L07.cpp
+++ b/
src/surf/host_ptask_L07.cpp
@@
-465,9
+465,9
@@
Action *CpuL07::execute(double size)
host_list[0] = sg_host_by_name(getName());
flops_amount[0] = size;
host_list[0] = sg_host_by_name(getName());
flops_amount[0] = size;
- return static_cast<
HostL07Model*>(getModel())->executeParallelTask(1, host_list,
- flops_amount,
-
bytes_amount, -1);
+ return static_cast<
CpuL07Model*>(getModel())
+ ->p_hostModel
+
->executeParallelTask( 1, host_list, flops_amount,
bytes_amount, -1);
}
Action *CpuL07::sleep(double duration)
}
Action *CpuL07::sleep(double duration)