Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
finish the cleanup of the netcard list container
[simgrid.git] / src / kernel / routing / NetCard.cpp
index e45e174..d875e89 100644 (file)
@@ -22,7 +22,7 @@ NetCard::NetCard(std::string name, NetCard::Type componentType, NetZoneImpl* net
 {
   if (netzone_p != nullptr)
     id_ = netzone_p->addComponent(this);
-  xbt_dict_set(netcards_dict, name.c_str(), static_cast<void*>(this), nullptr);
+  simgrid::s4u::Engine::instance()->netcardRegister(this);
   simgrid::kernel::routing::NetCard::onCreation(this);
 }
 }