aboutsummaryrefslogtreecommitdiff
path: root/Python/pywarpx/picmi.py
diff options
context:
space:
mode:
authorGravatar Edoardo Zoni <59625522+EZoni@users.noreply.github.com> 2020-07-02 16:02:38 -0700
committerGravatar GitHub <noreply@github.com> 2020-07-02 16:02:38 -0700
commit81dd5a670799b72d0e99f04cb5028566ad767b18 (patch)
tree22038fd47ca042cd76e86e7b9535121149431211 /Python/pywarpx/picmi.py
parent8d3f260ab158ca1ca9834b3517b7ea1441cf1225 (diff)
downloadWarpX-81dd5a670799b72d0e99f04cb5028566ad767b18.tar.gz
WarpX-81dd5a670799b72d0e99f04cb5028566ad767b18.tar.zst
WarpX-81dd5a670799b72d0e99f04cb5028566ad767b18.zip
PSATD: current correction works only with global FFTs (#1131)
* Clean up implementation of current correction: - abort when current correction runs with psatd.periodic_single_box_fft=0 - rename input parameter from psatd.do_current_correction to psatd.current_correction - add nodal tests in 2D and 3D (using direct current deposition) - change 2D test: use Esirkepov deposition, instead of direct, as in 3D test - add/update relevant checksum benchmarks * Small clean-up
Diffstat (limited to 'Python/pywarpx/picmi.py')
-rw-r--r--Python/pywarpx/picmi.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/pywarpx/picmi.py b/Python/pywarpx/picmi.py
index 6f4d7a4ba..df700a124 100644
--- a/Python/pywarpx/picmi.py
+++ b/Python/pywarpx/picmi.py
@@ -453,7 +453,7 @@ class ElectromagneticSolver(picmistandard.PICMI_ElectromagneticSolver):
if self.method == 'PSATD':
self.periodic_single_box_fft = kw.pop('warpx_periodic_single_box_fft', None)
self.fftw_plan_measure = kw.pop('warpx_fftw_plan_measure', None)
- self.do_current_correction = kw.pop('warpx_do_current_correction', None)
+ self.current_correction = kw.pop('warpx_current_correction', None)
def initialize_inputs(self):
@@ -466,7 +466,7 @@ class ElectromagneticSolver(picmistandard.PICMI_ElectromagneticSolver):
if self.method == 'PSATD':
pywarpx.psatd.periodic_single_box_fft = self.periodic_single_box_fft
pywarpx.psatd.fftw_plan_measure = self.fftw_plan_measure
- pywarpx.psatd.do_current_correction = self.do_current_correction
+ pywarpx.psatd.current_correction = self.current_correction
if self.stencil_order is not None:
pywarpx.psatd.nox = self.stencil_order[0]