Skip to content

Commit

Permalink
Fix: update kinetic energy when all atoms are fixed (#5729)
Browse files Browse the repository at this point in the history
* Fix: update kinetic energy when all atoms are fixed

* fix wrong order
  • Loading branch information
YuLiu98 authored Dec 14, 2024
1 parent e35b4bf commit 89df0f2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions source/module_md/md_func.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,7 @@ double current_temp(double& kinetic,
{
if (3 * natom == frozen_freedom)
{
kinetic = 0.0;
return 0.0;
}
else
Expand Down

0 comments on commit 89df0f2

Please sign in to comment.