Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Move samples in private (anonymous) namespace.
[simgrid.git] / src / smpi / internals / SmpiHost.cpp
index 380c72d..7ef8657 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2017. The SimGrid Team. All rights reserved.               */
+/* Copyright (c) 2017-2018. The SimGrid Team. All rights reserved.          */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
@@ -6,9 +6,11 @@
 #include "SmpiHost.hpp"
 #include "simgrid/s4u/VirtualMachine.hpp"
 #include "smpi_utils.hpp"
+#include "xbt/config.hpp"
 
 #include <string>
 #include <vector>
+#include <xbt/log.h>
 
 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(smpi_host, smpi, "Logging specific to SMPI (host)");
 
@@ -95,21 +97,21 @@ SmpiHost::SmpiHost(simgrid::s4u::Host *ptr) : host(ptr)
   if (orecv_string != nullptr) {
     orecv_parsed_values = parse_factor(orecv_string);
   } else {
-    orecv_parsed_values = parse_factor(xbt_cfg_get_string("smpi/or"));
+    orecv_parsed_values = parse_factor(simgrid::config::get_value<std::string>("smpi/or"));
   }
 
   const char* osend_string = host->getProperty("smpi/os");
   if (osend_string != nullptr) {
     osend_parsed_values = parse_factor(osend_string);
   } else {
-    osend_parsed_values = parse_factor(xbt_cfg_get_string("smpi/os"));
+    osend_parsed_values = parse_factor(simgrid::config::get_value<std::string>("smpi/os"));
   }
 
   const char* oisend_string = host->getProperty("smpi/ois");
   if (oisend_string != nullptr) {
     oisend_parsed_values = parse_factor(oisend_string);
   } else {
-    oisend_parsed_values = parse_factor(xbt_cfg_get_string("smpi/ois"));
+    oisend_parsed_values = parse_factor(simgrid::config::get_value<std::string>("smpi/ois"));
   }
 }