Commit f912e55
fix: reset the atom group gradients and rerun calc_gradients
Some CVCs, like coordnum and distanceInv, calculate the gradients in
calc_value(). The use of debugGradients should avoid changing the
gradients. Since cvc::debug_gradients would run calc_value() multiple
times, it would be better to reset the gradients buffer and rerun
calc_value() and then calc_gradients().1 parent 5a7978a commit f912e55
1 file changed
+8
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
745 | 745 | | |
746 | 746 | | |
747 | 747 | | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
748 | 754 | | |
749 | 755 | | |
750 | 756 | | |
751 | | - | |
752 | 757 | | |
| 758 | + | |
| 759 | + | |
753 | 760 | | |
754 | 761 | | |
755 | 762 | | |
| |||
0 commit comments