Remove forcerec and inputrec from ewald_LRcorrection
[alexxy/gromacs.git] / src / gromacs / ewald / ewald_utils.h
index 4639d1571ba911c1d0bd36c009c0f6887edf3df6..20db56fcebda68f34a569b6527d74f3f646a6a1e 100644 (file)
@@ -100,12 +100,12 @@ public:
     EwaldBoxZScaler() = delete;
 
     /*! \brief Constructor that takes the input record to initialize Ewald box scaling appropriately. */
-    EwaldBoxZScaler(const t_inputrec& ir)
+    EwaldBoxZScaler(bool havePbcXY2Walls, real wallEwaldZfac)
     {
-        if (inputrecPbcXY2Walls(&ir))
+        if (havePbcXY2Walls)
         {
             scaleWithWalls_ = true;
-            scalingFactor_  = ir.wall_ewald_zfac;
+            scalingFactor_  = wallEwaldZfac;
         }
         else
         {