Skip to content

Commit

Permalink
Small cleanup in WarpXOpenPMD
Browse files Browse the repository at this point in the history
  • Loading branch information
dpgrote committed Jun 5, 2024
1 parent a7a41ad commit b642053
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions Source/Diagnostics/WarpXOpenPMD.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<amrex::ParticleReal> const x(
new amrex::ParticleReal[(write_real_comp[0] ? numParticleOnTile : 0)],
[](amrex::ParticleReal const *p) { delete[] p; }
Expand All @@ -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<real_counter; idx++) {
Expand Down

0 comments on commit b642053

Please sign in to comment.