Make sure standard output gets flushed

This commit is contained in:
Paul Romano 2020-01-08 16:11:20 -06:00
parent f39479b948
commit 1303bf4c00
2 changed files with 3 additions and 3 deletions

View file

@ -57,7 +57,7 @@ void output(const std::string& message, std::ostream& out, int indent)
while (i_start < length) {
if (length - i_start < line_len) {
// Remainder of message will fit on line
out << message.substr(i_start) << '\n';
out << message.substr(i_start) << std::endl;
break;
} else {

View file

@ -92,7 +92,7 @@ void title()
// Write number of OpenMP threads
std::cout << " OpenMP Threads | " << omp_get_max_threads() << '\n';
#endif
std::cout << '\n';
std::cout << std::endl;
}
//==============================================================================
@ -126,7 +126,7 @@ header(const char* msg, int level) {
// Print header based on verbosity level.
if (settings::verbosity >= level)
std::cout << '\n' << out << "\n\n";
std::cout << '\n' << out << "\n" << std::endl;
}
//==============================================================================