1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-11-10 07:55:35 +00:00

Hadrons: scheduler debug less verbose

This commit is contained in:
Antonin Portelli 2018-03-02 19:20:01 +00:00
parent 480708b9a0
commit 90f4000935
2 changed files with 5 additions and 5 deletions

View File

@ -130,7 +130,7 @@ void GeneticScheduler<V, T>::nextGeneration(void)
{ {
initPopulation(); initPopulation();
} }
LOG(Debug) << "Starting population:\n" << *this << std::endl; //LOG(Debug) << "Starting population:\n" << *this << std::endl;
// random mutations // random mutations
//PARALLEL_FOR_LOOP //PARALLEL_FOR_LOOP
@ -138,7 +138,7 @@ void GeneticScheduler<V, T>::nextGeneration(void)
{ {
doMutation(); doMutation();
} }
LOG(Debug) << "After mutations:\n" << *this << std::endl; //LOG(Debug) << "After mutations:\n" << *this << std::endl;
// mating // mating
//PARALLEL_FOR_LOOP //PARALLEL_FOR_LOOP
@ -146,14 +146,14 @@ void GeneticScheduler<V, T>::nextGeneration(void)
{ {
doCrossover(); doCrossover();
} }
LOG(Debug) << "After mating:\n" << *this << std::endl; //LOG(Debug) << "After mating:\n" << *this << std::endl;
// grim reaper // grim reaper
auto it = population_.begin(); auto it = population_.begin();
std::advance(it, par_.popSize); std::advance(it, par_.popSize);
population_.erase(it, population_.end()); 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 ///////////////////////////////////////////////////////////// // evolution steps /////////////////////////////////////////////////////////////

View File

@ -549,7 +549,7 @@ VirtualMachine::Program VirtualMachine::schedule(const GeneticPar &par)
gen = 0; gen = 0;
do do
{ {
LOG(Debug) << "Generation " << gen << ":" << std::endl; //LOG(Debug) << "Generation " << gen << ":" << std::endl;
scheduler.nextGeneration(); scheduler.nextGeneration();
if (gen != 0) if (gen != 0)
{ {