Normal modes don't work currently with virtual sites or shells.
authorRossen Apostolov <rossen@kth.se>
Tue, 6 May 2014 14:23:25 +0000 (16:23 +0200)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Thu, 22 May 2014 07:21:32 +0000 (09:21 +0200)
Refs #879.

Change-Id: I1c45b5a4b4c97feff222dccbbbb884e0153ad0c5

src/kernel/grompp.c
src/kernel/md.c

index 70c2041b7b0f77a8cf2e7e253ecd08344da81790..2831a3dbb5e261729da3cabaaefff5c3c2dc20b5 100644 (file)
@@ -1547,6 +1547,11 @@ int cmain (int argc, char *argv[])
         }
     }
 
+    if (nvsite && ir->eI == eiNM)
+    {
+        gmx_fatal(FARGS, "Normal Mode analysis is not supported with virtual sites.\nIf you'd like to help with adding support, we have an open discussion at http://redmine.gromacs.org/issues/879\n");
+    }
+
     if (ir->cutoff_scheme == ecutsVERLET)
     {
         fprintf(stderr, "Removing all charge groups because cutoff-scheme=%s\n",
index 7091591483648a50ec4bc5882dc721f4c424f520..6b864b7a9e7106f8a4b652e928570b033298c084 100644 (file)
@@ -348,6 +348,18 @@ double do_md(FILE *fplog, t_commrec *cr, int nfile, const t_filenm fnm[],
                                   (DOMAINDECOMP(cr) && !MASTER(cr))) ?
                                  NULL : state_global->x);
 
+    if (shellfc && ir->eI == eiNM)
+    {
+        /* Currently shells don't work with Normal Modes */
+        gmx_fatal(FARGS, "Normal Mode analysis is not supported with shells.\nIf you'd like to help with adding support, we have an open discussion at http://redmine.gromacs.org/issues/879\n");
+    }
+
+    if (vsite && ir->eI == eiNM)
+    {
+        /* Currently virtual sites don't work with Normal Modes */
+        gmx_fatal(FARGS, "Normal Mode analysis is not supported with virtual sites.\nIf you'd like to help with adding support, we have an open discussion at http://redmine.gromacs.org/issues/879\n");
+    }
+
     if (DEFORM(*ir))
     {
 #ifdef GMX_THREAD_MPI