diff options
author | 2019-12-05 22:31:18 -0800 | |
---|---|---|
committer | 2019-12-05 22:31:18 -0800 | |
commit | 23be7557387beb28a9092d07333310a578bc93a6 (patch) | |
tree | 4dcb33d76bf10724533ca2f7fe42a4ccceabf09d /Source/Diagnostics/WarpXOpenPMD.cpp | |
parent | 90ff59c4bcff73d056109c65eb1ac3ca7beae55c (diff) | |
download | WarpX-23be7557387beb28a9092d07333310a578bc93a6.tar.gz WarpX-23be7557387beb28a9092d07333310a578bc93a6.tar.zst WarpX-23be7557387beb28a9092d07333310a578bc93a6.zip |
put setParticlePath at a better location
Diffstat (limited to 'Source/Diagnostics/WarpXOpenPMD.cpp')
-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]; |