Skip to content

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
WeiqunZhang committed Jan 8, 2024
1 parent a609f8e commit dfbc775
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Source/Diagnostics/RecordingPlaneDiagnostics.H
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ private:

void Flush (int i_buffer, bool /*force_flush */) override;

void WriteRecordingPlaneHeader (const std::string& filename);
void WriteRecordingPlaneHeader (const std::string& filename) const;

void PrepareFieldDataForOutput () override;

Expand All @@ -76,7 +76,7 @@ private:
amrex::Box m_buffer_box;
int m_flush_counter = 0;

bool GetZSliceInDomain (int lev);
bool GetZSliceInDomain (int lev) const;
bool m_last_timeslice_filled = false;
};

Expand Down
4 changes: 2 additions & 2 deletions Source/Diagnostics/RecordingPlaneDiagnostics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ RecordingPlaneDiagnostics::PrepareFieldDataForOutput ()
}

bool
RecordingPlaneDiagnostics::GetZSliceInDomain (int lev)
RecordingPlaneDiagnostics::GetZSliceInDomain (int lev) const
{
auto & warpx = WarpX::GetInstance();
const amrex::RealBox& prob_domain = warpx.Geom(lev).ProbDomain();
Expand Down Expand Up @@ -422,7 +422,7 @@ RecordingPlaneDiagnostics::Flush (int i_buffer, bool /* force_flush */)
}

void
RecordingPlaneDiagnostics::WriteRecordingPlaneHeader (const std::string& filename)
RecordingPlaneDiagnostics::WriteRecordingPlaneHeader (const std::string& filename) const
{
amrex::VisMF::IO_Buffer io_buffer(amrex::VisMF::IO_Buffer_Size);
std::ofstream HeaderFile;
Expand Down

0 comments on commit dfbc775

Please sign in to comment.