Skip to content

Commit 6d5709c

Browse files
wenfei-liwenfei-li
authored andcommitted
Fix: indicate whether relaxation has converged (#1704)
* Fix : turn off relax_new if bfgs is used * Fix : indicate whether relaxation has converged Co-authored-by: wenfei-li <[email protected]>
1 parent b0c36c3 commit 6d5709c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

source/module_relax/relax_new/relax.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,15 @@ bool Relax::setup_gradient(const ModuleBase::matrix& force, const ModuleBase::ma
208208
GlobalV::ofs_running << "\n Threshold is = " << GlobalV::STRESS_THR << std::endl;
209209
}
210210

211+
if(force_converged)
212+
{
213+
GlobalV::ofs_running << "\n Relaxation is converged!" << std::endl;
214+
}
215+
else
216+
{
217+
GlobalV::ofs_running << "\n Relaxation is not converged yet!" << std::endl;
218+
}
219+
211220
return force_converged;
212221
}
213222

0 commit comments

Comments
 (0)