From 8194a9fd2fc1f4410f01c98cf9414d5e752f0b78 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Tue, 6 Aug 2024 15:22:29 -0400 Subject: [PATCH] do not confuse static code analysis --- src/BPM/bond_bpm_rotational.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/BPM/bond_bpm_rotational.cpp b/src/BPM/bond_bpm_rotational.cpp index aba3709dc9..00e6f61e74 100644 --- a/src/BPM/bond_bpm_rotational.cpp +++ b/src/BPM/bond_bpm_rotational.cpp @@ -280,10 +280,8 @@ double BondBPMRotational::elastic_forces(int i1, int i2, int type, double r_mag, temp = sqrt(q21[0] * q21[0] + q21[3] * q21[3]); if (temp != 0.0) { - c = q21[0] / temp; - psi = 2.0 * acos_limit(c); + psi = 2.0 * acos_limit(q21[0] / temp); } else { - c = 0.0; psi = 0.0; }