diff options
author | 2019-10-07 09:51:35 -0700 | |
---|---|---|
committer | 2019-10-07 09:51:35 -0700 | |
commit | f350ce071c652bb4b53eda0d774b5c75cd7e0250 (patch) | |
tree | f8b3ad60fb2e522e09af2595480564af58b1926f /Source/Particles/PhysicalParticleContainer.cpp | |
parent | 9ec703a2e2622fe1ff3d8b7e0a857e7c7a4507ba (diff) | |
download | WarpX-f350ce071c652bb4b53eda0d774b5c75cd7e0250.tar.gz WarpX-f350ce071c652bb4b53eda0d774b5c75cd7e0250.tar.zst WarpX-f350ce071c652bb4b53eda0d774b5c75cd7e0250.zip |
This is a test of git commit.
Diffstat (limited to 'Source/Particles/PhysicalParticleContainer.cpp')
-rw-r--r-- | Source/Particles/PhysicalParticleContainer.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/Particles/PhysicalParticleContainer.cpp b/Source/Particles/PhysicalParticleContainer.cpp index 02dee1967..d1f25fe5d 100644 --- a/Source/Particles/PhysicalParticleContainer.cpp +++ b/Source/Particles/PhysicalParticleContainer.cpp @@ -157,6 +157,14 @@ PhysicalParticleContainer::AddGaussianBeam(Real x_m, Real y_m, Real z_m, std::normal_distribution<double> distz(z_m, z_rms); if (ParallelDescriptor::IOProcessor()) { + // Allocate temporary vectors on the CPU + Gpu::HostVector<ParticleReal> particle_x; + Gpu::HostVector<ParticleReal> particle_y; + Gpu::HostVector<ParticleReal> particle_z; + Gpu::HostVector<ParticleReal> particle_ux; + Gpu::HostVector<ParticleReal> particle_uy; + Gpu::HostVector<ParticleReal> particle_uz; + Gpu::HostVector<ParticleReal> particle_w; // If do_symmetrize, create 4x fewer particles, and // Replicate each particle 4 times (x,y) (-x,y) (x,-y) (-x,-y) if (do_symmetrize){ |