diff options
author | 2020-02-03 09:26:07 -0800 | |
---|---|---|
committer | 2020-02-03 09:26:07 -0800 | |
commit | 81992738e864bac70ff7c034bfd25749ee0fba6a (patch) | |
tree | 9dc6c3c51e5d75ca3a9d464e11bd6451e9bd5371 /Source/Particles/PhysicalParticleContainer.H | |
parent | 7af4917c442401e3f074350be7399b1d4998a8bd (diff) | |
parent | 15f002a11c867ca20f6a053eb3ccac62394f8f74 (diff) | |
download | WarpX-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 '')
-rw-r--r-- | Source/Particles/PhysicalParticleContainer.H | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/Source/Particles/PhysicalParticleContainer.H b/Source/Particles/PhysicalParticleContainer.H index 18a6540d5..942f7b7a0 100644 --- a/Source/Particles/PhysicalParticleContainer.H +++ b/Source/Particles/PhysicalParticleContainer.H @@ -71,10 +71,7 @@ public: void AssignExternalFieldOnParticles ( WarpXParIter& pti, RealVector& Exp, RealVector& Eyp, RealVector& Ezp, RealVector& Bxp, - RealVector& Byp, RealVector& Bzp, - const amrex::Gpu::ManagedDeviceVector<amrex::ParticleReal>& xp, - const amrex::Gpu::ManagedDeviceVector<amrex::ParticleReal>& yp, - const amrex::Gpu::ManagedDeviceVector<amrex::ParticleReal>& zp, int lev); + RealVector& Byp, RealVector& Bzp, int lev); virtual void FieldGather (int lev, const amrex::MultiFab& Ex, @@ -100,7 +97,6 @@ public: const int ngE, const int e_is_nodal, const long offset, const long np_to_gather, - int thread_num, int lev, int depos_lev); @@ -162,11 +158,7 @@ public: amrex::Real dt, DtType a_dt_type=DtType::Full) override; - virtual void PushPX(WarpXParIter& pti, - amrex::Gpu::ManagedDeviceVector<amrex::ParticleReal>& xp, - amrex::Gpu::ManagedDeviceVector<amrex::ParticleReal>& yp, - amrex::Gpu::ManagedDeviceVector<amrex::ParticleReal>& zp, - amrex::Real dt, DtType a_dt_type=DtType::Full); + virtual void PushPX (WarpXParIter& pti, amrex::Real dt, DtType a_dt_type=DtType::Full); virtual void PushP (int lev, amrex::Real dt, const amrex::MultiFab& Ex, @@ -189,8 +181,7 @@ public: RealVector& uzp, RealVector& wp ); - void copy_attribs(WarpXParIter& pti,const amrex::ParticleReal* xp, - const amrex::ParticleReal* yp, const amrex::ParticleReal* zp); + void copy_attribs (WarpXParIter& pti); virtual void PostRestart () final {} |