Skip to content

Commit 1303bf4

Browse files
committed
Make sure standard output gets flushed
1 parent f39479b commit 1303bf4

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎src/error.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ void output(const std::string& message, std::ostream& out, int indent)
5757
while (i_start < length) {
5858
if (length - i_start < line_len) {
5959
// Remainder of message will fit on line
60-
out << message.substr(i_start) << '\n';
60+
out << message.substr(i_start) << std::endl;
6161
break;
6262

6363
} else {

‎src/output.cpp‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ void title()
9292
// Write number of OpenMP threads
9393
std::cout << " OpenMP Threads | " << omp_get_max_threads() << '\n';
9494
#endif
95-
std::cout << '\n';
95+
std::cout << std::endl;
9696
}
9797

9898
//==============================================================================
@@ -126,7 +126,7 @@ header(const char* msg, int level) {
126126

127127
// Print header based on verbosity level.
128128
if (settings::verbosity >= level)
129-
std::cout << '\n' << out << "\n\n";
129+
std::cout << '\n' << out << "\n" << std::endl;
130130
}
131131

132132
//==============================================================================

0 commit comments

Comments
 (0)