From 90f40009358acf4c8e75888c0425369c3dea1d4d Mon Sep 17 00:00:00 2001 From: Antonin Portelli Date: Fri, 2 Mar 2018 19:20:01 +0000 Subject: [PATCH] Hadrons: scheduler debug less verbose --- extras/Hadrons/GeneticScheduler.hpp | 8 ++++---- extras/Hadrons/VirtualMachine.cc | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/extras/Hadrons/GeneticScheduler.hpp b/extras/Hadrons/GeneticScheduler.hpp index 9a6476c3..d6f9bdee 100644 --- a/extras/Hadrons/GeneticScheduler.hpp +++ b/extras/Hadrons/GeneticScheduler.hpp @@ -130,7 +130,7 @@ void GeneticScheduler::nextGeneration(void) { initPopulation(); } - LOG(Debug) << "Starting population:\n" << *this << std::endl; + //LOG(Debug) << "Starting population:\n" << *this << std::endl; // random mutations //PARALLEL_FOR_LOOP @@ -138,7 +138,7 @@ void GeneticScheduler::nextGeneration(void) { doMutation(); } - LOG(Debug) << "After mutations:\n" << *this << std::endl; + //LOG(Debug) << "After mutations:\n" << *this << std::endl; // mating //PARALLEL_FOR_LOOP @@ -146,14 +146,14 @@ void GeneticScheduler::nextGeneration(void) { doCrossover(); } - LOG(Debug) << "After mating:\n" << *this << std::endl; + //LOG(Debug) << "After mating:\n" << *this << std::endl; // grim reaper auto it = population_.begin(); std::advance(it, par_.popSize); population_.erase(it, population_.end()); - LOG(Debug) << "After grim reaper:\n" << *this << std::endl; + //LOG(Debug) << "After grim reaper:\n" << *this << std::endl; } // evolution steps ///////////////////////////////////////////////////////////// diff --git a/extras/Hadrons/VirtualMachine.cc b/extras/Hadrons/VirtualMachine.cc index 1bd18100..1c60aa5b 100644 --- a/extras/Hadrons/VirtualMachine.cc +++ b/extras/Hadrons/VirtualMachine.cc @@ -549,7 +549,7 @@ VirtualMachine::Program VirtualMachine::schedule(const GeneticPar &par) gen = 0; do { - LOG(Debug) << "Generation " << gen << ":" << std::endl; + //LOG(Debug) << "Generation " << gen << ":" << std::endl; scheduler.nextGeneration(); if (gen != 0) {