Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Allow to add a disk to a host after a load_platform from xml
[simgrid.git] / src / surf / HostImpl.cpp
index 8f3925b142f6989ec92297fde98a23ef2da24ea8..f07e935f249b03a329c41e5c2f1aba41ba402a72 100644 (file)
@@ -207,6 +207,8 @@ s4u::Disk* HostImpl::create_disk(const std::string& name, double read_bandwidth,
 {
   auto disk = piface_.get_netpoint()->get_englobing_zone()->get_disk_model()->create_disk(name, read_bandwidth,
                                                                                           write_bandwidth);
 {
   auto disk = piface_.get_netpoint()->get_englobing_zone()->get_disk_model()->create_disk(name, read_bandwidth,
                                                                                           write_bandwidth);
+  if (sealed_)
+    disk->seal();
   return disk->set_host(&piface_)->get_iface();
 }
 
   return disk->set_host(&piface_)->get_iface();
 }