Skip to content

Commit

Permalink
fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
WeiqunZhang committed Dec 30, 2023
1 parent f7590cc commit 1cb5453
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public:

void operator () (PinnedMemoryParticleContainer& pc_dst, int &TotalParticleCounter, int i_buffer) const override;

void PrepareFunctorData (const int i_buffer, bool record_particles, amrex::Real z_location, amrex::Real current_z_boost = 0., amrex::Real tlab = 0., int snapshot_full = 0) override;
void PrepareFunctorData (int i_buffer, bool record_particles, amrex::Real z_location, amrex::Real current_z_boost, amrex::Real tlab, int snapshot_full) override;

private:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

#include "Particles/Pusher/GetAndSetPosition.H"
#include "Particles/WarpXParticleContainer.H"
#include "Utils/TextMsg.H"
#include "Utils/WarpXConst.H"
#include "WarpX.H"

Expand Down Expand Up @@ -65,10 +66,11 @@ RecordingPlaneParticleFunctor::RecordingPlaneParticleFunctor (
WarpXParticleContainer *pc_src, std::string species_name, int num_station_buffers)
: m_pc_src(pc_src), m_species_name(species_name), m_num_station_buffers(num_station_buffers)
{
WARPX_ALWAYS_ASSERT(m_num_station_buffers == 1);
}

void
RecordingPlaneParticleFunctor::operator () (PinnedMemoryParticleContainer& pc_dst, int &TotalParticleCounter, int i_buffer) const
RecordingPlaneParticleFunctor::operator () (PinnedMemoryParticleContainer& pc_dst, int &TotalParticleCounter, int /*i_buffer*/) const
{
amrex::Print() << " in station particle operator " << m_record_particles << "\n";
if (!m_record_particles) return;
Expand Down Expand Up @@ -134,7 +136,7 @@ RecordingPlaneParticleFunctor::operator () (PinnedMemoryParticleContainer& pc_ds
}

void
RecordingPlaneParticleFunctor::PrepareFunctorData (const int i_buffer, bool record_particles,
RecordingPlaneParticleFunctor::PrepareFunctorData (int /*i_buffer*/, bool record_particles,
amrex::Real z_location, amrex::Real current_z_boost, amrex::Real tlab, int snapshot_full)
{
amrex::ignore_unused(current_z_boost, tlab, snapshot_full);
Expand Down
3 changes: 1 addition & 2 deletions Source/Diagnostics/RecordingPlaneDiagnostics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ RecordingPlaneDiagnostics::PrepareParticleDataForOutput ()
}
for (int isp = 0; isp < m_all_particle_functors.size(); ++isp)
{
m_all_particle_functors[isp]->PrepareFunctorData(0, GetZSliceInDomain(0), m_station_loc, 0._rt, 0._rt, 0._rt);
m_all_particle_functors[isp]->PrepareFunctorData(0, GetZSliceInDomain(0), m_station_loc, 0._rt, 0._rt, 0);
}
}

Expand All @@ -305,7 +305,6 @@ RecordingPlaneDiagnostics::Flush (int i_buffer, bool /* force_flush */)
{
if (m_slice_counter == 0) return;

// const std::string filename = amrex::Concatenate(m_file_prefix, i_buffer, 1);
const std::string filename = m_file_prefix;
constexpr int permission_flag_rwxrxrx = 0755;
if (amrex::ParallelDescriptor::IOProcessor()) {
Expand Down

0 comments on commit 1cb5453

Please sign in to comment.