7 #ifndef WARPX_RESAMPLING_TRIGGER_H_
8 #define WARPX_RESAMPLING_TRIGGER_H_
45 bool triggered (
int timestep, amrex::Real global_numparts)
const;
This class is used to determine if resampling should be done at a given timestep for a given species....
Definition: ResamplingTrigger.H:24
amrex::Real m_max_avg_ppc
Definition: ResamplingTrigger.H:60
utils::parser::IntervalsParser m_resampling_intervals
Definition: ResamplingTrigger.H:57
bool triggered(int timestep, amrex::Real global_numparts) const
A method that returns true if resampling should be done for the considered species at the considered ...
Definition: ResamplingTrigger.cpp:29
ResamplingTrigger()=default
Default constructor of the ResamplingTrigger class.
bool m_initialized
Definition: ResamplingTrigger.H:65
void initialize_global_numcells() const
A method that initializes the member m_global_numcells. It is only called once (the first time trigge...
Definition: ResamplingTrigger.cpp:38
amrex::Real m_global_numcells
Definition: ResamplingTrigger.H:63
This class is a parser for multiple slices of the form x,y,z,... where x, y and z are slices of the f...
Definition: IntervalsParser.H:103