aboutsummaryrefslogtreecommitdiff
path: root/Source/Particles/WarpXParticleContainer.H
diff options
context:
space:
mode:
authorGravatar Remi Lehe <remi.lehe@normalesup.org> 2020-02-03 09:26:07 -0800
committerGravatar GitHub <noreply@github.com> 2020-02-03 09:26:07 -0800
commit81992738e864bac70ff7c034bfd25749ee0fba6a (patch)
tree9dc6c3c51e5d75ca3a9d464e11bd6451e9bd5371 /Source/Particles/WarpXParticleContainer.H
parent7af4917c442401e3f074350be7399b1d4998a8bd (diff)
parent15f002a11c867ca20f6a053eb3ccac62394f8f74 (diff)
downloadWarpX-81992738e864bac70ff7c034bfd25749ee0fba6a.tar.gz
WarpX-81992738e864bac70ff7c034bfd25749ee0fba6a.tar.zst
WarpX-81992738e864bac70ff7c034bfd25749ee0fba6a.zip
Merge pull request #663 from atmyers/soa_to_aos
Remove copies to and from temporary arrays in favor of using the particle struct directy.
Diffstat (limited to 'Source/Particles/WarpXParticleContainer.H')
-rw-r--r--Source/Particles/WarpXParticleContainer.H10
1 files changed, 0 insertions, 10 deletions
diff --git a/Source/Particles/WarpXParticleContainer.H b/Source/Particles/WarpXParticleContainer.H
index 19086d1d8..845977b00 100644
--- a/Source/Particles/WarpXParticleContainer.H
+++ b/Source/Particles/WarpXParticleContainer.H
@@ -81,14 +81,6 @@ public:
WarpXParIter (ContainerType& pc, int level);
-#if (AMREX_SPACEDIM == 2)
- void GetPosition (amrex::Gpu::ManagedDeviceVector<amrex::ParticleReal>& x,
- amrex::Gpu::ManagedDeviceVector<amrex::ParticleReal>& y,
- amrex::Gpu::ManagedDeviceVector<amrex::ParticleReal>& z) const;
- void SetPosition (const amrex::Gpu::ManagedDeviceVector<amrex::ParticleReal>& x,
- const amrex::Gpu::ManagedDeviceVector<amrex::ParticleReal>& y,
- const amrex::Gpu::ManagedDeviceVector<amrex::ParticleReal>& z);
-#endif
const std::array<RealVector, PIdx::nattribs>& GetAttribs () const {
return GetStructOfArrays().GetRealData();
}
@@ -383,8 +375,6 @@ protected:
using DataContainer = amrex::Gpu::ManagedDeviceVector<amrex::ParticleReal>;
using PairIndex = std::pair<int, int>;
- amrex::Vector<DataContainer> m_xp, m_yp, m_zp;
-
// Whether to dump particle quantities.
// If true, particle position is always dumped.
int plot_species = 1;