Template sc-gapsys functions on computeForces.
[alexxy/gromacs.git] / src / gromacs / gmxlib / nonbonded / nb_free_energy.cpp
index 8e0ce26e43b4fc4160132d25cd40502528ca14b0..d441bd199a0762acdd889996ad0f4cc3d0c71964 100644 (file)
@@ -808,18 +808,18 @@ static void nb_free_energy_kernel(const t_nblist&
 
                                 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
@@ -832,19 +832,20 @@ static void nb_free_energy_kernel(const t_nblist&
 
                                 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);
                                 }
                             }
 
@@ -899,20 +900,20 @@ static void nb_free_energy_kernel(const t_nblist&
 
                             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)