const RealType maxRInvSix(c_maxRInvSix);
const RealType gmx_unused floatMin(GMX_FLOAT_MIN);
- RealType dvdlCoul(zero);
- RealType dvdlVdw(zero);
+ RealType dvdlCoul{ zero };
+ RealType dvdlVdw{ zero };
/* Lambda factor for state A, 1-lambda*/
real LFC[NSTATES], LFV[NSTATES];
preloadGapsysScaleLinpointVdW[j] = 0;
preloadGapsysScaleLinpointCoul[j] = 0;
+ typeIndices[STATE_A][j] = ntiA + typeA[jjnr[k]];
+ typeIndices[STATE_B][j] = ntiB + typeB[jjnr[k]];
for (int i = 0; i < NSTATES; i++)
{
- typeIndices[STATE_A][j] = ntiA + typeA[jjnr[k]];
- typeIndices[STATE_B][j] = ntiB + typeB[jjnr[k]];
preloadLjPmeC6Grid[i][j] = 0;
preloadQq[i][j] = 0;
preloadSigma6[i][j] = 0;
if constexpr (vdwInteractionTypeIsEwald)
{
computeVdwInteraction =
- (r < rVdw && (c6[i] != 0 || c12[i] != 0) && bPairIncluded);
+ (r < rVdw && (c6[i] != zero || c12[i] != zero) && bPairIncluded);
}
else
{
computeVdwInteraction =
- (rV < rVdw && (c6[i] != 0 || c12[i] != 0) && bPairIncluded);
+ (rV < rVdw && (c6[i] != zero || c12[i] != zero) && bPairIncluded);
}
if (gmx::anyTrue(computeVdwInteraction))
{