You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add section on pure SoA particles to documentation (#4759)
The proposed changes:
- [ ] fix a bug or incorrect behavior in AMReX
- [ ] add new capabilities to AMReX
- [ ] changes answers in the test suite to more than roundoff level
- [ ] are likely to significantly affect the results of downstream AMReX
users
- [x] include documentation in the code and/or rst files, if appropriate
---------
Co-authored-by: Axel Huebl <[email protected]>
Co-authored-by: Ann Almgren <[email protected]>
Co-authored-by: Weiqun Zhang <[email protected]>
ParticleType p = ptd[ip]; // p will be a different type for AoS and pure SoA
489
+
// use p.pos(0), p.id(), etc.
490
+
}
491
+
492
+
In this way, code can be written that is agnostic as to the data layout. For more examples
493
+
of pure SoA particles, please see the SOA tests in :cpp:`amrex/Tests/Particles/`, or refer
494
+
to `WarpX <https://github.com/BLAST-WarpX/warpx>`_, `Hipace++ <https://github.com/Hi-PACE/hipace>`_, or `ImpactX <https://github.com/BLAST-ImpactX/impactx>`_, which use this type of particle container.
0 commit comments