Skip to content

Commit

Permalink
Update AoS Restrict
Browse files Browse the repository at this point in the history
Move into type.
```
Src\Particle\AMReX_ParticleTile.H(48,5): error C2219:
  syntax error: type qualifier must be after '*'
```
  • Loading branch information
ax3l committed Jan 31, 2024
1 parent d861bdf commit 3d23ef8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Src/Particle/AMReX_ParticleTile.H
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ struct ParticleTileData
Long m_size;

using AOS_PTR = std::conditional_t<T_ParticleType::is_soa_particle,
void*, ParticleType*>;
AOS_PTR AMREX_RESTRICT m_aos;
void * AMREX_RESTRICT, ParticleType * AMREX_RESTRICT>;
AOS_PTR m_aos;

uint64_t* m_idcpu;
GpuArray<ParticleReal*, NAR> m_rdata;
Expand Down Expand Up @@ -505,8 +505,8 @@ struct ConstParticleTileData
Long m_size;

using AOS_PTR = std::conditional_t<T_ParticleType::is_soa_particle,
void const*, ParticleType const*>;
AOS_PTR AMREX_RESTRICT m_aos;
void const * AMREX_RESTRICT, ParticleType const * AMREX_RESTRICT>;
AOS_PTR m_aos;

const uint64_t* m_idcpu;
GpuArray<const ParticleReal*, NArrayReal> m_rdata;
Expand Down

0 comments on commit 3d23ef8

Please sign in to comment.