message: Core: Fixed bug that caused method to crash when n_iterations_log was zero.
diff: @@ -26,7 +26,10 @@ namespace Engine
  // TODO: is this a good idea?
  this->n_iterations = this->parameters->n_iterations;
  this->n_iterations_log = this->parameters->n_iterations_log;
  + if (this->n_iterations_log > 0)
  this->n_log = this->n_iterations / this->n_iterations_log;
  + else
  + this->n_log = 0;
  // Setup timings
  for (int i = 0; i<7; ++i) this->t_iterations.push_back(system_clock::now());
  @@ -85,7 +88,10 @@ namespace Engine
  this->t_iterations.push_back(system_clock::now());
  // Log Output every n_iterations_log steps
  - if ( this->iteration>0 && 0 == fmod( this->iteration, this->n_iterations_log))
  + bool log = false;
  + if (this->n_iterations_log > 0)
  + log = this->iteration > 0 && 0 == fmod(this->iteration, this->n_iterations_log);
  + if ( log )
  {
  ++step;
  this->Message_Step();
  