Sort all includes in src/gromacs
[alexxy/gromacs.git] / src / gromacs / gmxpreprocess / topdirs.c
index 0cb9bbe5e5b8eda9e14e48fe766ae1276baf989c..1c42dfab2d4513603f229a3a1baa4f2b4d2b3c51 100644 (file)
  * To help us fund GROMACS development, we humbly ask that you cite
  * the research papers on the package. Check out http://www.gromacs.org.
  */
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
+#include "gmxpre.h"
+
+#include "topdirs.h"
 
-#include <stdio.h>
 #include <stdarg.h>
+#include <stdio.h>
 
-#include "sysstuff.h"
-#include "smalloc.h"
-#include "macros.h"
-#include "string2.h"
-#include "gmx_fatal.h"
-#include "topdirs.h"
+#include "gromacs/legacyheaders/macros.h"
+#include "gromacs/utility/cstringutil.h"
+#include "gromacs/utility/fatalerror.h"
+#include "gromacs/utility/smalloc.h"
 
 /* Must correspond to the directive enum in grompp-impl.h */
 static const char *directive_names[d_maxdir+1] = {
@@ -144,6 +142,8 @@ int ifunc_index(directive d, int type)
                     return F_TABANGLES;
                 case 9:
                     return F_LINEAR_ANGLES;
+                case 10:
+                    return F_RESTRANGLES;
                 default:
                     gmx_fatal(FARGS, "Invalid angle type %d", type);
                     break;
@@ -184,6 +184,10 @@ int ifunc_index(directive d, int type)
                     return F_TABDIHS;
                 case 9:
                     return F_PDIHS; /* proper dihedrals where we allow multiple terms over single bond */
+                case 10:
+                    return F_RESTRDIHS;
+                case 11:
+                    return F_CBTDIHS;
                 default:
                     gmx_fatal(FARGS, "Invalid dihedral type %d", type);
             }