WarpX
Loading...
Searching...
No Matches
LevelingThinning.H
Go to the documentation of this file.
1/* Copyright 2019-2020 Neil Zaim
2 *
3 * This file is part of WarpX.
4 *
5 * License: BSD-3-Clause-LBNL
6 */
7#ifndef WARPX_LEVELING_THINNING_H_
8#define WARPX_LEVELING_THINNING_H_
9
10#include "Resampling.H"
11
13
14#include <AMReX_Geometry.H>
15#include <AMReX_REAL.H>
16
17#include <string>
18
28public:
29
33 LevelingThinning () = default;
34
40 LevelingThinning (const std::string& species_name);
41
46 void BackwardCompatibility (const std::string& species_name );
47
56 void operator() (
57 const amrex::Geometry& geom_lev, WarpXParIter& pti,
58 int lev, WarpXParticleContainer* pc) const final;
59
60private:
61 amrex::Real m_target_ratio = amrex::Real(1.5);
62 int m_min_ppc = 1;
63};
64
65
66#endif //WARPX_LEVELING_THINNING_H_
LevelingThinning()=default
Default constructor of the LevelingThinning class.
int m_min_ppc
Definition LevelingThinning.H:62
void BackwardCompatibility(const std::string &species_name)
Definition LevelingThinning.cpp:56
amrex::Real m_target_ratio
Definition LevelingThinning.H:61
void operator()(const amrex::Geometry &geom_lev, WarpXParIter &pti, int lev, WarpXParticleContainer *pc) const final
A method that performs leveling thinning for the considered species.
Definition LevelingThinning.cpp:67
Definition WarpXParticleContainer.H:112
Definition WarpXParticleContainer.H:195
ResamplingAlgorithm()=default