Use more const ref in domdec API
[alexxy/gromacs.git] / src / gromacs / mdrun / rerun.cpp
index c9700481d15027cd3b9d98d0df358888ddceddee..2ef3a87e82234fa3dc6f2498d495d87999149844 100644 (file)
@@ -336,7 +336,7 @@ void gmx::LegacySimulator::do_rerun()
     {
         stateInstance = std::make_unique<t_state>();
         state         = stateInstance.get();
-        dd_init_local_state(cr->dd, state_global, state);
+        dd_init_local_state(*cr->dd, state_global, state);
 
         /* Distribute the charge groups over the nodes from the master node */
         dd_partition_system(fplog,