Change PaddedVector to PaddedHostVector for force CPU buffer
[alexxy/gromacs.git] / src / gromacs / domdec / distribute.cpp
index e0615aba27ae8e2dcfd56e9215ce0ece1da81243..01af1052415d74afd7e756cd4d91ec460fed43ff 100644 (file)
@@ -202,7 +202,7 @@ static void dd_distribute_dfhist(gmx_domdec_t *dd, df_history_t *dfhist)
 
 static void dd_distribute_state(gmx_domdec_t *dd,
                                 const t_state *state, t_state *state_local,
-                                PaddedVector<gmx::RVec> *f)
+                                PaddedHostVector<gmx::RVec> *f)
 {
     int nh = state_local->nhchainlength;
 
@@ -571,13 +571,13 @@ static void distributeAtomGroups(const gmx::MDLogger &mdlog,
     }
 }
 
-void distributeState(const gmx::MDLogger     &mdlog,
-                     gmx_domdec_t            *dd,
-                     const gmx_mtop_t        &mtop,
-                     t_state                 *state_global,
-                     const gmx_ddbox_t       &ddbox,
-                     t_state                 *state_local,
-                     PaddedVector<gmx::RVec> *f)
+void distributeState(const gmx::MDLogger         &mdlog,
+                     gmx_domdec_t                *dd,
+                     const gmx_mtop_t            &mtop,
+                     t_state                     *state_global,
+                     const gmx_ddbox_t           &ddbox,
+                     t_state                     *state_local,
+                     PaddedHostVector<gmx::RVec> *f)
 {
     rvec *xGlobal = (DDMASTER(dd) ? state_global->x.rvec_array() : nullptr);