aboutsummaryrefslogtreecommitdiff
path: root/Python/pywarpx/timestepper.py
diff options
context:
space:
mode:
authorGravatar Axel Huebl <axel.huebl@plasma.ninja> 2020-01-23 16:26:55 -0800
committerGravatar Axel Huebl <axel.huebl@plasma.ninja> 2020-01-28 10:08:28 -0800
commit3dabb5801eacc36ca9fa6205534b374df9f7f5ea (patch)
tree8bf04fc32ef6b43e1d578cd77e453022d2b67a73 /Python/pywarpx/timestepper.py
parent6a06d68c805e81e7f942716c07873d07f9b668e7 (diff)
downloadWarpX-3dabb5801eacc36ca9fa6205534b374df9f7f5ea.tar.gz
WarpX-3dabb5801eacc36ca9fa6205534b374df9f7f5ea.tar.zst
WarpX-3dabb5801eacc36ca9fa6205534b374df9f7f5ea.zip
Simplify Plot Options
Remove the `dump_plotfile` switch and only control via interval value in `plot_int` for plotfiles. Remove the `dump_openpmd` switch and only control via interval value in `plot_openpmd` for openPMD data dumps. openPMD: pick first available backend if unspecified.
Diffstat (limited to 'Python/pywarpx/timestepper.py')
-rw-r--r--Python/pywarpx/timestepper.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Python/pywarpx/timestepper.py b/Python/pywarpx/timestepper.py
index 3068cbc82..0e6846edd 100644
--- a/Python/pywarpx/timestepper.py
+++ b/Python/pywarpx/timestepper.py
@@ -66,8 +66,10 @@ class TimeStepper(object):
max_time_reached = ((self.cur_time >= libwarpx.warpx_stopTime() - 1.e-6*dt) or (self.istep >= libwarpx.warpx_maxStep()))
- if libwarpx.warpx_plotInt() > 0 and (self.istep+1)%libwarpx.warpx_plotInt() == 0 or max_time_reached:
+ if (libwarpx.warpx_plotInt() > 0 and (self.istep+1)%libwarpx.warpx_plotInt() == 0) or max_time_reached:
libwarpx.warpx_WritePlotFile()
+ if (libwarpx.warpx_openpmdInt() > 0 and (self.istep+1)%libwarpx.warpx_openpmdInt() == 0) or max_time_reached:
+ libwarpx.warpx_WriteOpenPMDFile()
if libwarpx.warpx_checkInt() > 0 and (self.istep+1)%libwarpx.warpx_plotInt() == 0 or max_time_reached:
libwarpx.warpx_WriteCheckPointFile()