aboutsummaryrefslogtreecommitdiff
path: root/Python/pywarpx/timestepper.py
diff options
context:
space:
mode:
authorGravatar thomas clark <66143812+tmsclark@users.noreply.github.com> 2021-07-07 06:02:27 +0200
committerGravatar GitHub <noreply@github.com> 2021-07-06 21:02:27 -0700
commit36ac45fd7dff97206c75860f113b4838314429f7 (patch)
tree7048c1e7155d61925cde404cba5eaaa2204b38f5 /Python/pywarpx/timestepper.py
parent23587b02ba81edd0c488af62238ce43cf0d841c8 (diff)
downloadWarpX-36ac45fd7dff97206c75860f113b4838314429f7.tar.gz
WarpX-36ac45fd7dff97206c75860f113b4838314429f7.tar.zst
WarpX-36ac45fd7dff97206c75860f113b4838314429f7.zip
Add possibility to start and stop moving window (#2027)
* Add possibility to start and stop moving window * Update Benchmark laserInjection_2d * Update Source/Diagnostics/BTDiagnostics.cpp Co-authored-by: Axel Huebl <axel.huebl@plasma.ninja> * modification of the MoveWindow function in the python interface * False to True for move j in python function Co-authored-by: Axel Huebl <axel.huebl@plasma.ninja>
Diffstat (limited to 'Python/pywarpx/timestepper.py')
-rw-r--r--Python/pywarpx/timestepper.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/pywarpx/timestepper.py b/Python/pywarpx/timestepper.py
index cbaf8235d..fb8151d43 100644
--- a/Python/pywarpx/timestepper.py
+++ b/Python/pywarpx/timestepper.py
@@ -61,7 +61,7 @@ class TimeStepper(object):
self.cur_time += dt
- libwarpx.warpx_MoveWindow();
+ libwarpx.warpx_MoveWindow(self.istep,True);
#if mpi.rank == 0:
print("STEP %d ends. TIME = %e DT = %e"%(self.istep, self.cur_time, dt))