mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 05:35:49 -04:00
Make sure standard output gets flushed
This commit is contained in:
parent
f39479b948
commit
1303bf4c00
2 changed files with 3 additions and 3 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue