From b642053b67cb107f90dda9b602caec0a0bdf36f9 Mon Sep 17 00:00:00 2001 From: Dave Grote Date: Wed, 5 Jun 2024 08:46:05 -0700 Subject: [PATCH] Small cleanup in WarpXOpenPMD --- Source/Diagnostics/WarpXOpenPMD.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/Source/Diagnostics/WarpXOpenPMD.cpp b/Source/Diagnostics/WarpXOpenPMD.cpp index 2259ce4cab4..36827bd316a 100644 --- a/Source/Diagnostics/WarpXOpenPMD.cpp +++ b/Source/Diagnostics/WarpXOpenPMD.cpp @@ -915,8 +915,6 @@ WarpXOpenPMDPlot::SaveRealProperty (ParticleIter& pti, // reconstruct Cartesian positions for RZ simulations // r,z,theta -> x,y,z // If each comp is being written, create a temporary array, otherwise create an empty array. - // Put the code in a block so that the temporaries are cleaned up right away. - { std::shared_ptr const x( new amrex::ParticleReal[(write_real_comp[0] ? numParticleOnTile : 0)], [](amrex::ParticleReal const *p) { delete[] p; } @@ -942,7 +940,6 @@ WarpXOpenPMDPlot::SaveRealProperty (ParticleIter& pti, if (write_real_comp[1]) { getComponentRecord(real_comp_names[1]).storeChunk(y, {offset}, {numParticleOnTile64}); } - } #endif for (auto idx=0; idx