X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/7c047878cb2905079a6a0544f1a15134ae3ab3a6..32b2173475cd6596fd437abe76bbebe5a0dbb3da:/src/surf/HostImpl.cpp diff --git a/src/surf/HostImpl.cpp b/src/surf/HostImpl.cpp index d5105eab0b..24411bcfba 100644 --- a/src/surf/HostImpl.cpp +++ b/src/surf/HostImpl.cpp @@ -31,7 +31,7 @@ simgrid::xbt::Extension HostImpl::EXTENSION_ID; /********* * Model * *********/ -HostImpl *HostModel::createHost(const char *name, NetCard *netElm, Cpu *cpu){ +HostImpl *HostModel::createHost(const char *name, routing::NetCard *netElm, Cpu *cpu){ xbt_dynar_t storageList = (xbt_dynar_t)xbt_lib_get_or_null(storage_lib, name, ROUTING_STORAGE_HOST_LEVEL); HostImpl *host = new simgrid::surf::HostImpl(surf_host_model, name, storageList, cpu); @@ -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; }