Skip to content

Commit d7f852a

Browse files
committed
add #TOTAL ENERGY# for each ion step
1 parent 9631697 commit d7f852a

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

source/module_io/output_log.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ void output_convergence_after_scf(const bool &convergence, double& energy, std::
1919
{
2020
ofs_running << " #SCF IS CONVERGED#" << std::endl;
2121
// ofs_running << " final etot is " << std::setprecision(11) << energy * ModuleBase::Ry_to_eV << " eV" << std::endl;
22+
ofs_running << " #TOTAL ENERGY# " << std::setprecision(11) << energy * ModuleBase::Ry_to_eV << " eV" << std::endl;
2223
}
2324
else
2425
{

source/source_esolver/esolver_dp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ void ESolver_DP::runner(UnitCell& ucell, const int istep)
9797
const double fact_v = rescaling / (ucell.omega * ModuleBase::Ry_to_eV);
9898

9999
dp_potential *= fact_e;
100-
GlobalV::ofs_running << " final etot is " << std::setprecision(11) << dp_potential * ModuleBase::Ry_to_eV << " eV"
100+
GlobalV::ofs_running << " #TOTAL ENERGY# " << std::setprecision(11) << dp_potential * ModuleBase::Ry_to_eV << " eV"
101101
<< std::endl;
102102

103103
for (int i = 0; i < ucell.nat; ++i)

source/source_esolver/esolver_lj.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ void ESolver_LJ::runner(UnitCell& ucell, const int istep)
7777
}
7878

7979
lj_potential /= 2.0;
80-
GlobalV::ofs_running << " final etot is " << std::setprecision(11) << lj_potential * ModuleBase::Ry_to_eV << " eV"
80+
GlobalV::ofs_running << " #TOTAL ENERGY# " << std::setprecision(11) << lj_potential * ModuleBase::Ry_to_eV << " eV"
8181
<< std::endl;
8282

8383
// Post treatment for virial

0 commit comments

Comments
 (0)