if constexpr (softcoreType == KernelSoftcoreType::Gapsys)
{
- ewaldQuadraticPotential(qq[i],
- facel,
- rC,
- rCutoffCoul,
- LFC[i],
- DLF[i],
- gapsysScaleLinpointCoulEff,
- sh_ewald,
- &fScalC[i],
- &vCoul[i],
- &dvdlCoul,
- computeElecInteraction);
+ ewaldQuadraticPotential<computeForces>(qq[i],
+ facel,
+ rC,
+ rCutoffCoul,
+ LFC[i],
+ DLF[i],
+ gapsysScaleLinpointCoulEff,
+ sh_ewald,
+ &fScalC[i],
+ &vCoul[i],
+ &dvdlCoul,
+ computeElecInteraction);
}
}
else
if constexpr (softcoreType == KernelSoftcoreType::Gapsys)
{
- reactionFieldQuadraticPotential(qq[i],
- facel,
- rC,
- rCutoffCoul,
- LFC[i],
- DLF[i],
- gapsysScaleLinpointCoulEff,
- krf,
- crf,
- &fScalC[i],
- &vCoul[i],
- &dvdlCoul,
- computeElecInteraction);
+ reactionFieldQuadraticPotential<computeForces>(
+ qq[i],
+ facel,
+ rC,
+ rCutoffCoul,
+ LFC[i],
+ DLF[i],
+ gapsysScaleLinpointCoulEff,
+ krf,
+ crf,
+ &fScalC[i],
+ &vCoul[i],
+ &dvdlCoul,
+ computeElecInteraction);
}
}
if constexpr (softcoreType == KernelSoftcoreType::Gapsys)
{
- lennardJonesQuadraticPotential(c6[i],
- c12[i],
- r,
- rSq,
- LFV[i],
- DLF[i],
- gapsysSigma6VdWEff[i],
- gapsysScaleLinpointVdWEff,
- repulsionShift,
- dispersionShift,
- &fScalV[i],
- &vVdw[i],
- &dvdlVdw,
- computeVdwInteraction);
+ lennardJonesQuadraticPotential<computeForces>(c6[i],
+ c12[i],
+ r,
+ rSq,
+ LFV[i],
+ DLF[i],
+ gapsysSigma6VdWEff[i],
+ gapsysScaleLinpointVdWEff,
+ repulsionShift,
+ dispersionShift,
+ &fScalV[i],
+ &vVdw[i],
+ &dvdlVdw,
+ computeVdwInteraction);
}
if constexpr (vdwInteractionTypeIsEwald)