Partial renaming of cginfo to atom info
[alexxy/gromacs.git] / src / gromacs / domdec / domdec.cpp
index 86e75b748aa1205c2dacd394990fd1f8188e84fc..2c648b83d4abfa7e264d6574cf0b78842b5215d4 100644 (file)
@@ -221,8 +221,8 @@ void dd_store_state(const gmx_domdec_t& dd, t_state* state)
         gmx_incons("The MD state does not match the domain decomposition state");
     }
 
-    state->cg_gl.resize(dd.ncg_home);
-    for (int i = 0; i < dd.ncg_home; i++)
+    state->cg_gl.resize(dd.numHomeAtoms);
+    for (int i = 0; i < dd.numHomeAtoms; i++)
     {
         state->cg_gl[i] = dd.globalAtomGroupIndices[i];
     }