From ba29a0dbd438dfc84e723bd25013763830db4fcf Mon Sep 17 00:00:00 2001 From: RevathiJambunathan Date: Wed, 6 Dec 2023 16:18:14 -0800 Subject: [PATCH] no need to copy particles, since we interpolate old and new values, and specifically copy runtime attributes --- .../ComputeDiagFunctors/RecordingPlaneParticleFunctor.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Source/Diagnostics/ComputeDiagFunctors/RecordingPlaneParticleFunctor.cpp b/Source/Diagnostics/ComputeDiagFunctors/RecordingPlaneParticleFunctor.cpp index 98d5b3e605e..bfe34e9982d 100644 --- a/Source/Diagnostics/ComputeDiagFunctors/RecordingPlaneParticleFunctor.cpp +++ b/Source/Diagnostics/ComputeDiagFunctors/RecordingPlaneParticleFunctor.cpp @@ -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]); } });