e.load_platform(options[0]);
- chord_init(); // FIXME: inline me
+ /* Global initialization of the Chord simulation. */
+ nb_keys = 1U << nb_bits;
+ XBT_DEBUG("Sets nb_keys to %d", nb_keys);
+
+ HostChord::EXTENSION_ID = simgrid::s4u::Host::extension_create<HostChord>();
- for (auto const& host : simgrid::s4u::Engine::getInstance()->get_all_hosts())
++ for (auto const& host : simgrid::s4u::Engine::get_instance()->get_all_hosts())
+ host->extension_set(new HostChord(host));
e.register_actor<Node>("node");
e.load_deployment(options[1]);
namespace s4u {
- void XBT_ATTRIB_DEPRECATED_v322(
- "simgrid::s4u::getStorageList() is deprecated in favor of Engine::getAllStorages(). Please switch before v3.22")
- getStorageList(std::map<std::string, Storage*>* whereTo)
+ void getStorageList(std::map<std::string, Storage*>* whereTo)
{
- for (auto const& s : simgrid::s4u::Engine::getInstance()->get_all_storages())
+ for (auto const& s : simgrid::s4u::Engine::get_instance()->get_all_storages())
whereTo->insert({s->get_name(), s});
}
*************/
extern std::map<std::string, simgrid::surf::StorageType*> storage_types;
- static void check_disk_attachment()
+ void check_disk_attachment()
{
- for (auto const& s : simgrid::s4u::Engine::getInstance()->get_all_storages()) {
+ for (auto const& s : simgrid::s4u::Engine::get_instance()->get_all_storages()) {
simgrid::kernel::routing::NetPoint* host_elm = sg_netpoint_by_name_or_null(s->getImpl()->getHost().c_str());
if (not host_elm)
surf_parse_error(std::string("Unable to attach storage ") + s->get_cname() + ": host " +