Commit 4a8b0ae1 authored by Jason Rhinelander's avatar Jason Rhinelander

Got rid of influence debugging variable

parent 4125ed4a
......@@ -105,8 +105,6 @@ class Voter : public PositionalAgent {
*/
virtual void advance() override;
static long DEBUG_influence_attempts;
protected:
/** The map of friends of this voter. */
std::unordered_map<eris_id_t, SharedMember<Voter>> friends_;
......
......@@ -297,8 +297,7 @@ int main(int argc, char **argv) {
auto now = steady_clock::now();
double speed = 1.0/duration_cast<duration<double>>(now - last).count();
last = now;
std::cout << "\e[2;0HIteration " << i << " (" << speed << " iterations/s; " << Voter::DEBUG_influence_attempts << " influence attempts):\n";
Voter::DEBUG_influence_attempts = 0;
std::cout << "\e[2;0HIteration " << i << " (" << speed << " iterations/s\n";
/* std::cout << "Parties: ";
auto poll = pollster->conductPoll();
for (auto &p : { p_left, p_centre, p_right }) {
......
......@@ -5,8 +5,6 @@
namespace voting {
long Voter::DEBUG_influence_attempts = 0;
bool Voter::isFriend(eris_id_t voter) const {
return friends().count(voter) > 0;
}
......@@ -40,7 +38,6 @@ double Voter::conviction() const {
}
bool Voter::attemptInfluence(const SharedMember<Voter> &by, double drift) {
DEBUG_influence_attempts++;
double my_conv = conviction();
double their_conv = by->conviction();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment