if (file_version >= tpxv_SoftcoreGapsys)
{
serializer->doInt(reinterpret_cast<int*>(&fepvals->softcoreFunction));
- serializer->doReal(&fepvals->scScaleLinpointLJGapsys);
- serializer->doReal(&fepvals->scScaleLinpointQGapsys);
+ serializer->doReal(&fepvals->scGapsysScaleLinpointLJ);
+ serializer->doReal(&fepvals->scGapsysScaleLinpointQ);
serializer->doReal(&fepvals->scSigmaLJGapsys);
}
else
{
fepvals->softcoreFunction = SoftcoreType::Beutler;
- fepvals->scScaleLinpointLJGapsys = 0.85;
- fepvals->scScaleLinpointQGapsys = 0.3;
+ fepvals->scGapsysScaleLinpointLJ = 0.85;
+ fepvals->scGapsysScaleLinpointQ = 0.3;
fepvals->scSigmaLJGapsys = 0.3;
}
const real gmx_unused sigma6_def = scParams.sigma6WithInvalidSigma;
const real gmx_unused sigma6_min = scParams.sigma6Minimum;
- const real gmx_unused scaleLinpointCoulGapsys = scParams.scaleLinpointCoulGapsys;
- const real gmx_unused scaleLinpointVdWGapsys = scParams.scaleLinpointVdWGapsys;
+ const real gmx_unused gapsysScaleLinpointCoul = scParams.gapsysScaleLinpointCoul;
+ const real gmx_unused gapsysScaleLinpointVdW = scParams.gapsysScaleLinpointVdW;
const real gmx_unused sigma6VdWGapsys = scParams.sigma6VdWGapsys;
const bool gmx_unused doShiftForces = ((flags & GMX_NONBONDED_DO_SHIFTFORCE) != 0);
alignas(GMX_SIMD_ALIGNMENT) real gmx_unused preloadAlphaVdwEff[DataTypes::simdRealWidth];
alignas(GMX_SIMD_ALIGNMENT) real gmx_unused preloadAlphaCoulEff[DataTypes::simdRealWidth];
alignas(GMX_SIMD_ALIGNMENT)
- real gmx_unused preloadScaleLinpointVdWGapsys[DataTypes::simdRealWidth];
+ real gmx_unused preloadGapsysScaleLinpointVdW[DataTypes::simdRealWidth];
alignas(GMX_SIMD_ALIGNMENT)
- real gmx_unused preloadScaleLinpointCoulGapsys[DataTypes::simdRealWidth];
+ real gmx_unused preloadGapsysScaleLinpointCoul[DataTypes::simdRealWidth];
alignas(GMX_SIMD_ALIGNMENT)
real gmx_unused preloadSigma6VdWGapsys[NSTATES][DataTypes::simdRealWidth];
alignas(GMX_SIMD_ALIGNMENT) real preloadLjPmeC6Grid[NSTATES][DataTypes::simdRealWidth];
real gmx_unused preloadSigma6[NSTATES][DataTypes::simdRealWidth];
real gmx_unused preloadAlphaVdwEff[DataTypes::simdRealWidth];
real gmx_unused preloadAlphaCoulEff[DataTypes::simdRealWidth];
- real gmx_unused preloadScaleLinpointVdWGapsys[DataTypes::simdRealWidth];
- real gmx_unused preloadScaleLinpointCoulGapsys[DataTypes::simdRealWidth];
+ real gmx_unused preloadGapsysScaleLinpointVdW[DataTypes::simdRealWidth];
+ real gmx_unused preloadGapsysScaleLinpointCoul[DataTypes::simdRealWidth];
real gmx_unused preloadSigma6VdWGapsys[NSTATES][DataTypes::simdRealWidth];
real preloadLjPmeC6Grid[NSTATES][DataTypes::simdRealWidth];
#endif
const real c12B = nbfp[2 * typeIndices[STATE_B][s] + 1];
if (c12A > 0 && c12B > 0)
{
- preloadScaleLinpointVdWGapsys[s] = 0;
- preloadScaleLinpointCoulGapsys[s] = 0;
+ preloadGapsysScaleLinpointVdW[s] = 0;
+ preloadGapsysScaleLinpointCoul[s] = 0;
}
else
{
- preloadScaleLinpointVdWGapsys[s] = scaleLinpointVdWGapsys;
- preloadScaleLinpointCoulGapsys[s] = scaleLinpointCoulGapsys;
+ preloadGapsysScaleLinpointVdW[s] = gapsysScaleLinpointVdW;
+ preloadGapsysScaleLinpointCoul[s] = gapsysScaleLinpointCoul;
}
}
}
preloadPairIncluded[s] = false;
preloadAlphaVdwEff[s] = 0;
preloadAlphaCoulEff[s] = 0;
- preloadScaleLinpointVdWGapsys[s] = 0;
- preloadScaleLinpointCoulGapsys[s] = 0;
+ preloadGapsysScaleLinpointVdW[s] = 0;
+ preloadGapsysScaleLinpointCoul[s] = 0;
for (int i = 0; i < NSTATES; i++)
{
RealType gmx_unused ljPmeC6Grid[NSTATES];
RealType gmx_unused alphaVdwEff;
RealType gmx_unused alphaCoulEff;
- RealType gmx_unused scaleLinpointVdWGapsysEff;
- RealType gmx_unused scaleLinpointCoulGapsysEff;
+ RealType gmx_unused gapsysScaleLinpointVdWEff;
+ RealType gmx_unused gapsysScaleLinpointCoulEff;
RealType gmx_unused sigmaVdWGapsysEff[NSTATES];
for (int i = 0; i < NSTATES; i++)
{
}
if constexpr (softcoreType == KernelSoftcoreType::Gapsys)
{
- scaleLinpointVdWGapsysEff = gmx::load<RealType>(preloadScaleLinpointVdWGapsys);
- scaleLinpointCoulGapsysEff = gmx::load<RealType>(preloadScaleLinpointCoulGapsys);
+ gapsysScaleLinpointVdWEff = gmx::load<RealType>(preloadGapsysScaleLinpointVdW);
+ gapsysScaleLinpointCoulEff = gmx::load<RealType>(preloadGapsysScaleLinpointCoul);
}
// Avoid overflow of r^-12 at distances near zero
rCutoffCoul,
LFC[i],
DLF[i],
- scaleLinpointCoulGapsysEff,
+ gapsysScaleLinpointCoulEff,
sh_ewald,
&fScalC[i],
&vCoul[i],
rCutoffCoul,
LFC[i],
DLF[i],
- scaleLinpointCoulGapsysEff,
+ gapsysScaleLinpointCoulEff,
krf,
crf,
&fScalC[i],
LFV[i],
DLF[i],
sigmaVdWGapsysEff[i],
- scaleLinpointVdWGapsysEff,
+ gapsysScaleLinpointVdWEff,
repulsionShift,
dispersionShift,
&fScalV[i],
}
else // Gapsys
{
- if (scParams.scaleLinpointCoulGapsys == 0 && scParams.scaleLinpointVdWGapsys == 0)
+ if (scParams.gapsysScaleLinpointCoul == 0 && scParams.gapsysScaleLinpointVdW == 0)
{
return (dispatchKernelOnScLambdasOrAlphasDifference<KernelSoftcoreType::None>(
scLambdasOrAlphasDiffer,
fepVals_.sc_sigma = 0.3;
fepVals_.sc_sigma_min = 0.3;
fepVals_.bScCoul = true;
- fepVals_.scScaleLinpointLJGapsys = 0.3;
- fepVals_.scScaleLinpointQGapsys = 0.3;
+ fepVals_.scGapsysScaleLinpointLJ = 0.3;
+ fepVals_.scGapsysScaleLinpointQ = 0.3;
fepVals_.scSigmaLJGapsys = 0.3;
fepVals_.softcoreFunction = SoftcoreType::Beutler;
}
if (fep->softcoreFunction == SoftcoreType::Gapsys)
{
- if (fep->scScaleLinpointQGapsys < 0.0)
+ if (fep->scGapsysScaleLinpointQ < 0.0)
{
sprintf(warn_buf,
"sc_scale_linpoint_Q_gapsys is equal %g but must be >= 0",
- fep->scScaleLinpointQGapsys);
+ fep->scGapsysScaleLinpointQ);
warning_note(wi, warn_buf);
}
- if ((fep->scScaleLinpointLJGapsys < 0.0) || (fep->scScaleLinpointLJGapsys >= 1.0))
+ if ((fep->scGapsysScaleLinpointLJ < 0.0) || (fep->scGapsysScaleLinpointLJ >= 1.0))
{
sprintf(warn_buf,
"sc_scale_linpoint_LJ_gapsys is equal %g but must be in [0,1) when used "
"with "
"sc_function=gapsys.",
- fep->scScaleLinpointLJGapsys);
+ fep->scGapsysScaleLinpointLJ);
warning_note(wi, warn_buf);
}
}
fep->sc_r_power = get_ereal(&inp, "sc-r-power", 6.0, wi);
fep->sc_sigma = get_ereal(&inp, "sc-sigma", 0.3, wi);
fep->bScCoul = (getEnum<Boolean>(&inp, "sc-coul", wi) != Boolean::No);
- fep->scScaleLinpointLJGapsys = get_ereal(&inp, "sc-scale-linpoint-LJ-gapsys", 0.85, wi);
- fep->scScaleLinpointQGapsys = get_ereal(&inp, "sc-scale-linpoint-Q-gapsys", 0.3, wi);
+ fep->scGapsysScaleLinpointLJ = get_ereal(&inp, "sc-gapsys-scale-linpoint-LJ", 0.85, wi);
+ fep->scGapsysScaleLinpointQ = get_ereal(&inp, "sc-gapsys-scale-linpoint-Q", 0.3, wi);
fep->scSigmaLJGapsys = get_ereal(&inp, "sc-sigma-LJ-gapsys", 0.3, wi);
fep->dh_hist_size = get_eint(&inp, "dh_hist_size", 0, wi);
fep->dh_hist_spacing = get_ereal(&inp, "dh_hist_spacing", 0.1, wi);
sc-r-power = 6
sc-sigma = 0.3
sc-coul = no
-sc-scale-linpoint-LJ-gapsys = 0.85
-sc-scale-linpoint-Q-gapsys = 0.3
+sc-gapsys-scale-linpoint-LJ = 0.85
+sc-gapsys-scale-linpoint-Q = 0.3
sc-sigma-LJ-gapsys = 0.3
separate-dhdl-file = yes
dhdl-derivatives = yes
sc-r-power = 6
sc-sigma = 0.3
sc-coul = no
-sc-scale-linpoint-LJ-gapsys = 0.85
-sc-scale-linpoint-Q-gapsys = 0.3
+sc-gapsys-scale-linpoint-LJ = 0.85
+sc-gapsys-scale-linpoint-Q = 0.3
sc-sigma-LJ-gapsys = 0.3
separate-dhdl-file = yes
dhdl-derivatives = yes
sc-r-power = 6
sc-sigma = 0.3
sc-coul = no
-sc-scale-linpoint-LJ-gapsys = 0.85
-sc-scale-linpoint-Q-gapsys = 0.3
+sc-gapsys-scale-linpoint-LJ = 0.85
+sc-gapsys-scale-linpoint-Q = 0.3
sc-sigma-LJ-gapsys = 0.3
separate-dhdl-file = yes
dhdl-derivatives = yes
sc-r-power = 6
sc-sigma = 0.3
sc-coul = no
-sc-scale-linpoint-LJ-gapsys = 0.85
-sc-scale-linpoint-Q-gapsys = 0.3
+sc-gapsys-scale-linpoint-LJ = 0.85
+sc-gapsys-scale-linpoint-Q = 0.3
sc-sigma-LJ-gapsys = 0.3
separate-dhdl-file = yes
dhdl-derivatives = yes
sc-r-power = 6
sc-sigma = 0.3
sc-coul = no
-sc-scale-linpoint-LJ-gapsys = 0.85
-sc-scale-linpoint-Q-gapsys = 0.3
+sc-gapsys-scale-linpoint-LJ = 0.85
+sc-gapsys-scale-linpoint-Q = 0.3
sc-sigma-LJ-gapsys = 0.3
separate-dhdl-file = yes
dhdl-derivatives = yes
sc-r-power = 6
sc-sigma = 0.3
sc-coul = no
-sc-scale-linpoint-LJ-gapsys = 0.85
-sc-scale-linpoint-Q-gapsys = 0.3
+sc-gapsys-scale-linpoint-LJ = 0.85
+sc-gapsys-scale-linpoint-Q = 0.3
sc-sigma-LJ-gapsys = 0.3
separate-dhdl-file = yes
dhdl-derivatives = yes
sc-r-power = 6
sc-sigma = 0.3
sc-coul = no
-sc-scale-linpoint-LJ-gapsys = 0.85
-sc-scale-linpoint-Q-gapsys = 0.3
+sc-gapsys-scale-linpoint-LJ = 0.85
+sc-gapsys-scale-linpoint-Q = 0.3
sc-sigma-LJ-gapsys = 0.3
separate-dhdl-file = yes
dhdl-derivatives = yes
sc-r-power = 6
sc-sigma = 0.3
sc-coul = no
-sc-scale-linpoint-LJ-gapsys = 0.85
-sc-scale-linpoint-Q-gapsys = 0.3
+sc-gapsys-scale-linpoint-LJ = 0.85
+sc-gapsys-scale-linpoint-Q = 0.3
sc-sigma-LJ-gapsys = 0.3
separate-dhdl-file = yes
dhdl-derivatives = yes
sc-r-power = 6
sc-sigma = 0.3
sc-coul = no
-sc-scale-linpoint-LJ-gapsys = 0.85
-sc-scale-linpoint-Q-gapsys = 0.3
+sc-gapsys-scale-linpoint-LJ = 0.85
+sc-gapsys-scale-linpoint-Q = 0.3
sc-sigma-LJ-gapsys = 0.3
separate-dhdl-file = yes
dhdl-derivatives = yes
real fscal_vdw[2], fscal_elec[2];
real velec[2], vvdw[2];
real dvdl_elec[2], dvdl_vdw[2];
- real scaleLinpointCoulGapsys, scaleLinpointVdWGapsys, sigma6VdWGapsys[2];
+ real gapsysScaleLinpointCoul, gapsysScaleLinpointVdW, sigma6VdWGapsys[2];
real rQ, rLJ;
real scaleDvdlRCoul;
int i, ntab;
/* only use softcore if one of the states has a zero endstate - softcore is for avoiding infinities!*/
if ((c12[0] > 0) && (c12[1] > 0))
{
- scaleLinpointVdWGapsys = 0;
- scaleLinpointCoulGapsys = 0;
+ gapsysScaleLinpointVdW = 0;
+ gapsysScaleLinpointCoul = 0;
}
else
{
- scaleLinpointVdWGapsys = scParams.scaleLinpointVdWGapsys;
- scaleLinpointCoulGapsys = scParams.scaleLinpointCoulGapsys;
+ gapsysScaleLinpointVdW = scParams.gapsysScaleLinpointVdW;
+ gapsysScaleLinpointCoul = scParams.gapsysScaleLinpointCoul;
}
}
if ((facel != 0) && (LFC[i] < 1))
{
rQ = gmx::sixthroot(one - LFC[i]) * (one + std::fabs(qq[i] / facel));
- rQ *= scaleLinpointCoulGapsys;
+ rQ *= gapsysScaleLinpointCoul;
}
else
{
{
rLJ = gmx::sixthroot(c_twentySixSeventh * sigma6VdWGapsys[i] * (one - LFV[i]));
- rLJ *= scaleLinpointVdWGapsys;
+ rLJ *= gapsysScaleLinpointVdW;
}
else
{
}
else // Gapsys
{
- if (scParams.scaleLinpointCoulGapsys == 0 && scParams.scaleLinpointVdWGapsys == 0)
+ if (scParams.gapsysScaleLinpointCoul == 0 && scParams.gapsysScaleLinpointVdW == 0)
{
fscal = free_energy_evaluate_single<KernelSoftcoreType::None>(
r2,
fepVals_.sc_sigma = 0.3;
fepVals_.sc_sigma_min = 0.3;
fepVals_.bScCoul = true;
- fepVals_.scScaleLinpointLJGapsys = 0.3;
- fepVals_.scScaleLinpointQGapsys = 0.3;
+ fepVals_.scGapsysScaleLinpointLJ = 0.3;
+ fepVals_.scGapsysScaleLinpointQ = 0.3;
fepVals_.scSigmaLJGapsys = 0.3;
fepVals_.softcoreFunction = SoftcoreType::Beutler;
PS("separate-dhdl-file", enumValueToString(fep->separate_dhdl_file));
PS("dhdl-derivatives", enumValueToString(fep->dhdl_derivatives));
PS("sc-function", enumValueToString(fep->softcoreFunction));
- PR("sc-scale-linpoint-LJ-gapsys", fep->scScaleLinpointLJGapsys);
- PR("sc-scale-linpoint-Q-gapsys", fep->scScaleLinpointQGapsys);
+ PR("sc-gapsys-scale-linpoint-LJ", fep->scGapsysScaleLinpointLJ);
+ PR("sc-gapsys-scale-linpoint-Q", fep->scGapsysScaleLinpointQ);
PR("sc-sigma-LJ-gapsys", fep->scSigmaLJGapsys);
};
cmp_double(fp, "inputrec->dh_hist_spacing", -1, fep1->dh_hist_spacing, fep2->dh_hist_spacing, ftol, abstol);
cmpEnum(fp, "inputrec->fepvals->softcoreFunction", fep1->softcoreFunction, fep2->softcoreFunction);
cmp_real(fp,
- "inputrec->fepvals->scScaleLinpointLJGapsys",
+ "inputrec->fepvals->scGapsysScaleLinpointLJ",
-1,
- fep1->scScaleLinpointLJGapsys,
- fep2->scScaleLinpointLJGapsys,
+ fep1->scGapsysScaleLinpointLJ,
+ fep2->scGapsysScaleLinpointLJ,
ftol,
abstol);
cmp_real(fp,
- "inputrec->fepvals->scScaleLinpointQGapsys",
+ "inputrec->fepvals->scGapsysScaleLinpointQ",
-1,
- fep1->scScaleLinpointQGapsys,
- fep2->scScaleLinpointQGapsys,
+ fep1->scGapsysScaleLinpointQ,
+ fep2->scGapsysScaleLinpointQ,
ftol,
abstol);
cmp_real(fp, "inputrec->fepvals->scSigmaLJGapsys", -1, fep1->scSigmaLJGapsys, fep2->scSigmaLJGapsys, ftol, abstol);
//! The specific soft-core function to use
SoftcoreType softcoreFunction = SoftcoreType::Beutler;
//! scale for the linearization point for the vdw interaction with gapsys soft-core
- real scScaleLinpointLJGapsys = 0.85;
+ real scGapsysScaleLinpointLJ = 0.85;
//! scale for the linearization point for the coulomb interaction with gapsys soft-core
- real scScaleLinpointQGapsys = 0.3;
+ real scGapsysScaleLinpointQ = 0.3;
//! lower bound for c12/c6 in gapsys soft-core
real scSigmaLJGapsys = 0.3;
//! Whether to print the dvdl term associated with this term; if it is not specified as separate, it is lumped with the FEP term
sigma6WithInvalidSigma(gmx::power6(fepvals.sc_sigma)),
sigma6Minimum(fepvals.bScCoul ? gmx::power6(fepvals.sc_sigma_min) : 0),
softcoreType(fepvals.softcoreFunction),
- scaleLinpointVdWGapsys(fepvals.scScaleLinpointLJGapsys),
- scaleLinpointCoulGapsys(fepvals.scScaleLinpointQGapsys),
+ gapsysScaleLinpointVdW(fepvals.scGapsysScaleLinpointLJ),
+ gapsysScaleLinpointCoul(fepvals.scGapsysScaleLinpointQ),
sigma6VdWGapsys(gmx::power6(fepvals.scSigmaLJGapsys))
{
// This is checked during tpr reading, so we can assert here
// soft-core function
SoftcoreType softcoreType;
// (gapsys sc) linearization point scaling for vdW interactions
- real scaleLinpointVdWGapsys;
+ real gapsysScaleLinpointVdW;
// (gapsys sc) linearization point scaling for Coulomb interactions
- real scaleLinpointCoulGapsys;
+ real gapsysScaleLinpointCoul;
// (gapsys sc) lower bound/replacement for c12/c6 in vdw interactions
real sigma6VdWGapsys;
};