diff options
author | 2020-11-17 23:25:14 -0800 | |
---|---|---|
committer | 2020-11-17 23:25:14 -0800 | |
commit | b1fdf47a294db484b85f336dccbcf90897d69804 (patch) | |
tree | 748f37ab2f500d15191468a50313738e10a9c176 /Python/pywarpx/picmi.py | |
parent | d9d68a8f5191ee96fba5029321233bd5d2c197ff (diff) | |
download | WarpX-b1fdf47a294db484b85f336dccbcf90897d69804.tar.gz WarpX-b1fdf47a294db484b85f336dccbcf90897d69804.tar.zst WarpX-b1fdf47a294db484b85f336dccbcf90897d69804.zip |
use_filter now controls physical and k-space filtering (#1516)
* use_filter now controls physical and k-space filtering
* Added backward compatibility error if use_kspace_filter is set
Diffstat (limited to 'Python/pywarpx/picmi.py')
-rw-r--r-- | Python/pywarpx/picmi.py | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/Python/pywarpx/picmi.py b/Python/pywarpx/picmi.py index aaf1ec98d..fd4a608eb 100644 --- a/Python/pywarpx/picmi.py +++ b/Python/pywarpx/picmi.py @@ -313,13 +313,8 @@ class PseudoRandomLayout(picmistandard.PICMI_PseudoRandomLayout): class BinomialSmoother(picmistandard.PICMI_BinomialSmoother): def initialize_inputs(self, solver): - use_spectral = solver.method == 'PSATD' and isinstance(solver.grid, picmistandard.PICMI_CylindricalGrid) - if use_spectral: - pywarpx.warpx.use_kspace_filter = 1 - if self.compensation is not None: - pywarpx.warpx.use_filter_compensation = self.compensation[0] and self.compensation[1] - else: - pywarpx.warpx.use_filter = 1 + pywarpx.warpx.use_filter = 1 + pywarpx.warpx.use_filter_compensation = np.all(self.compensation) if self.n_pass is None: # If not specified, do at least one pass in each direction. self.n_pass = 1 |