Simplify t_forcerec destruction
[alexxy/gromacs.git] / src / gromacs / domdec / redistribute.cpp
index eb130157c64b42808990291014d794c0e671674c..a747a26a1ccd6d67dc1b94ee97f9ca12c33d9e31 100644 (file)
@@ -736,7 +736,7 @@ void dd_redistribute_cg(FILE*                        fplog,
     /* We reuse the intBuffer without reacquiring since we are in the same scope */
     DDBufferAccess<int>& flagBuffer = moveBuffer;
 
-    const cginfo_mb_t* cginfo_mb = fr->cginfo_mb;
+    gmx::ArrayRef<const cginfo_mb_t> cginfo_mb = fr->cginfo_mb;
 
     /* Temporarily store atoms passed to our rank at the end of the range */
     int home_pos_cg = dd->ncg_home;