From d1bcb15ee96808e080be810d127c27c2a52f2ec0 Mon Sep 17 00:00:00 2001 From: dyzheng Date: Mon, 20 Oct 2025 14:12:12 +0800 Subject: [PATCH] Fix: screen output redundant --- source/module_elecstate/elecstate_print.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/module_elecstate/elecstate_print.cpp b/source/module_elecstate/elecstate_print.cpp index 30b6af344b..e730bb334f 100644 --- a/source/module_elecstate/elecstate_print.cpp +++ b/source/module_elecstate/elecstate_print.cpp @@ -146,7 +146,8 @@ void print_scf_iterinfo(const std::string& ks_solver, { buf += FmtCore::format(td_fmt[i].c_str(), values[i]); } - std::cout << buf<< std::fflush; + std::cout << buf; + std::cout.flush(); } /// @brief print and check for band energy and occupations /// @param ofs