mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 06:05:58 -04:00
Adding new line upon progress bar completion.
This commit is contained in:
parent
f52664b29f
commit
6de340e39a
2 changed files with 8 additions and 1 deletions
|
|
@ -60,7 +60,8 @@ ProgressBar::set_value(double val) {
|
|||
|
||||
// write the bar
|
||||
std::cout << '\r' << bar << std::flush;
|
||||
|
||||
if (val >= 100.0) { std::cout << "\n"; }
|
||||
|
||||
// reset the bar value
|
||||
bar = "";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue