Merge release-5-0 into master
[alexxy/gromacs.git] / src / gromacs / mdlib / md_support.c
index c8ce7a953287bbbec112a81b615e9f2ab0a32693..9b443e565314cc42005e70bc01d648e233eabffb 100644 (file)
@@ -47,6 +47,7 @@
 #include "macros.h"
 #include "md_logging.h"
 #include "md_support.h"
+#include "names.h"
 
 #include "gromacs/legacyheaders/types/commrec.h"
 #include "gromacs/math/vec.h"
@@ -742,6 +743,11 @@ void check_ir_old_tpx_versions(t_commrec *cr, FILE *fplog,
                             "nstdhdl", &ir->fepvals->nstdhdl);
         }
     }
+
+    if (EI_VV(ir->eI) && IR_TWINRANGE(*ir) && ir->nstlist > 1)
+    {
+        gmx_fatal(FARGS, "Twin-range multiple time stepping does not work with integrator %s.", ei_names[ir->eI]);
+    }
 }
 
 void rerun_parallel_comm(t_commrec *cr, t_trxframe *fr,