diff options
Diffstat (limited to 'Source')
-rw-r--r-- | Source/Diagnostics/WarpXOpenPMD.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/Diagnostics/WarpXOpenPMD.cpp b/Source/Diagnostics/WarpXOpenPMD.cpp index a929554e0..dcdd69652 100644 --- a/Source/Diagnostics/WarpXOpenPMD.cpp +++ b/Source/Diagnostics/WarpXOpenPMD.cpp @@ -76,6 +76,8 @@ WarpXOpenPMDPlot::Init(openPMD::AccessType accessType) else m_Series = new openPMD::Series(filename, accessType); + // actually default is "particles" by openPMD. + m_Series->setParticlesPath("particles"); } @@ -154,9 +156,6 @@ WarpXOpenPMDPlot::SavePlotFile (const std::unique_ptr<WarpXParticleContainer>& p if ( nullptr == m_Series) return; - if (0 == m_CurrentStep ) // can only define once - m_Series->setParticlesPath("particles"); - WarpXParticleCounter counter(pc); openPMD::Iteration currIteration = m_Series->iterations[iteration]; |