Add fatal errors for VV and twin-range MTS
[alexxy/gromacs.git] / src / kernel / readir.c
index 1474cb4aa4eb2a833fe4d04da5d1e04acd6a69d4..77ebe78672abdc998ec2ed8fff61574dd085036e 100644 (file)
@@ -1240,6 +1240,12 @@ void check_ir(const char *mdparin, t_inputrec *ir, t_gromppopts *opts,
         }
     }
 
+    if (EI_VV(ir->eI) && IR_TWINRANGE(*ir) && ir->nstlist > 1)
+    {
+        sprintf(warn_buf, "Twin-range multiple time stepping does not work with integrator %s.", ei_names[ir->eI]);
+        warning_error(wi, warn_buf);
+    }
+
     /* IMPLICIT SOLVENT */
     if (ir->coulombtype == eelGB_NOTUSED)
     {