From 288609da2372bbddd029141b616af67e6160e714 Mon Sep 17 00:00:00 2001 From: Adrien Gougeon Date: Tue, 11 Jul 2023 12:28:48 +0200 Subject: [PATCH 1/1] remove unused battery parameters --- include/simgrid/plugins/battery.hpp | 3 --- src/plugins/battery.cpp | 2 -- 2 files changed, 5 deletions(-) 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) -- 2.20.1