Add InteractionDefinitions
[alexxy/gromacs.git] / src / gromacs / pbcutil / mshift.cpp
index 0bd4f8e73be83f42d7fff310f5b41e204a9c9fbe..6d860a0f2e7e5cea6fea0ba449bd37d390d4bfb3 100644 (file)
@@ -496,6 +496,17 @@ void mk_graph_moltype(const gmx_moltype_t& moltype, t_graph* g)
     mk_graph_ilist(nullptr, moltype.ilist.data(), 0, moltype.atoms.nr, FALSE, FALSE, g);
 }
 
+t_graph* mk_graph(FILE* fplog, const InteractionDefinitions& idef, int at_start, int at_end, gmx_bool bShakeOnly, gmx_bool bSettle)
+{
+    t_graph* g;
+
+    snew(g, 1);
+
+    mk_graph_ilist(fplog, idef.il.data(), at_start, at_end, bShakeOnly, bSettle, g);
+
+    return g;
+}
+
 t_graph* mk_graph(FILE* fplog, const t_idef* idef, int at_start, int at_end, gmx_bool bShakeOnly, gmx_bool bSettle)
 {
     t_graph* g;