Skip to content

Commit

Permalink
update pcc.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
EyaDammak committed Feb 24, 2025
1 parent 3a78493 commit 0c693cd
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 @@ -797,7 +797,7 @@ PlasmaToBeam (MultiBeam& beams, const amrex::Vector< std::string > beamnames, co
[=] AMREX_GPU_DEVICE (int ip) {
if (ptd_plasma.id(ip) != 2){
const long pid_beam = amrex::Gpu::Atomic::Add(p_ip_elec, 1u);
const long pidx_beam = _beam + old_size;
const long pidx_beam = pid_beam + old_size;
ptd_beam.rdata(BeamIdx::x)[pidx_beam] = ptd_plasma.pos(0, ip);
ptd_beam.rdata(BeamIdx::y)[pidx_beam] = ptd_plasma.pos(1, ip);
ptd_beam.rdata(BeamIdx::psi)[pidx_beam] = ptd_plasma.rdata(PlasmaIdx::psi)[ip];
Expand Down

0 comments on commit 0c693cd

Please sign in to comment.