X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/796c472929f78dd5131c885d544579d4a6bdc425..c0a120daf1586f88922362265dc53f93228f61d9:/src/surf/disk_s19.cpp diff --git a/src/surf/disk_s19.cpp b/src/surf/disk_s19.cpp index d376ba2ad7..35ad4fd2a4 100644 --- a/src/surf/disk_s19.cpp +++ b/src/surf/disk_s19.cpp @@ -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. */ @@ -26,13 +26,12 @@ static simgrid::config::Flag cfg_disk_solver("disk/solver", * Model * *********/ -void surf_disk_model_init_S19() -{ +SIMGRID_REGISTER_DISK_MODEL(S19, "Simplistic disk model.", []() { auto disk_model = std::make_shared("Disk"); auto* engine = simgrid::kernel::EngineImpl::get_instance(); engine->add_model(disk_model); engine->get_netzone_root()->set_disk_model(disk_model); -} +}); namespace simgrid::kernel::resource { /*********