Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
cosmetics
authorFrederic Suter <frederic.suter@cc.in2p3.fr>
Mon, 1 Mar 2021 23:25:28 +0000 (00:25 +0100)
committerFrederic Suter <frederic.suter@cc.in2p3.fr>
Tue, 2 Mar 2021 18:52:28 +0000 (19:52 +0100)
include/simgrid/kernel/routing/NetZoneImpl.hpp
src/kernel/routing/NetZoneImpl.cpp

index a353e60..fcb69c9 100644 (file)
@@ -120,7 +120,7 @@ public:
   int get_host_count() const;
 
   /** @brief Make a host within that NetZone */
-  s4u::Host* create_host(const std::string& name, const std::vector<double>& speed_per_pstate, int core_count);
+  s4u::Host* create_host(const std::string& name, const std::vector<double>& speed_per_pstate, int core_amount);
   /** @brief Make a link within that NetZone */
   virtual s4u::Link* create_link(const std::string& name, const std::vector<double>& bandwidths,
                                  s4u::Link::SharingPolicy policy);
index dc473bd..6e5038a 100644 (file)
@@ -74,14 +74,14 @@ s4u::Link* NetZoneImpl::create_link(const std::string& name, const std::vector<d
 }
 
 s4u::Host* NetZoneImpl::create_host(const std::string& name, const std::vector<double>& speed_per_pstate,
-                                    int coreAmount)
+                                    int core_amount)
 {
   if (hierarchy_ == RoutingMode::unset)
     hierarchy_ = RoutingMode::base;
 
   auto* res = (new s4u::Host(name))->set_netpoint(new NetPoint(name, NetPoint::Type::Host, this));
 
-  surf_cpu_model_pm->create_cpu(res, speed_per_pstate, coreAmount);
+  surf_cpu_model_pm->create_cpu(res, speed_per_pstate, core_amount);
 
   return res;
 }