Skip to content

Commit

Permalink
Merge branch 'RecordingDataAtStation' of github.com:RevathiJambunatha…
Browse files Browse the repository at this point in the history
…n/WarpX into RecordingDataAtStation
  • Loading branch information
WeiqunZhang committed Dec 7, 2023
2 parents b697836 + ba29a0d commit 558ed3b
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,14 +115,13 @@ RecordingPlaneParticleFunctor::operator () (PinnedMemoryParticleContainer& pc_ds
auto old_size = ptile_dst.numParticles();
ptile_dst.resize(old_size + total_partdiag_size);
auto dst_data = ptile_dst.getParticleTileData();
int timecross_index = ptile_src.NumRuntimeRealComps() - 1;
int timecross_index = ptile_dst.NumRuntimeRealComps() - 1;
const auto GetPlaneCrossingTime = PlaneCrossingTime(pti, tmp_particle_data,
warpx.gett_new(0), m_z_location, timecross_index);
amrex::ParallelFor(np,
[=] AMREX_GPU_DEVICE (int i)
{
if (Flag[i]) {
amrex::copyParticle(dst_data, src_data, i, old_size+IndexLocation[i]);
GetPlaneCrossingTime(dst_data, src_data, i, old_size+IndexLocation[i]);
}
});
Expand Down

0 comments on commit 558ed3b

Please sign in to comment.