Add virtual site type 2FD
[alexxy/gromacs.git] / src / gromacs / gmxpreprocess / topdirs.cpp
index 89f4374b1f07778d13931c4e5cba0c4251ada26e..8f7aea5bd78af1f542583b9f604500f8441dae75 100644 (file)
@@ -207,7 +207,15 @@ int ifunc_index(Directive d, int type)
                 return F_BHAM;
             }
         case Directive::d_vsites2:
-            return F_VSITE2;
+            switch (type)
+            {
+                case 1:
+                    return F_VSITE2;
+                case 2:
+                    return F_VSITE2FD;
+                default:
+                    gmx_fatal(FARGS, "Invalid vsites2 type %d", type);
+            }
         case Directive::d_vsites3:
             switch (type)
             {