Commit 8c7bf210 authored by Jakub Klinkovský's avatar Jakub Klinkovský
Browse files

Fixed formatting of floating-point numbers in solver monitor

parent c2067017
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -81,12 +81,14 @@ void IterativeSolverMonitor< Real, Index > :: refresh( bool force )
      const int line_width = this->getLineWidth();
      int free = line_width ? line_width : std::numeric_limits<int>::max();

      // FIXME: std::setw sets only minimum width, so free should be adjusted dynamically if more chars are actually written
      std::cout << std::setprecision( 5 );
      std::cout << " ELA:" << std::setw( 8 ) << this->getElapsedTime()
                << " T:"   << std::setw( 8 ) << this->time;
      free -= 24;
      if( this->timeStep > 0 ) {
         std::cout << " TAU:" << std::setw( 5 ) << this->timeStep;
         free -= 10;
         std::cout << " TAU:" << std::setw( 8 ) << this->timeStep;
         free -= 13;
      }

      if( this->stage.length() && free > 5 ) {