Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Adjust code after rebase.
[simgrid.git] / src / surf / network_interface.cpp
index 359e820..c87e5e0 100644 (file)
@@ -153,6 +153,7 @@ void LinkImpl::turn_off()
 
 void LinkImpl::seal()
 {
+  xbt_assert(this->get_model(), "Cannot seal Link(%s) without setting the Network model first", this->get_cname());
   Resource::seal();
   simgrid::s4u::Link::on_creation(*get_iface());
 }