Skip to content

Commit

Permalink
remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
lucafedeli88 committed Aug 2, 2023
1 parent 8ec5eb6 commit 93e57cb
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions Source/Diagnostics/WarpXOpenPMD.H
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

#include "Particles/WarpXParticleContainer.H"
#include "Diagnostics/FlushFormats/FlushFormat.H"
#include "Utils/TextMsg.H"

#include "Diagnostics/ParticleDiag/ParticleDiag_fwd.H"

Expand All @@ -36,26 +35,6 @@
#include <string>
#include <vector>

//
// helper class
//
class Timer
{
public:
Timer (const char* tag) {m_Tag = tag; m_Start = amrex::second();}
~Timer () {
m_End = amrex::second();
amrex::ParallelDescriptor::ReduceRealMax(m_End, amrex::ParallelDescriptor::IOProcessorNumber());
amrex::Print() << Utils::TextMsg::Info(
m_Tag + " took: "+ std::to_string(m_End - m_Start) + " seconds");
}
private:
amrex::Real m_Start;
amrex::Real m_End;
std::string m_Tag;
};


//
//
class WarpXParticleCounter
Expand Down

0 comments on commit 93e57cb

Please sign in to comment.