Commit 04165dc1 authored by peastman's avatar peastman
Browse files

Fixed error with PME when particles are exactly on top of each other

parent 88eee8cd
......@@ -25,6 +25,8 @@
tempForce = -prefactor*(erfAlphaR-alphaR*expAlphaRSqr*TWO_OVER_SQRT_PI);
tempEnergy += -prefactor*erfAlphaR;
}
else
includeInteraction = false;
}
else {
#if HAS_LENNARD_JONES
......
......@@ -30,6 +30,8 @@
tempForce = -prefactor*(erfAlphaR-alphaR*expAlphaRSqr*TWO_OVER_SQRT_PI);
tempEnergy += -prefactor*erfAlphaR;
}
else
includeInteraction = false;
}
else {
#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