BoolType mask)
{
/* check if we have to use the hardcore values */
- BoolType computeValues = mask && (lambdaFac < 1 && 0 < alphaEff);
+ BoolType computeValues = mask && (lambdaFac < 1 && 0 < alphaEff && facel != 0);
if (gmx::anyTrue(computeValues))
{
RealType lambdaFacRev = gmx::selectByMask(1 - lambdaFac, computeValues);
RealType* dvdl,
BoolType mask)
{
-
/* check if we have to use the hardcore values */
- BoolType computeValues = mask && (lambdaFac < 1 && 0 < alphaEff);
+ BoolType computeValues = mask && (lambdaFac < 1 && 0 < alphaEff && facel != 0);
if (gmx::anyTrue(computeValues))
{
RealType lambdaFacRev = gmx::selectByMask(1 - lambdaFac, computeValues);