Reverse order of conditions.
[alexxy/gromacs.git] / src / gromacs / listed_forces / pairs.cpp
index 217b4ecce269643c99ee1c957e46af2bbc216047..99a4d3dd91e7c19d164bc6197413a7433d918acb 100644 (file)
@@ -230,7 +230,7 @@ static real free_energy_evaluate_single(real
                  * Correct for this by multiplying with (1/12.0)/(1/6.0)=6.0/12.0=0.5.
                  */
                 sigma6[i] = half * c12[i] / c6[i];
-                if ((sigma6[i] < scParams.sigma6Minimum) && softcoreType == SoftcoreType::Beutler) /* for disappearing coul and vdw with soft core at the same time */
+                if (softcoreType == SoftcoreType::Beutler && (sigma6[i] < scParams.sigma6Minimum)) /* for disappearing coul and vdw with soft core at the same time */
                 {
                     sigma6[i] = scParams.sigma6Minimum;
                 }