Use more const ref in domdec API
[alexxy/gromacs.git] / src / gromacs / mdrun / minimize.cpp
index 9563ac5c94ee87aa1dd99682e4372d75f68c2def..c46bbec827592184c63ae2676dc71fe70ad8d464 100644 (file)
@@ -424,7 +424,7 @@ static void init_em(FILE*                fplog,
 
     if (DOMAINDECOMP(cr))
     {
-        dd_init_local_state(cr->dd, state_global, &ems->s);
+        dd_init_local_state(*cr->dd, state_global, &ems->s);
 
         /* Distribute the charge groups over the nodes from the master node */
         dd_partition_system(fplog,
@@ -448,7 +448,7 @@ static void init_em(FILE*                fplog,
                             nrnb,
                             nullptr,
                             FALSE);
-        dd_store_state(cr->dd, &ems->s);
+        dd_store_state(*cr->dd, &ems->s);
     }
     else
     {
@@ -816,7 +816,7 @@ static void em_dd_partition_system(FILE*                fplog,
                         nrnb,
                         wcycle,
                         FALSE);
-    dd_store_state(cr->dd, &ems->s);
+    dd_store_state(*cr->dd, &ems->s);
 }
 
 namespace