Skip to content

Commit 9300a86

Browse files
dyzhengdyzheng
andauthored
Fix: screen output redundant (#6621)
Co-authored-by: dyzheng <[email protected]>
1 parent cb5225a commit 9300a86

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)