diff options
author | 2019-08-09 09:47:49 -0700 | |
---|---|---|
committer | 2019-08-09 09:47:49 -0700 | |
commit | 16dba690f2e96173eaf477fb407933fe0ad00abe (patch) | |
tree | c0cd63c23fe40e948255138e2f57213ec0e9d5b3 /Python/pywarpx/picmi.py | |
parent | 5edd0eeb43ffd1e5cd63be1d154f42bec193ff33 (diff) | |
download | WarpX-16dba690f2e96173eaf477fb407933fe0ad00abe.tar.gz WarpX-16dba690f2e96173eaf477fb407933fe0ad00abe.tar.zst WarpX-16dba690f2e96173eaf477fb407933fe0ad00abe.zip |
Implemented picmi.BinomialSmoother
Diffstat (limited to 'Python/pywarpx/picmi.py')
-rw-r--r-- | Python/pywarpx/picmi.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Python/pywarpx/picmi.py b/Python/pywarpx/picmi.py index a0069ec8f..35a29b850 100644 --- a/Python/pywarpx/picmi.py +++ b/Python/pywarpx/picmi.py @@ -272,7 +272,9 @@ class PseudoRandomLayout(picmistandard.PICMI_PseudoRandomLayout): class BinomialSmoother(picmistandard.PICMI_BinomialSmoother): - pass + def initialize_inputs(self): + pywarpx.warpx.use_filter = 1 + pywarpx.warpx.filter_npass_each_dir = self.n_pass class CylindricalGrid(picmistandard.PICMI_CylindricalGrid): @@ -418,6 +420,9 @@ class ElectromagneticSolver(picmistandard.PICMI_ElectromagneticSolver): if self.cfl is not None: pywarpx.warpx.cfl = self.cfl + if self.source_smoother is not None: + self.source_smoother.initialize_inputs() + class ElectrostaticSolver(picmistandard.PICMI_ElectrostaticSolver): def initialize_inputs(self): |