From: Gabriel Corona Date: Tue, 15 Dec 2015 13:04:25 +0000 (+0100) Subject: [surf] Fix bad cast, CpuL07::getModel() is a CpuL07Model* not a HostL07Model* X-Git-Tag: v3_13~1445 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/3cfe66e7d8b512b2153688ccca3aca992ac8148e [surf] Fix bad cast, CpuL07::getModel() is a CpuL07Model* not a HostL07Model* Close https://github.com/mquinson/simgrid/issues/41 --- 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)