Removed SC RPower 48 from FEP kernel
[alexxy/gromacs.git] / src / gromacs / listed_forces / pairs.cpp
index c3fee5885fdedea0ce10946799e3a007daafa47c..bffbcb42ef23ab6e07015e35d459d58fcabb66d0 100644 (file)
@@ -188,12 +188,11 @@ static real free_energy_evaluate_single(real        r2,
     real       fscal_vdw[2], fscal_elec[2];
     real       velec[2], vvdw[2];
     int        i, ntab;
-    const real half        = 0.5;
-    const real minusOne    = -1.0;
-    const real one         = 1.0;
-    const real two         = 2.0;
-    const real six         = 6.0;
-    const real fourtyeight = 48.0;
+    const real half     = 0.5;
+    const real minusOne = -1.0;
+    const real one      = 1.0;
+    const real two      = 2.0;
+    const real six      = 6.0;
 
     qq[0]  = qqA;
     qq[1]  = qqB;
@@ -207,14 +206,6 @@ static real free_energy_evaluate_single(real        r2,
         rpm2 = r2 * r2;   /* r4 */
         rp   = rpm2 * r2; /* r6 */
     }
-    else if (sc_r_power == fourtyeight)
-    {
-        rp   = r2 * r2 * r2; /* r6 */
-        rp   = rp * rp;      /* r12 */
-        rp   = rp * rp;      /* r24 */
-        rp   = rp * rp;      /* r48 */
-        rpm2 = rp / r2;      /* r46 */
-    }
     else
     {
         rp = std::pow(r2, half * sc_r_power); /* not currently supported as input, but can handle it */
@@ -248,12 +239,6 @@ static real free_energy_evaluate_single(real        r2,
         {
             sigma_pow[i] = sigma6[i];
         }
-        else if (sc_r_power == fourtyeight)
-        {
-            sigma_pow[i] = sigma6[i] * sigma6[i];       /* sigma^12 */
-            sigma_pow[i] = sigma_pow[i] * sigma_pow[i]; /* sigma^24 */
-            sigma_pow[i] = sigma_pow[i] * sigma_pow[i]; /* sigma^48 */
-        }
         else
         { /* not really supported as input, but in here for testing the general case*/
             sigma_pow[i] = std::pow(sigma2[i], sc_r_power / 2);