Skip to content

Commit

Permalink
clang-tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
atmyers committed Sep 25, 2024
1 parent 588e0c6 commit 8abc2a4
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Tests/Particles/NamedSoAComponents/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ void addParticles ()
}
amrex::Print() << "\n";

int const NArrayReal = pc.NArrayReal;
int const NArrayInt = pc.NArrayInt;
int const NArrayReal = PC::NArrayReal;
int const NArrayInt = PC::NArrayInt;
using ParticleType = typename PC::ParticleType;

const int add_num_particles = 5;
Expand All @@ -97,18 +97,18 @@ void addParticles ()
}
ptile1.getParticleTileData().rdata(AMREX_SPACEDIM)[i] = 1.2; // w

ptile1.push_back_int(0, ParticleType::NextID());
ptile1.push_back_int(0, int(ParticleType::NextID()));
ptile1.push_back_int(1, amrex::ParallelDescriptor::MyProc());
}

int lev=0;
using MyParIter = ParIter_impl<ParticleType, NArrayReal, NArrayInt>;
for (MyParIter pti(pc, lev); pti.isValid(); ++pti) {
auto& soa = pti.GetStructOfArrays();
auto xp = soa.GetRealData("x").data();
auto yp = soa.GetRealData("y").data();
auto zp = soa.GetRealData("z").data();
auto wp = soa.GetRealData("w").data();
auto *xp = soa.GetRealData("x").data();
auto *yp = soa.GetRealData("y").data();
auto *zp = soa.GetRealData("z").data();
auto *wp = soa.GetRealData("w").data();

const int np = pti.numParticles();
ParallelFor( np, [=] AMREX_GPU_DEVICE (long ip)
Expand Down

0 comments on commit 8abc2a4

Please sign in to comment.