X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/ceb611208adf5d508d4c111cd542337a4ac906be..479eed15b29c7f0ae552932aec832e80b2f2bb0c:/src/surf/host_clm03.cpp diff --git a/src/surf/host_clm03.cpp b/src/surf/host_clm03.cpp index 70ac155743..5fc159498c 100644 --- a/src/surf/host_clm03.cpp +++ b/src/surf/host_clm03.cpp @@ -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("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 {