From 3cfe66e7d8b512b2153688ccca3aca992ac8148e Mon Sep 17 00:00:00 2001 From: Gabriel Corona Date: Tue, 15 Dec 2015 14:04:25 +0100 Subject: [PATCH] [surf] Fix bad cast, CpuL07::getModel() is a CpuL07Model* not a HostL07Model* Close https://github.com/mquinson/simgrid/issues/41 --- src/surf/host_ptask_L07.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/surf/host_ptask_L07.cpp b/src/surf/host_ptask_L07.cpp index 45148d9ccc..20b4d50ede 100644 --- 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; - return static_cast(getModel())->executeParallelTask(1, host_list, - flops_amount, - bytes_amount, -1); + return static_cast(getModel()) + ->p_hostModel + ->executeParallelTask( 1, host_list, flops_amount, bytes_amount, -1); } Action *CpuL07::sleep(double duration) -- 2.20.1