File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -290,7 +290,7 @@ struct SoAParticleBase
290290 * \tparam T_NInt The number of extra integer components
291291 */
292292template <int T_NReal, int T_NInt=0 >
293- struct Particle
293+ struct alignas ( sizeof ( double )) Particle
294294 : ParticleBase<ParticleReal,T_NReal,T_NInt>
295295{
296296 static constexpr bool is_soa_particle = false ;
Original file line number Diff line number Diff line change @@ -311,7 +311,7 @@ struct ParticleTileData
311311
312312// SOA Particle Structure
313313template <int T_NArrayReal, int T_NArrayInt>
314- struct ConstSoAParticle : SoAParticleBase
314+ struct alignas ( sizeof ( double )) ConstSoAParticle : SoAParticleBase
315315{
316316 static constexpr int NArrayReal = T_NArrayReal;
317317 static constexpr int NArrayInt = T_NArrayInt;
@@ -373,7 +373,7 @@ struct ConstSoAParticle : SoAParticleBase
373373};
374374
375375template <int T_NArrayReal, int T_NArrayInt>
376- struct SoAParticle : SoAParticleBase
376+ struct alignas ( sizeof ( double )) SoAParticle : SoAParticleBase
377377{
378378 static constexpr int NArrayReal = T_NArrayReal;
379379 static constexpr int NArrayInt = T_NArrayInt;
You can’t perform that action at this time.
0 commit comments