Skip to content

Commit

Permalink
resize particles flushed laready
Browse files Browse the repository at this point in the history
  • Loading branch information
RevathiJambunathan committed Dec 7, 2023
1 parent bdc75f0 commit 480a876
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Source/Diagnostics/RecordingPlaneDiagnostics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -245,9 +245,11 @@ RecordingPlaneDiagnostics::InitializeParticleFunctors ()
const MultiParticleContainer& mpc = warpx.GetPartContainer();
m_all_particle_functors.resize(m_output_species_names.size());
m_totalParticles_in_buffer[0].resize(m_output_species_names.size());
m_totalParticles_flushed_already[0].resize(m_output_species_names.size());
for (int i = 0; i < m_all_particle_functors.size(); ++i)
{
m_totalParticles_in_buffer[0][i] = 0;
m_totalParticles_flushed_already[0][i] = 0;
const int idx = mpc.getSpeciesID(m_output_species_names[i]);
m_all_particle_functors[i] = std::make_unique<RecordingPlaneParticleFunctor>(mpc.GetParticleContainerPtr(idx), m_output_species_names[i], num_station_buffers);
}
Expand Down

0 comments on commit 480a876

Please sign in to comment.