X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/121e1dc6ee0462b6f6f1f1570b0f48c61ee4ff9a..de57b34916659892d2dc26edabf552253afe2c18:/src/kernel/routing/NetPoint.cpp diff --git a/src/kernel/routing/NetPoint.cpp b/src/kernel/routing/NetPoint.cpp index 616fdc5eac..3670c7099c 100644 --- a/src/kernel/routing/NetPoint.cpp +++ b/src/kernel/routing/NetPoint.cpp @@ -7,7 +7,6 @@ #include "simgrid/s4u/Engine.hpp" #include "simgrid/s4u/Host.hpp" -#include "surf/surf_routing.h" XBT_LOG_NEW_DEFAULT_SUBCATEGORY(surf_route, surf, "Routing part of surf"); @@ -22,7 +21,7 @@ NetPoint::NetPoint(std::string name, NetPoint::Type componentType, NetZoneImpl* { if (netzone_p != nullptr) id_ = netzone_p->addComponent(this); - simgrid::s4u::Engine::instance()->netpointRegister(this); + simgrid::s4u::Engine::getInstance()->netpointRegister(this); simgrid::kernel::routing::NetPoint::onCreation(this); } } @@ -35,5 +34,5 @@ NetPoint::NetPoint(std::string name, NetPoint::Type componentType, NetZoneImpl* */ simgrid::kernel::routing::NetPoint* sg_netpoint_by_name_or_null(const char* name) { - return simgrid::s4u::Engine::instance()->netpointByNameOrNull(name); + return simgrid::s4u::Engine::getInstance()->getNetpointByNameOrNull(name); }