Skip to content

Commit

Permalink
Add: SoA Particle <7,0>
Browse files Browse the repository at this point in the history
Used in WarpX 24.01+
  • Loading branch information
ax3l committed Dec 21, 2023
1 parent 80fd8bc commit 4c82510
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/Particle/ParticleContainer_WarpX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,6 @@ void init_ParticleContainer_WarpX(py::module& m) {
// test/example submodule, so they do not collide with downstream projects
make_ParticleContainer_and_Iterators<Particle<0, 0>, 4, 0>(m); // WarpX 22.07 - 23.12 1D-3D
//make_ParticleContainer_and_Iterators<Particle<0, 0>, 5, 0> (m); // WarpX 22.07 - 23.12 RZ

make_ParticleContainer_and_Iterators<SoAParticle<7, 0>, 7, 0>(m); // WarpX 24.01+ 1D-3D
}
4 changes: 3 additions & 1 deletion src/Particle/ParticleTile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -184,13 +184,15 @@ void init_ParticleTile(py::module& m) {
// AMReX legacy AoS position + id/cpu particle ype
using ParticleType_0_0 = Particle<0, 0>;
using ParticleType_1_1 = Particle<1, 1>;
using SoAParticleType_7_0 = SoAParticle<7, 0>;
using SoAParticleType_8_0 = SoAParticle<8, 0>;

// TODO: we might need to move all or most of the defines in here into a
// test/example submodule, so they do not collide with downstream projects
make_ParticleTile<ParticleType_1_1, 2, 1> (m);
make_ParticleTile<ParticleType_0_0, 4, 0> (m); // HiPACE++ 22.07
make_ParticleTile<ParticleType_0_0, 5, 0> (m); // ImpactX 22.07
make_ParticleTile<SoAParticleType_8_0, 8, 0> (m); // ImpactX 23.12+
make_ParticleTile<SoAParticleType_7_0, 7, 0> (m); // ImpactX 24.01+
make_ParticleTile<SoAParticleType_8_0, 8, 0> (m); // ImpactX 24.01+
make_ParticleTile<ParticleType_0_0, 37, 1> (m); // HiPACE++ 22.07
}

0 comments on commit 4c82510

Please sign in to comment.