7 #ifndef WARPX_RESAMPLING_H_
8 #define WARPX_RESAMPLING_H_
65 bool triggered (
const int timestep,
const amrex::Real global_numparts)
const;
This is a general class used for resampling that is instantiated as a member of MultiParticleContaine...
Definition: Resampling.H:42
void operator()(WarpXParIter &pti, const int lev, WarpXParticleContainer *const pc) const
A method that uses the ResamplingAlgorithm object to perform resampling.
Definition: Resampling.cpp:35
bool triggered(const int timestep, const amrex::Real global_numparts) const
A method that returns true if resampling should be done for the considered species at the considered ...
Definition: Resampling.cpp:30
ResamplingTrigger m_resampling_trigger
Definition: Resampling.H:77
Resampling()=default
Default constructor of the Resampling class.
std::unique_ptr< ResamplingAlgorithm > m_resampling_algorithm
Definition: Resampling.H:78
This class is used to determine if resampling should be done at a given timestep for a given species....
Definition: ResamplingTrigger.H:24
Definition: WarpXParticleContainer.H:52
Definition: WarpXParticleContainer.H:104
An empty base class from which specific resampling algorithms are derived.
Definition: Resampling.H:23
virtual void operator()(WarpXParIter &, const int, WarpXParticleContainer *) const =0
Virtual operator() of the abstract ResamplingAlgorithm class.
virtual ~ResamplingAlgorithm()=default
Virtual destructor of the abstract ResamplingAlgorithm class.