]> AND Public Git Repository - simgrid.git/blobdiff - src/kernel/routing/TorusZone.cpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Move fucntion call out of xbt_assert.
[simgrid.git] / src / kernel / routing / TorusZone.cpp
index 574153e5565dff5e67abfb20616740c9603b2637..6323da97785d0efd8ff7528aff87f9f39628af31 100644 (file)
@@ -107,8 +107,8 @@ void TorusZone::get_local_route(NetPoint* src, NetPoint* dst, RouteCreationArgs*
    * both arrays, we can easily assess whether we need to route into this dimension or not.
    */
   const unsigned int dsize = dimensions_.size();
-  unsigned int* myCoords = new unsigned int[dsize];
-  unsigned int* targetCoords= new unsigned int[dsize];
+  auto* myCoords                = new unsigned int[dsize];
+  auto* targetCoords            = new unsigned int[dsize];
   unsigned int dim_size_product = 1;
   for (unsigned i = 0; i < dsize; i++) {
     unsigned cur_dim_size = dimensions_[i];