Rename and add doxygen to reaction field params in interaction_const
[alexxy/gromacs.git] / src / gromacs / nbnxm / kernels_reference / kernel_gpu_ref.cpp
index cd0ee7f70ebc5ed8269f2c9ec2646de3d4a0a4e0..6bbef2c32f2ab688732b338f9bdf69a7bfad0fbf 100644 (file)
@@ -135,7 +135,7 @@ void nbnxn_kernel_gpu_ref(const NbnxnPairlistGpu*    nbl,
             }
             if (!bEwald)
             {
-                vctot *= -facel * 0.5 * iconst->c_rf;
+                vctot *= -facel * 0.5 * iconst->reactionFieldShift;
             }
             else
             {
@@ -230,11 +230,11 @@ void nbnxn_kernel_gpu_ref(const NbnxnPairlistGpu*    nbl,
                                 if (!bEwald)
                                 {
                                     /* Reaction-field */
-                                    const real krsq = iconst->k_rf * rsq;
+                                    const real krsq = iconst->reactionFieldCoefficient * rsq;
                                     fscal           = qq * (int_bit * rinv - 2 * krsq) * rinvsq;
                                     if (stepWork.computeEnergy)
                                     {
-                                        vcoul = qq * (int_bit * rinv + krsq - iconst->c_rf);
+                                        vcoul = qq * (int_bit * rinv + krsq - iconst->reactionFieldShift);
                                     }
                                 }
                                 else