Skip to content

Commit 82537ed

Browse files
committed
Fix: update kinetic energy when all atoms are fixed
1 parent ccd2874 commit 82537ed

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

source/module_md/md_func.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,7 @@ double current_temp(double& kinetic,
454454
if (3 * natom == frozen_freedom)
455455
{
456456
return 0.0;
457+
kinetic = 0.0;
457458
}
458459
else
459460
{

0 commit comments

Comments
 (0)