Fix progressbar for mpi runs

parent 779dfaa7
...@@ -80,6 +80,9 @@ public: ...@@ -80,6 +80,9 @@ public:
#else #else
m_terminalSize = 0; m_terminalSize = 0;
#endif #endif
if (m_terminalSize > 300)
// Probably an error due to MPI
m_terminalSize = MIN_TERM_SIZE;
} }
/** /**
...@@ -213,7 +216,7 @@ private: ...@@ -213,7 +216,7 @@ private:
m_rotatingBar = (m_rotatingBar + 1) % 4; m_rotatingBar = (m_rotatingBar + 1) % 4;
} }
static const int MIN_TERM_SIZE = 20; static const int MIN_TERM_SIZE = 80;
static const int TIME_SIZE = 8; static const int TIME_SIZE = 8;
}; };
......
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