Commit bf11baa7 authored by peastman's avatar peastman
Browse files

Merge pull request #1509 from peastman/nan

Fixed error with PME when particles are exactly on top of each other
parents 88eee8cd 04165dc1
...@@ -25,6 +25,8 @@ ...@@ -25,6 +25,8 @@
tempForce = -prefactor*(erfAlphaR-alphaR*expAlphaRSqr*TWO_OVER_SQRT_PI); tempForce = -prefactor*(erfAlphaR-alphaR*expAlphaRSqr*TWO_OVER_SQRT_PI);
tempEnergy += -prefactor*erfAlphaR; tempEnergy += -prefactor*erfAlphaR;
} }
else
includeInteraction = false;
} }
else { else {
#if HAS_LENNARD_JONES #if HAS_LENNARD_JONES
......
...@@ -30,6 +30,8 @@ ...@@ -30,6 +30,8 @@
tempForce = -prefactor*(erfAlphaR-alphaR*expAlphaRSqr*TWO_OVER_SQRT_PI); tempForce = -prefactor*(erfAlphaR-alphaR*expAlphaRSqr*TWO_OVER_SQRT_PI);
tempEnergy += -prefactor*erfAlphaR; tempEnergy += -prefactor*erfAlphaR;
} }
else
includeInteraction = false;
} }
else { else {
#if HAS_LENNARD_JONES #if HAS_LENNARD_JONES
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment