Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Die on unwanted function calls.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Mon, 31 May 2021 21:01:42 +0000 (23:01 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Tue, 1 Jun 2021 13:32:21 +0000 (15:32 +0200)
include/simgrid/kernel/routing/EmptyZone.hpp
src/kernel/routing/EmptyZone.cpp

index c1eb7f7..b1f820c 100644 (file)
@@ -7,6 +7,7 @@
 #define SURF_ROUTING_NONE_HPP_
 
 #include <simgrid/kernel/routing/NetZoneImpl.hpp>
+#include <xbt/asserts.h>
 
 namespace simgrid {
 namespace kernel {
@@ -25,7 +26,7 @@ public:
 
   void get_local_route(const NetPoint* src, const NetPoint* dst, Route* into, double* latency) override
   {
-    /* There can't be route in an Empty zone */
+    xbt_die("There can't be route in an Empty zone");
   }
 
   void get_graph(const s_xbt_graph_t* graph, std::map<std::string, xbt_node_t, std::less<>>* /*nodes*/,
index e33e1af..256bc97 100644 (file)
@@ -18,7 +18,7 @@ namespace routing {
 void EmptyZone::get_graph(const s_xbt_graph_t* /*graph*/, std::map<std::string, xbt_node_t, std::less<>>* /*nodes*/,
                           std::map<std::string, xbt_edge_t, std::less<>>* /*edges*/)
 {
-  XBT_ERROR("No routing no graph");
+  xbt_die("No routing no graph");
 }
 } // namespace routing
 } // namespace kernel