Skip to content

Commit

Permalink
Lost Output: Only N>0
Browse files Browse the repository at this point in the history
Do not generate empty files with half-ready meta data.
  • Loading branch information
ax3l committed Nov 23, 2023
1 parent 571eabf commit 76c2b00
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ImpactX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,7 @@ namespace impactx
global_step);

// output particles lost in apertures
if (m_particles_lost->TotalNumberOfParticles() > 0)
{
std::string openpmd_backend = "default";
pp_diag.queryAdd("backend", openpmd_backend);
Expand Down

0 comments on commit 76c2b00

Please sign in to comment.