Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Further factorization: introduce ModuleGroup::init_from_flag_value()
[simgrid.git] / src / surf / host_clm03.cpp
index 70ac1557437e97981adc6f7ce0c4043a105f0d9a..5fc159498c2dfd17bc3ad2d7dc7aaf0a01ab8d70 100644 (file)
@@ -21,20 +21,11 @@ SIMGRID_REGISTER_HOST_MODEL(
       auto* engine    = simgrid::kernel::EngineImpl::get_instance();
       engine->add_model(host_model);
       engine->get_netzone_root()->set_host_model(host_model);
-      simgrid_cpu_models().by_name("Cas01").init();
-      simgrid_disk_models().by_name("S19").init();
-      simgrid_network_models().by_name("LV08").init();
-    });
 
-SIMGRID_REGISTER_HOST_MODEL(compound,
-                            "Host model that is automatically chosen if you change the CPU, network, and disk models",
-                            []() {
-                              auto host_model =
-                                  std::make_shared<simgrid::kernel::resource::HostCLM03Model>("Host_CLM03");
-                              auto* engine = simgrid::kernel::EngineImpl::get_instance();
-                              engine->add_model(host_model);
-                              engine->get_netzone_root()->set_host_model(host_model);
-                            });
+      simgrid_cpu_models().init_from_flag_value();
+      simgrid_disk_models().init_from_flag_value();
+      simgrid_network_models().init_from_flag_value();
+    });
 
 namespace simgrid::kernel::resource {