Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
tiny code simplification
authorMartin Quinson <martin.quinson@loria.fr>
Sun, 2 Oct 2016 16:22:02 +0000 (18:22 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Sun, 2 Oct 2016 16:22:02 +0000 (18:22 +0200)
src/surf/network_cm02.cpp
src/surf/storage_n11.cpp

index 1721e4c..e1eb56a 100644 (file)
@@ -150,8 +150,7 @@ NetworkCm02Model::NetworkCm02Model()
     xbt_die("Unsupported optimization (%s) for this model. Accepted: Full, Lazy.", optim);
   }
 
     xbt_die("Unsupported optimization (%s) for this model. Accepted: Full, Lazy.", optim);
   }
 
-  if (!maxminSystem_)
-    maxminSystem_ = lmm_system_new(selectiveUpdate_);
+  maxminSystem_ = lmm_system_new(selectiveUpdate_);
 
   routing_model_create(createLink("__loopback__", 498000000, 0.000015, SURF_LINK_FATPIPE, nullptr));
 
 
   routing_model_create(createLink("__loopback__", 498000000, 0.000015, SURF_LINK_FATPIPE, nullptr));
 
index 3fe2701..f5fd161 100644 (file)
@@ -68,8 +68,7 @@ StorageN11Model::StorageN11Model() : StorageModel() {
   XBT_DEBUG("surf_storage_model_init_internal");
 
   storage_running_action_set_that_does_not_need_being_checked = xbt_swag_new(xbt_swag_offset(*action, stateHookup_));
   XBT_DEBUG("surf_storage_model_init_internal");
 
   storage_running_action_set_that_does_not_need_being_checked = xbt_swag_new(xbt_swag_offset(*action, stateHookup_));
-  if (!maxminSystem_)
-    maxminSystem_ = lmm_system_new(false /*lazy?*/);
+  maxminSystem_ = lmm_system_new(false /*lazy?*/);
 }
 
 StorageN11Model::~StorageN11Model(){
 }
 
 StorageN11Model::~StorageN11Model(){