Skip to content

Commit d1bcb15

Browse files
author
dyzheng
committed
Fix: screen output redundant
1 parent cb5225a commit d1bcb15

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

source/module_elecstate/elecstate_print.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,8 @@ void print_scf_iterinfo(const std::string& ks_solver,
146146
{
147147
buf += FmtCore::format(td_fmt[i].c_str(), values[i]);
148148
}
149-
std::cout << buf<< std::fflush;
149+
std::cout << buf;
150+
std::cout.flush();
150151
}
151152
/// @brief print and check for band energy and occupations
152153
/// @param ofs

0 commit comments

Comments
 (0)