From 32b2173475cd6596fd437abe76bbebe5a0dbb3da Mon Sep 17 00:00:00 2001 From: degomme Date: Fri, 24 Jun 2016 15:47:41 +0200 Subject: [PATCH 1/1] This model can't handle 0 sized msg with 0 computation Tell users to use ptask_L07 for this Should address https://github.com/simgrid/simgrid/issues/87 --- src/surf/HostImpl.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/surf/HostImpl.cpp b/src/surf/HostImpl.cpp index c19465cba8..24411bcfba 100644 --- a/src/surf/HostImpl.cpp +++ b/src/surf/HostImpl.cpp @@ -108,6 +108,8 @@ Action *HostModel::executeParallelTask(int host_nb, THROW_UNIMPLEMENTED; /* This model does not implement parallel tasks for more than 2 hosts */ #undef cost_or_zero xbt_free(host_list); + if(action==nullptr) + xbt_die("This model doesn't support tasks with 0 comm and 0 computation, please use ptak_L07 instead"); return action; } -- 2.20.1