Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions source/module_esolver/esolver_dp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ namespace ModuleESolver
dp.compute(dp_potential, f, v, coord, atype, cell);

dp_potential /= ModuleBase::Ry_to_eV;
GlobalV::ofs_running << " final etot is " << std::setprecision(11) << dp_potential * ModuleBase::Ry_to_eV
<< " eV" << std::endl;

const double fact_f = ModuleBase::Ry_to_eV * ModuleBase::ANGSTROM_AU;
const double fact_v = ucell.omega * ModuleBase::Ry_to_eV;
Expand Down
2 changes: 2 additions & 0 deletions source/module_esolver/esolver_lj.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ namespace ModuleESolver
}

lj_potential /= 2.0;
GlobalV::ofs_running << " final etot is " << std::setprecision(11) << lj_potential * ModuleBase::Ry_to_eV
<< " eV" << std::endl;

// Post treatment for virial
for (int i = 0; i < 3; ++i)
Expand Down