Remove dependence of constraints on t_mdatoms
[alexxy/gromacs.git] / src / gromacs / mdlib / tests / constrtestdata.cpp
index b410504f8d4ff846b2cb551159d0dc0ff407d822..3de0c11b896b37adb798905aded2347f098e6e56 100644 (file)
@@ -101,13 +101,6 @@ ConstraintsTestData::ConstraintsTestData(const std::string&       title,
     ir_.delta_t = timestep;
     ir_.eI      = 0;
 
-    // MD atoms data
-    md_.nMassPerturbed = 0;
-    md_.lambda         = 0.0;
-    md_.invmass        = invmass_.data();
-    md_.nr             = numAtoms;
-    md_.homenr         = numAtoms;
-
     // Virial evaluation
     computeVirial_ = computeVirial;
     if (computeVirial)
@@ -122,8 +115,9 @@ ConstraintsTestData::ConstraintsTestData(const std::string&       title,
         }
     }
 
-
     // Free energy evaluation
+    hasMassPerturbed_  = false;
+    lambda_            = 0.0;
     compute_dHdLambda_ = compute_dHdLambda;
     dHdLambda_         = 0;
     if (compute_dHdLambda_)