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 / host_clm03.cpp
index 77cb7cbc230b056e58e5a0512e2c2f32a048a5f5..acac6204923d519ea0aaea252c4fe8d2ecd4d488 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2013-2022. The SimGrid Team. All rights reserved.          */
+/* Copyright (c) 2013-2023. The SimGrid Team. All rights reserved.          */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
@@ -23,7 +23,7 @@ void surf_host_model_init_current_default()
   engine->get_netzone_root()->set_host_model(host_model);
   surf_cpu_model_init_Cas01();
   surf_disk_model_init_S19();
-  surf_network_model_init_LegrandVelho();
+  simgrid_network_models().by_name("LV08").init();
 }
 
 void surf_host_model_init_compound()
@@ -63,12 +63,6 @@ Action* HostCLM03Model::io_stream(s4u::Host* src_host, DiskImpl* src_disk, s4u::
   auto system = net_model->get_maxmin_system();
   auto* action = net_model->communicate(src_host, dst_host, size, -1, true);
 
-  size_t nb_disks       = 0;
-  if (src_disk != nullptr)
-    nb_disks++;
-  if (dst_disk != nullptr)
-    nb_disks++;
-
   // We don't want to apply the network model bandwidth factor to the I/O constraints
   double bw_factor = net_model->get_bandwidth_factor();
   if (src_disk != nullptr){