Remove single-dimension limitation from GPU halo exchange
[alexxy/gromacs.git] / src / gromacs / domdec / domdec_struct.h
index f247c4bb8c19b22c4ee12fd9411115bf19a4b3a3..db67680fb1465e67889d9f6ce471a3dba34668af 100644 (file)
@@ -236,8 +236,8 @@ struct gmx_domdec_t
     /* gmx_pme_recv_f buffer */
     std::vector<gmx::RVec> pmeForceReceiveBuffer;
 
-    /* GPU halo exchange object */
-    std::vector<std::unique_ptr<gmx::GpuHaloExchange>> gpuHaloExchange;
+    /* GPU halo exchange objects: this structure supports a vector of pulses for each dimension */
+    std::vector<std::unique_ptr<gmx::GpuHaloExchange>> gpuHaloExchange[DIM];
 };
 
 //! Are we the master node for domain decomposition