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
This model can't handle 0 sized msg with 0 computation
[simgrid.git]
/
src
/
surf
/
HostImpl.cpp
diff --git
a/src/surf/HostImpl.cpp
b/src/surf/HostImpl.cpp
index
c19465c
..
24411bc
100644
(file)
--- 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);
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;
}
return action;
}