Skip to content

Commit 8a05f84

Browse files
committed
Explicit align
1 parent 09605ab commit 8a05f84

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Src/Particle/AMReX_Particle.H

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -290,9 +290,8 @@ struct SoAParticleBase
290290
* \tparam T_NInt The number of extra integer components
291291
*/
292292
template <int T_NReal, int T_NInt=0>
293-
struct alignas(sizeof(ParticleReal))
294-
alignas(ParticleBase<ParticleReal,T_NReal,T_NInt>)
295-
Particle : ParticleBase<ParticleReal,T_NReal,T_NInt>
293+
struct alignas(sizeof(double)) Particle
294+
: ParticleBase<ParticleReal,T_NReal,T_NInt>
296295
{
297296
static constexpr bool is_soa_particle = false;
298297
using StorageParticleType = Particle;

0 commit comments

Comments
 (0)