Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
change way disks are managed in the XML parsing
[simgrid.git] / src / kernel / resource / DiskImpl.cpp
index a7ace5d..40391d1 100644 (file)
@@ -29,6 +29,7 @@ DiskModel::DiskModel(const std::string& name) : Model(name)
  ************/
 DiskImpl* DiskImpl::set_host(s4u::Host* host)
 {
+  xbt_assert(host, "Cannot set host, none given");
   host_ = host;
   return this;
 }