From adeb4277a79745ef9340127e173e1ceb40e973ab Mon Sep 17 00:00:00 2001
From: mkirsz <s1351949@sms.ed.ac.uk>
Date: Sat, 21 Dec 2024 17:01:30 +0000
Subject: [PATCH] one less computation

---
 src/m_tadah_base.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/m_tadah_base.cpp b/src/m_tadah_base.cpp
index 2efa8f1..bdba357 100644
--- a/src/m_tadah_base.cpp
+++ b/src/m_tadah_base.cpp
@@ -153,8 +153,8 @@ stress_force_predict(const StDescriptors &std, Structure &st_)
       const force_type fij = fpredict(fdij,aedi);
       const force_type fji = fpredict(fdji,aedj);
 
-      v += fpredict(fdij,aedi);
-      v -= fpredict(fdji,aedj);
+      v += fij;
+      v -= fji;
 
       for (size_t x=0; x<3; ++x) {
         for (size_t y=x; y<3; ++y) {
-- 
GitLab