7 #ifndef WARPX_RESAMPLING_TRIGGER_H_ 8 #define WARPX_RESAMPLING_TRIGGER_H_ 12 #include <AMReX_ParmParse.H> 42 bool triggered (
const int timestep,
const amrex::Real global_numparts)
const;
65 #endif //WARPX_RESAMPLING_TRIGGER_H_ amrex::Real m_global_numcells
Definition: ResamplingTrigger.H:60
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:82
This class is used to determine if resampling should be done at a given timestep for a given species...
Definition: ResamplingTrigger.H:20
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:30
IntervalsParser m_resampling_intervals
Definition: ResamplingTrigger.H:54
ResamplingTrigger()=default
Default constructor of the ResamplingTrigger class.
bool m_initialized
Definition: ResamplingTrigger.H:62
amrex::Real m_max_avg_ppc
Definition: ResamplingTrigger.H:57
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: ResamplingTrigger.cpp:21