Remove use of graph in do_force()
[alexxy/gromacs.git] / src / gromacs / modularsimulator / topologyholder.cpp
index 496b24dd60cf1eb0514ec17124b95b7be8a78957..d51084a2432f75feee050d06be575feddfa86264 100644 (file)
@@ -62,13 +62,11 @@ TopologyHolder::TopologyHolder(const gmx_mtop_t& globalTopology,
 {
     if (!DOMAINDECOMP(cr))
     {
-        t_graph* graph = nullptr;
         // Generate and initialize new topology
         // Note that most of the data needed for the constructor is used here -
         // this function should probably be simplified sooner or later.
-        mdAlgorithmsSetupAtomData(cr, inputrec, globalTopology, localTopology_.get(), fr, &graph,
-                                  mdAtoms, constr, vsite, nullptr);
-        GMX_RELEASE_ASSERT(graph == nullptr, "Graph is not implemented for the modular simulator.");
+        mdAlgorithmsSetupAtomData(cr, inputrec, globalTopology, localTopology_.get(), fr, mdAtoms,
+                                  constr, vsite, nullptr);
     }
 }