Skip to content

Commit 9a589d3

Browse files
committed
<fix> precision for output FORCE-TOTAL is sometime too low such as case 201_NO_DJ_CF_CS_GaAs, set it to 8 as default.
<range> force module
1 parent e220ed0 commit 9a589d3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

source/src_pw/forces.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,7 @@ void Forces::print(const std::string &name, const ModuleBase::matrix &f, bool ry
264264

265265
GlobalV::ofs_running << " " << std::setw(8) << "atom" << std::setw(15) << "x" << std::setw(15) << "y" << std::setw(15) << "z" << std::endl;
266266
GlobalV::ofs_running << std::setiosflags(ios::showpos);
267+
GlobalV::ofs_running << std::setprecision(8);
267268

268269
const double fac = ModuleBase::Ry_to_eV / 0.529177;
269270

0 commit comments

Comments
 (0)