Merge branch release-2020 into merge-2020-into-2021
[alexxy/gromacs.git] / src / gromacs / gmxpreprocess / readir.cpp
index f7cb14caecc42010d5d40e86f288caa5fbd33207..9f4d2fa678f25f47a043ff983b4740fc5e6012b8 100644 (file)
@@ -1506,6 +1506,12 @@ void check_ir(const char*                   mdparin,
     {
         gmx_fatal(FARGS, "AdResS simulations are no longer supported");
     }
+
+    // cosine acceleration is only supported in leap-frog
+    if (ir->cos_accel != 0.0 && ir->eI != eiMD)
+    {
+        warning_error(wi, "cos-acceleration is only supported by integrator = md");
+    }
 }
 
 /* interpret a number of doubles from a string and put them in an array,