Skip to content

add #TOTAL ENERGY# for each ion step #6338

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
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
1 change: 1 addition & 0 deletions source/module_io/output_log.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ void output_convergence_after_scf(const bool &convergence, double& energy, std::
{
ofs_running << " #SCF IS CONVERGED#" << std::endl;
// ofs_running << " final etot is " << std::setprecision(11) << energy * ModuleBase::Ry_to_eV << " eV" << std::endl;
ofs_running << " #TOTAL ENERGY# " << std::setprecision(11) << energy * ModuleBase::Ry_to_eV << " eV" << std::endl;
}
else
{
Expand Down
2 changes: 1 addition & 1 deletion source/source_esolver/esolver_dp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ void ESolver_DP::runner(UnitCell& ucell, const int istep)
const double fact_v = rescaling / (ucell.omega * ModuleBase::Ry_to_eV);

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

for (int i = 0; i < ucell.nat; ++i)
Expand Down
2 changes: 1 addition & 1 deletion source/source_esolver/esolver_lj.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ void ESolver_LJ::runner(UnitCell& ucell, const int istep)
}

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

// Post treatment for virial
Expand Down
Loading