diff options
Diffstat (limited to 'Source/Diagnostics/FlushFormats/FlushFormatPlotfile.cpp')
-rw-r--r-- | Source/Diagnostics/FlushFormats/FlushFormatPlotfile.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/Diagnostics/FlushFormats/FlushFormatPlotfile.cpp b/Source/Diagnostics/FlushFormats/FlushFormatPlotfile.cpp index 3ea631292..28033b3ac 100644 --- a/Source/Diagnostics/FlushFormats/FlushFormatPlotfile.cpp +++ b/Source/Diagnostics/FlushFormats/FlushFormatPlotfile.cpp @@ -302,7 +302,12 @@ FlushFormatPlotfile::WriteWarpXHeader( warpx.GetPartContainer().WriteHeader(HeaderFile); - HeaderFile << warpx.getcurrent_injection_position() << "\n"; + MultiParticleContainer& mypc = warpx.GetPartContainer(); + const int n_species = mypc.nSpecies(); + for (int i=0; i<n_species; i++) + { + HeaderFile << mypc.GetParticleContainer(i).m_current_injection_position << "\n"; + } HeaderFile << warpx.getdo_moving_window() << "\n"; |