From d4f0462c466eb6d50596502787c34de8a0beeefc Mon Sep 17 00:00:00 2001 From: sunliang98 <1700011430@pku.edu.cn> Date: Tue, 2 Apr 2024 16:57:31 +0800 Subject: [PATCH] Fix the hexadecimal output in MD with OFDFT --- source/module_esolver/esolver_of_tool.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/module_esolver/esolver_of_tool.cpp b/source/module_esolver/esolver_of_tool.cpp index df44a329c81..1db9334cc7d 100644 --- a/source/module_esolver/esolver_of_tool.cpp +++ b/source/module_esolver/esolver_of_tool.cpp @@ -400,7 +400,7 @@ void ESolver_OF::print_info() // if (this->pdEdphi_[0][i] < minPot) minPot = this->pdEdphi_[0][i]; // if (this->pdEdphi_[0][i] > maxPot) maxPot = this->pdEdphi_[0][i]; // } - std::cout << std::setw(6) << this->iter_ << std::setw(22) << std::setiosflags(std::ios::scientific) + std::cout << std::setw(6) << this->iter_ << std::setw(22) << std::scientific << std::setprecision(12) << this->energy_current_ / 2. << std::setw(12) << std::setprecision(3) << this->mu_[0] / 2. << std::setw(12) << this->theta_[0] << std::setw(12) << this->normdLdphi_ << std::setw(12) << (this->energy_current_ - this->energy_last_) / 2. << std::endl;