Skip to content

Commit

Permalink
Update PlasmaParticleContainer.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
EyaDammak committed Jan 10, 2025
1 parent d6033a2 commit 715609d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/particles/plasma/PlasmaParticleContainer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,7 @@ LaserIonization (const int islice,
const long pid = amrex::Gpu::Atomic::Add( p_ip_elec, 1u );
const long pidx = pid + old_size;
amrex::Gpu::DeviceVector<double> h_u(num_ions * 3);
amrex::Gpu::copy(amrex::Gpu::deviceToHost, u.begin(), u.end(), h_u.begin());
amrex::Gpu::copy(amrex::Gpu::deviceToHost, u.data(), h_u.data(), num_ions * 3);
// Copy ion data to new electron
amrex::ParticleIDWrapper{idcpu_elec[pidx]} = 2; // only for valid/invalid
amrex::ParticleCPUWrapper{idcpu_elec[pidx]} =
Expand Down

0 comments on commit 715609d

Please sign in to comment.