Skip to content

Commit

Permalink
Revert "disable particle recording for now"
Browse files Browse the repository at this point in the history
This reverts commit 0c99668.
  • Loading branch information
WeiqunZhang committed Dec 7, 2023
1 parent 2d512d1 commit b697836
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions Source/Diagnostics/RecordingPlaneDiagnostics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,6 @@ RecordingPlaneDiagnostics::UpdateBufferData ()
void
RecordingPlaneDiagnostics::InitializeParticleFunctors ()
{
#if 0
auto& warpx = WarpX::GetInstance();
const int num_station_buffers = 1;
const MultiParticleContainer& mpc = warpx.GetPartContainer();
Expand All @@ -251,13 +250,11 @@ RecordingPlaneDiagnostics::InitializeParticleFunctors ()
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);
}
#endif
}

void
RecordingPlaneDiagnostics::InitializeParticleBuffer ()
{
#if 0
auto& warpx = WarpX::GetInstance();
const MultiParticleContainer& mpc = warpx.GetPartContainer();
for (int i = 0; i < m_num_buffers; ++i) {
Expand All @@ -272,13 +269,12 @@ RecordingPlaneDiagnostics::InitializeParticleBuffer ()
m_particles_buffer[i][isp].get() ));
}
}
#endif

}

void
RecordingPlaneDiagnostics::PrepareParticleDataForOutput ()
{
#if 0
const int lev = 0;
auto& warpx = WarpX::GetInstance();
for (int i = 0; i < m_particles_buffer.size(); ++i) {
Expand All @@ -301,7 +297,6 @@ RecordingPlaneDiagnostics::PrepareParticleDataForOutput ()
{
m_all_particle_functors[isp]->PrepareFunctorData(0, GetZSliceInDomain(0), m_station_loc, 0._rt, 0._rt, 0._rt);
}
#endif
}

void
Expand Down

0 comments on commit b697836

Please sign in to comment.