From: Adrien Gougeon Date: Tue, 11 Jul 2023 10:28:48 +0000 (+0200) Subject: remove unused battery parameters X-Git-Tag: v3.35~113^2~5 X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/288609da2372bbddd029141b616af67e6160e714?hp=493f33d30ab8b32dbf44d9f536a31eda9ff9c1d3 remove unused battery parameters --- diff --git a/include/simgrid/plugins/battery.hpp b/include/simgrid/plugins/battery.hpp index 9d36175b5d..41d44959f4 100644 --- a/include/simgrid/plugins/battery.hpp +++ b/include/simgrid/plugins/battery.hpp @@ -86,9 +86,6 @@ private: double charge_efficiency_; double discharge_efficiency_; double initial_capacity_wh_; - int cycles_; // total complete cycles (charge + discharge) the battery can do before complete depletion of its - // capacity - double depth_of_discharge_; double energy_budget_j_; std::map host_loads_ = {}; diff --git a/src/plugins/battery.cpp b/src/plugins/battery.cpp index c2229b90ad..6967ee4250 100644 --- a/src/plugins/battery.cpp +++ b/src/plugins/battery.cpp @@ -211,8 +211,6 @@ Battery::Battery(const std::string& name, double state_of_charge, double charge_ , charge_efficiency_(charge_efficiency) , discharge_efficiency_(discharge_efficiency) , initial_capacity_wh_(initial_capacity_wh) - , cycles_(cycles) - , depth_of_discharge_(depth_of_discharge) , energy_budget_j_(initial_capacity_wh * depth_of_discharge * 3600 * cycles * 2) , capacity_wh_(initial_capacity_wh) , energy_stored_j_(state_of_charge * 3600 * initial_capacity_wh)